savon_model 0.3.0 → 0.3.1
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/lib/savon/model.rb +2 -2
- data/savon_model.gemspec +1 -1
- data/spec/savon/model_spec.rb +0 -5
- data/spec/spec_helper.rb +2 -2
- metadata +8 -9
- data/Gemfile.lock +0 -38
data/lib/savon/model.rb
CHANGED
@@ -7,14 +7,14 @@ module Savon
|
|
7
7
|
# Model for SOAP service oriented applications.
|
8
8
|
module Model
|
9
9
|
|
10
|
-
VERSION = "0.3.
|
10
|
+
VERSION = "0.3.1"
|
11
11
|
|
12
12
|
module ClassMethods
|
13
13
|
|
14
14
|
# Returns a memoized <tt>Savon::Client</tt> instance. Accepts a block and passes it
|
15
15
|
# to <tt>Savon::Client.new</tt> when called for the first time.
|
16
16
|
def client(&block)
|
17
|
-
|
17
|
+
@client ||= Savon::Client.new &block
|
18
18
|
end
|
19
19
|
|
20
20
|
# Sets the SOAP endpoint.
|
data/savon_model.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.rubyforge_project = s.name
|
16
16
|
|
17
|
-
s.
|
17
|
+
s.add_dependency "savon", "~> 0.8.0.beta.3"
|
18
18
|
|
19
19
|
s.add_development_dependency "rspec", "~> 2.0.0"
|
20
20
|
s.add_development_dependency "mocha", "~> 0.9.8"
|
data/spec/savon/model_spec.rb
CHANGED
@@ -12,11 +12,6 @@ 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
|
20
15
|
end
|
21
16
|
|
22
17
|
describe ".endpoint" do
|
data/spec/spec_helper.rb
CHANGED
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: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
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-11-
|
18
|
+
date: 2010-11-15 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,15 +26,15 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 62196261
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
- 8
|
33
33
|
- 0
|
34
34
|
- beta
|
35
|
-
-
|
36
|
-
version: 0.8.0.beta.
|
37
|
-
type: :
|
35
|
+
- 3
|
36
|
+
version: 0.8.0.beta.3
|
37
|
+
type: :runtime
|
38
38
|
version_requirements: *id001
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: rspec
|
@@ -80,7 +80,6 @@ files:
|
|
80
80
|
- .gitignore
|
81
81
|
- .rspec
|
82
82
|
- Gemfile
|
83
|
-
- Gemfile.lock
|
84
83
|
- LICENSE
|
85
84
|
- README.md
|
86
85
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
savon_model (0.3.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: http://rubygems.org/
|
8
|
-
specs:
|
9
|
-
builder (2.1.2)
|
10
|
-
crack (0.1.8)
|
11
|
-
diff-lcs (1.1.2)
|
12
|
-
httpi (0.6.1)
|
13
|
-
mocha (0.9.9)
|
14
|
-
rake
|
15
|
-
rake (0.8.7)
|
16
|
-
rspec (2.0.1)
|
17
|
-
rspec-core (~> 2.0.1)
|
18
|
-
rspec-expectations (~> 2.0.1)
|
19
|
-
rspec-mocks (~> 2.0.1)
|
20
|
-
rspec-core (2.0.1)
|
21
|
-
rspec-expectations (2.0.1)
|
22
|
-
diff-lcs (>= 1.1.2)
|
23
|
-
rspec-mocks (2.0.1)
|
24
|
-
rspec-core (~> 2.0.1)
|
25
|
-
rspec-expectations (~> 2.0.1)
|
26
|
-
savon (0.8.0.beta.1)
|
27
|
-
builder (~> 2.1.2)
|
28
|
-
crack (~> 0.1.8)
|
29
|
-
httpi (>= 0.6.0)
|
30
|
-
|
31
|
-
PLATFORMS
|
32
|
-
ruby
|
33
|
-
|
34
|
-
DEPENDENCIES
|
35
|
-
mocha (~> 0.9.8)
|
36
|
-
rspec (~> 2.0.0)
|
37
|
-
savon (~> 0.8.0.beta.2)
|
38
|
-
savon_model!
|