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 CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.13 2010-10-20
2
+ * 1 minor enhancement
3
+ * fix service cloning
4
+
1
5
  === 1.1.12 2010-10-19
2
6
  * 1 minor enhancement
3
7
  * added lib_guide_tabs to document schema
@@ -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}.merge(options), :benchmark => @benchmark)
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
@@ -6,7 +6,7 @@ require 'cgi'
6
6
  require 'json'
7
7
 
8
8
  module Summon
9
- VERSION = "1.1.12"
9
+ VERSION = "1.1.13"
10
10
  DEFAULT_LOCALE = 'en'
11
11
 
12
12
  locale_dir = File.dirname(__FILE__) + '/summon/locales'
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../lib/summon')
2
2
  gem 'rspec'
3
3
  require 'spec'
4
+ require 'yaml'
4
5
 
5
6
  def pre(text)
6
7
  puts "<pre>" +
@@ -16,4 +17,4 @@ class Object
16
17
  @src = nil
17
18
  end
18
19
  end
19
-
20
+
@@ -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.12"
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-19}
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 12
10
- version: 1.1.12
9
+ - 13
10
+ version: 1.1.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Charles Lowell