vat_layer 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +57 -0
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f5dc0fbb939cad4c66a92788c4acad63c887a60
4
- data.tar.gz: 683aa17f45a05dc3c14cf924c5778741c8b399dc
3
+ metadata.gz: 50280229806bcf0c2eda5b262df502ce9a9bc769
4
+ data.tar.gz: aec66e8b0559ebbf0e22d8c44494e90f3cbe0dc9
5
5
  SHA512:
6
- metadata.gz: 27a0f40c82c43b62ab3e1fd15956b5b2a755c9d2d96c93aba0e0f14f56ad409e705a096e0d9784c9bfbd621faeab855800b5598373ca8671203cb2a10e35c203
7
- data.tar.gz: dd3b56e3282e836b03048d01f06e296f5a07f2c57781fc2279d7afccc3d53f4716772c9ee2b237f59a9f4353dad815efef38b4e207c0c7f7411aa908c9df119d
6
+ metadata.gz: 647c6f5fd903c76b6981830afcc697c3dd7d556478b2dd8a25164202d92d58fa83d37f5cf7d6ee09b2aee62fe45cda8172a52fc192d9a7b5b705f4e5a3155b00
7
+ data.tar.gz: f49cd9c1c2f7be810ca168885331224b79d6dcbc70ad8d0762c314390ac1867b1b53a5e8f9e42301e0c08bdd0e3c984ed4c5b9db48772df69841b5b2912446cf
data/README.rdoc ADDED
@@ -0,0 +1,57 @@
1
+ == vat_layer {<img src="https://secure.travis-ci.org/actfong/vat_layer.png"/>}[http://travis-ci.org/actfong/vat_layer] {<img src="https://codeclimate.com/github/actfong/vat_layer.png"/>}[https://codeclimate.com/github/actfong/vat_layer] {<img src="https://badge.fury.io/rb/vat_layer.svg" alt="Gem Version" />}[https://badge.fury.io/rb/vat_layer]
2
+
3
+ Ruby wrapper for vatlayer of apilayer.
4
+ See https://vatlayer.com/ and http://apilayer.com for more details.
5
+
6
+ === Introduction
7
+ This gem is extracted from the previous version of apilayer gem. The vat_layer gem depends on the apilayer gem to configure and create connections to apilayer.net
8
+
9
+ === Installation
10
+
11
+ ==== Using Bundler
12
+
13
+ Add apilayer in your <tt>Gemfile</tt>:
14
+
15
+ gem "vat_layer"
16
+
17
+ Run the following in your console:
18
+
19
+ $ bundle install
20
+
21
+ === Usage
22
+
23
+ ==== Set up vat_layer
24
+ Once you have signed up for *vatlayer.com*, you will receive an access_key.
25
+ Then configure your Apilayer::Vat module like this:
26
+
27
+ Apilayer::Vat.configure do |configs|
28
+ configs.access_key = "my_access_key_123"
29
+ configs.https = true
30
+ end
31
+
32
+ Please note that the https configuration is optional and only available to paid-accounts.
33
+ If unset, these configuration-values are just nil.
34
+
35
+ You can always review you configurations with:
36
+
37
+ Apilayer::Vat.configs
38
+
39
+ Once your configurations are set, you are ready to go
40
+
41
+ ==== vatlayer
42
+ After setting the access_key for *vatlayer*, you can use Apilayer::Vat to call *vatlayer*'s API
43
+
44
+ Apilayer::Vat.validate("LU26375245")
45
+ Apilayer::Vat.rate(:country_code, "NL")
46
+ Apilayer::Vat.rate(:ip_address, "176.249.153.36")
47
+ Apilayer::Vat.rate_list
48
+ Apilayer::Vat.price(100, :country, "NL")
49
+ Apilayer::Vat.price(100, :ip_address, "176.249.153.36")
50
+
51
+ ==== Re-Configure access_key and https
52
+ If you happened to have forgotten to set or entered an incorrect value, you can re-configure your Apilayer module by:
53
+
54
+ # Example: reconfigure https
55
+ Apilayer::Vat.configure do |configs|
56
+ configs.https = true
57
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vat_layer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fong
@@ -162,10 +162,11 @@ extra_rdoc_files: []
162
162
  files:
163
163
  - Gemfile
164
164
  - LICENSE
165
+ - README.rdoc
165
166
  - Rakefile
166
167
  - lib/apilayer/vat.rb
167
168
  - lib/vatlayer.rb
168
- homepage: https://github.com/actfong/vatlayer
169
+ homepage: https://github.com/actfong/vat_layer
169
170
  licenses:
170
171
  - MIT
171
172
  metadata: {}