paypal-sdk-core 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGELOG.txt +16 -0
- data/lib/generators/paypal/sdk/templates/paypal.rb +2 -2
- data/lib/generators/paypal/sdk/templates/paypal.yml +2 -2
- data/lib/paypal-sdk-core.rb +17 -25
- data/lib/paypal-sdk/core/api.rb +20 -0
- data/lib/paypal-sdk/core/api/base.rb +0 -2
- data/lib/paypal-sdk/core/api/rest.rb +30 -13
- data/lib/paypal-sdk/core/config.rb +25 -6
- data/lib/paypal-sdk/core/credential.rb +16 -0
- data/lib/paypal-sdk/core/openid_connect.rb +116 -0
- data/lib/paypal-sdk/core/openid_connect/api.rb +41 -0
- data/lib/paypal-sdk/core/openid_connect/data_types.rb +72 -0
- data/lib/paypal-sdk/core/openid_connect/get_api.rb +28 -0
- data/lib/paypal-sdk/core/openid_connect/request_data_type.rb +52 -0
- data/lib/paypal-sdk/core/openid_connect/set_api.rb +36 -0
- data/lib/paypal-sdk/core/util.rb +11 -0
- data/lib/paypal-sdk/core/version.rb +1 -1
- data/spec/core/api/platform_spec.rb +0 -1
- data/spec/core/api/rest_spec.rb +6 -0
- data/spec/core/config_spec.rb +48 -0
- data/spec/core/openid_connect_spec.rb +88 -0
- data/spec/log/rest_http.log +29 -30
- data/spec/log/test.log +670 -1970
- data/spec/spec_helper.rb +2 -2
- metadata +56 -50
data/spec/spec_helper.rb
CHANGED
@@ -10,8 +10,8 @@ end
|
|
10
10
|
Bundler.require :default, :test
|
11
11
|
require 'logger'
|
12
12
|
|
13
|
-
PayPal::SDK
|
14
|
-
PayPal::SDK
|
13
|
+
PayPal::SDK.load('spec/config/paypal.yml', 'test')
|
14
|
+
PayPal::SDK.logger = Logger.new(STDERR)
|
15
15
|
|
16
16
|
Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f }
|
17
17
|
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- PayPal
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: xml-simple
|
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,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: multi_json
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
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
|
@@ -50,87 +45,98 @@ executables: []
|
|
50
45
|
extensions: []
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
53
|
-
- spec/
|
48
|
+
- spec/core/api/platform_spec.rb
|
49
|
+
- spec/core/api/data_type_spec.rb
|
50
|
+
- spec/core/api/ipn_spec.rb
|
51
|
+
- spec/core/api/rest_spec.rb
|
52
|
+
- spec/core/api/merchant_spec.rb
|
53
|
+
- spec/core/openid_connect_spec.rb
|
54
|
+
- spec/core/config_spec.rb
|
55
|
+
- spec/core/logging_spec.rb
|
56
|
+
- spec/support/sample_data.rb
|
54
57
|
- spec/log/test.log
|
55
58
|
- spec/log/rest_http.log
|
59
|
+
- spec/spec_helper.rb
|
56
60
|
- spec/config/paypal.yml
|
57
61
|
- spec/config/cert_key.pem
|
58
62
|
- spec/config/sample_data.yml
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
- spec/core/api/data_type_spec.rb
|
65
|
-
- spec/core/api/merchant_spec.rb
|
66
|
-
- spec/core/api/ipn_spec.rb
|
67
|
-
- lib/paypal-sdk/core/logging.rb
|
68
|
-
- lib/paypal-sdk/core/credential/third_party/subject.rb
|
69
|
-
- lib/paypal-sdk/core/credential/third_party/token.rb
|
70
|
-
- lib/paypal-sdk/core/credential/signature.rb
|
71
|
-
- lib/paypal-sdk/core/credential/certificate.rb
|
72
|
-
- lib/paypal-sdk/core/credential/base.rb
|
73
|
-
- lib/paypal-sdk/core/util/ordered_hash.rb
|
63
|
+
- lib/paypal-sdk-core.rb
|
64
|
+
- lib/generators/paypal/sdk/USAGE
|
65
|
+
- lib/generators/paypal/sdk/templates/paypal.yml
|
66
|
+
- lib/generators/paypal/sdk/templates/paypal.rb
|
67
|
+
- lib/generators/paypal/sdk/install_generator.rb
|
74
68
|
- lib/paypal-sdk/core/util/http_helper.rb
|
75
69
|
- lib/paypal-sdk/core/util/oauth_signature.rb
|
76
|
-
- lib/paypal-sdk/core/
|
77
|
-
- lib/paypal-sdk/core/
|
78
|
-
- lib/paypal-sdk/core/
|
70
|
+
- lib/paypal-sdk/core/util/ordered_hash.rb
|
71
|
+
- lib/paypal-sdk/core/api/rest.rb
|
72
|
+
- lib/paypal-sdk/core/api/merchant.rb
|
73
|
+
- lib/paypal-sdk/core/api/ipn.rb
|
74
|
+
- lib/paypal-sdk/core/api/platform.rb
|
79
75
|
- lib/paypal-sdk/core/api/data_types/simple_types.rb
|
80
|
-
- lib/paypal-sdk/core/api/data_types/base.rb
|
81
|
-
- lib/paypal-sdk/core/api/data_types/array_with_block.rb
|
82
76
|
- lib/paypal-sdk/core/api/data_types/enum.rb
|
83
|
-
- lib/paypal-sdk/core/api/
|
84
|
-
- lib/paypal-sdk/core/api/
|
85
|
-
- lib/paypal-sdk/core/api/rest.rb
|
77
|
+
- lib/paypal-sdk/core/api/data_types/array_with_block.rb
|
78
|
+
- lib/paypal-sdk/core/api/data_types/base.rb
|
86
79
|
- lib/paypal-sdk/core/api/base.rb
|
87
|
-
- lib/paypal-sdk/core/
|
80
|
+
- lib/paypal-sdk/core/openid_connect/get_api.rb
|
81
|
+
- lib/paypal-sdk/core/openid_connect/api.rb
|
82
|
+
- lib/paypal-sdk/core/openid_connect/set_api.rb
|
83
|
+
- lib/paypal-sdk/core/openid_connect/request_data_type.rb
|
84
|
+
- lib/paypal-sdk/core/openid_connect/data_types.rb
|
85
|
+
- lib/paypal-sdk/core/authentication.rb
|
86
|
+
- lib/paypal-sdk/core/credential.rb
|
88
87
|
- lib/paypal-sdk/core/config.rb
|
89
|
-
- lib/paypal-sdk
|
90
|
-
- lib/
|
91
|
-
- lib/
|
92
|
-
- lib/
|
93
|
-
- lib/
|
88
|
+
- lib/paypal-sdk/core/api.rb
|
89
|
+
- lib/paypal-sdk/core/version.rb
|
90
|
+
- lib/paypal-sdk/core/exceptions.rb
|
91
|
+
- lib/paypal-sdk/core/util.rb
|
92
|
+
- lib/paypal-sdk/core/openid_connect.rb
|
93
|
+
- lib/paypal-sdk/core/logging.rb
|
94
|
+
- lib/paypal-sdk/core/credential/third_party/subject.rb
|
95
|
+
- lib/paypal-sdk/core/credential/third_party/token.rb
|
96
|
+
- lib/paypal-sdk/core/credential/signature.rb
|
97
|
+
- lib/paypal-sdk/core/credential/certificate.rb
|
98
|
+
- lib/paypal-sdk/core/credential/base.rb
|
94
99
|
- data/paypal.crt
|
95
100
|
- Rakefile
|
96
101
|
- README.md
|
97
102
|
- Gemfile
|
103
|
+
- CHANGELOG.txt
|
98
104
|
homepage: https://developer.paypal.com
|
99
105
|
licenses: []
|
106
|
+
metadata: {}
|
100
107
|
post_install_message:
|
101
108
|
rdoc_options: []
|
102
109
|
require_paths:
|
103
110
|
- lib
|
104
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
112
|
requirements:
|
107
113
|
- - ! '>='
|
108
114
|
- !ruby/object:Gem::Version
|
109
115
|
version: '0'
|
110
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
117
|
requirements:
|
113
118
|
- - ! '>='
|
114
119
|
- !ruby/object:Gem::Version
|
115
120
|
version: '0'
|
116
121
|
requirements: []
|
117
122
|
rubyforge_project:
|
118
|
-
rubygems_version:
|
123
|
+
rubygems_version: 2.0.0
|
119
124
|
signing_key:
|
120
|
-
specification_version:
|
125
|
+
specification_version: 4
|
121
126
|
summary: Core library for PayPal ruby SDKs
|
122
127
|
test_files:
|
123
|
-
- spec/
|
128
|
+
- spec/core/api/platform_spec.rb
|
129
|
+
- spec/core/api/data_type_spec.rb
|
130
|
+
- spec/core/api/ipn_spec.rb
|
131
|
+
- spec/core/api/rest_spec.rb
|
132
|
+
- spec/core/api/merchant_spec.rb
|
133
|
+
- spec/core/openid_connect_spec.rb
|
134
|
+
- spec/core/config_spec.rb
|
135
|
+
- spec/core/logging_spec.rb
|
136
|
+
- spec/support/sample_data.rb
|
124
137
|
- spec/log/test.log
|
125
138
|
- spec/log/rest_http.log
|
139
|
+
- spec/spec_helper.rb
|
126
140
|
- spec/config/paypal.yml
|
127
141
|
- spec/config/cert_key.pem
|
128
142
|
- spec/config/sample_data.yml
|
129
|
-
- spec/support/sample_data.rb
|
130
|
-
- spec/core/logging_spec.rb
|
131
|
-
- spec/core/config_spec.rb
|
132
|
-
- spec/core/api/platform_spec.rb
|
133
|
-
- spec/core/api/rest_spec.rb
|
134
|
-
- spec/core/api/data_type_spec.rb
|
135
|
-
- spec/core/api/merchant_spec.rb
|
136
|
-
- spec/core/api/ipn_spec.rb
|