smartermeter 0.3.2 → 0.3.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/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
@@ -3,5 +3,6 @@ gemspec
3
3
 
4
4
  # Used only in the Java client, which isn't distributed as a gem
5
5
  gem "nokogiri", ">= 1.4.4", :platforms => :jruby
6
+ gem "nokogiri", ">= 1.4.4", :platforms => :ruby
6
7
  gem "profligacy", :platforms => :jruby
7
8
  gem "jruby-openssl", :platforms => :jruby
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.0.RC2/jruby-complete-1.6.0.RC2.jar"
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
  #
@@ -108,7 +108,7 @@ module SmarterMeter
108
108
  end.submit
109
109
 
110
110
  hourly_csv.body
111
- rescue Timeout::Error => e
111
+ rescue Exception => e
112
112
  @last_exception = e
113
113
  return ""
114
114
  end
@@ -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" => 'AuthSub token="CMCc9puFFRDKivjpAhjgiZLuAg"', "Content-Type" => "application/atom+xml"})
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
@@ -7,5 +7,5 @@ require 'smartermeter/services/brighterplanet'
7
7
  require 'smartermeter/interfaces/cli'
8
8
 
9
9
  module SmarterMeter
10
- VERSION = "0.3.2"
10
+ VERSION = "0.3.3"
11
11
  end
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.2'
17
- s.date = '2011-03-29'
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.2
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-03-29 00:00:00 -07:00
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.0
171
+ rubygems_version: 1.5.1
172
172
  signing_key:
173
173
  specification_version: 2
174
174
  summary: Fetches SmartMeter data from PG&E