smartermeter 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -0
- data/Rakefile +2 -2
- data/lib/smartermeter/service.rb +1 -1
- data/lib/smartermeter/services/google_powermeter.rb +1 -1
- data/lib/smartermeter.rb +1 -1
- data/smartermeter.gemspec +2 -2
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.3.3 (April 20, 2011)
|
4
|
+
* Fixed a bug which prevent the proper Google PowerMeter authentication
|
5
|
+
information to be sent.
|
6
|
+
* Fixed a bug in exception handling to make it a bit more resilient.
|
7
|
+
* Fixed up some development nitpicks.
|
8
|
+
|
3
9
|
## 0.3.2 (March 29, 2011)
|
4
10
|
* Added support for Brighter Planet's Electricity API.
|
5
11
|
* Fixed encryption of passwords that had lengths other than multiples of
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -87,7 +87,7 @@ task :fetch_jruby do
|
|
87
87
|
jar_file = File.join(dir, "jruby-complete.jar")
|
88
88
|
FileUtils.mkdir_p(dir)
|
89
89
|
unless File.exists?(jar_file)
|
90
|
-
jruby_url = "http://jruby.org.s3.amazonaws.com/downloads/1.6.
|
90
|
+
jruby_url = "http://jruby.org.s3.amazonaws.com/downloads/1.6.1/jruby-complete-1.6.1.jar"
|
91
91
|
puts "Fetching JRuby"
|
92
92
|
File.open(jar_file, "wb") { |f| f.write(Net::HTTP.get(URI.parse(jruby_url))) }
|
93
93
|
puts "Fetched JRuby"
|
@@ -173,7 +173,7 @@ task :nsis_installer do
|
|
173
173
|
end
|
174
174
|
|
175
175
|
desc "Package all required files into pkg/base"
|
176
|
-
task :package => [:fetch_jruby, :fetch_launch4j, :package_gems, :create_launcher, :copy_smartermeter, :nsis_installer]
|
176
|
+
task :package => [:build, :fetch_jruby, :fetch_launch4j, :package_gems, :create_launcher, :copy_smartermeter, :nsis_installer]
|
177
177
|
|
178
178
|
#############################################################################
|
179
179
|
#
|
data/lib/smartermeter/service.rb
CHANGED
@@ -21,7 +21,7 @@ module SmarterMeter
|
|
21
21
|
http.use_ssl = true
|
22
22
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
23
23
|
http.ca_file = File.join(File.dirname(__FILE__), "cacert.pem")
|
24
|
-
res, body = http.post(url.path, request_body(samples), {"Authorization" =>
|
24
|
+
res, body = http.post(url.path, request_body(samples), {"Authorization" => "AuthSub token=\"#{@config[:token]}\"", "Content-Type" => "application/atom+xml"})
|
25
25
|
case res
|
26
26
|
when Net::HTTPSuccess
|
27
27
|
true
|
data/lib/smartermeter.rb
CHANGED
data/smartermeter.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'smartermeter'
|
16
|
-
s.version = '0.3.
|
17
|
-
s.date = '2011-
|
16
|
+
s.version = '0.3.3'
|
17
|
+
s.date = '2011-04-21'
|
18
18
|
s.rubyforge_project = 'smartermeter'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: smartermeter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matt Colyer
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-04-21 00:00:00 -07:00
|
14
14
|
default_executable: smartermeter
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
requirements: []
|
169
169
|
|
170
170
|
rubyforge_project: smartermeter
|
171
|
-
rubygems_version: 1.5.
|
171
|
+
rubygems_version: 1.5.1
|
172
172
|
signing_key:
|
173
173
|
specification_version: 2
|
174
174
|
summary: Fetches SmartMeter data from PG&E
|