parse_p1 0.0.6 → 0.0.7

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 CHANGED
@@ -1,3 +1,6 @@
1
+ * 0.0.7
2
+ Set encoding to UTF8
3
+
1
4
  * 0.0.6
2
5
  Added so called direct methods electra_import_normal, electra_import_low, electra_export_normal and electra_export_low
3
6
 
data/lib/parse_p1/base.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  module ParseP1
2
4
 
3
5
  class Base
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  module ParseP1
2
4
 
3
5
  module Electricity
data/lib/parse_p1/gas.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  module ParseP1
2
4
 
3
5
  module Gas
@@ -1,3 +1,3 @@
1
1
  module ParseP1
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/parse_p1.rb CHANGED
@@ -1,6 +1,13 @@
1
+ # encoding: UTF-8
2
+
1
3
  $:.unshift(File.dirname(__FILE__)) unless
2
4
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
5
 
6
+ if RUBY_VERSION =~ /1.9/
7
+ Encoding.default_external = Encoding::UTF_8
8
+ Encoding.default_internal = Encoding::UTF_8
9
+ end
10
+
4
11
  require 'date'
5
12
  require 'parse_p1/electricity'
6
13
  require 'parse_p1/gas'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_p1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-15 00:00:00.000000000 Z
12
+ date: 2013-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 2211038779225675190
109
+ hash: -4362141269315082656
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
@@ -115,10 +115,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: 2211038779225675190
118
+ hash: -4362141269315082656
119
119
  requirements: []
120
120
  rubyforge_project: parse_p1
121
- rubygems_version: 1.8.24
121
+ rubygems_version: 1.8.25
122
122
  signing_key:
123
123
  specification_version: 3
124
124
  summary: Parsing P1 Companion Standard used by Dutch Smart Meters