rubydora 1.7.5 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTQ1MTcyZThjYjlmZTA4MzZhMWQ4YWRjNDE4NmU5OTZiYzk2ODE4Nw==
5
- data.tar.gz: !binary |-
6
- ODQ2N2M3NmJhMDM1ZGIwYzRlODUwMWJkNWMzYmMyZWZkZmM2ZGQ5NA==
2
+ SHA1:
3
+ metadata.gz: cd98e937d5d4111adfe04d29ff9222f04e350e2e
4
+ data.tar.gz: 112cb370a7149ba0421f145b099652a86a1b3ff0
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZWEyNWEzZTVmZGI0NTJiYmJiNDcxOTQ2NTk3NDYxNjQ2YjllYmMyZjlkZDcw
10
- OGQyZDEyOGZjOGZhMDVhY2FjMmU0ODM0NTYwYThhZDNiYjI3OTgzMzZlNGIw
11
- MDE4OWUyYmI3NThmNzU0ZjE5NGVmNmYyMDM0ZTViMmJiZDdmYjE=
12
- data.tar.gz: !binary |-
13
- MGM0ZTIyZTAxMzIxYzc2ZTFhOGIwNTg3NGRjMjhlODhlNWQyYmQ3NjY4ZmY0
14
- M2EwZWFhY2FmYTMwZjM1N2RmMGUxOGEzNTE3NTFjZGMyMWUwMWYyNjdmOTM2
15
- N2E2NGI2NjEzNTk0YjA2ZjE4OGQ4M2I0ZDQwNTAzYzc2MjMyNmY=
6
+ metadata.gz: 40f19e1bf21b91c1340b1bf240b200624853e450a6f84f31ba092de3ef951d9ed44743ae76636a128031a8538078a56e0b13d074bbbd8fba2d62e959a414b41c
7
+ data.tar.gz: ff8ac5c951403577be066a384edc28ef44fefd75ed162dcb9b468940cbaf0b9b16cdfaaa472107dff230d2684eb9650efe940a777556d5579af60166f530034f
@@ -10,3 +10,6 @@ gemfile:
10
10
  notifications:
11
11
  irc: "irc.freenode.org#projecthydra"
12
12
 
13
+ env:
14
+ global:
15
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
@@ -1,3 +1,11 @@
1
+ h3. 1.8.0 (17 Jul 2014)
2
+ 2014-07-17: Use the system libxml2 on travis [Justin Coyne]
3
+
4
+ 2014-07-17: Add the ability to set a logger and not depend on
5
+ mediashelf-loggable [Justin Coyne]
6
+
7
+ 2014-07-17: Fixed styles and rspec deprecations [Justin Coyne]
8
+
1
9
  h3. 1.6.3 (2 May 2013)
2
10
  * Don't require backports gem
3
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.5
1
+ 1.8.0
@@ -1,6 +1,7 @@
1
1
  # Fedora Commons REST API module
2
2
  require 'active_model'
3
3
  require 'deprecation'
4
+ require 'active_support/core_ext/module/attribute_accessors'
4
5
 
5
6
  module Rubydora
6
7
  autoload :Datastream, "rubydora/datastream"
@@ -29,31 +30,34 @@ module Rubydora
29
30
  require 'nokogiri'
30
31
 
31
32
  require 'rubydora/version'
33
+ mattr_accessor :logger
32
34
 
33
- # Connect to Fedora Repository
34
- # @return Rubydora::Repository
35
- def self.connect *args
36
- Repository.new *args
37
- end
35
+ class << self
36
+ # Connect to Fedora Repository
37
+ # @return Rubydora::Repository
38
+ def connect *args
39
+ Repository.new *args
40
+ end
38
41
 
39
- # Connect to the default Fedora Repository
40
- # @return Rubydora::Repository
41
- def self.repository
42
- @repository ||= self.connect(self.default_config)
43
- end
42
+ # Connect to the default Fedora Repository
43
+ # @return Rubydora::Repository
44
+ def repository
45
+ @repository ||= connect(default_config)
46
+ end
44
47
 
45
- # Set the default Fedora Repository
46
- # @param [Rubydora::Repository] repository
47
- # @return Rubydora::Repository
48
- def self.repository= repository
49
- @repository = repository
50
- end
48
+ # Set the default Fedora Repository
49
+ # @param [Rubydora::Repository] repository
50
+ # @return Rubydora::Repository
51
+ def repository= repository
52
+ @repository = repository
53
+ end
51
54
 
52
- # Default repository connection information
53
- # TODO: read ENV variables?
54
- # @return Hash
55
- def self.default_config
56
- {:validateChecksum=>false}
55
+ # Default repository connection information
56
+ # TODO: read ENV variables?
57
+ # @return Hash
58
+ def default_config
59
+ {validateChecksum: false}
60
+ end
57
61
  end
58
62
 
59
63
  class RubydoraError < StandardError; end
@@ -21,13 +21,15 @@ module Rubydora
21
21
 
22
22
 
23
23
  rescue_from RestClient::InternalServerError do |e|
24
- logger.error e.response
25
- logger.flush if logger.respond_to? :flush
24
+ if Rubydora.logger
25
+ Rubydora.logger.error e.response
26
+ Rubydora.logger.flush if Rubydora.logger.respond_to? :flush
27
+ end
26
28
  raise FedoraInvalidRequest, "See logger for details"
27
29
  end
28
30
 
29
31
  rescue_from Errno::ECONNREFUSED, Errno::EHOSTUNREACH do |exception|
30
- logger.error "Unable to connect to Fedora at #{@client.url}"
32
+ Rubydora.logger.error "Unable to connect to Fedora at #{@client.url}" if Rubydora.logger
31
33
  raise exception
32
34
  end
33
35
 
@@ -234,7 +236,7 @@ module Rubydora
234
236
 
235
237
  val
236
238
  rescue RestClient::Unauthorized => e
237
- logger.error "Unauthorized at #{client.url}/#{datastream_url(pid, dsid, query_options)}"
239
+ Rubydora.logger.error "Unauthorized at #{client.url}/#{datastream_url(pid, dsid, query_options)}" if Rubydora.logger
238
240
  raise e
239
241
  rescue Exception => exception
240
242
  rescue_with_handler(exception) || raise
@@ -257,7 +259,7 @@ module Rubydora
257
259
 
258
260
  val
259
261
  rescue RestClient::Unauthorized => e
260
- logger.error "Unauthorized at #{client.url}/#{datastreams_url(pid, query_options)}"
262
+ Rubydora.logger.error "Unauthorized at #{client.url}/#{datastreams_url(pid, query_options)}" if Rubydora.logger
261
263
  raise e
262
264
  rescue Exception => exception
263
265
  rescue_with_handler(exception) || raise
@@ -461,6 +463,11 @@ module Rubydora
461
463
  end
462
464
  end
463
465
 
466
+ # The logger is called by ActiveSupport::Benchmarkable
467
+ def logger
468
+ Rubydora.logger
469
+ end
470
+
464
471
  private
465
472
 
466
473
  def file_content_type(file)
@@ -91,7 +91,7 @@ describe Rubydora::Datastream do
91
91
  it "should have default values" do
92
92
  @datastream.controlGroup == "M"
93
93
  @datastream.dsState.should == "A"
94
- @datastream.versionable.should be_true
94
+ @datastream.versionable.should be true
95
95
  @datastream.changed.should be_empty
96
96
  end
97
97
 
@@ -134,16 +134,16 @@ describe Rubydora::Datastream do
134
134
 
135
135
  it "should allow versionable to be set to false" do
136
136
  @datastream.versionable = false
137
- @datastream.versionable.should be_false
137
+ @datastream.versionable.should be false
138
138
  end
139
139
 
140
140
  it "should be the current version" do
141
- @datastream.current_version?.should be_true
141
+ @datastream.current_version?.should be true
142
142
  end
143
143
 
144
144
  # it "should cast versionable to boolean" do
145
145
  # @datastream.profile['versionable'] = 'true'
146
- # @datastream.versionable.should be_true
146
+ # @datastream.versionable.should be true
147
147
  # end
148
148
 
149
149
 
@@ -170,7 +170,7 @@ describe Rubydora::Datastream do
170
170
  <datastreamProfile>
171
171
  </datastreamProfile>
172
172
  XML
173
- @datastream.versionable.should be_true
173
+ @datastream.versionable.should be true
174
174
  end
175
175
 
176
176
  it "should be true when it's returned as true" do
@@ -179,7 +179,7 @@ describe Rubydora::Datastream do
179
179
  <dsVersionable>true</dsVersionable>
180
180
  </datastreamProfile>
181
181
  XML
182
- @datastream.versionable.should be_true
182
+ @datastream.versionable.should be true
183
183
  end
184
184
 
185
185
  it "should be false when it's returned as false" do
@@ -188,7 +188,7 @@ describe Rubydora::Datastream do
188
188
  <dsVersionable>false</dsVersionable>
189
189
  </datastreamProfile>
190
190
  XML
191
- @datastream.versionable.should be_false
191
+ @datastream.versionable.should be false
192
192
  end
193
193
  end
194
194
 
@@ -210,7 +210,7 @@ describe Rubydora::Datastream do
210
210
  <dsChecksumValid>true</dsChecksumValid>
211
211
  </datastreamProfile>
212
212
  XML
213
- @datastream.dsChecksumValid.should be_true
213
+ @datastream.dsChecksumValid.should be true
214
214
  end
215
215
 
216
216
  it "should be false when it's returned as false" do
@@ -219,7 +219,7 @@ describe Rubydora::Datastream do
219
219
  <dsChecksumValid>false</dsChecksumValid>
220
220
  </datastreamProfile>
221
221
  XML
222
- @datastream.dsChecksumValid.should be_false
222
+ @datastream.dsChecksumValid.should be false
223
223
  end
224
224
  end
225
225
 
@@ -423,9 +423,9 @@ describe Rubydora::Datastream do
423
423
  end
424
424
 
425
425
  it "should be marked as changed when the content is updated" do
426
- @datastream.changed?.should be_false
426
+ @datastream.changed?.should be false
427
427
  @datastream.content = "test"
428
- @datastream.changed?.should be_true
428
+ @datastream.changed?.should be true
429
429
  end
430
430
 
431
431
  end
@@ -482,7 +482,7 @@ describe Rubydora::Datastream do
482
482
  end
483
483
 
484
484
  it "should have a list of previous versions" do
485
- @datastream.versions.should have(2).items
485
+ expect(@datastream.versions.size).to eq 2
486
486
  end
487
487
 
488
488
  it "should access versions as read-only copies" do
@@ -502,7 +502,7 @@ describe Rubydora::Datastream do
502
502
  <dsCreateDate>2010-01-02T00:00:00.012Z</dsCreateDate>
503
503
  </datastreamProfile>
504
504
  XML
505
- @datastream.current_version?.should be_true
505
+ @datastream.current_version?.should be true
506
506
  end
507
507
 
508
508
  it "should be the current version if it's the first version" do
@@ -512,7 +512,7 @@ describe Rubydora::Datastream do
512
512
  <dsCreateDate>2010-01-02T00:00:00.012Z</dsCreateDate>
513
513
  </datastreamProfile>
514
514
  XML
515
- @datastream.versions.first.current_version?.should be_true
515
+ @datastream.versions.first.current_version?.should be true
516
516
  end
517
517
 
518
518
  it "should not be the current version if it's the second version" do
@@ -522,7 +522,7 @@ describe Rubydora::Datastream do
522
522
  <dsCreateDate>2008-08-05T01:30:05.012Z</dsCreateDate>
523
523
  </datastreamProfile>
524
524
  XML
525
- @datastream.versions[1].current_version?.should be_false
525
+ @datastream.versions[1].current_version?.should be false
526
526
  end
527
527
  end
528
528
  describe "when no versions are found" do
@@ -537,7 +537,7 @@ describe Rubydora::Datastream do
537
537
 
538
538
  it "should be the current version" do
539
539
  @datastream.stub(:new? => false)
540
- @datastream.current_version?.should be_true
540
+ @datastream.current_version?.should be true
541
541
  end
542
542
 
543
543
  end
@@ -192,14 +192,14 @@ describe Rubydora::DigitalObject do
192
192
  it "should provide a hash populated by the existing datastreams" do
193
193
 
194
194
  @object.datastreams.should have_key("a")
195
- @object.datastreams["a"].new?.should be_false
196
- @object.datastreams["a"].changed?.should be_false
195
+ @object.datastreams["a"].new?.should be false
196
+ @object.datastreams["a"].changed?.should be false
197
197
  @object.datastreams.should have_key("b")
198
- @object.datastreams["b"].new?.should be_false
199
- @object.datastreams["b"].changed?.should be_false
198
+ @object.datastreams["b"].new?.should be false
199
+ @object.datastreams["b"].changed?.should be false
200
200
  @object.datastreams.should have_key("c")
201
- @object.datastreams["c"].new?.should be_false
202
- @object.datastreams["c"].changed?.should be_false
201
+ @object.datastreams["c"].new?.should be false
202
+ @object.datastreams["c"].changed?.should be false
203
203
  end
204
204
  end
205
205
  end
@@ -438,7 +438,7 @@ describe Rubydora::DigitalObject do
438
438
  end
439
439
 
440
440
  it "should have a list of previous versions" do
441
- @object.versions.should have(2).items
441
+ expect(@object.versions.size).to eq 2
442
442
  @object.versions.first.asOfDateTime.should == '2011-09-26T20:41:02.450Z'
443
443
  end
444
444
 
@@ -125,8 +125,8 @@ describe "Integration testing against a live Fedora repository", :integration =>
125
125
  it "should not mark existing datastreams as changed on load" do
126
126
  obj = @repository.find('fedora-system:ContentModel-3.0')
127
127
  obj.datastreams.each do |k,v|
128
- v.changed?.should be_false
129
- v.new?.should be_false
128
+ v.changed?.should be false
129
+ v.new?.should be false
130
130
  end
131
131
  end
132
132
 
@@ -348,7 +348,7 @@ describe "Integration testing against a live Fedora repository", :integration =>
348
348
  obj = @repository.find_or_initialize('test:1')
349
349
  versions_count = obj.datastreams["my_ds"].versions.length
350
350
 
351
- obj.datastreams["my_ds"].versionable.should be_true
351
+ obj.datastreams["my_ds"].versionable.should be true
352
352
 
353
353
  obj.datastreams["my_ds"].versionable = false
354
354
  obj.datastreams["my_ds"].content = "ZZZ"
@@ -361,7 +361,7 @@ describe "Integration testing against a live Fedora repository", :integration =>
361
361
  obj.datastreams["my_ds"].save
362
362
 
363
363
  obj = @repository.find('test:1')
364
- obj.datastreams["my_ds"].versionable.should be_false
364
+ obj.datastreams["my_ds"].versionable.should be false
365
365
  obj.datastreams["my_ds"].versions.length.should == (versions_count + 1)
366
366
  end
367
367
  end
@@ -10,7 +10,7 @@ describe Rubydora::Repository do
10
10
  describe "initialize" do
11
11
  it "should symbolize config keys" do
12
12
  repository = Rubydora::Repository.new "validateChecksum"=> true
13
- repository.config[:validateChecksum].should be_true
13
+ repository.config[:validateChecksum].should be true
14
14
  end
15
15
  end
16
16
 
@@ -160,39 +160,67 @@ describe Rubydora::RestApiClient do
160
160
  @mock_repository.object_xml :pid => 'mypid'
161
161
  end
162
162
 
163
- it "datastream" do
164
- RestClient::Request.should_receive(:execute).with(hash_including(:url => base_url + "/" + datastreams_url('mypid', :format => 'xml')))
165
- logger.should_receive(:debug) # squelch message "Loaded datastream list for mypid (time)"
166
- @mock_repository.datastreams :pid => 'mypid'
167
- end
163
+ context "Loading a list of datastreams" do
164
+ let(:request_options) { { url: base_url + "/" + datastreams_url('mypid', format: 'xml') } }
165
+ let(:my_logger) { double }
168
166
 
169
- it "datastreams" do
170
- @mock_repository.should_receive(:datastream).with(:pid => 'mypid', :dsid => 'asdf')
171
- Deprecation.should_receive(:warn)
172
- @mock_repository.datastreams :pid => 'mypid', :dsid => 'asdf'
173
- end
167
+ before do
168
+ @initial_logger = Rubydora.logger
169
+ Rubydora.logger = my_logger
170
+ end
171
+
172
+ after { Rubydora.logger = @initial_logger }
174
173
 
175
- it "datastream" do
176
- @mock_repository.should_receive(:datastreams).with(:pid => 'mypid')
177
- Deprecation.should_receive(:warn)
178
- @mock_repository.datastream :pid => 'mypid'
174
+ it "calls Fedora with the correct url" do
175
+ RestClient::Request.should_receive(:execute).with(hash_including(request_options))
176
+ my_logger.should_receive(:debug) # squelch message "Loaded datastream list for mypid (time)"
177
+ @mock_repository.datastreams :pid => 'mypid'
178
+ end
179
179
  end
180
180
 
181
- it "datastream" do
182
- RestClient::Request.should_receive(:execute).with(hash_including(:url => base_url + "/" + datastream_url('mypid', 'aaa', :format => 'xml')))
183
- logger.should_receive(:debug) # squelch message "Loaded datastream mypid/aaa (time)"
184
- @mock_repository.datastream :pid => 'mypid', :dsid => 'aaa'
181
+ context "Calling datastreams with a dsid" do
182
+ it "warns of deprecated behavior" do
183
+ @mock_repository.should_receive(:datastream).with(:pid => 'mypid', :dsid => 'asdf')
184
+ Deprecation.should_receive(:warn)
185
+ @mock_repository.datastreams :pid => 'mypid', :dsid => 'asdf'
186
+ end
185
187
  end
186
188
 
187
- it "should raise not found exception when getting a datastream" do
188
- RestClient::Request.should_receive(:execute).with(hash_including(:url => base_url + "/" + datastream_url('mypid', 'aaa', :format => 'xml'))).and_raise( RestClient::ResourceNotFound)
189
- lambda {@mock_repository.datastream :pid => 'mypid', :dsid => 'aaa'}.should raise_error RestClient::ResourceNotFound
189
+ context "Calling datastream without a dsid" do
190
+ it "warns of deprecated behavior" do
191
+ @mock_repository.should_receive(:datastreams).with(:pid => 'mypid')
192
+ Deprecation.should_receive(:warn)
193
+ @mock_repository.datastream :pid => 'mypid'
194
+ end
190
195
  end
191
196
 
192
- it "should raise Unauthorized exception when getting a datastream" do
193
- RestClient::Request.should_receive(:execute).with(hash_including(:url => base_url + "/" + datastream_url('mypid', 'aaa', :format => 'xml'))).and_raise( RestClient::Unauthorized)
194
- logger.should_receive(:error).with("Unauthorized at #{base_url + "/" + datastream_url('mypid', 'aaa', :format => 'xml')}")
195
- lambda {@mock_repository.datastream :pid => 'mypid', :dsid => 'aaa'}.should raise_error RestClient::Unauthorized
197
+ context "Loading a datastream" do
198
+ let(:request_options) { { url: base_url + "/" + datastream_url('mypid', 'aaa', format: 'xml') } }
199
+ let(:my_logger) { double }
200
+
201
+ before do
202
+ @initial_logger = Rubydora.logger
203
+ Rubydora.logger = my_logger
204
+ end
205
+
206
+ after { Rubydora.logger = @initial_logger }
207
+
208
+ it "datastream" do
209
+ RestClient::Request.should_receive(:execute).with(hash_including(request_options))
210
+ my_logger.should_receive(:debug) # squelch message "Loaded datastream mypid/aaa (time)"
211
+ @mock_repository.datastream :pid => 'mypid', :dsid => 'aaa'
212
+ end
213
+
214
+ it "should raise not found exception when getting a datastream" do
215
+ RestClient::Request.should_receive(:execute).with(hash_including(request_options)).and_raise(RestClient::ResourceNotFound)
216
+ lambda {@mock_repository.datastream :pid => 'mypid', :dsid => 'aaa'}.should raise_error RestClient::ResourceNotFound
217
+ end
218
+
219
+ it "should raise Unauthorized exception when getting a datastream" do
220
+ RestClient::Request.should_receive(:execute).with(hash_including(request_options)).and_raise(RestClient::Unauthorized)
221
+ my_logger.should_receive(:error).with("Unauthorized at #{base_url + "/" + datastream_url('mypid', 'aaa', :format => 'xml')}")
222
+ lambda {@mock_repository.datastream :pid => 'mypid', :dsid => 'aaa'}.should raise_error RestClient::Unauthorized
223
+ end
196
224
  end
197
225
 
198
226
  it "datastream_dissemination" do
metadata CHANGED
@@ -1,223 +1,223 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubydora
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-30 00:00:00.000000000 Z
11
+ date: 2014-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastercsv
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rest-client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: equivalent-xml
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mime-types
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activemodel
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: hooks
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.3.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.3.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: deprecation
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rake
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: bundler
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ! '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: 1.0.14
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ! '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: 1.0.14
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rspec
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: '2.0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '2.0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: yard
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ! '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ! '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: jettywrapper
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ! '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: 1.4.0
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ! '>='
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: 1.4.0
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: webmock
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ! '>='
213
+ - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ! '>='
220
+ - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  description: Fedora Commons REST API ruby library
@@ -227,10 +227,10 @@ executables: []
227
227
  extensions: []
228
228
  extra_rdoc_files: []
229
229
  files:
230
- - .gitignore
231
- - .gitmodules
232
- - .mailmap
233
- - .travis.yml
230
+ - ".gitignore"
231
+ - ".gitmodules"
232
+ - ".mailmap"
233
+ - ".travis.yml"
234
234
  - CONTRIBUTING.md
235
235
  - Gemfile
236
236
  - History.textile
@@ -278,12 +278,12 @@ require_paths:
278
278
  - lib
279
279
  required_ruby_version: !ruby/object:Gem::Requirement
280
280
  requirements:
281
- - - ! '>='
281
+ - - ">="
282
282
  - !ruby/object:Gem::Version
283
283
  version: '0'
284
284
  required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  requirements:
286
- - - ! '>='
286
+ - - ">="
287
287
  - !ruby/object:Gem::Version
288
288
  version: '0'
289
289
  requirements: []