tronprint 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -5,7 +5,7 @@ as they moved through the computer. Ships, motorcycles... Were the circuits
5
5
  like freeways? I kept dreaming of a world I'd never see. And then, one day,
6
6
  I got in!"
7
7
 
8
- -Floyd
8
+ -Flynn
9
9
 
10
10
  Tronprint helps you visualize the carbon footprint of all of those little
11
11
  Ruby processes zooming around on your system in their light cycles. You
@@ -73,7 +73,7 @@ Tronprint.run. This starts up a thread that collects statistics at a
73
73
  certain interval and stores the results in a key/value store.
74
74
 
75
75
  To retrieve the footprint, make a call to Tronprint.emission_estimate. This
76
- returns an instance of {Carbon::EmissionEstimate}[https://github.com/brighterplanet/carbon/blob/master/lib/carbon/emission_estimate.rb].
76
+ returns an instance of {Carbon::EmissionEstimate}[http://rubydoc.info/gems/carbon/Carbon/EmissionEstimate].
77
77
  It can be converted to a float for the amount in kilograms or other
78
78
  methods, such as EmissionEstimate#methodology can provide a link to the
79
79
  methodology statement used to derive the estimate.
@@ -15,4 +15,10 @@ module TronprintHelper
15
15
  def emission_estimate
16
16
  @emission_estimate ||= Tronprint.emission_estimate
17
17
  end
18
+
19
+ # Let the world know that your app is powered by CM1
20
+ def cm1_badge
21
+ %q{<script type="text/javascript" src="http://carbon.brighterplanet.com/badge.js"></script>}.
22
+ html_safe
23
+ end
18
24
  end
@@ -0,0 +1,3 @@
1
+ module Tronprint
2
+ VERSION = "0.0.10"
3
+ end
data/tronprint.gemspec CHANGED
@@ -1,8 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require 'tronprint/version'
2
4
 
3
5
  Gem::Specification.new do |s|
4
6
  s.name = 'tronprint'
5
- s.version = "0.0.8"
7
+ s.version = Tronprint::VERSION
6
8
 
7
9
  s.authors = ['Derek Kastner']
8
10
  s.date = "2011-01-26"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 10
9
+ version: 0.0.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Derek Kastner
@@ -139,6 +139,7 @@ files:
139
139
  - lib/tronprint/aggregator.rb
140
140
  - lib/tronprint/rails/generator.rb
141
141
  - lib/tronprint/rails/tronprint_helper.rb
142
+ - lib/tronprint/version.rb
142
143
  - lib/tronprint/application.rb
143
144
  - lib/tronprint/cpu_monitor.rb
144
145
  - lib/tronprint/rails.rb
@@ -176,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
177
  requirements:
177
178
  - - ">="
178
179
  - !ruby/object:Gem::Version
179
- hash: 696289997
180
+ hash: 174585741
180
181
  segments:
181
182
  - 0
182
183
  version: "0"
@@ -185,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
186
  requirements:
186
187
  - - ">="
187
188
  - !ruby/object:Gem::Version
188
- hash: 696289997
189
+ hash: 174585741
189
190
  segments:
190
191
  - 0
191
192
  version: "0"