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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b20cb9e958ae539ea31958b776e6c341c4ffcb0
4
- data.tar.gz: fd05dc914c78b49602ca3395bb7d5c37708cddf8
3
+ metadata.gz: 3e01cdb0dcd080251d83af9c3edde70a02bfe2f0
4
+ data.tar.gz: 0443dcc18e1b8b015a8fd7525cdb236715dc4133
5
5
  SHA512:
6
- metadata.gz: f0e930aeb4a0cc9394c3d8cab6ddb94b27dfeb33654949a8bdd97e8762ad05253221fdb13b5955f50ce32a39c48f41536c87da080690759a2c62e6e67b42cc45
7
- data.tar.gz: 66ffb54f5017aaac222cf355984c4a3278bb4c6156557c63774291b5ad248a933442206594d93e85628b3cccf67806b1da82acb5b53aa6274cbce2dcb3f142b2
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
- TODO: Write usage instructions here
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/<my-github-username>/invoice/fork )
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 = 'http://github.com/gil27/invoice'
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")
File without changes
@@ -1,3 +1,3 @@
1
1
  module Invoice
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,10 +1,6 @@
1
1
  require_relative '../../test_helper'
2
2
 
3
3
  describe Flexa::Invoice do
4
- it "must be defined" do
5
- Invoice::VERSION.wont_be_nil
6
- end
7
-
8
4
  let(:invoice){ Flexa::Invoice.new("billing.csv", "Flexait") }
9
5
 
10
6
  it { invoice.must_respond_to(:parse) }
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/invoice/invoice.rb', __FILE__)
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
- requirement: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.3'
34
- requirement: !ruby/object:Gem::Requirement
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/invoice.rb
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: http://github.com/gil27/invoice
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: