zarinpal 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +24 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/doc/Zarinpal.html +338 -0
- data/doc/Zarinpal/Configuration.html +445 -0
- data/doc/Zarinpal/Errors.html +149 -0
- data/doc/Zarinpal/PaymentRequest.html +805 -0
- data/doc/Zarinpal/PaymentVerification.html +540 -0
- data/doc/Zarinpal/Response.html +669 -0
- data/doc/Zarinpal/Response/ResponseError.html +123 -0
- data/doc/_index.html +184 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/doc/_index.html +88 -0
- data/doc/doc/class_list.html +54 -0
- data/doc/doc/css/common.css +1 -0
- data/doc/doc/css/full_list.css +57 -0
- data/doc/doc/css/style.css +338 -0
- data/doc/doc/file_list.html +53 -0
- data/doc/doc/frames.html +26 -0
- data/doc/doc/index.html +88 -0
- data/doc/doc/js/app.js +214 -0
- data/doc/doc/js/full_list.js +178 -0
- data/doc/doc/js/jquery.js +4 -0
- data/doc/doc/method_list.html +53 -0
- data/doc/doc/top-level-namespace.html +102 -0
- data/doc/file.README.html +105 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +105 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +191 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/zarinpal.rb +37 -0
- data/lib/zarinpal/errors.rb +17 -0
- data/lib/zarinpal/payment_request.rb +44 -0
- data/lib/zarinpal/payment_verification.rb +34 -0
- data/lib/zarinpal/response.rb +50 -0
- data/lib/zarinpal/version.rb +3 -0
- data/spec/lib/configuration_spec.rb +18 -0
- data/spec/lib/errors_spec.rb +7 -0
- data/spec/lib/payment_request_spec.rb +40 -0
- data/spec/lib/payment_verification_spec.rb +41 -0
- data/spec/lib/response_spec.rb +46 -0
- data/spec/lib/version_spec.rb +7 -0
- data/spec/spec_helper.rb +20 -0
- data/zarinpal.gemspec +29 -0
- metadata +206 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
require 'zarinpal'
|
8
|
+
require "savon/mock/spec_helper"
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
12
|
+
config.run_all_when_everything_filtered = true
|
13
|
+
config.filter_run :focus
|
14
|
+
|
15
|
+
# Run specs in random order to surface order dependencies. If you find an
|
16
|
+
# order dependency and want to debug it, you can fix the order by providing
|
17
|
+
# the seed, which is printed after each run.
|
18
|
+
# --seed 1234
|
19
|
+
config.order = 'random'
|
20
|
+
end
|
data/zarinpal.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'zarinpal/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "zarinpal"
|
8
|
+
spec.version = Zarinpal::VERSION
|
9
|
+
spec.authors = ["Arash Mousavi"]
|
10
|
+
spec.email = ["mousavi.arash@gmail.com"]
|
11
|
+
spec.summary = %q{A gem to to send and verify payments with Zarinpal}
|
12
|
+
spec.description = %q{A gem to to send and verify payments with Zarinpal. Zarinpal is an Iranina provider.}
|
13
|
+
spec.homepage = "http://github.com/arashm/zarinpal"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency 'savon', ['~> 2.0']
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
spec.add_development_dependency "yard"
|
26
|
+
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "guard-rspec"
|
28
|
+
spec.add_development_dependency "listen"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,206 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zarinpal
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arash Mousavi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: savon
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.5'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: listen
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: A gem to to send and verify payments with Zarinpal. Zarinpal is an Iranina
|
112
|
+
provider.
|
113
|
+
email:
|
114
|
+
- mousavi.arash@gmail.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- Gemfile
|
122
|
+
- Guardfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- doc/Zarinpal.html
|
127
|
+
- doc/Zarinpal/Configuration.html
|
128
|
+
- doc/Zarinpal/Errors.html
|
129
|
+
- doc/Zarinpal/PaymentRequest.html
|
130
|
+
- doc/Zarinpal/PaymentVerification.html
|
131
|
+
- doc/Zarinpal/Response.html
|
132
|
+
- doc/Zarinpal/Response/ResponseError.html
|
133
|
+
- doc/_index.html
|
134
|
+
- doc/class_list.html
|
135
|
+
- doc/css/common.css
|
136
|
+
- doc/css/full_list.css
|
137
|
+
- doc/css/style.css
|
138
|
+
- doc/doc/_index.html
|
139
|
+
- doc/doc/class_list.html
|
140
|
+
- doc/doc/css/common.css
|
141
|
+
- doc/doc/css/full_list.css
|
142
|
+
- doc/doc/css/style.css
|
143
|
+
- doc/doc/file_list.html
|
144
|
+
- doc/doc/frames.html
|
145
|
+
- doc/doc/index.html
|
146
|
+
- doc/doc/js/app.js
|
147
|
+
- doc/doc/js/full_list.js
|
148
|
+
- doc/doc/js/jquery.js
|
149
|
+
- doc/doc/method_list.html
|
150
|
+
- doc/doc/top-level-namespace.html
|
151
|
+
- doc/file.README.html
|
152
|
+
- doc/file_list.html
|
153
|
+
- doc/frames.html
|
154
|
+
- doc/index.html
|
155
|
+
- doc/js/app.js
|
156
|
+
- doc/js/full_list.js
|
157
|
+
- doc/js/jquery.js
|
158
|
+
- doc/method_list.html
|
159
|
+
- doc/top-level-namespace.html
|
160
|
+
- lib/zarinpal.rb
|
161
|
+
- lib/zarinpal/errors.rb
|
162
|
+
- lib/zarinpal/payment_request.rb
|
163
|
+
- lib/zarinpal/payment_verification.rb
|
164
|
+
- lib/zarinpal/response.rb
|
165
|
+
- lib/zarinpal/version.rb
|
166
|
+
- spec/lib/configuration_spec.rb
|
167
|
+
- spec/lib/errors_spec.rb
|
168
|
+
- spec/lib/payment_request_spec.rb
|
169
|
+
- spec/lib/payment_verification_spec.rb
|
170
|
+
- spec/lib/response_spec.rb
|
171
|
+
- spec/lib/version_spec.rb
|
172
|
+
- spec/spec_helper.rb
|
173
|
+
- zarinpal.gemspec
|
174
|
+
homepage: http://github.com/arashm/zarinpal
|
175
|
+
licenses:
|
176
|
+
- MIT
|
177
|
+
metadata: {}
|
178
|
+
post_install_message:
|
179
|
+
rdoc_options: []
|
180
|
+
require_paths:
|
181
|
+
- lib
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
requirements: []
|
193
|
+
rubyforge_project:
|
194
|
+
rubygems_version: 2.2.1
|
195
|
+
signing_key:
|
196
|
+
specification_version: 4
|
197
|
+
summary: A gem to to send and verify payments with Zarinpal
|
198
|
+
test_files:
|
199
|
+
- spec/lib/configuration_spec.rb
|
200
|
+
- spec/lib/errors_spec.rb
|
201
|
+
- spec/lib/payment_request_spec.rb
|
202
|
+
- spec/lib/payment_verification_spec.rb
|
203
|
+
- spec/lib/response_spec.rb
|
204
|
+
- spec/lib/version_spec.rb
|
205
|
+
- spec/spec_helper.rb
|
206
|
+
has_rdoc:
|