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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be6b9604e4788df7261b80d64ae81c03181af7b5
4
- data.tar.gz: 08721ecf0cd162eeca31abe10a448477bd482ed1
3
+ metadata.gz: e8f5e76aa3e2ff7fd1ab9a7e17f048340aaf11b0
4
+ data.tar.gz: f3a5f3ba78c1c43d2e1ac7ce528f20d55936ca29
5
5
  SHA512:
6
- metadata.gz: 533b27e99df804b0b7678b2e03ca495cb57c4ef537ffdb6d1b50c29e5fdc868b915694ec683c2f091b86c92e8dd634300bad094a3ec67f02ad414088361cefea
7
- data.tar.gz: 5631b6072f4ce540e87cc7a00864c9ab4a7b66898c42f1b54b4d84cde00aa23882e5fe385ca7605779a57e80f8155544bc0ac2a44f3098816b6721a87c18a2e6
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
- # Specify your gem's dependencies in pesapal.gemspec
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]. The gem should be [up on RubyGems.org][7].
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/
@@ -1,3 +1,3 @@
1
1
  module Pesapal
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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 = "http://rubygems.org/gems/pesapal"
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.1
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: http://rubygems.org/gems/pesapal
59
+ homepage: https://github.com/itsmrwave/pesapal-rubygem
60
60
  licenses:
61
61
  - MIT
62
62
  metadata: {}