meo_wallet 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: dd1c03740df55ede4cab198a63c09715687fc8ae
4
- data.tar.gz: 4d658f359ce7638f3f84817ace9ee49c0b4b92e9
3
+ metadata.gz: d85ade40c3984952e4f6f1aa0df959420bfad4cd
4
+ data.tar.gz: 671fc2e37c62890615322bbefa7ed76d6e12078b
5
5
  SHA512:
6
- metadata.gz: f280ec97c7f73b2eea40a79ae480fc54d2d8ce211245ae35d80280719f7cdb61384e8676ccdd44bcc2f960a75492537d0aab2d5cdbeddc43c7ef97d3fb3378bc
7
- data.tar.gz: b56a50026d6d0e9c0bdadda4c447a0165302f3b63186f3c052c2aee74f5ebed49f43795fc63d0c48e437c1129cafd85b9fdeffd3fbcff5f89f3a63f2db723cfc
6
+ metadata.gz: 970bc2188b77679688be1acc19eac2bb9b117359fbe75621be1b0796cf36ab87cec6949f108c58157b31db8b6d662aab0d657376840cc37ea80e7dde39cd198a
7
+ data.tar.gz: 451c34c679916c5726aa6af35888907a6e14aab0228003d7f49449d1f387acc1095a69c9c914f196071337c45a97451cad6661c5425fe771de97ea88731c7cff
data/.gitignore ADDED
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sapo-wallet-ruby.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Miguel Palhas
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # MeoWallet
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'meo-wallet-ruby'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install sapo-wallet-ruby
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( https://github.com/[my-github-username]/sapo-wallet-ruby/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/lib/meo_wallet.rb ADDED
@@ -0,0 +1,4 @@
1
+ require "meo_wallet/version"
2
+
3
+ module MeoWallet
4
+ end
@@ -0,0 +1,15 @@
1
+ module MeoWallet
2
+ class Client
3
+ include HTTParty
4
+ base_uri 'https://services.wallet.codebits.eu'
5
+ headers 'Content-Type' => 'application/json'
6
+
7
+ def initialize(secret)
8
+ self.headers 'Authorization' => "WalletPT #{secret}"
9
+ end
10
+
11
+ def create_checkout(payment_data)
12
+ self.post '/api/v2/checkout', body: payment_data.to_json
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module MeoWallet
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'meo_wallet/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "meo_wallet"
8
+ spec.version = MeoWallet::VERSION
9
+ spec.authors = ["Miguel Palhas"]
10
+ spec.email = ["mpalhas@gmail.com"]
11
+ spec.summary = %q{Ruby wrapper for MEO Wallet API}
12
+ spec.description = %q{Ruby wrapper for MEO Wallet API}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
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_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+
24
+ spec.add_dependency 'httparty'
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meo_wallet
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
  - Miguel Palhas
@@ -58,7 +58,16 @@ email:
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
- files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - lib/meo_wallet.rb
68
+ - lib/meo_wallet/client.rb
69
+ - lib/meo_wallet/version.rb
70
+ - meo_wallet.gemspec
62
71
  homepage: ''
63
72
  licenses:
64
73
  - MIT