savon_model 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +11 -11
- data/lib/savon/model.rb +2 -2
- data/spec/savon/model_spec.rb +5 -0
- metadata +4 -4
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
savon_model (0.1.
|
|
4
|
+
savon_model (0.1.2)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: http://gems.blau.de/
|
|
@@ -11,19 +11,19 @@ GEM
|
|
|
11
11
|
crack (0.1.8)
|
|
12
12
|
diff-lcs (1.1.2)
|
|
13
13
|
httpi (0.6.0)
|
|
14
|
-
mocha (0.9.
|
|
14
|
+
mocha (0.9.9)
|
|
15
15
|
rake
|
|
16
16
|
rake (0.8.7)
|
|
17
|
-
rspec (2.0.
|
|
18
|
-
rspec-core (
|
|
19
|
-
rspec-expectations (
|
|
20
|
-
rspec-mocks (
|
|
21
|
-
rspec-core (2.0.
|
|
22
|
-
rspec-expectations (2.0.
|
|
17
|
+
rspec (2.0.1)
|
|
18
|
+
rspec-core (~> 2.0.1)
|
|
19
|
+
rspec-expectations (~> 2.0.1)
|
|
20
|
+
rspec-mocks (~> 2.0.1)
|
|
21
|
+
rspec-core (2.0.1)
|
|
22
|
+
rspec-expectations (2.0.1)
|
|
23
23
|
diff-lcs (>= 1.1.2)
|
|
24
|
-
rspec-mocks (2.0.
|
|
25
|
-
rspec-core (
|
|
26
|
-
rspec-expectations (
|
|
24
|
+
rspec-mocks (2.0.1)
|
|
25
|
+
rspec-core (~> 2.0.1)
|
|
26
|
+
rspec-expectations (~> 2.0.1)
|
|
27
27
|
savon (0.8.0.alpha.2)
|
|
28
28
|
builder (~> 2.1.2)
|
|
29
29
|
crack (~> 0.1.8)
|
data/lib/savon/model.rb
CHANGED
|
@@ -4,7 +4,7 @@ require "savon/ext/response"
|
|
|
4
4
|
module Savon
|
|
5
5
|
module Model
|
|
6
6
|
|
|
7
|
-
VERSION = "0.1.
|
|
7
|
+
VERSION = "0.1.2"
|
|
8
8
|
|
|
9
9
|
class << self
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ module Savon
|
|
|
19
19
|
module ClassMethods
|
|
20
20
|
|
|
21
21
|
def client(&block)
|
|
22
|
-
|
|
22
|
+
@@client ||= Savon::Client.new &block
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def endpoint(uri)
|
data/spec/savon/model_spec.rb
CHANGED
|
@@ -12,6 +12,11 @@ describe Savon::Model do
|
|
|
12
12
|
it "should memoize the Savon::Client" do
|
|
13
13
|
model.client.should equal(model.client)
|
|
14
14
|
end
|
|
15
|
+
|
|
16
|
+
it "should memoize the Savon::Client when inherited" do
|
|
17
|
+
supermodel = Class.new model
|
|
18
|
+
supermodel.client.should equal(model.client)
|
|
19
|
+
end
|
|
15
20
|
end
|
|
16
21
|
|
|
17
22
|
describe ".endpoint" do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: savon_model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.1.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Daniel Harrington
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-10-
|
|
18
|
+
date: 2010-10-26 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|