cloud_cost_tracker 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.require_paths = ["lib"]
23
23
 
24
24
  # Runtime dependencies
25
- s.add_dependency "fog_tracker", '>=0.3.9'
25
+ s.add_dependency "fog_tracker", '>=0.4'
26
26
  s.add_dependency "activerecord", '>=3'
27
27
 
28
28
  # Development / Test dependencies
@@ -1,9 +1,11 @@
1
1
  require 'active_record'
2
2
  require 'logger'
3
3
 
4
- # Load generic ResourceBillingPolicy and Coding classes
4
+ # Load generic Policy classes
5
5
  require 'cloud_cost_tracker/billing/resource_billing_policy'
6
6
  require 'cloud_cost_tracker/coding/resource_coding_policy'
7
+ require 'cloud_cost_tracker/billing/account_billing_policy'
8
+ require 'cloud_cost_tracker/coding/account_coding_policy'
7
9
  # Load all ruby files from 'cloud_cost_tracker' directory - except the tasks
8
10
  libs = Dir[File.join(File.dirname(__FILE__), "cloud_cost_tracker/**/*.rb")]
9
11
  libs.delete File.join(File.dirname(__FILE__), "cloud_cost_tracker/tasks.rb")
@@ -49,8 +49,8 @@ module CloudCostTracker
49
49
  def sanity_check(resources)
50
50
  resources.select do |resource|
51
51
  if resource.identity == nil
52
- @log.warn "Found a Fog::Model with no identity. Removing it..."
53
- @log.debug "BAD Fog::Model instance: #{resource.inspect}"
52
+ @log.warn "Found a #{resource.class} with no identity. Removing it..."
53
+ @log.debug "BAD #{resource.class} instance: #{resource.inspect}"
54
54
  false # return false from select to indicate resource is bad
55
55
  else
56
56
  true # return true from select to indicate resource is OK
@@ -1,3 +1,3 @@
1
1
  module CloudCostTracker
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_cost_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-24 00:00:00.000000000 Z
12
+ date: 2012-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog_tracker
16
- requirement: &70113161132220 !ruby/object:Gem::Requirement
16
+ requirement: &70283551263480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.3.9
21
+ version: '0.4'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70113161132220
24
+ version_requirements: *70283551263480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activerecord
27
- requirement: &70113161130840 !ruby/object:Gem::Requirement
27
+ requirement: &70283551262920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70113161130840
35
+ version_requirements: *70283551262920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70113161098660 !ruby/object:Gem::Requirement
38
+ requirement: &70283551262540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70113161098660
46
+ version_requirements: *70283551262540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70113161096820 !ruby/object:Gem::Requirement
49
+ requirement: &70283551262080 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70113161096820
57
+ version_requirements: *70283551262080
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: yard
60
- requirement: &70113161095120 !ruby/object:Gem::Requirement
60
+ requirement: &70283551261660 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70113161095120
68
+ version_requirements: *70283551261660
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard
71
- requirement: &70113161094320 !ruby/object:Gem::Requirement
71
+ requirement: &70283551261240 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70113161094320
79
+ version_requirements: *70283551261240
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: guard-rspec
82
- requirement: &70113161092700 !ruby/object:Gem::Requirement
82
+ requirement: &70283551260820 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70113161092700
90
+ version_requirements: *70283551260820
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: ruby_gntp
93
- requirement: &70113160454700 !ruby/object:Gem::Requirement
93
+ requirement: &70283551260340 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70113160454700
101
+ version_requirements: *70283551260340
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: sqlite3
104
- requirement: &70113160454200 !ruby/object:Gem::Requirement
104
+ requirement: &70283551259780 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70113160454200
112
+ version_requirements: *70283551259780
113
113
  description: Periodically polls one or more cloud computing accounts using the fog
114
114
  gem, and generates ActiveRecord rows representing BillingRecords for each discovered
115
115
  resource.
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  segments:
196
196
  - 0
197
- hash: 2940390420287301713
197
+ hash: 2933232342690401503
198
198
  required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  none: false
200
200
  requirements:
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  segments:
205
205
  - 0
206
- hash: 2940390420287301713
206
+ hash: 2933232342690401503
207
207
  requirements: []
208
208
  rubyforge_project: cloud_cost_tracker
209
209
  rubygems_version: 1.8.15