transloadit 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.0.3 / 2013-03-06 ###
2
+
3
+ * allow symbols as keys for response attributes (thanks @gbuesing for reporting)
4
+
1
5
  ### 1.0.3 / 2012-11-10 ###
2
6
 
3
7
  * Support max_size option
@@ -22,7 +22,7 @@ class Transloadit::Response < Delegator
22
22
  # @return [String] the value for the attribute
23
23
  #
24
24
  def [](attribute)
25
- self.body[attribute]
25
+ self.body[attribute.to_s]
26
26
  end
27
27
 
28
28
  #
@@ -1,4 +1,4 @@
1
1
  class Transloadit
2
2
  # The current version of Transloadit.
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
@@ -26,6 +26,12 @@ describe Transloadit::Response do
26
26
  @response[attribute].must_equal @response.body[attribute]
27
27
  end
28
28
  end
29
+
30
+ it 'must allow access to body attributes as symbols' do
31
+ [:ok, :message, :assembly_id, :assembly_url].each do |attribute|
32
+ @response[attribute].must_equal @response.body[attribute.to_s]
33
+ end
34
+ end
29
35
 
30
36
  it 'must inspect as the body' do
31
37
  @response.inspect.must_equal @response.body.inspect
data/transloadit.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |gem|
28
28
  gem.add_development_dependency 'minitest' # needed for < 1.9.2
29
29
  gem.add_development_dependency 'simplecov'
30
30
 
31
- gem.add_development_dependency 'vcr'
31
+ gem.add_development_dependency 'vcr', '1.11.3'
32
32
  gem.add_development_dependency 'webmock'
33
33
 
34
34
  gem.add_development_dependency 'yard'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transloadit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-10 00:00:00.000000000 Z
13
+ date: 2013-03-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -97,17 +97,17 @@ dependencies:
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
100
- - - ! '>='
100
+ - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: '0'
102
+ version: 1.11.3
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
- - - ! '>='
108
+ - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 1.11.3
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement