billomat 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db46fde7c4cb3bab3b961939f96c4a2da2d7fc35
4
- data.tar.gz: 8dfeefc43b8b2791b968bbc086f4453dae445efe
3
+ metadata.gz: 33bd513552938f033a44cf0309bebfeb794f22d9
4
+ data.tar.gz: 5a503ad79b891559bdd417ea02e956f53fb5795a
5
5
  SHA512:
6
- metadata.gz: 74e4f66f6005bcb63addad77deb30ee3b8eddb038d7e8d1c7a3e7db0fa8a6ca7d2a89970e1bb7399f5cae08e1361cd23394f39d46bb15976e45c546209013b26
7
- data.tar.gz: 709dbee48107c76328ddf290fe4723fd44062c8ed76ac24640d485384d53a86abf9a68b6c7ab3a71294863731e9ab621821559e66f6df7d2b508dc3687221bd4
6
+ metadata.gz: c5d1f9f84e01b162360a92d479ce6f6974cb51831975f240be7c14ed5a1ef7e0f0f176955bdd048a50f7e07f94522dc99a73b72bfe608cb4f05fee2b0b51c63a
7
+ data.tar.gz: 1aa0161801c5b0e7bd1efd1292aa95223d30294e108a2510095058f22d91fa1a5cc54595c7f2ec3f0cfe0545dcca0b37e2271293169083bb099c9d0f3562d390
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  /Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
- /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # Billomat
1
+ ![Billomat](doc/assets/project.png)
2
+
2
3
  [![Build Status](https://travis-ci.org/hausgold/billomat.svg?branch=master)](https://travis-ci.org/hausgold/billomat)
3
4
  [![Gem Version](https://badge.fury.io/rb/billomat.svg)](https://badge.fury.io/rb/billomat)
4
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/49baf848f42a2e5b95db/maintainability)](https://codeclimate.com/github/hausgold/billomat/maintainability)
@@ -30,12 +31,15 @@ $ gem install billomat
30
31
 
31
32
  ### Configuration
32
33
 
33
- The configuration takes two settings: `api_key` and `subdomain`. The latter is e.g. the name of your organization.
34
+ The billomat gem can be easily configured.
35
+ If you're using Rails you might want to put this in your `application.rb`
36
+ or inside an initializer.
34
37
 
35
38
  ```ruby
36
39
  Billomat.configure do |config|
37
- config.subdomain = 'your-company'
38
- config.api_key = 'a3b148a61cb642389b4f9953f6233f20'
40
+ config.subdomain = 'example' # Subdomain, e.g. example.billomat.net
41
+ config.api_key = '4aefdc...' # API key
42
+ config.timeout = 5 # timeout in seconds
39
43
  end
40
44
  ```
41
45
 
@@ -60,7 +64,7 @@ client.delete
60
64
 
61
65
  ### Documentation
62
66
 
63
- The RubyDoc is available [here](http://www.rubydoc.info/gems/billomat/0.1.2).
67
+ The RubyDoc is available [here](http://www.rubydoc.info/gems/billomat).
64
68
 
65
69
 
66
70
  ## Development
Binary file
Binary file
Binary file
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Billomat
4
4
  class Configuration
5
- attr_accessor :api_key, :subdomain
5
+ attr_accessor :api_key, :subdomain, :timeout
6
6
  end
7
7
  end
@@ -54,7 +54,7 @@ module Billomat
54
54
 
55
55
  # @return [Integer]
56
56
  def timeout
57
- 5
57
+ config.timeout || 5
58
58
  end
59
59
 
60
60
  # @return [Hash] The headers for the request.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Billomat
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billomat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Vogt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-27 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -117,6 +117,9 @@ files:
117
117
  - billomat.gemspec
118
118
  - bin/console
119
119
  - bin/setup
120
+ - doc/assets/logo.png
121
+ - doc/assets/project.png
122
+ - doc/assets/project.xcf
120
123
  - lib/billomat.rb
121
124
  - lib/billomat/actions.rb
122
125
  - lib/billomat/actions/cancel.rb