octobat 0.0.6 → 0.0.7
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/Gemfile.lock +3 -3
- data/History.txt +6 -0
- data/VERSION +1 -1
- data/lib/octobat.rb +2 -2
- data/lib/octobat/invoice.rb +16 -6
- data/lib/octobat/invoice_item.rb +1 -0
- data/lib/octobat/version.rb +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: 1cfbea951eefaab7075760206b612d713f35afd8
|
4
|
+
data.tar.gz: 845cbbf77e2dde6e52c1d992fcb5004a6b042cbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0d787a040c5ff497d1f660b010898e46e2e67124c31e95a876f6ee87df3f3f8f4686ab5d8428f3eabefd613234bd888df959d759b09cafb50dc6bf68f9cf7ed
|
7
|
+
data.tar.gz: 354852b16c655145cffd09a12d1a0c2f2b027caf82ac99b1d2be6ed85f41609c2bda4d22a2c714b9ebe9edeadee9283b080c621397614cf5d5d14c203860f8f2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
octobat (0.0.
|
4
|
+
octobat (0.0.7)
|
5
5
|
json (~> 1.8.1)
|
6
6
|
mime-types (>= 1.25, < 3.0)
|
7
7
|
rest-client (~> 1.4)
|
@@ -9,8 +9,8 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
json (1.8.
|
13
|
-
mime-types (2.
|
12
|
+
json (1.8.3)
|
13
|
+
mime-types (2.99)
|
14
14
|
netrc (0.10.2)
|
15
15
|
rest-client (1.7.2)
|
16
16
|
mime-types (>= 1.16, < 3.0)
|
data/History.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
=== 0.0.7 2016-02-04
|
2
|
+
* 3 minor enhancements:
|
3
|
+
* Add the draft invoices feature, refactoring invoices#create to create only draft invoices
|
4
|
+
* Add invoices#confirm to confirm draft invoices and insert them into the numbering sequence
|
5
|
+
* Add invoice_items#create for creating invoice items
|
6
|
+
|
1
7
|
=== 0.0.6 2015-10-13
|
2
8
|
* 2 minor enhancements:
|
3
9
|
* Add invoices#update for non already-sent invoices
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/lib/octobat.rb
CHANGED
@@ -40,8 +40,8 @@ require 'octobat/errors/authentication_error'
|
|
40
40
|
|
41
41
|
module Octobat
|
42
42
|
#DEFAULT_CA_BUNDLE_PATH = File.dirname(__FILE__) + '/data/ca-certificates.crt'
|
43
|
-
|
44
|
-
|
43
|
+
#@api_base = 'https://api.octobat.com'
|
44
|
+
@api_base = 'http://api.octobat.local:3040'
|
45
45
|
|
46
46
|
#@ssl_bundle_path = DEFAULT_CA_BUNDLE_PATH
|
47
47
|
#@verify_ssl_certs = true
|
data/lib/octobat/invoice.rb
CHANGED
@@ -13,15 +13,25 @@ module Octobat
|
|
13
13
|
response, api_key = Octobat.request(:post, send_url, @api_key, {enforce_errors: enforce_errors})
|
14
14
|
refresh_from(response, api_key)
|
15
15
|
end
|
16
|
+
|
17
|
+
|
18
|
+
def confirm
|
19
|
+
response, api_key = Octobat.request(:patch, confirm_url, @api_key)
|
20
|
+
refresh_from(response, api_key)
|
21
|
+
end
|
16
22
|
|
17
23
|
private
|
18
24
|
|
19
|
-
|
20
|
-
|
21
|
-
|
25
|
+
def pay_url
|
26
|
+
url + '/pay'
|
27
|
+
end
|
22
28
|
|
23
|
-
|
24
|
-
|
25
|
-
|
29
|
+
def send_url
|
30
|
+
url + '/send'
|
31
|
+
end
|
32
|
+
|
33
|
+
def confirm_url
|
34
|
+
url + '/confirm'
|
35
|
+
end
|
26
36
|
end
|
27
37
|
end
|
data/lib/octobat/invoice_item.rb
CHANGED
data/lib/octobat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octobat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gaultier Laperche
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|