pina 0.2.0 → 0.3.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/bin/console +16 -0
- data/lib/pina.rb +2 -0
- data/lib/pina/models/sales_invoice.rb +1 -0
- data/lib/pina/rest_adapter.rb +2 -0
- data/lib/pina/version.rb +1 -1
- data/pina.gemspec +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b08d7071b89683e9435a5a42b8f4f51cb5eccd
|
4
|
+
data.tar.gz: e5648493ce1f0a9505d9dc806bbdbe0d4163e4fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 607bb57906cee481c9cba39cc107a1c1bff8353150434c2187e1eae44a8c93db43e67d052aeb29814f8d8415f80a874e09512936024d27cdef35b7bb503c3e47
|
7
|
+
data.tar.gz: 0e7b22d010ec4e5bdc19db8f09c505871a31f18da886009bc6ba56564154316b6763e5de6bfeb9aa58eb25d503b4685cfb4b89021fea0252174c8989cf2e5139
|
data/bin/console
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'irb'
|
4
|
+
require 'irb/completion'
|
5
|
+
|
6
|
+
require 'pina'
|
7
|
+
require 'dotenv'
|
8
|
+
Dotenv.load
|
9
|
+
|
10
|
+
Pina.configure do |config|
|
11
|
+
config.email = ENV['EMAIL']
|
12
|
+
config.tenant = ENV['TENANT']
|
13
|
+
config.api_token = ENV['API_TOKEN']
|
14
|
+
end
|
15
|
+
|
16
|
+
IRB.start
|
data/lib/pina.rb
CHANGED
@@ -3,6 +3,7 @@ require 'base64'
|
|
3
3
|
require 'json'
|
4
4
|
require 'typhoeus'
|
5
5
|
require 'virtus'
|
6
|
+
require 'uri'
|
6
7
|
|
7
8
|
require 'pina/contact'
|
8
9
|
require 'pina/sales_invoice'
|
@@ -20,6 +21,7 @@ require 'pina/models/sales_invoice_list'
|
|
20
21
|
|
21
22
|
module Pina
|
22
23
|
class ConfigurationNotSet < StandardError; end
|
24
|
+
class ConnectionError < StandardError; end
|
23
25
|
|
24
26
|
DEFAULT_API_VERSION = :v1
|
25
27
|
DEFAULT_EMAIL = 'dummy@email.com'
|
data/lib/pina/rest_adapter.rb
CHANGED
data/lib/pina/version.rb
CHANGED
data/pina.gemspec
CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = 'Fantozzi REST API client'
|
13
13
|
spec.homepage = 'https://github.com/ucetnictvi-on-line/pina'
|
14
14
|
spec.license = 'MIT'
|
15
|
+
spec.bindir = 'bin'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
18
|
f.match(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Hronek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -195,6 +195,7 @@ files:
|
|
195
195
|
- LICENSE
|
196
196
|
- README.md
|
197
197
|
- Rakefile
|
198
|
+
- bin/console
|
198
199
|
- lib/pina.rb
|
199
200
|
- lib/pina/contact.rb
|
200
201
|
- lib/pina/models/address.rb
|