summon 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/summon/service.rb +1 -1
- data/lib/summon.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- data/spec/summon/service_spec.rb +11 -0
- data/summon.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/lib/summon/service.rb
CHANGED
@@ -31,7 +31,7 @@ module Summon
|
|
31
31
|
|
32
32
|
#clone a service with overridden options
|
33
33
|
def [](options)
|
34
|
-
self.class.new({:url => @url, :access_id => @access_id, :secret_key => @secret_key, :client_key => @client_key, :log => @log.impl
|
34
|
+
self.class.new({:url => @url, :access_id => @access_id, :secret_key => @secret_key, :client_key => @client_key, :log => @log.impl, :benchmark => @benchmark}.merge(options))
|
35
35
|
end
|
36
36
|
|
37
37
|
private
|
data/lib/summon.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/summon/service_spec.rb
CHANGED
@@ -14,6 +14,17 @@ describe Summon::Service do
|
|
14
14
|
it "has a default url which is the public production summon url" do
|
15
15
|
Summon::Service.new.url.should == "http://api.summon.serialssolutions.com"
|
16
16
|
end
|
17
|
+
|
18
|
+
it "allows cloning a service with overridden settings" do
|
19
|
+
options = {:url => "http://google.com", :access_id => "Bob", :secret_key => "Happiness", :session_id => "foo", :client_key => "Justice"}
|
20
|
+
service = Summon::Service.new(options)
|
21
|
+
another = service[{:access_id => "John"}]
|
22
|
+
another.access_id.should == "John"
|
23
|
+
another.client_key.should == options[:client_key]
|
24
|
+
another.url.should == options[:url]
|
25
|
+
another.instance_variable_get(:@secret_key).should == options[:secret_key]
|
26
|
+
end
|
27
|
+
|
17
28
|
|
18
29
|
describe "Locale" do
|
19
30
|
|
data/summon.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{summon}
|
5
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.13"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Charles Lowell"]
|
9
|
-
s.date = %q{2010-10-
|
9
|
+
s.date = %q{2010-10-20}
|
10
10
|
s.description = %q{Ruby language bindings for Serials Solutions Summon Unified Discovery Service}
|
11
11
|
s.email = ["cowboyd@thefrontside.net"]
|
12
12
|
s.executables = ["summon", "summonh"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: summon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 13
|
10
|
+
version: 1.1.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Charles Lowell
|