flexa-aws-invoice 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -6
- data/invoice.gemspec +1 -1
- data/lib/{invoice.rb → flexa.rb} +0 -0
- data/lib/invoice/version.rb +1 -1
- data/test/lib/invoice/invoice_test.rb +0 -4
- data/test/test_helper.rb +2 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e01cdb0dcd080251d83af9c3edde70a02bfe2f0
|
4
|
+
data.tar.gz: 0443dcc18e1b8b015a8fd7525cdb236715dc4133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dfc32dd2c72539030461cdbdb94664ac91b18db1c290daa2c55fc15f7103f4eb5fd6ac7691b748191d87cf07f583107f02b0066c273a5b4ed4b462db2995069
|
7
|
+
data.tar.gz: 31679f17bea5806dfcddfed8c4ea3970183c1bdce5970c01b15dc9a982f9ab17e7c3121d6e96bf6c8c931fac3ee894a34789db28817da990f59feebece1f5010
|
data/README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
# Invoice
|
2
|
-
[![Code Climate](https://codeclimate.com/github/gil27/invoice.png)](https://codeclimate.com/github/gil27/invoice)
|
2
|
+
[![Code Climate](https://codeclimate.com/github/gil27/flexa-aws-invoice.png)](https://codeclimate.com/github/gil27/flexa-aws-invoice)
|
3
|
+
|
3
4
|
TODO: Write a gem description
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
7
8
|
Add this line to your application's Gemfile:
|
8
9
|
|
9
|
-
gem 'invoice'
|
10
|
+
gem 'flexa-aws-invoice'
|
10
11
|
|
11
12
|
And then execute:
|
12
13
|
|
@@ -14,15 +15,20 @@ And then execute:
|
|
14
15
|
|
15
16
|
Or install it yourself as:
|
16
17
|
|
17
|
-
$ gem install invoice
|
18
|
+
$ gem install flexa-aws-invoice
|
18
19
|
|
19
20
|
## Usage
|
20
21
|
|
21
|
-
|
22
|
-
|
22
|
+
```!ruby
|
23
|
+
# csv = Flexa::Invoice.new('csv.csv', 'aws user')
|
24
|
+
csv = Flexa::Invoice.new('amazon_csv_file.csv', 'Flexait')
|
25
|
+
csv.amazonec2.snapshots.total_price # => 12.10
|
26
|
+
csv.amazonec2.snapshots.count # => 2
|
27
|
+
csv.amazonsns.total_price # => 0.1
|
28
|
+
```
|
23
29
|
## Contributing
|
24
30
|
|
25
|
-
1. Fork it ( http://github.com
|
31
|
+
1. Fork it ( http://github.com/gil27/invoice/fork )
|
26
32
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
33
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
34
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/invoice.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.email = ["gilgomesp@gmail.com"]
|
9
9
|
spec.summary = %q{Amazon CSV parser}
|
10
10
|
spec.description = %q{Gives the price based on the service.}
|
11
|
-
spec.homepage = '
|
11
|
+
spec.homepage = 'https://github.com/gil27/flexa-aws-invoice'
|
12
12
|
spec.license = "MIT"
|
13
13
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/{invoice.rb → flexa.rb}
RENAMED
File without changes
|
data/lib/invoice/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
2
|
require 'minitest/pride'
|
3
|
-
require File.expand_path('../../lib/
|
3
|
+
require File.expand_path('../../lib/flexa.rb', __FILE__)
|
4
4
|
require File.expand_path('../../lib/invoice/array.rb', __FILE__)
|
5
|
+
require File.expand_path('../../lib/invoice/version.rb', __FILE__)
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexa-aws-invoice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gil Gomes
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
|
-
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
|
-
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
23
|
requirements:
|
22
|
-
- - ~>
|
24
|
+
- - "~>"
|
23
25
|
- !ruby/object:Gem::Version
|
24
26
|
version: '1.5'
|
25
|
-
prerelease: false
|
26
|
-
type: :development
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
|
-
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.3'
|
34
|
-
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
35
37
|
requirements:
|
36
|
-
- - ~>
|
38
|
+
- - "~>"
|
37
39
|
- !ruby/object:Gem::Version
|
38
40
|
version: '10.3'
|
39
|
-
prerelease: false
|
40
|
-
type: :development
|
41
41
|
description: Gives the price based on the service.
|
42
42
|
email:
|
43
43
|
- gilgomesp@gmail.com
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
@@ -53,7 +53,7 @@ files:
|
|
53
53
|
- billing.csv
|
54
54
|
- invoice.gemspec
|
55
55
|
- lib/.~lock.billing.csv#
|
56
|
-
- lib/
|
56
|
+
- lib/flexa.rb
|
57
57
|
- lib/invoice/array.rb
|
58
58
|
- lib/invoice/invoice.rb
|
59
59
|
- lib/invoice/version.rb
|
@@ -61,28 +61,28 @@ files:
|
|
61
61
|
- test/lib/invoice/invoice_test.rb
|
62
62
|
- test/lib/invoice/version_test.rb
|
63
63
|
- test/test_helper.rb
|
64
|
-
homepage:
|
64
|
+
homepage: https://github.com/gil27/flexa-aws-invoice
|
65
65
|
licenses:
|
66
66
|
- MIT
|
67
67
|
metadata: {}
|
68
|
-
post_install_message:
|
68
|
+
post_install_message:
|
69
69
|
rdoc_options: []
|
70
70
|
require_paths:
|
71
71
|
- lib
|
72
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
rubyforge_project:
|
83
|
+
rubyforge_project:
|
84
84
|
rubygems_version: 2.2.2
|
85
|
-
signing_key:
|
85
|
+
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Amazon CSV parser
|
88
88
|
test_files:
|