skles 1.0.3 → 1.1.0
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 +21 -19
- data/README.textile +1 -1
- data/VERSION +1 -1
- data/lib/skles.rb +9 -0
- data/lib/skles_extensions.rb +23 -0
- data/skles.gemspec +4 -4
- metadata +5 -25
data/Gemfile.lock
CHANGED
@@ -1,36 +1,38 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
RedCloth (4.2.
|
5
|
-
builder (
|
4
|
+
RedCloth (4.2.7)
|
5
|
+
builder (3.0.0)
|
6
6
|
crack (0.1.8)
|
7
7
|
diff-lcs (1.1.2)
|
8
8
|
git (1.2.5)
|
9
|
-
gyoku (0.1
|
10
|
-
builder (
|
11
|
-
httpclient (2.1.6)
|
12
|
-
httpi (0.
|
9
|
+
gyoku (0.3.1)
|
10
|
+
builder (>= 2.1.2)
|
11
|
+
httpclient (2.1.6.1)
|
12
|
+
httpi (0.9.0)
|
13
|
+
ntlm-http (>= 0.1.1)
|
13
14
|
rack
|
14
15
|
jeweler (1.5.2)
|
15
16
|
bundler (~> 1.0.0)
|
16
17
|
git (>= 1.2.5)
|
17
18
|
rake
|
18
|
-
|
19
|
+
ntlm-http (0.1.1)
|
20
|
+
rack (1.2.2)
|
19
21
|
rake (0.8.7)
|
20
|
-
rspec (2.
|
21
|
-
rspec-core (~> 2.
|
22
|
-
rspec-expectations (~> 2.
|
23
|
-
rspec-mocks (~> 2.
|
24
|
-
rspec-core (2.
|
25
|
-
rspec-expectations (2.
|
22
|
+
rspec (2.5.0)
|
23
|
+
rspec-core (~> 2.5.0)
|
24
|
+
rspec-expectations (~> 2.5.0)
|
25
|
+
rspec-mocks (~> 2.5.0)
|
26
|
+
rspec-core (2.5.1)
|
27
|
+
rspec-expectations (2.5.0)
|
26
28
|
diff-lcs (~> 1.1.2)
|
27
|
-
rspec-mocks (2.
|
28
|
-
savon (0.8.
|
29
|
-
builder (
|
29
|
+
rspec-mocks (2.5.0)
|
30
|
+
savon (0.8.6)
|
31
|
+
builder (>= 2.1.2)
|
30
32
|
crack (~> 0.1.8)
|
31
|
-
gyoku (>= 0.
|
32
|
-
httpi (>= 0.7.
|
33
|
-
yard (0.6.
|
33
|
+
gyoku (>= 0.3.0)
|
34
|
+
httpi (>= 0.7.8)
|
35
|
+
yard (0.6.5)
|
34
36
|
|
35
37
|
PLATFORMS
|
36
38
|
ruby
|
data/README.textile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
h1. SKLES: Ruby interface for StrongKey Lite boxes
|
2
2
|
|
3
3
|
| *Author* | Tim Morgan |
|
4
|
-
| *Version* | Version 1.
|
4
|
+
| *Version* | Version 1.1 (Mar 18, 2011) |
|
5
5
|
| *License* | Released under the MIT license. |
|
6
6
|
|
7
7
|
The SKLES gem is an interface to StrongAuth's StrongKey Lite credit card vault
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/skles.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'savon'
|
2
|
+
require File.dirname(__FILE__) + '/skles_extensions'
|
2
3
|
require File.dirname(__FILE__) + '/skles_api'
|
3
4
|
|
4
5
|
Savon.configure do |config|
|
@@ -134,6 +135,14 @@ class StrongKeyLite
|
|
134
135
|
|
135
136
|
return response.to_hash
|
136
137
|
end
|
138
|
+
|
139
|
+
# Sets the HTTPI adapter to use for Savon. By default it's @:net_http@.
|
140
|
+
#
|
141
|
+
# @param [Symbol] adapter The HTTPI adapter to use.
|
142
|
+
|
143
|
+
def self.http_adapter=(adapter)
|
144
|
+
Savon.http_adapter = adapter
|
145
|
+
end
|
137
146
|
|
138
147
|
# Superclass of all {StrongKeyLite} exceptions.
|
139
148
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Monkey-patch Savon::SOAP::Request to use a customizable HTTPI adapter.
|
2
|
+
|
3
|
+
module Savon
|
4
|
+
def self.http_adapter
|
5
|
+
@http_adapter
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.http_adapter=(adapter)
|
9
|
+
@http_adapter = adapter
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class Savon::SOAP::Request
|
14
|
+
def response
|
15
|
+
@response ||= with_logging { HTTPI.post request, Savon.http_adapter }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Savon::WSDL::Request
|
20
|
+
def response
|
21
|
+
@response ||= with_logging { HTTPI.get request, Savon.http_adapter }
|
22
|
+
end
|
23
|
+
end
|
data/skles.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{skles}
|
8
|
-
s.version = "1.0
|
8
|
+
s.version = "1.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tim Morgan"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-03-18}
|
13
13
|
s.description = %q{A Ruby wrapper around the StrongKey Lite SOAP client API.}
|
14
14
|
s.email = %q{git@timothymorgan.info}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
"VERSION",
|
28
28
|
"lib/skles.rb",
|
29
29
|
"lib/skles_api.rb",
|
30
|
+
"lib/skles_extensions.rb",
|
30
31
|
"skles.gemspec",
|
31
32
|
"spec/skles_api_spec.rb",
|
32
33
|
"spec/skles_spec.rb",
|
@@ -35,7 +36,7 @@ Gem::Specification.new do |s|
|
|
35
36
|
s.homepage = %q{http://github.com/RISCfuture/skles}
|
36
37
|
s.require_paths = ["lib"]
|
37
38
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9")
|
38
|
-
s.rubygems_version = %q{1.
|
39
|
+
s.rubygems_version = %q{1.6.2}
|
39
40
|
s.summary = %q{Ruby interface for SKLES (StrongKey Light Encryption System) boxes}
|
40
41
|
s.test_files = [
|
41
42
|
"spec/skles_api_spec.rb",
|
@@ -44,7 +45,6 @@ Gem::Specification.new do |s|
|
|
44
45
|
]
|
45
46
|
|
46
47
|
if s.respond_to? :specification_version then
|
47
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
48
|
s.specification_version = 3
|
49
49
|
|
50
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
version: 1.0.3
|
4
|
+
prerelease:
|
5
|
+
version: 1.1.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Tim Morgan
|
@@ -14,7 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-03-18 00:00:00 -07:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
@@ -24,8 +20,6 @@ dependencies:
|
|
24
20
|
requirements:
|
25
21
|
- - ">="
|
26
22
|
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 0
|
29
23
|
version: "0"
|
30
24
|
type: :runtime
|
31
25
|
prerelease: false
|
@@ -37,8 +31,6 @@ dependencies:
|
|
37
31
|
requirements:
|
38
32
|
- - ">="
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
segments:
|
41
|
-
- 0
|
42
34
|
version: "0"
|
43
35
|
type: :runtime
|
44
36
|
prerelease: false
|
@@ -50,8 +42,6 @@ dependencies:
|
|
50
42
|
requirements:
|
51
43
|
- - ">="
|
52
44
|
- !ruby/object:Gem::Version
|
53
|
-
segments:
|
54
|
-
- 0
|
55
45
|
version: "0"
|
56
46
|
type: :development
|
57
47
|
prerelease: false
|
@@ -63,8 +53,6 @@ dependencies:
|
|
63
53
|
requirements:
|
64
54
|
- - ">="
|
65
55
|
- !ruby/object:Gem::Version
|
66
|
-
segments:
|
67
|
-
- 0
|
68
56
|
version: "0"
|
69
57
|
type: :development
|
70
58
|
prerelease: false
|
@@ -76,8 +64,6 @@ dependencies:
|
|
76
64
|
requirements:
|
77
65
|
- - ">="
|
78
66
|
- !ruby/object:Gem::Version
|
79
|
-
segments:
|
80
|
-
- 0
|
81
67
|
version: "0"
|
82
68
|
type: :development
|
83
69
|
prerelease: false
|
@@ -89,8 +75,6 @@ dependencies:
|
|
89
75
|
requirements:
|
90
76
|
- - ">="
|
91
77
|
- !ruby/object:Gem::Version
|
92
|
-
segments:
|
93
|
-
- 0
|
94
78
|
version: "0"
|
95
79
|
type: :development
|
96
80
|
prerelease: false
|
@@ -115,6 +99,7 @@ files:
|
|
115
99
|
- VERSION
|
116
100
|
- lib/skles.rb
|
117
101
|
- lib/skles_api.rb
|
102
|
+
- lib/skles_extensions.rb
|
118
103
|
- skles.gemspec
|
119
104
|
- spec/skles_api_spec.rb
|
120
105
|
- spec/skles_spec.rb
|
@@ -133,22 +118,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
118
|
requirements:
|
134
119
|
- - ">="
|
135
120
|
- !ruby/object:Gem::Version
|
136
|
-
segments:
|
137
|
-
- 1
|
138
|
-
- 9
|
139
121
|
version: "1.9"
|
140
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
123
|
none: false
|
142
124
|
requirements:
|
143
125
|
- - ">="
|
144
126
|
- !ruby/object:Gem::Version
|
145
|
-
segments:
|
146
|
-
- 0
|
147
127
|
version: "0"
|
148
128
|
requirements: []
|
149
129
|
|
150
130
|
rubyforge_project:
|
151
|
-
rubygems_version: 1.
|
131
|
+
rubygems_version: 1.6.2
|
152
132
|
signing_key:
|
153
133
|
specification_version: 3
|
154
134
|
summary: Ruby interface for SKLES (StrongKey Light Encryption System) boxes
|