Skip to content

Commit

Permalink
Added resource_type to material, updated to 0.3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
knirirr committed Jun 14, 2017
1 parent 2d45007 commit 849e5d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tess/api/material.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.resource_path
attr_accessor :id, :title, :url, :short_description, :long_description, :doi,:last_scraped, :scraper_record,
:remote_created_date, :remote_updated_date, :package_ids, :keywords, :scientific_topic_names,
:licence, :difficulty_level, :contributors, :authors, :target_audience, :node_ids,
:external_resources_attributes
:external_resources_attributes, :resource_type

def initialize(params = {})
params[:last_scraped] = Time.now
Expand Down
4 changes: 2 additions & 2 deletions tess_api_client.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'tess_api_client'
s.version = '0.3.0'
s.date = '2017-03-17'
s.version = '0.3.1'
s.date = '2017-06-14'
s.summary = 'Libraries for uploading files to https://github.com/ElixirUK/TeSS'
s.description = 'Uses the a Custom RoR API on https://tess.elixir-uk.org to upload data in the format being used by the TeSS project.'
s.authors = ['Milo Thurston','Niall Beard','Aleksandra Nenadic','Finn Bacall']
Expand Down
1 change: 1 addition & 0 deletions test/material_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class MaterialTest < Test::Unit::TestCase
short_description: 'A cool material',
long_description: 'A cooooooool material',
remote_created_date: '2016-08-10',
resource_type: 'Video',
keywords: ['dog', 'cat'],
licence: 'GPL-3.0' })

Expand Down

0 comments on commit 849e5d4

Please sign in to comment.