cielox 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -3
- data/cielox.gemspec +3 -3
- data/lib/cielo/http.rb +2 -0
- data/lib/cielo/version.rb +1 -1
- data/spec/cielo/authorization_request_spec.rb +1 -1
- metadata +13 -23
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1500c7af5a30166a156000036289bb036305dabb
|
4
|
+
data.tar.gz: 568579c16341843007a48c43814ed98014fb13ff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: af67cffc3e937820740a00156c4068024004ceedde7933c89661bce3464a735e5bac35ef1207d0208835f6e30262212b0b74854beb325ea3a8bb6c81a4e4f79a
|
7
|
+
data.tar.gz: 22e350dc6c9e4d85a6302fc0eb5dfe890346477399f38795f30dcb4f829987a1f07c4049f99beec4602f2720e070320dfafce01ba141e46205e038158467b473
|
data/Gemfile
CHANGED
data/cielox.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.version = Cielo::VERSION
|
17
17
|
|
18
18
|
gem.add_dependency "happymapper", "~> 0.4.0"
|
19
|
-
gem.add_development_dependency "rspec", "~> 2.
|
20
|
-
gem.add_development_dependency "timecop", "~> 0.5.2"
|
21
|
-
gem.add_development_dependency "webmock", "~> 1.
|
19
|
+
gem.add_development_dependency "rspec", "~> 2.13.0"
|
20
|
+
gem.add_development_dependency "timecop", "~> 0.5.9.2"
|
21
|
+
gem.add_development_dependency "webmock", "~> 1.10.0"
|
22
22
|
end
|
data/lib/cielo/http.rb
CHANGED
@@ -8,8 +8,10 @@ module Cielo
|
|
8
8
|
|
9
9
|
http = Net::HTTP.new(host, port)
|
10
10
|
http.use_ssl = true
|
11
|
+
http.ssl_version = :TLSv1
|
11
12
|
http.open_timeout = 10 * 1000
|
12
13
|
http.read_timeout = 40 * 1000
|
14
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
13
15
|
Cielo.logger.info(http.inspect)
|
14
16
|
|
15
17
|
post_body = "mensagem=#{to_xml}"
|
data/lib/cielo/version.rb
CHANGED
@@ -42,7 +42,7 @@ describe Cielo::AuthorizationRequest do
|
|
42
42
|
transaction.authorization.message.should == "Transação autorizada"
|
43
43
|
transaction.authorization.time.should == Time.parse("2010-07-14 13:56:12")
|
44
44
|
transaction.authorization.total.should == 100
|
45
|
-
transaction.authorization.lr.should == 1
|
45
|
+
transaction.authorization.lr.should == "1"
|
46
46
|
transaction.authorization.arp.should == "a1b2c3"
|
47
47
|
transaction.authorization.nsu.should == "5e4d3c"
|
48
48
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cielox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rafael Souza
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: happymapper
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,51 +27,45 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.
|
33
|
+
version: 2.13.0
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.
|
40
|
+
version: 2.13.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: timecop
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.5.2
|
47
|
+
version: 0.5.9.2
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.5.2
|
54
|
+
version: 0.5.9.2
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: webmock
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
61
|
+
version: 1.10.0
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.
|
68
|
+
version: 1.10.0
|
78
69
|
description: Gem for integration with Cielo
|
79
70
|
email:
|
80
71
|
- me@rafaelss.com
|
@@ -147,27 +138,26 @@ files:
|
|
147
138
|
- spec/spec_helper.rb
|
148
139
|
homepage: http://github.com/rafaelss/cielo
|
149
140
|
licenses: []
|
141
|
+
metadata: {}
|
150
142
|
post_install_message:
|
151
143
|
rdoc_options: []
|
152
144
|
require_paths:
|
153
145
|
- lib
|
154
146
|
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
147
|
requirements:
|
157
|
-
- -
|
148
|
+
- - '>='
|
158
149
|
- !ruby/object:Gem::Version
|
159
150
|
version: '0'
|
160
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
152
|
requirements:
|
163
|
-
- -
|
153
|
+
- - '>='
|
164
154
|
- !ruby/object:Gem::Version
|
165
155
|
version: '0'
|
166
156
|
requirements: []
|
167
157
|
rubyforge_project:
|
168
|
-
rubygems_version:
|
158
|
+
rubygems_version: 2.0.0
|
169
159
|
signing_key:
|
170
|
-
specification_version:
|
160
|
+
specification_version: 4
|
171
161
|
summary: Gem for integration with Cielo
|
172
162
|
test_files:
|
173
163
|
- spec/cielo/authentication_spec.rb
|