fonepaisaPG 0.1.0 → 0.1.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 +4 -4
- data/README.md +6 -2
- data/fonepaisaPG.gemspec +7 -7
- data/lib/fonepaisaPG/version.rb +1 -1
- data/lib/fonepaisaPG.rb +8 -2
- metadata +13 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2afc935cc9f55599be3855569bc78bfe612d0d85
|
|
4
|
+
data.tar.gz: 9e7c3cc31893ad66156499f3ad3d39a6d8522a00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc191e238286cee20936808e02a5650021d631615ad5c1a6f103b8f0bde7520b09e88017519b7052c49ebfb9e7c225567f82112c0b54744f0cbb5dc8d8cdee8d
|
|
7
|
+
data.tar.gz: b9da19f15e0e1fba4147726cd9478a477aad43c3b4b1be56302b734feb1f7d5469970acd8fc03b5270e629b558992ab91205868aa0430a6b51d100646220363d
|
data/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# FonepaisaPG
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fonepaisaPG`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
4
|
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
5
6
|
|
|
6
7
|
## Installation
|
|
7
8
|
|
|
@@ -19,6 +20,9 @@ Or install it yourself as:
|
|
|
19
20
|
|
|
20
21
|
$ gem install fonepaisaPG
|
|
21
22
|
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
22
26
|
|
|
23
27
|
## Development
|
|
24
28
|
|
|
@@ -28,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
28
32
|
|
|
29
33
|
## Contributing
|
|
30
34
|
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fonepaisaPG. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
32
36
|
|
|
33
37
|
|
|
34
38
|
## License
|
data/fonepaisaPG.gemspec
CHANGED
|
@@ -11,17 +11,17 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Gem for Ruby on Rails Apps.}
|
|
13
13
|
spec.description = %q{Gem for Ruby on Rails Apps which integrate with FonePaisa Payment Gateway}
|
|
14
|
-
spec.homepage = "
|
|
14
|
+
spec.homepage = ""
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
19
|
-
if spec.respond_to?(:metadata)
|
|
20
|
-
|
|
21
|
-
else
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
end
|
|
19
|
+
# if spec.respond_to?(:metadata)
|
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
|
21
|
+
# else
|
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against " \
|
|
23
|
+
# "public gem pushes."
|
|
24
|
+
# end
|
|
25
25
|
|
|
26
26
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
27
27
|
f.match(%r{^(test|spec|features)/})
|
data/lib/fonepaisaPG/version.rb
CHANGED
data/lib/fonepaisaPG.rb
CHANGED
|
@@ -21,8 +21,11 @@ module FonepaisaPG
|
|
|
21
21
|
test_url_cancel = 'https://test.fonepaisa.com/portal/payment/cancel'
|
|
22
22
|
elsif Rails.env.production?
|
|
23
23
|
test_url_cancel = 'https://secure.fonepaisa.com/portal/payment/cancel'
|
|
24
|
+
else
|
|
25
|
+
test_url_cancel = 'https://test.fonepaisa.com/portal/payment/cancel'
|
|
24
26
|
end
|
|
25
|
-
|
|
27
|
+
encoded_url = URI.encode(test_url_cancel)
|
|
28
|
+
uri = URI.parse(encoded_url)
|
|
26
29
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
27
30
|
http.use_ssl = true
|
|
28
31
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
@@ -50,8 +53,11 @@ module FonepaisaPG
|
|
|
50
53
|
test_url_inquire = 'https://test.fonepaisa.com/portal/payment/inquire'
|
|
51
54
|
elsif Rails.env.production?
|
|
52
55
|
test_url_inquire = 'https://secure.fonepaisa.com/portal/payment/inquire'
|
|
56
|
+
else
|
|
57
|
+
test_url_inquire = 'https://test.fonepaisa.com/portal/payment/inquire'
|
|
53
58
|
end
|
|
54
|
-
|
|
59
|
+
encoded_url = URI.encode(test_url_inquire)
|
|
60
|
+
uri = URI.parse(encoded_url)
|
|
55
61
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
56
62
|
http.use_ssl = true
|
|
57
63
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
metadata
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fonepaisaPG
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gaurav Singh
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
18
|
version: '1.13'
|
|
20
|
-
|
|
19
|
+
name: bundler
|
|
21
20
|
prerelease: false
|
|
21
|
+
type: :development
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.13'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: rake
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
32
|
version: '10.0'
|
|
34
|
-
|
|
33
|
+
name: rake
|
|
35
34
|
prerelease: false
|
|
35
|
+
type: :development
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
@@ -56,12 +56,11 @@ files:
|
|
|
56
56
|
- fonepaisaPG.gemspec
|
|
57
57
|
- lib/fonepaisaPG.rb
|
|
58
58
|
- lib/fonepaisaPG/version.rb
|
|
59
|
-
homepage:
|
|
59
|
+
homepage: ''
|
|
60
60
|
licenses:
|
|
61
61
|
- MIT
|
|
62
|
-
metadata:
|
|
63
|
-
|
|
64
|
-
post_install_message:
|
|
62
|
+
metadata: {}
|
|
63
|
+
post_install_message:
|
|
65
64
|
rdoc_options: []
|
|
66
65
|
require_paths:
|
|
67
66
|
- lib
|
|
@@ -76,9 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
75
|
- !ruby/object:Gem::Version
|
|
77
76
|
version: '0'
|
|
78
77
|
requirements: []
|
|
79
|
-
rubyforge_project:
|
|
80
|
-
rubygems_version: 2.6.
|
|
81
|
-
signing_key:
|
|
78
|
+
rubyforge_project:
|
|
79
|
+
rubygems_version: 2.6.8
|
|
80
|
+
signing_key:
|
|
82
81
|
specification_version: 4
|
|
83
82
|
summary: Gem for Ruby on Rails Apps.
|
|
84
83
|
test_files: []
|