pesapal 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -1
- data/README.md +23 -1
- data/lib/pesapal/version.rb +1 -1
- data/pesapal.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8f5e76aa3e2ff7fd1ab9a7e17f048340aaf11b0
|
4
|
+
data.tar.gz: f3a5f3ba78c1c43d2e1ac7ce528f20d55936ca29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a0f002791a02f93c6e16edccc08234a5798d28ac8b85d25ded0499c530e949762163a4b9b951a12edfa3d8178baebf836a624a870bbeda285be5a2712aaa2a
|
7
|
+
data.tar.gz: 10c165f05b90743365e1003e1554b7ce34e3adc54092c8149d3b2136597738741f342e9c3b43b3ee4d0e47de414d01aa1d80c8ce848c77394823ff1e773ec1d4
|
data/Gemfile
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
#
|
3
|
+
# module for encoding and decoding (x)html entities
|
4
|
+
gem "htmlentities"
|
5
|
+
|
6
|
+
# bundler will include dependencies specified in foodie.gemspec too. it's best
|
7
|
+
# practice to specify all the gems that our library depends on in the gemspec.
|
4
8
|
gemspec
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
Pesapal RubyGem
|
2
2
|
===============
|
3
3
|
|
4
|
+
<a href="http://badge.fury.io/rb/pesapal"><img src="https://badge.fury.io/rb/pesapal@2x.png" alt="Gem Version" height="18"></a>
|
5
|
+
|
4
6
|
Make authenticated Pesapal API calls without the fuss! Handles all the [oAuth
|
5
7
|
stuff][1] abstracting any direct interaction with the API endpoints so that you
|
6
8
|
can focus on what matters. _Building awesome_.
|
@@ -10,7 +12,9 @@ posting an order i.e. fetching the URL that is required to display the post-
|
|
10
12
|
order iframe. Everything else should be easy to do as the groundwork has already
|
11
13
|
been laid. If you are [feeling generous and want to contribute, feel free][9].
|
12
14
|
|
13
|
-
Submit [issues and requests here][6]
|
15
|
+
Submit [issues and requests here][6] and [find all the releases here][12].
|
16
|
+
|
17
|
+
The gem should be [up on RubyGems.org][7] and it's [accompanying RubyDoc reference][13] here.
|
14
18
|
|
15
19
|
_Ps: No 3rd party oAuth library dependencies, it handles all the oAuth flows on
|
16
20
|
it's own so it's light on your app._
|
@@ -57,6 +61,12 @@ pesapal.credentials = { :consumer_key => '<YOUR_CONSUMER_KEY>',
|
|
57
61
|
}
|
58
62
|
```
|
59
63
|
|
64
|
+
By default the callback is set to `http://0.0.0.0:3000/pesapal/callback` on instantiation but you can easily set it to whatever works for you as shown below.
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
pesapal.callback_url = 'WHATEVER_URL_YOU_WANT'
|
68
|
+
```
|
69
|
+
|
60
70
|
### Post Order ###
|
61
71
|
|
62
72
|
Once you've set up the credentials, set up the order details in a hash as shown
|
@@ -108,6 +118,14 @@ References
|
|
108
118
|
* [Pesapal API Reference (Official)][4]
|
109
119
|
* [Pesapal PHP API Reference (Unofficial)][5]
|
110
120
|
|
121
|
+
|
122
|
+
License
|
123
|
+
-------
|
124
|
+
|
125
|
+
[King'ori J. Maina][10] © 2013. The [MIT License bundled therein][11] is a
|
126
|
+
permissive license that is short and to the point. It lets people do anything
|
127
|
+
they want as long as they provide attribution and waive liability.
|
128
|
+
|
111
129
|
[1]: http://oauth.net/core/1.0/
|
112
130
|
[2]: https://github.com/radar/guides/blob/master/gem-development.md
|
113
131
|
[3]: http://guides.rubygems.org/make-your-own-gem/
|
@@ -117,3 +135,7 @@ References
|
|
117
135
|
[7]: http://rubygems.org/gems/pesapal
|
118
136
|
[8]: https://github.com/itsmrwave/pesapal-rubygem/fork
|
119
137
|
[9]: https://github.com/itsmrwave/pesapal-rubygem#contributing
|
138
|
+
[10]: http://kingori.co/
|
139
|
+
[11]: https://github.com/itsmrwave/pesapal-rubygem/blob/master/LICENSE.txt
|
140
|
+
[12]: https://github.com/itsmrwave/pesapal-rubygem/releases/
|
141
|
+
[13]: http://rubydoc.info/gems/pesapal/
|
data/lib/pesapal/version.rb
CHANGED
data/pesapal.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["j@kingori.co"]
|
11
11
|
spec.description = "Make authenticated Pesapal API calls without the fuss!"
|
12
12
|
spec.summary = "Make authenticated Pesapal API calls without the fuss! Handles all the oAuth stuff abstracting any direct interaction with the API endpoints so that you can focus on what matters. Building awesome."
|
13
|
-
spec.homepage = "
|
13
|
+
spec.homepage = "https://github.com/itsmrwave/pesapal-rubygem"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pesapal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Job King'ori Maina
|
@@ -56,7 +56,7 @@ files:
|
|
56
56
|
- lib/pesapal/oauth.rb
|
57
57
|
- lib/pesapal/version.rb
|
58
58
|
- pesapal.gemspec
|
59
|
-
homepage:
|
59
|
+
homepage: https://github.com/itsmrwave/pesapal-rubygem
|
60
60
|
licenses:
|
61
61
|
- MIT
|
62
62
|
metadata: {}
|