ce-greenbutton 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +162 -0
- data/Rakefile +2 -0
- data/lib/ce-greenbutton/elements/gb_application_information.rb +17 -0
- data/lib/ce-greenbutton/elements/gb_content.rb +26 -0
- data/lib/ce-greenbutton/elements/gb_data_feed.rb +34 -0
- data/lib/ce-greenbutton/elements/gb_entry.rb +68 -0
- data/lib/ce-greenbutton/elements/gb_interval.rb +21 -0
- data/lib/ce-greenbutton/elements/gb_interval_block.rb +24 -0
- data/lib/ce-greenbutton/elements/gb_interval_reading.rb +22 -0
- data/lib/ce-greenbutton/elements/gb_local_time_parameters.rb +50 -0
- data/lib/ce-greenbutton/elements/gb_reading_type.rb +23 -0
- data/lib/ce-greenbutton/elements/gb_usage_point.rb +20 -0
- data/lib/ce-greenbutton/interpreters/electricity_interpreter.rb +114 -0
- data/lib/ce-greenbutton/model/gb_data.rb +30 -0
- data/lib/ce-greenbutton/model/gb_data_description.rb +41 -0
- data/lib/ce-greenbutton/model/gb_data_reading.rb +23 -0
- data/lib/ce-greenbutton/parser.rb +54 -0
- data/lib/ce-greenbutton/ruby_extensions.rb +23 -0
- data/lib/ce-greenbutton/utils.rb +136 -0
- data/lib/ce-greenbutton/version.rb +3 -0
- data/lib/ce-greenbutton.rb +352 -0
- metadata +160 -0
metadata
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ce-greenbutton
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ahmed.seddiq
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.2'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 3.2.0
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.2'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 3.2.0
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: ox
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '2.1'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '2.1'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: sax-machine
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.3'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1.3'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: ice_cube
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.12'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.12'
|
103
|
+
description: |-
|
104
|
+
This module allows third-party applications
|
105
|
+
the retrieval of Green Button XML formatted data and return the data
|
106
|
+
as a Ruby objects with specific attributes
|
107
|
+
email:
|
108
|
+
executables: []
|
109
|
+
extensions: []
|
110
|
+
extra_rdoc_files: []
|
111
|
+
files:
|
112
|
+
- Gemfile
|
113
|
+
- LICENSE.txt
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
116
|
+
- lib/ce-greenbutton.rb
|
117
|
+
- lib/ce-greenbutton/elements/gb_application_information.rb
|
118
|
+
- lib/ce-greenbutton/elements/gb_content.rb
|
119
|
+
- lib/ce-greenbutton/elements/gb_data_feed.rb
|
120
|
+
- lib/ce-greenbutton/elements/gb_entry.rb
|
121
|
+
- lib/ce-greenbutton/elements/gb_interval.rb
|
122
|
+
- lib/ce-greenbutton/elements/gb_interval_block.rb
|
123
|
+
- lib/ce-greenbutton/elements/gb_interval_reading.rb
|
124
|
+
- lib/ce-greenbutton/elements/gb_local_time_parameters.rb
|
125
|
+
- lib/ce-greenbutton/elements/gb_reading_type.rb
|
126
|
+
- lib/ce-greenbutton/elements/gb_usage_point.rb
|
127
|
+
- lib/ce-greenbutton/interpreters/electricity_interpreter.rb
|
128
|
+
- lib/ce-greenbutton/model/gb_data.rb
|
129
|
+
- lib/ce-greenbutton/model/gb_data_description.rb
|
130
|
+
- lib/ce-greenbutton/model/gb_data_reading.rb
|
131
|
+
- lib/ce-greenbutton/parser.rb
|
132
|
+
- lib/ce-greenbutton/ruby_extensions.rb
|
133
|
+
- lib/ce-greenbutton/utils.rb
|
134
|
+
- lib/ce-greenbutton/version.rb
|
135
|
+
homepage: http://topcoder.com
|
136
|
+
licenses:
|
137
|
+
- MIT
|
138
|
+
metadata: {}
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options: []
|
141
|
+
require_paths:
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.2.2
|
156
|
+
signing_key:
|
157
|
+
specification_version: 4
|
158
|
+
summary: This module allows third-party applications the retrieval of Green Button
|
159
|
+
XML formatted data and return the data as a Ruby objects with specific attributes
|
160
|
+
test_files: []
|