dynobattery 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +7 -1
- data/Rakefile +1 -1
- data/dynobattery.gemspec +2 -2
- data/lib/dynobattery.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'echoe'
|
|
4
4
|
require 'net/http'
|
5
5
|
require 'heroku'
|
6
6
|
|
7
|
-
Echoe.new('dynobattery', '0.1.
|
7
|
+
Echoe.new('dynobattery', '0.1.3') do |p|
|
8
8
|
p.description = "Submit request operations for dyno calculations on Heroku"
|
9
9
|
p.url = "http://github.com/fedesoria/dynobattery"
|
10
10
|
p.author = "Federico Soria"
|
data/dynobattery.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{dynobattery}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Federico Soria"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-07-08}
|
10
10
|
s.description = %q{Submit request operations for dyno calculations on Heroku}
|
11
11
|
s.email = %q{federico@dospuntocero.com.mx}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/dynobattery.rb"]
|
data/lib/dynobattery.rb
CHANGED
@@ -12,7 +12,7 @@ class DynoBattery
|
|
12
12
|
start = Time.now
|
13
13
|
status, headers, response = @app.call(env)
|
14
14
|
stop = Time.now
|
15
|
-
if defined?(DYNO_USER)
|
15
|
+
if defined?(DYNO_USER) && defined?(DYNO_PASSWORD)
|
16
16
|
get_dynos
|
17
17
|
http.post("/heroku","name=#{DYNO_DOMAIN}&date=#{start.to_s}&time=#{"%10.6f" % (stop - start)}&dyno=#{@dynos}")
|
18
18
|
else
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Federico Soria
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-08 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|