jonathantron-paypal 3.0.0pre4 → 3.0.0pre5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,13 +1,3 @@
1
- source :gemcutter
1
+ source "http://rubygems.org"
2
2
 
3
- gem "bundler"
4
- gem "rack", ">= 1.0.0"
5
- gem "json_pure"
6
- gem "rake"
7
- gem "jeweler"
8
- gem "rcov", ">= 0.9.8"
9
- gem "rspec", ">= 2.0.0.a"
10
- gem "nokogiri"
11
- gem "bluecloth"
12
- gem "yard"
13
- gem "fakeweb", :require => "fakeweb"
3
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,89 +1,36 @@
1
- ---
2
- dependencies:
3
- fakeweb:
4
- group:
5
- - :default
6
- version: ">= 0"
7
- require:
8
- - fakeweb
9
- bluecloth:
10
- group:
11
- - :default
12
- version: ">= 0"
13
- rake:
14
- group:
15
- - :default
16
- version: ">= 0"
17
- rspec:
18
- group:
19
- - :default
20
- version: ">= 2.0.0.a"
21
- yard:
22
- group:
23
- - :default
24
- version: ">= 0"
25
- rack:
26
- group:
27
- - :default
28
- version: ">= 1.0.0"
29
- rcov:
30
- group:
31
- - :default
32
- version: ">= 0.9.8"
33
- jeweler:
34
- group:
35
- - :default
36
- version: ">= 0"
37
- bundler:
38
- group:
39
- - :default
40
- version: ">= 0"
41
- json_pure:
42
- group:
43
- - :default
44
- version: ">= 0"
45
- nokogiri:
46
- group:
47
- - :default
48
- version: ">= 0"
49
- specs:
50
- - rake:
51
- version: 0.8.7
52
- - bluecloth:
53
- version: 2.0.7
54
- - bundler:
55
- version: 0.9.25
56
- - diff-lcs:
57
- version: 1.1.2
58
- - fakeweb:
59
- version: 1.2.8
60
- - json_pure:
61
- version: 1.4.3
62
- - gemcutter:
63
- version: 0.5.0
64
- - git:
65
- version: 1.2.5
66
- - rubyforge:
67
- version: 2.0.4
68
- - jeweler:
69
- version: 1.4.0
70
- - nokogiri:
71
- version: 1.4.2
72
- - rack:
73
- version: 1.2.1
74
- - rcov:
75
- version: 0.9.8
76
- - rspec-core:
77
- version: 2.0.0.beta.17
78
- - rspec-expectations:
79
- version: 2.0.0.beta.17
80
- - rspec-mocks:
81
- version: 2.0.0.beta.17
82
- - rspec:
83
- version: 2.0.0.beta.17
84
- - yard:
85
- version: 0.5.8
86
- hash: f248241b76b1508705a1057a180c95c99716930f
87
- sources:
88
- - Rubygems:
89
- uri: http://gemcutter.org
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jonathantron-paypal (3.0.0pre4)
5
+ rack (>= 1.0.0)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ bluecloth (2.1.0)
11
+ diff-lcs (1.1.2)
12
+ fakeweb (1.3.0)
13
+ nokogiri (1.5.0)
14
+ rack (1.3.1)
15
+ rcov (0.9.9)
16
+ rspec (2.6.0)
17
+ rspec-core (~> 2.6.0)
18
+ rspec-expectations (~> 2.6.0)
19
+ rspec-mocks (~> 2.6.0)
20
+ rspec-core (2.6.4)
21
+ rspec-expectations (2.6.0)
22
+ diff-lcs (~> 1.1.2)
23
+ rspec-mocks (2.6.0)
24
+ yard (0.7.2)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ bluecloth
31
+ fakeweb
32
+ jonathantron-paypal!
33
+ nokogiri
34
+ rcov (>= 0.9.8)
35
+ rspec (~> 2.6.0)
36
+ yard
data/Rakefile CHANGED
@@ -1,38 +1,14 @@
1
1
  require "rubygems"
2
- require "rake"
3
2
 
4
- $:.unshift "lib"
3
+ $:.unshift "./lib"
5
4
  require "paypal"
6
5
 
7
- begin
8
- require "jeweler"
9
- Jeweler::Tasks.new do |gem|
10
- gem.name = "jonathantron-paypal"
11
- gem.version = Paypal::VERSION
12
- gem.summary = %Q{Paypal Express Integration}
13
- gem.description = %Q{Integrate Paypal Express}
14
- gem.email = "jonathan@tron.name"
15
- gem.homepage = "http://github.com/JonathanTron/paypal"
16
- gem.authors = ["Jonathan Tron", "Joseph Halter", "Tobias Luetke"]
17
- gem.add_dependency "rack", ">= 1.0.0"
18
- gem.add_development_dependency "rspec", ">= 2.0.0.a"
19
- gem.add_development_dependency "rcov", ">= 0.9.8"
20
- gem.add_development_dependency "nokogiri"
21
- gem.add_development_dependency "bluecloth"
22
- gem.add_development_dependency "yard"
23
- gem.add_development_dependency "fakeweb"
24
- end
25
- rescue LoadError
26
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
27
- end
28
-
29
6
  require "rspec/core/rake_task"
30
7
  ::RSpec::Core::RakeTask.new(:spec)
31
8
  ::RSpec::Core::RakeTask.new(:rcov) do |spec|
32
9
  spec.rcov = true
33
10
  spec.rcov_opts = "--exclude spec/"
34
11
  end
35
- task :spec => :check_dependencies
36
12
  task :default => :spec
37
13
 
38
14
  begin
data/lib/paypal/config.rb CHANGED
@@ -1,54 +1,49 @@
1
1
  module Paypal
2
2
  module Config
3
- def self.ipn_urls
4
- Thread.current[:ipn_urls] ||= {
5
- :sandbox => "https://www.sandbox.paypal.com/cgi-bin/webscr",
6
- :production => "https://www.paypal.com/cgi-bin/webscr"
7
- }
8
- end
9
3
 
10
- def self.mode=(new_mode)
11
- raise ArgumentError.new("Paypal::Config.mode should be either :sandbox or :production (you tried to set it as : #{new_mode})") unless [:sandbox, :production].include?(new_mode.to_sym)
12
- Thread.current[:mode] = new_mode.to_sym
13
- end
14
- def self.mode
15
- Thread.current[:mode] ||= :sandbox
16
- end
17
-
18
- def self.ipn_url
19
- ipn_urls[mode]
20
- end
21
-
22
- def self.ipn_validation_path
23
- URI.parse(ipn_url).path + "?cmd=_notify-validate"
24
- end
4
+ class << self
5
+ attr_accessor :ipn_urls, :mode, :paypal_sandbox_cert, :paypal_production_cert, :business_cert, :business_key, :business_cert_id
25
6
 
26
- def self.ipn_validation_url
27
- "#{ipn_url}?cmd=_notify-validate"
28
- end
7
+ def ipn_urls
8
+ @ipn_urls ||= {
9
+ :sandbox => "https://www.sandbox.paypal.com/cgi-bin/webscr",
10
+ :production => "https://www.paypal.com/cgi-bin/webscr"
11
+ }
12
+ end
29
13
 
30
- def self.paypal_sandbox_cert=(new_cert)
31
- Thread.current[:paypal_sandbox_cert] = new_cert
32
- end
33
- def self.paypal_sandbox_cert
34
- Thread.current[:paypal_sandbox_cert] ||= File.read(File.join(File.dirname(__FILE__), 'certs', 'paypal_sandbox.pem'))
35
- end
14
+ def mode=(new_mode)
15
+ raise ArgumentError.new("Paypal::Config.mode should be either :sandbox or :production (you tried to set it as : #{new_mode})") unless [:sandbox, :production].include?(new_mode.to_sym)
16
+ @mode = new_mode.to_sym
17
+ end
18
+ def mode
19
+ @mode ||= :sandbox
20
+ end
36
21
 
37
- def self.paypal_production_cert=(new_cert)
38
- Thread.current[:paypal_production_cert] = new_cert
39
- end
40
- def self.paypal_production_cert
41
- Thread.current[:paypal_production_cert]
42
- end
22
+ def ipn_url
23
+ ipn_urls[mode]
24
+ end
25
+
26
+ def ipn_validation_path
27
+ URI.parse(ipn_url).path + "?cmd=_notify-validate"
28
+ end
29
+
30
+ def ipn_validation_url
31
+ "#{ipn_url}?cmd=_notify-validate"
32
+ end
33
+
34
+ def paypal_sandbox_cert
35
+ @paypal_sandbox_cert ||= File.read(File.join(File.dirname(__FILE__), 'certs', 'paypal_sandbox.pem'))
36
+ end
43
37
 
44
- def self.paypal_cert
45
- case mode
46
- when :sandbox
47
- paypal_sandbox_cert
48
- when :production
49
- raise StandardError.new("You should set Paypal::Config.paypal_production_cert with your paypal production certificate") unless paypal_production_cert
50
- paypal_production_cert
38
+ def paypal_cert
39
+ case mode
40
+ when :sandbox
41
+ paypal_sandbox_cert
42
+ when :production
43
+ raise StandardError.new("You should set Paypal::Config.paypal_production_cert with your paypal production certificate") unless paypal_production_cert
44
+ paypal_production_cert
45
+ end
51
46
  end
52
47
  end
53
48
  end
54
- end
49
+ end
@@ -92,7 +92,8 @@ module Paypal
92
92
  :item_name => 'Store purchase',
93
93
  :no_shipping => '1',
94
94
  :no_note => '1',
95
- :charset => 'utf-8'
95
+ :charset => 'utf-8',
96
+ :page_style => 'PayPal'
96
97
  }.reject{|k,v| v.nil?}.merge(options)
97
98
 
98
99
  params[:currency_code] = amount.currency if amount.respond_to?(:currency)
@@ -126,9 +127,14 @@ module Paypal
126
127
  end
127
128
 
128
129
  # look for encryption parameters, save them outsite the parameter hash.
129
- business_key = params.delete(:business_key)
130
- business_cert = params.delete(:business_cert)
131
- business_certid = params.delete(:business_certid)
130
+ if params.delete(:enable_encryption)
131
+ business_key = Paypal::Config.business_key
132
+ business_cert = Paypal::Config.business_cert
133
+ business_certid = Paypal::Config.business_cert_id
134
+ unless business_key && business_cert && business_certid
135
+ raise ArgumentError, "Paypal::Config.business_key, Paypal::Config.business_cert and Paypal::Config.business_cert_id should be set if you use :enable_encryption"
136
+ end
137
+ end
132
138
 
133
139
  # Build the form
134
140
  buttons = []
@@ -288,9 +294,7 @@ module Paypal
288
294
  :usr_manage, # Username and Password Generator? (1=yes, default=0)
289
295
  :modify, # Modification Behaviour (0=new subs only, 1=new or modify, 2=modify existing only, default=0)
290
296
  # Encryption Options - used internally only.
291
- :business_key, # Your private key
292
- :business_cert, # Your public certificate
293
- :business_certid, # Your public certificate ID (from Paypal)
297
+ :enable_encryption, # Use business_cert, business_key and business_cert_id from Paypal::Config
294
298
  # Other
295
299
  :bn
296
300
  ]
@@ -1,3 +1,3 @@
1
1
  module Paypal
2
- VERSION = "3.0.0pre4"
2
+ VERSION = "3.0.0pre5"
3
3
  end
data/misc/multiruby.sh CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/bin/bash
2
2
 
3
- RUBYOPT=""
4
-
5
- for i in 1.9.1 ree 1.8.6; do
6
- rvm $i && echo `ruby -v` && bundle install > /dev/null && bundle exec rake spec && bundle show
3
+ for i in 1.9.2-head 1.9.1 ree 1.8.7; do
4
+ rvm use $i && echo `ruby -v` && bundle install > /dev/null && bundle exec rake spec && bundle show
7
5
  done
data/paypal.gemspec ADDED
@@ -0,0 +1,34 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "paypal/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "jonathantron-paypal"
7
+ s.version = Paypal::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Jonathan TRON", "Joseph HALTER", "Tobias LUETKE"]
10
+ s.email = "jonathan@tron.name"
11
+ s.homepage = "https://github.com/JonathanTron/paypal"
12
+ s.summary = %q{Integrate Paypal Express}
13
+ s.description = %q{Paypal Express Integration}
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+
20
+ s.rdoc_options = ["--charset=UTF-8"]
21
+ s.extra_rdoc_files = [
22
+ "LICENSE",
23
+ "README.md"
24
+ ]
25
+
26
+ s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])
27
+
28
+ s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
29
+ s.add_development_dependency(%q<rcov>, [">= 0.9.8"])
30
+ s.add_development_dependency(%q<nokogiri>, [">= 0"])
31
+ s.add_development_dependency(%q<bluecloth>, [">= 0"])
32
+ s.add_development_dependency(%q<yard>, [">= 0"])
33
+ s.add_development_dependency(%q<fakeweb>, [">= 0"])
34
+ end
data/spec/config_spec.rb CHANGED
@@ -2,9 +2,6 @@ require "spec_helper"
2
2
 
3
3
  describe Paypal::Config do
4
4
  after do
5
- Thread.current.keys.each do |key|
6
- Thread.current[key] = nil unless key =~ /^__.+__$/
7
- end
8
5
  Paypal.class_eval do
9
6
  remove_const :Config if const_defined?(:Config)
10
7
  end
@@ -168,15 +165,4 @@ jZJTylbJQ1b5PBBjGiP0PpK48cdF
168
165
  Paypal::Config.paypal_cert.should eql("TEST")
169
166
  end
170
167
  end
171
-
172
- describe "in multithreaded environment" do
173
- it "should not mix different thread values" do
174
- t = Thread.new {
175
- Paypal::Config.mode = :production
176
- Paypal::Config.mode.should eql(:production)
177
- }
178
- t.join
179
- Paypal::Config.mode.should eql(:sandbox)
180
- end
181
- end
182
168
  end
@@ -28,21 +28,32 @@ describe Paypal::Helpers::Common do
28
28
  end
29
29
  end
30
30
 
31
- describe "with :business_key, :business_cert and :business_certid params filled" do
32
- before do
33
- @result = paypal_setup(1, "10.00", "trash@openhood.com", {
34
- :business_key => File.read(File.join(File.dirname(__FILE__), "../fixtures/business_key.pem")),
35
- :business_cert => File.read(File.join(File.dirname(__FILE__), "../fixtures/business_cert.pem")),
36
- :business_certid => "CERTID"
37
- })
31
+ describe "with :enable_encryption set to true" do
32
+ context "with Paypal::Config.business_cert business_key and business_cert_id not set" do
33
+ it "should raise an error" do
34
+ lambda {
35
+ paypal_setup(1, "10.00", "trash@openhood.com", {:enable_encryption => true})
36
+ }.should raise_error ArgumentError, "Paypal::Config.business_key, Paypal::Config.business_cert and Paypal::Config.business_cert_id should be set if you use :enable_encryption"
37
+ end
38
38
  end
39
39
 
40
- it "should include cmd with _s-xclick" do
41
- @result.should have_css("input[type=hidden][name=cmd][value=_s-xclick]")
42
- end
43
- it "should include cmd with encrypted datas" do
44
- @result.should have_css("input[type=hidden][name=encrypted][value*=PKCS7]")
45
- @result.should_not have_css("input[type=hidden][name=encrypted][value*='\n']")
40
+ context "with Paypal::Config.business_cert business_key and business_cert_id set" do
41
+ before do
42
+ Paypal::Config.business_cert = File.read(File.expand_path("../../fixtures/business_cert.pem", __FILE__))
43
+ Paypal::Config.business_key = File.read(File.expand_path("../../fixtures/business_key.pem", __FILE__))
44
+ Paypal::Config.business_cert_id = "CERTID"
45
+ @result = paypal_setup(1, "10.00", "trash@openhood.com", {
46
+ :enable_encryption => true
47
+ })
48
+ end
49
+
50
+ it "should include cmd with _s-xclick" do
51
+ @result.should have_css("input[type=hidden][name=cmd][value=_s-xclick]")
52
+ end
53
+ it "should include cmd with encrypted datas" do
54
+ @result.should have_css("input[type=hidden][name=encrypted][value*=PKCS7]")
55
+ @result.should_not have_css("input[type=hidden][name=encrypted][value*='\n']")
56
+ end
46
57
  end
47
58
  end
48
59
 
data/spec/spec_helper.rb CHANGED
@@ -1,21 +1,16 @@
1
- begin
2
- # Try to require the preresolved locked set of gems.
3
- require ::File.expand_path('../.bundle/environment', __FILE__)
4
- rescue LoadError
5
- # Fall back on doing an unlocked resolve at runtime.
6
- require "rubygems"
7
- require "bundler"
8
- Bundler.setup
9
- end
10
-
11
- Bundler.require :default
1
+ require "rubygems"
2
+ require "bundler"
3
+ Bundler.setup
12
4
 
13
5
  require "paypal"
6
+ require "fakeweb"
7
+ require "nokogiri"
8
+ require "rspec"
14
9
 
15
10
  # Do not allow connection to non registered URLs, so we can catch if specifics were called
16
11
  FakeWeb.allow_net_connect = false
17
12
 
18
- Rspec::Matchers.define :have_css do |css|
13
+ RSpec::Matchers.define :have_css do |css|
19
14
  match do |text|
20
15
  html = Nokogiri::HTML(text)
21
16
  !html.css(css).empty?
@@ -34,7 +29,7 @@ Rspec::Matchers.define :have_css do |css|
34
29
  end
35
30
  end
36
31
 
37
- Rspec.configure do |c|
32
+ RSpec.configure do |c|
38
33
  c.mock_framework = :rspec
39
34
  c.color_enabled = true
40
35
  end
metadata CHANGED
@@ -1,125 +1,104 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jonathantron-paypal
3
- version: !ruby/object:Gem::Version
4
- prerelease: true
5
- segments:
6
- - 3
7
- - 0
8
- - 0pre4
9
- version: 3.0.0pre4
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.0pre5
5
+ prerelease: 5
10
6
  platform: ruby
11
- authors:
12
- - Jonathan Tron
13
- - Joseph Halter
14
- - Tobias Luetke
7
+ authors:
8
+ - Jonathan TRON
9
+ - Joseph HALTER
10
+ - Tobias LUETKE
15
11
  autorequire:
16
12
  bindir: bin
17
13
  cert_chain: []
18
-
19
- date: 2010-07-16 00:00:00 +02:00
14
+ date: 2011-07-15 00:00:00.000000000 +02:00
20
15
  default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
23
18
  name: rack
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 1
31
- - 0
32
- - 0
19
+ requirement: &2166608700 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
33
24
  version: 1.0.0
34
25
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
26
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 2
45
- - 0
46
- - 0
47
- - a
48
- version: 2.0.0.a
27
+ version_requirements: *2166608700
28
+ - !ruby/object:Gem::Dependency
29
+ name: rspec
30
+ requirement: &2166608140 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: 2.6.0
49
36
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: rcov
53
37
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 9
61
- - 8
38
+ version_requirements: *2166608140
39
+ - !ruby/object:Gem::Dependency
40
+ name: rcov
41
+ requirement: &2166607580 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
62
46
  version: 0.9.8
63
47
  type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: nokogiri
67
48
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
- version: "0"
49
+ version_requirements: *2166607580
50
+ - !ruby/object:Gem::Dependency
51
+ name: nokogiri
52
+ requirement: &2166606940 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
75
58
  type: :development
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: bluecloth
79
59
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- segments:
85
- - 0
86
- version: "0"
60
+ version_requirements: *2166606940
61
+ - !ruby/object:Gem::Dependency
62
+ name: bluecloth
63
+ requirement: &2166606440 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
87
69
  type: :development
88
- version_requirements: *id005
89
- - !ruby/object:Gem::Dependency
90
- name: yard
91
70
  prerelease: false
92
- requirement: &id006 !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- segments:
97
- - 0
98
- version: "0"
71
+ version_requirements: *2166606440
72
+ - !ruby/object:Gem::Dependency
73
+ name: yard
74
+ requirement: &2166605920 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
99
80
  type: :development
100
- version_requirements: *id006
101
- - !ruby/object:Gem::Dependency
102
- name: fakeweb
103
81
  prerelease: false
104
- requirement: &id007 !ruby/object:Gem::Requirement
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- segments:
109
- - 0
110
- version: "0"
82
+ version_requirements: *2166605920
83
+ - !ruby/object:Gem::Dependency
84
+ name: fakeweb
85
+ requirement: &2166605320 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
111
91
  type: :development
112
- version_requirements: *id007
113
- description: Integrate Paypal Express
92
+ prerelease: false
93
+ version_requirements: *2166605320
94
+ description: Paypal Express Integration
114
95
  email: jonathan@tron.name
115
96
  executables: []
116
-
117
97
  extensions: []
118
-
119
- extra_rdoc_files:
98
+ extra_rdoc_files:
120
99
  - LICENSE
121
100
  - README.md
122
- files:
101
+ files:
123
102
  - .document
124
103
  - .gitignore
125
104
  - CHANGELOG.md
@@ -128,7 +107,6 @@ files:
128
107
  - LICENSE
129
108
  - README.md
130
109
  - Rakefile
131
- - jonathantron-paypal.gemspec
132
110
  - lib/paypal.rb
133
111
  - lib/paypal/certs/paypal_sandbox.pem
134
112
  - lib/paypal/config.rb
@@ -140,6 +118,7 @@ files:
140
118
  - misc/PayPal - Instant Payment Notification - Technical Overview.pdf
141
119
  - misc/multiruby.sh
142
120
  - misc/paypal.psd
121
+ - paypal.gemspec
143
122
  - spec/config_spec.rb
144
123
  - spec/fixtures/business_cert.pem
145
124
  - spec/fixtures/business_key.pem
@@ -147,39 +126,35 @@ files:
147
126
  - spec/notification_spec.rb
148
127
  - spec/spec_helper.rb
149
128
  has_rdoc: true
150
- homepage: http://github.com/JonathanTron/paypal
129
+ homepage: https://github.com/JonathanTron/paypal
151
130
  licenses: []
152
-
153
131
  post_install_message:
154
- rdoc_options:
132
+ rdoc_options:
155
133
  - --charset=UTF-8
156
- require_paths:
134
+ require_paths:
157
135
  - lib
158
- required_ruby_version: !ruby/object:Gem::Requirement
159
- requirements:
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- segments:
163
- - 0
164
- version: "0"
165
- required_rubygems_version: !ruby/object:Gem::Requirement
166
- requirements:
167
- - - ">"
168
- - !ruby/object:Gem::Version
169
- segments:
170
- - 1
171
- - 3
172
- - 1
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ required_rubygems_version: !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ! '>'
146
+ - !ruby/object:Gem::Version
173
147
  version: 1.3.1
174
148
  requirements: []
175
-
176
149
  rubyforge_project:
177
- rubygems_version: 1.3.6
150
+ rubygems_version: 1.6.2
178
151
  signing_key:
179
152
  specification_version: 3
180
- summary: Paypal Express Integration
181
- test_files:
153
+ summary: Integrate Paypal Express
154
+ test_files:
182
155
  - spec/config_spec.rb
156
+ - spec/fixtures/business_cert.pem
157
+ - spec/fixtures/business_key.pem
183
158
  - spec/helpers/common_spec.rb
184
159
  - spec/notification_spec.rb
185
160
  - spec/spec_helper.rb
@@ -1,90 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{jonathantron-paypal}
8
- s.version = "3.0.0pre4"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Jonathan Tron", "Joseph Halter", "Tobias Luetke"]
12
- s.date = %q{2010-07-16}
13
- s.description = %q{Integrate Paypal Express}
14
- s.email = %q{jonathan@tron.name}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- "CHANGELOG.md",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE",
26
- "README.md",
27
- "Rakefile",
28
- "jonathantron-paypal.gemspec",
29
- "lib/paypal.rb",
30
- "lib/paypal/certs/paypal_sandbox.pem",
31
- "lib/paypal/config.rb",
32
- "lib/paypal/helpers/common.rb",
33
- "lib/paypal/helpers/rails.rb",
34
- "lib/paypal/notification.rb",
35
- "lib/paypal/rails.rb",
36
- "lib/paypal/version.rb",
37
- "misc/PayPal - Instant Payment Notification - Technical Overview.pdf",
38
- "misc/multiruby.sh",
39
- "misc/paypal.psd",
40
- "spec/config_spec.rb",
41
- "spec/fixtures/business_cert.pem",
42
- "spec/fixtures/business_key.pem",
43
- "spec/helpers/common_spec.rb",
44
- "spec/notification_spec.rb",
45
- "spec/spec_helper.rb"
46
- ]
47
- s.homepage = %q{http://github.com/JonathanTron/paypal}
48
- s.rdoc_options = ["--charset=UTF-8"]
49
- s.require_paths = ["lib"]
50
- s.rubygems_version = %q{1.3.6}
51
- s.summary = %q{Paypal Express Integration}
52
- s.test_files = [
53
- "spec/config_spec.rb",
54
- "spec/helpers/common_spec.rb",
55
- "spec/notification_spec.rb",
56
- "spec/spec_helper.rb"
57
- ]
58
-
59
- if s.respond_to? :specification_version then
60
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
61
- s.specification_version = 3
62
-
63
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
64
- s.add_runtime_dependency(%q<rack>, [">= 1.0.0"])
65
- s.add_development_dependency(%q<rspec>, [">= 2.0.0.a"])
66
- s.add_development_dependency(%q<rcov>, [">= 0.9.8"])
67
- s.add_development_dependency(%q<nokogiri>, [">= 0"])
68
- s.add_development_dependency(%q<bluecloth>, [">= 0"])
69
- s.add_development_dependency(%q<yard>, [">= 0"])
70
- s.add_development_dependency(%q<fakeweb>, [">= 0"])
71
- else
72
- s.add_dependency(%q<rack>, [">= 1.0.0"])
73
- s.add_dependency(%q<rspec>, [">= 2.0.0.a"])
74
- s.add_dependency(%q<rcov>, [">= 0.9.8"])
75
- s.add_dependency(%q<nokogiri>, [">= 0"])
76
- s.add_dependency(%q<bluecloth>, [">= 0"])
77
- s.add_dependency(%q<yard>, [">= 0"])
78
- s.add_dependency(%q<fakeweb>, [">= 0"])
79
- end
80
- else
81
- s.add_dependency(%q<rack>, [">= 1.0.0"])
82
- s.add_dependency(%q<rspec>, [">= 2.0.0.a"])
83
- s.add_dependency(%q<rcov>, [">= 0.9.8"])
84
- s.add_dependency(%q<nokogiri>, [">= 0"])
85
- s.add_dependency(%q<bluecloth>, [">= 0"])
86
- s.add_dependency(%q<yard>, [">= 0"])
87
- s.add_dependency(%q<fakeweb>, [">= 0"])
88
- end
89
- end
90
-