reactive_resource 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reactive_resource (0.7.0)
4
+ reactive_resource (0.7.1)
5
5
  activeresource (>= 3.1)
6
6
  activesupport (>= 3.1)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- activemodel (3.2.2)
12
- activesupport (= 3.2.2)
11
+ activemodel (3.2.12)
12
+ activesupport (= 3.2.12)
13
13
  builder (~> 3.0.0)
14
- activeresource (3.2.2)
15
- activemodel (= 3.2.2)
16
- activesupport (= 3.2.2)
17
- activesupport (3.2.2)
14
+ activeresource (3.2.12)
15
+ activemodel (= 3.2.12)
16
+ activesupport (= 3.2.12)
17
+ activesupport (3.2.12)
18
18
  i18n (~> 0.6)
19
19
  multi_json (~> 1.0)
20
20
  addressable (2.2.2)
21
- builder (3.0.0)
21
+ builder (3.0.4)
22
22
  crack (0.1.8)
23
- i18n (0.6.0)
24
- multi_json (1.1.0)
23
+ i18n (0.6.1)
24
+ multi_json (1.6.1)
25
25
  rake (0.9.2)
26
26
  shoulda (2.11.3)
27
27
  webmock (1.6.2)
@@ -80,7 +80,7 @@ module ReactiveResource
80
80
  element_path = "#{prefix(prefix_options)}#{association_prefix(prefix_options)}#{collection_name}"
81
81
 
82
82
  # singleton resources don't have an ID
83
- if id || !singleton?
83
+ if id.present? || !singleton?
84
84
  element_path += "/#{id}"
85
85
  end
86
86
  element_path += "#{extension}#{query_string(query_options)}"
@@ -1,4 +1,4 @@
1
1
  module ReactiveResource
2
2
  # The current version of ReactiveResource
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
@@ -18,6 +18,10 @@ class ReactiveResource::BaseTest < Test::Unit::TestCase
18
18
  should "follow relationships where :class_name is specified" do
19
19
  assert_equal ReactiveResource::Lawyer, @object.class.associations.detect {|assoc| assoc.attribute == :lawyer }.associated_class
20
20
  end
21
+
22
+ should "return valid path when id is blank" do
23
+ assert_equal "/api/1/headshot.json", ReactiveResource::Headshot.element_path('')
24
+ end
21
25
  end
22
26
 
23
27
  context "A resource that inherits from ReactiveResource::Base" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactive_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-06 00:00:00.000000000Z
12
+ date: 2013-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeresource
16
- requirement: &70203673686620 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70203673686620
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: activesupport
27
- requirement: &70203673686140 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '3.1'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70203673686140
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '3.1'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: shoulda
38
- requirement: &70203673685680 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: 2.11.3
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70203673685680
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.11.3
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: webmock
49
- requirement: &70203673685220 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: 1.6.1
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70203673685220
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.6.1
58
78
  description: ActiveRecord-like associations for ActiveResource
59
79
  email:
60
80
  - justin@uberweiss.org
@@ -96,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
116
  version: '0'
97
117
  segments:
98
118
  - 0
99
- hash: -1783378317626943238
119
+ hash: 2162483585092170846
100
120
  required_rubygems_version: !ruby/object:Gem::Requirement
101
121
  none: false
102
122
  requirements:
@@ -105,10 +125,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
125
  version: '0'
106
126
  segments:
107
127
  - 0
108
- hash: -1783378317626943238
128
+ hash: 2162483585092170846
109
129
  requirements: []
110
130
  rubyforge_project: reactive_resource
111
- rubygems_version: 1.8.10
131
+ rubygems_version: 1.8.25
112
132
  signing_key:
113
133
  specification_version: 3
114
134
  summary: ActiveRecord-like associations for ActiveResource