artk 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,7 +42,7 @@ class Resource < Artk::Base
42
42
 
43
43
  # Returns a single Artk::Component for a given ref id
44
44
  def component ref
45
- self.all_series.collect { |c| c if c.persistentId == ref }.first
45
+ self.all_series.collect { |c| c if c.persistentId == ref }.compact.first
46
46
  end
47
47
 
48
48
  def pid_and_title
@@ -1,3 +1,3 @@
1
1
  module Artk
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-22 00:00:00.000000000 Z
12
+ date: 2013-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  segments:
135
135
  - 0
136
- hash: -2669443078563737161
136
+ hash: -1506618296910395185
137
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: -2669443078563737161
145
+ hash: -1506618296910395185
146
146
  requirements: []
147
147
  rubyforge_project:
148
148
  rubygems_version: 1.8.23