cielox 0.0.3a → 0.0.4a

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source :rubygems
2
2
 
3
3
  # Specify your gem's dependencies in cielox.gemspec
4
4
  gemspec
data/lib/cielo/http.rb CHANGED
@@ -2,8 +2,11 @@ require "net/http"
2
2
 
3
3
  module Cielo
4
4
  module HTTP
5
- def request
6
- http = Net::HTTP.new(Cielo.configuration.host, Cielo.configuration.port)
5
+ def request(host = nil, port = nil)
6
+ host ||= Cielo.configuration.host
7
+ port ||= Cielo.configuration.port
8
+
9
+ http = Net::HTTP.new(host, port)
7
10
  http.use_ssl = true
8
11
  http.open_timeout = 10 * 1000
9
12
  http.read_timeout = 40 * 1000
data/lib/cielo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cielo
2
- VERSION = "0.0.3a"
2
+ VERSION = "0.0.4a"
3
3
  end
@@ -86,6 +86,6 @@ describe Cielo::TransactionRequest do
86
86
  transaction.tid.should have(20).chars
87
87
  transaction.pan.should == "IqVz7P9zaIgTYdU41HaW/OB/d7Idwttqwb2vaTt8MT0="
88
88
  transaction.status.should == 0
89
- transaction.authentication_url = "https://qasecommerce.cielo.com.br/web/index.cbmp?id=4c0476919b9ea10d11f761bd3158bde0"
89
+ transaction.authentication_url.should match(/https:\/\/qasecommerce\.cielo\.com\.br\/web\/index.cbmp\?id=.+/)
90
90
  end
91
91
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cielox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3a
4
+ version: 0.0.4a
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-23 00:00:00.000000000 Z
12
+ date: 2012-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: happymapper
16
- requirement: &70199035986920 !ruby/object:Gem::Requirement
16
+ requirement: &70272446273280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70199035986920
24
+ version_requirements: *70272446273280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70199035986300 !ruby/object:Gem::Requirement
27
+ requirement: &70272446272780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.9.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70199035986300
35
+ version_requirements: *70272446272780
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: timecop
38
- requirement: &70199035985720 !ruby/object:Gem::Requirement
38
+ requirement: &70272446272320 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.3.5
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70199035985720
46
+ version_requirements: *70272446272320
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: webmock
49
- requirement: &70199035985260 !ruby/object:Gem::Requirement
49
+ requirement: &70272446271860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.8.6
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70199035985260
57
+ version_requirements: *70272446271860
58
58
  description: Gem for integration with Cielo
59
59
  email:
60
60
  - me@rafaelss.com
@@ -182,4 +182,3 @@ test_files:
182
182
  - spec/fixtures/transaction_request/request.xml
183
183
  - spec/fixtures/transaction_request/response.xml
184
184
  - spec/spec_helper.rb
185
- has_rdoc: