paypal-sdk-rest 0.6.0 → 0.6.1
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.
- checksums.yaml +7 -0
- data/Gemfile +12 -12
- data/README.md +181 -180
- data/Rakefile +9 -9
- data/lib/paypal-sdk-rest.rb +2 -2
- data/lib/paypal-sdk/rest.rb +38 -38
- data/lib/paypal-sdk/rest/api.rb +23 -23
- data/lib/paypal-sdk/rest/data_types.rb +878 -459
- data/lib/paypal-sdk/rest/error_hash.rb +39 -39
- data/lib/paypal-sdk/rest/get_api.rb +20 -20
- data/lib/paypal-sdk/rest/request_data_type.rb +56 -56
- data/lib/paypal-sdk/rest/set_api.rb +42 -42
- data/lib/paypal-sdk/rest/version.rb +7 -7
- data/spec/config/cacert.pem +171 -171
- data/spec/config/paypal.yml +8 -8
- data/spec/invoice_examples_spec.rb +38 -0
- data/spec/log/http.log +71 -0
- data/spec/payments_examples_spec.rb +275 -272
- data/spec/spec_helper.rb +24 -24
- metadata +27 -30
data/spec/spec_helper.rb
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
require 'bundler/setup'
|
2
|
-
|
3
|
-
if ENV['COVERAGE']
|
4
|
-
require 'simplecov'
|
5
|
-
SimpleCov.start do
|
6
|
-
add_filter "/spec/"
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
Bundler.require :default, :test
|
11
|
-
PayPal::SDK::Core::Config.load(File.expand_path('../config/paypal.yml', __FILE__), 'test')
|
12
|
-
|
13
|
-
require 'paypal-sdk-rest'
|
14
|
-
|
15
|
-
include PayPal::SDK::REST
|
16
|
-
include PayPal::SDK::Core::Logging
|
17
|
-
|
18
|
-
# Set logger for http
|
19
|
-
http_log = File.open(File.expand_path('../log/http.log', __FILE__), "w")
|
20
|
-
Payment.api.http.set_debug_output(http_log)
|
21
|
-
|
22
|
-
RSpec.configure do |config|
|
23
|
-
# config.include PayPal::SDK::REST::DataTypes
|
24
|
-
end
|
1
|
+
require 'bundler/setup'
|
2
|
+
|
3
|
+
if ENV['COVERAGE']
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start do
|
6
|
+
add_filter "/spec/"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
Bundler.require :default, :test
|
11
|
+
PayPal::SDK::Core::Config.load(File.expand_path('../config/paypal.yml', __FILE__), 'test')
|
12
|
+
|
13
|
+
require 'paypal-sdk-rest'
|
14
|
+
|
15
|
+
include PayPal::SDK::REST
|
16
|
+
include PayPal::SDK::Core::Logging
|
17
|
+
|
18
|
+
# Set logger for http
|
19
|
+
http_log = File.open(File.expand_path('../log/http.log', __FILE__), "w")
|
20
|
+
Payment.api.http.set_debug_output(http_log)
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
# config.include PayPal::SDK::REST::DataTypes
|
24
|
+
end
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- PayPal
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: paypal-sdk-core
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.2.
|
19
|
+
version: 0.2.8
|
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
|
29
|
-
version: 0.2.
|
26
|
+
version: 0.2.8
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: uuidtools
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '2.1'
|
38
34
|
type: :runtime
|
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
40
|
version: '2.1'
|
46
41
|
description: The PayPal REST SDK provides Ruby APIs to create, process and manage
|
@@ -51,12 +46,11 @@ executables: []
|
|
51
46
|
extensions: []
|
52
47
|
extra_rdoc_files: []
|
53
48
|
files:
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
- spec/spec_helper.rb
|
49
|
+
- Gemfile
|
50
|
+
- README.md
|
51
|
+
- Rakefile
|
52
|
+
- lib/paypal-sdk-rest.rb
|
53
|
+
- lib/paypal-sdk/rest.rb
|
60
54
|
- lib/paypal-sdk/rest/api.rb
|
61
55
|
- lib/paypal-sdk/rest/data_types.rb
|
62
56
|
- lib/paypal-sdk/rest/error_hash.rb
|
@@ -64,39 +58,42 @@ files:
|
|
64
58
|
- lib/paypal-sdk/rest/request_data_type.rb
|
65
59
|
- lib/paypal-sdk/rest/set_api.rb
|
66
60
|
- lib/paypal-sdk/rest/version.rb
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
61
|
+
- spec/config/cacert.pem
|
62
|
+
- spec/config/cert_key.pem
|
63
|
+
- spec/config/paypal.yml
|
64
|
+
- spec/invoice_examples_spec.rb
|
65
|
+
- spec/log/http.log
|
66
|
+
- spec/payments_examples_spec.rb
|
67
|
+
- spec/spec_helper.rb
|
72
68
|
homepage: https://developer.paypal.com
|
73
69
|
licenses: []
|
70
|
+
metadata: {}
|
74
71
|
post_install_message:
|
75
72
|
rdoc_options: []
|
76
73
|
require_paths:
|
77
74
|
- lib
|
78
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
76
|
requirements:
|
81
|
-
- -
|
77
|
+
- - ">="
|
82
78
|
- !ruby/object:Gem::Version
|
83
79
|
version: '0'
|
84
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
81
|
requirements:
|
87
|
-
- -
|
82
|
+
- - ">="
|
88
83
|
- !ruby/object:Gem::Version
|
89
84
|
version: '0'
|
90
85
|
requirements: []
|
91
86
|
rubyforge_project:
|
92
|
-
rubygems_version:
|
87
|
+
rubygems_version: 2.2.2
|
93
88
|
signing_key:
|
94
|
-
specification_version:
|
89
|
+
specification_version: 4
|
95
90
|
summary: The PayPal REST SDK provides Ruby APIs to create, process and manage payment.
|
96
91
|
test_files:
|
97
92
|
- spec/config/cacert.pem
|
98
93
|
- spec/config/cert_key.pem
|
99
94
|
- spec/config/paypal.yml
|
95
|
+
- spec/invoice_examples_spec.rb
|
100
96
|
- spec/log/http.log
|
101
97
|
- spec/payments_examples_spec.rb
|
102
98
|
- spec/spec_helper.rb
|
99
|
+
has_rdoc:
|