bollettino-cli 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76525e02435e2e3f7194173f7a11cc9c3c91ae14
4
- data.tar.gz: 7b1025e967bed4bd3644148f4ed386924360d5c8
3
+ metadata.gz: c4a194e9461cc1d9ee091363fdc5380e9444cc79
4
+ data.tar.gz: 39e00dfa0626f14a436c885e65ed2201baa5480e
5
5
  SHA512:
6
- metadata.gz: 76a04da1c5df32ed234d687443bd7f8ff643aa3304866c330c06b258f16bf4bc8594e9ae44e07d584b5f23d86cfd583ed9d3d799a038e23203a4e71d6eb346e7
7
- data.tar.gz: 3739bfb1a5fbffe2bd4fc483b9c2c67863ff851bd9c9712ba5f90e7bb615ccb12fba3cc983bbadbbd11a933a56593d67658995458472c93395416c12b22f25a8
6
+ metadata.gz: 948437d58187e95ec469e93c0f747cbf858abebabae77c88b0e909df9f67860f9e0147cd9aa7558af628b43351ac80603f08316c93ad48475ec83b7c0a2cdcc5
7
+ data.tar.gz: 9540c10a38efacbb463cfbc866b1f675ae0733049244eaa8153e23a17a7687fc4cdd0b050a5144546b1819c7c4154ec17a5daad48f3a9717fcd8bf4dfa1da5b4
@@ -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
+ [![Gem Version](https://badge.fury.io/rb/bollettino-cli.svg)](http://badge.fury.io/rb/bollettino-cli)
3
4
  [![Build Status](https://travis-ci.org/interconn-isp/bollettino-cli.svg?branch=master)](https://travis-ci.org/interconn-isp/bollettino-cli)
4
5
  [![Dependency Status](https://gemnasium.com/interconn-isp/bollettino-cli.svg)](https://gemnasium.com/interconn-isp/bollettino-cli)
5
6
  [![Code Climate](https://codeclimate.com/github/interconn-isp/bollettino-cli/badges/gpa.svg)](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] --payer-name=[PAYER_NAME] --payer-street=[PAYER_STREET] --payer-zip=[PAYER_ZIP] --payer-location=[PAYER_LOCATION] --order-numamount=[ORDER_NUMAMOUNT] --order-textamount=[ORDER_TEXTAMOUNT] --order-reason=[ORDER_REASON] [OUTPUT_PATH]
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
- Or, to generate slips from a CSV file:
32
+ For the documentation run:
27
33
 
28
34
  ```console
29
- $ bollettino-cli csv-generate --source=[CSV_PATH] [OUTPUT_DIR]
35
+ $ bollettino-cli help
30
36
  ```
31
37
 
32
- For the documentation run:
38
+ ### Generating from CSV
39
+
40
+ To generate slips from a CSV file run:
33
41
 
34
42
  ```console
35
- $ bollettino-cli help
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)
@@ -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.1'
28
+ spec.add_runtime_dependency 'bollettino', '~> 1.0'
30
29
  spec.add_runtime_dependency 'gli', '~> 2.12'
31
30
  end
@@ -1,5 +1,5 @@
1
1
  module Bollettino
2
2
  module CLI
3
- VERSION = '0.1.0'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
@@ -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 :mocha
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: 0.1.0
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-23 00:00:00.000000000 Z
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.1'
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.1'
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