jonathantron-paypal 3.0.0pre5 → 3.0.0pre6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - ree
5
+ - 1.9.2
6
+ - 1.9.3
7
+ - jruby-18mode
8
+ - jruby-19mode
9
+ - rbx-18mode
10
+ - rbx-19mode
11
+ - ruby-head
12
+ - jruby-head
@@ -1,5 +1,6 @@
1
1
  = 3.0.0 (git)
2
2
 
3
+ Add missing require of `common.rb` in `lib/paypal/rails.rb` file (Lairton Borges)
3
4
  Update spec task to use the new RSpec module name
4
5
  Remove constant/class variable usage and use Thread specific configurations
5
6
  Start spec on Paypal::Helpers::Common.paypal_setup
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec
4
+
5
+ platform :jruby do
6
+ gem "jruby-openssl"
7
+ end
@@ -1,18 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jonathantron-paypal (3.0.0pre4)
4
+ jonathantron-paypal (3.0.0pre6)
5
5
  rack (>= 1.0.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- bluecloth (2.1.0)
10
+ bouncy-castle-java (1.5.0146.1)
11
11
  diff-lcs (1.1.2)
12
12
  fakeweb (1.3.0)
13
+ jruby-openssl (0.7.5)
14
+ bouncy-castle-java (>= 1.5.0146.1)
15
+ kramdown (0.13.5)
13
16
  nokogiri (1.5.0)
14
- rack (1.3.1)
15
- rcov (0.9.9)
17
+ nokogiri (1.5.0-java)
18
+ rack (1.4.1)
19
+ rake (0.9.2.2)
16
20
  rspec (2.6.0)
17
21
  rspec-core (~> 2.6.0)
18
22
  rspec-expectations (~> 2.6.0)
@@ -24,13 +28,15 @@ GEM
24
28
  yard (0.7.2)
25
29
 
26
30
  PLATFORMS
31
+ java
27
32
  ruby
28
33
 
29
34
  DEPENDENCIES
30
- bluecloth
31
35
  fakeweb
32
36
  jonathantron-paypal!
37
+ jruby-openssl
38
+ kramdown
33
39
  nokogiri
34
- rcov (>= 0.9.8)
40
+ rake
35
41
  rspec (~> 2.6.0)
36
42
  yard
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/JonathanTron/paypal.png?branch=master)](http://travis-ci.org/JonathanTron/paypal)
2
+
1
3
  # Welcome to Paypal ruby library
2
4
 
3
5
  This library is here to aid with integrating Paypal payments into ruby on rails
@@ -11,7 +13,7 @@ business account and tell paypal where to send the IPN ( Instant payment notific
11
13
 
12
14
  # Requirements
13
15
 
14
- * Ruby 1.8.2 (may work with previous versions) With OpenSSL support compiled in.
16
+ * Ruby 1.8.7, 1.9.2, 1.9.3, Rubinius and JRuby (with OpenSSL support).
15
17
  * Valid paypal business account.
16
18
  * (optional) The money library from http://dist.leetsoft.com/api/money
17
19
 
@@ -114,4 +116,4 @@ and note the "Cert ID" that Paypal shows for the certificate.
114
116
 
115
117
  # Troubleshooting
116
118
 
117
- uninitalized constant Paypal - Make sure your ruby has openssl support
119
+ uninitalized constant Paypal - Make sure your ruby has openssl support
data/Rakefile CHANGED
@@ -1,14 +1,13 @@
1
1
  require "rubygems"
2
2
 
3
+ require 'bundler'
4
+ Bundler::GemHelper.install_tasks
5
+
3
6
  $:.unshift "./lib"
4
7
  require "paypal"
5
8
 
6
9
  require "rspec/core/rake_task"
7
10
  ::RSpec::Core::RakeTask.new(:spec)
8
- ::RSpec::Core::RakeTask.new(:rcov) do |spec|
9
- spec.rcov = true
10
- spec.rcov_opts = "--exclude spec/"
11
- end
12
11
  task :default => :spec
13
12
 
14
13
  begin
@@ -156,7 +156,7 @@ module Paypal
156
156
  # Sign the data with our key/certificate pair
157
157
  signed = OpenSSL::PKCS7::sign(business_cert, business_key, data, [], OpenSSL::PKCS7::BINARY)
158
158
  # Encrypt the signed data with Paypal's public certificate.
159
- encrypted = OpenSSL::PKCS7::encrypt([paypal_cert], signed.to_der, OpenSSL::Cipher::Cipher::new("DES3"), OpenSSL::PKCS7::BINARY).to_s.gsub("\n", "")
159
+ encrypted = OpenSSL::PKCS7::encrypt([paypal_cert], signed.to_der, OpenSSL::Cipher::Cipher::new("des-ede3-cbc"), OpenSSL::PKCS7::BINARY).to_s.gsub("\n", "")
160
160
 
161
161
  # The command for encrypted forms is always '_s-xclick'; the real command is in the encrypted data.
162
162
  buttons << %Q{<input type="hidden" name="cmd" value="_s-xclick" />}
@@ -1,4 +1,5 @@
1
1
  require 'active_support'
2
+ require File.join(File.dirname(__FILE__),'helpers', '/common')
2
3
  require File.join(File.dirname(__FILE__),'helpers', '/rails')
3
4
 
4
5
  ActionView::Base.send(:include, Paypal::Helpers::Common)
@@ -1,3 +1,3 @@
1
1
  module Paypal
2
- VERSION = "3.0.0pre5"
3
- end
2
+ VERSION = "3.0.0pre6"
3
+ end
@@ -25,10 +25,10 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])
27
27
 
28
+ s.add_development_dependency(%q<rake>)
28
29
  s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
29
- s.add_development_dependency(%q<rcov>, [">= 0.9.8"])
30
30
  s.add_development_dependency(%q<nokogiri>, [">= 0"])
31
- s.add_development_dependency(%q<bluecloth>, [">= 0"])
31
+ s.add_development_dependency(%q<kramdown>, [">= 0"])
32
32
  s.add_development_dependency(%q<yard>, [">= 0"])
33
33
  s.add_development_dependency(%q<fakeweb>, [">= 0"])
34
- end
34
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jonathantron-paypal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0pre5
4
+ version: 3.0.0pre6
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -11,12 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-07-15 00:00:00.000000000 +02:00
15
- default_executable:
14
+ date: 2012-03-06 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: rack
19
- requirement: &2166608700 !ruby/object:Gem::Requirement
18
+ requirement: &70341041750380 !ruby/object:Gem::Requirement
20
19
  none: false
21
20
  requirements:
22
21
  - - ! '>='
@@ -24,32 +23,32 @@ dependencies:
24
23
  version: 1.0.0
25
24
  type: :runtime
26
25
  prerelease: false
27
- version_requirements: *2166608700
26
+ version_requirements: *70341041750380
28
27
  - !ruby/object:Gem::Dependency
29
- name: rspec
30
- requirement: &2166608140 !ruby/object:Gem::Requirement
28
+ name: rake
29
+ requirement: &70341041744340 !ruby/object:Gem::Requirement
31
30
  none: false
32
31
  requirements:
33
- - - ~>
32
+ - - ! '>='
34
33
  - !ruby/object:Gem::Version
35
- version: 2.6.0
34
+ version: '0'
36
35
  type: :development
37
36
  prerelease: false
38
- version_requirements: *2166608140
37
+ version_requirements: *70341041744340
39
38
  - !ruby/object:Gem::Dependency
40
- name: rcov
41
- requirement: &2166607580 !ruby/object:Gem::Requirement
39
+ name: rspec
40
+ requirement: &70341041627120 !ruby/object:Gem::Requirement
42
41
  none: false
43
42
  requirements:
44
- - - ! '>='
43
+ - - ~>
45
44
  - !ruby/object:Gem::Version
46
- version: 0.9.8
45
+ version: 2.6.0
47
46
  type: :development
48
47
  prerelease: false
49
- version_requirements: *2166607580
48
+ version_requirements: *70341041627120
50
49
  - !ruby/object:Gem::Dependency
51
50
  name: nokogiri
52
- requirement: &2166606940 !ruby/object:Gem::Requirement
51
+ requirement: &70341041626140 !ruby/object:Gem::Requirement
53
52
  none: false
54
53
  requirements:
55
54
  - - ! '>='
@@ -57,10 +56,10 @@ dependencies:
57
56
  version: '0'
58
57
  type: :development
59
58
  prerelease: false
60
- version_requirements: *2166606940
59
+ version_requirements: *70341041626140
61
60
  - !ruby/object:Gem::Dependency
62
- name: bluecloth
63
- requirement: &2166606440 !ruby/object:Gem::Requirement
61
+ name: kramdown
62
+ requirement: &70341041625200 !ruby/object:Gem::Requirement
64
63
  none: false
65
64
  requirements:
66
65
  - - ! '>='
@@ -68,10 +67,10 @@ dependencies:
68
67
  version: '0'
69
68
  type: :development
70
69
  prerelease: false
71
- version_requirements: *2166606440
70
+ version_requirements: *70341041625200
72
71
  - !ruby/object:Gem::Dependency
73
72
  name: yard
74
- requirement: &2166605920 !ruby/object:Gem::Requirement
73
+ requirement: &70341041624040 !ruby/object:Gem::Requirement
75
74
  none: false
76
75
  requirements:
77
76
  - - ! '>='
@@ -79,10 +78,10 @@ dependencies:
79
78
  version: '0'
80
79
  type: :development
81
80
  prerelease: false
82
- version_requirements: *2166605920
81
+ version_requirements: *70341041624040
83
82
  - !ruby/object:Gem::Dependency
84
83
  name: fakeweb
85
- requirement: &2166605320 !ruby/object:Gem::Requirement
84
+ requirement: &70341041399820 !ruby/object:Gem::Requirement
86
85
  none: false
87
86
  requirements:
88
87
  - - ! '>='
@@ -90,7 +89,7 @@ dependencies:
90
89
  version: '0'
91
90
  type: :development
92
91
  prerelease: false
93
- version_requirements: *2166605320
92
+ version_requirements: *70341041399820
94
93
  description: Paypal Express Integration
95
94
  email: jonathan@tron.name
96
95
  executables: []
@@ -101,6 +100,7 @@ extra_rdoc_files:
101
100
  files:
102
101
  - .document
103
102
  - .gitignore
103
+ - .travis.yml
104
104
  - CHANGELOG.md
105
105
  - Gemfile
106
106
  - Gemfile.lock
@@ -125,7 +125,6 @@ files:
125
125
  - spec/helpers/common_spec.rb
126
126
  - spec/notification_spec.rb
127
127
  - spec/spec_helper.rb
128
- has_rdoc: true
129
128
  homepage: https://github.com/JonathanTron/paypal
130
129
  licenses: []
131
130
  post_install_message:
@@ -139,6 +138,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
138
  - - ! '>='
140
139
  - !ruby/object:Gem::Version
141
140
  version: '0'
141
+ segments:
142
+ - 0
143
+ hash: -914610613041393292
142
144
  required_rubygems_version: !ruby/object:Gem::Requirement
143
145
  none: false
144
146
  requirements:
@@ -147,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
149
  version: 1.3.1
148
150
  requirements: []
149
151
  rubyforge_project:
150
- rubygems_version: 1.6.2
152
+ rubygems_version: 1.8.15
151
153
  signing_key:
152
154
  specification_version: 3
153
155
  summary: Integrate Paypal Express