bollettino-cli 0.1.0 → 1.0.0
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/LICENSE.txt +22 -0
- data/README.md +16 -5
- data/bollettino-cli.gemspec +1 -2
- data/lib/bollettino/cli/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +5 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4a194e9461cc1d9ee091363fdc5380e9444cc79
|
|
4
|
+
data.tar.gz: 39e00dfa0626f14a436c885e65ed2201baa5480e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 948437d58187e95ec469e93c0f747cbf858abebabae77c88b0e909df9f67860f9e0147cd9aa7558af628b43351ac80603f08316c93ad48475ec83b7c0a2cdcc5
|
|
7
|
+
data.tar.gz: 9540c10a38efacbb463cfbc866b1f675ae0733049244eaa8153e23a17a7687fc4cdd0b050a5144546b1819c7c4154ec17a5daad48f3a9717fcd8bf4dfa1da5b4
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2014 InterConn
|
|
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
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# bollettino-cli
|
|
2
2
|
|
|
3
|
+
[](http://badge.fury.io/rb/bollettino-cli)
|
|
3
4
|
[](https://travis-ci.org/interconn-isp/bollettino-cli)
|
|
4
5
|
[](https://gemnasium.com/interconn-isp/bollettino-cli)
|
|
5
6
|
[](https://codeclimate.com/github/interconn-isp/bollettino-cli)
|
|
@@ -19,22 +20,32 @@ $ gem install bollettino-cli
|
|
|
19
20
|
|
|
20
21
|
## Usage
|
|
21
22
|
|
|
23
|
+
Run the following command to generate a slip:
|
|
24
|
+
|
|
22
25
|
```console
|
|
23
|
-
$ bollettino-cli generate --payee-account=[PAYEE_ACCOUNT] --payee-name=[PAYEE_NAME]
|
|
26
|
+
$ bollettino-cli generate --payee-account=[PAYEE_ACCOUNT] --payee-name=[PAYEE_NAME] \
|
|
27
|
+
--payer-name=[PAYER_NAME] --payer-street=[PAYER_STREET] --payer-zip=[PAYER_ZIP] \
|
|
28
|
+
--payer-location=[PAYER_LOCATION] --order-numamount=[ORDER_NUMAMOUNT] \
|
|
29
|
+
--order-textamount=[ORDER_TEXTAMOUNT] --order-reason=[ORDER_REASON] [OUTPUT_PATH]
|
|
24
30
|
```
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
For the documentation run:
|
|
27
33
|
|
|
28
34
|
```console
|
|
29
|
-
$ bollettino-cli
|
|
35
|
+
$ bollettino-cli help
|
|
30
36
|
```
|
|
31
37
|
|
|
32
|
-
|
|
38
|
+
### Generating from CSV
|
|
39
|
+
|
|
40
|
+
To generate slips from a CSV file run:
|
|
33
41
|
|
|
34
42
|
```console
|
|
35
|
-
$ bollettino-cli
|
|
43
|
+
$ bollettino-cli csv-generate --source=[CSV_PATH] [OUTPUT_DIR]
|
|
36
44
|
```
|
|
37
45
|
|
|
46
|
+
The columns' order is not important, but the headers must match the options of
|
|
47
|
+
the `generate` command.
|
|
48
|
+
|
|
38
49
|
## Contributing
|
|
39
50
|
|
|
40
51
|
1. Fork it (https://github.com/interconn-isp/bollettino-cli/fork)
|
data/bollettino-cli.gemspec
CHANGED
|
@@ -24,8 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
|
25
25
|
spec.add_development_dependency 'rake', '~> 10.3'
|
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.1'
|
|
27
|
-
spec.add_development_dependency 'mocha', '~> 1.1'
|
|
28
27
|
|
|
29
|
-
spec.add_runtime_dependency 'bollettino', '~> 0
|
|
28
|
+
spec.add_runtime_dependency 'bollettino', '~> 1.0'
|
|
30
29
|
spec.add_runtime_dependency 'gli', '~> 2.12'
|
|
31
30
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -33,7 +33,7 @@ RSpec.configure do |config|
|
|
|
33
33
|
|
|
34
34
|
# rspec-mocks config goes here. You can use an alternate test double
|
|
35
35
|
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
|
36
|
-
config.mock_with :
|
|
36
|
+
config.mock_with :rspec
|
|
37
37
|
|
|
38
38
|
# The settings below are suggested to provide a good initial experience
|
|
39
39
|
# with RSpec, but feel free to customize to your heart's content.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bollettino-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alessandro Desantis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-12-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -52,34 +52,20 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.1'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: mocha
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.1'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.1'
|
|
69
55
|
- !ruby/object:Gem::Dependency
|
|
70
56
|
name: bollettino
|
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
|
72
58
|
requirements:
|
|
73
59
|
- - "~>"
|
|
74
60
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0
|
|
61
|
+
version: '1.0'
|
|
76
62
|
type: :runtime
|
|
77
63
|
prerelease: false
|
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
65
|
requirements:
|
|
80
66
|
- - "~>"
|
|
81
67
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0
|
|
68
|
+
version: '1.0'
|
|
83
69
|
- !ruby/object:Gem::Dependency
|
|
84
70
|
name: gli
|
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -109,6 +95,7 @@ files:
|
|
|
109
95
|
- CHANGELOG.md
|
|
110
96
|
- Gemfile
|
|
111
97
|
- Gemfile.lock
|
|
98
|
+
- LICENSE.txt
|
|
112
99
|
- README.md
|
|
113
100
|
- Rakefile
|
|
114
101
|
- bin/bollettino-cli
|