Skip to content

Commit 849e5d4

Browse files
committed
Added resource_type to material, updated to 0.3.1.
1 parent 2d45007 commit 849e5d4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/tess/api/material.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def self.resource_path
1616
attr_accessor :id, :title, :url, :short_description, :long_description, :doi,:last_scraped, :scraper_record,
1717
:remote_created_date, :remote_updated_date, :package_ids, :keywords, :scientific_topic_names,
1818
:licence, :difficulty_level, :contributors, :authors, :target_audience, :node_ids,
19-
:external_resources_attributes
19+
:external_resources_attributes, :resource_type
2020

2121
def initialize(params = {})
2222
params[:last_scraped] = Time.now

tess_api_client.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22
s.name = 'tess_api_client'
3-
s.version = '0.3.0'
4-
s.date = '2017-03-17'
3+
s.version = '0.3.1'
4+
s.date = '2017-06-14'
55
s.summary = 'Libraries for uploading files to https://github.com/ElixirUK/TeSS'
66
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.'
77
s.authors = ['Milo Thurston','Niall Beard','Aleksandra Nenadic','Finn Bacall']

test/material_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class MaterialTest < Test::Unit::TestCase
1010
short_description: 'A cool material',
1111
long_description: 'A cooooooool material',
1212
remote_created_date: '2016-08-10',
13+
resource_type: 'Video',
1314
keywords: ['dog', 'cat'],
1415
licence: 'GPL-3.0' })
1516

0 commit comments

Comments
 (0)