ce-greenbutton 0.1.5 → 0.1.6
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.
- checksums.yaml +4 -4
- data/lib/ce-greenbutton/version.rb +1 -1
- data/lib/ce-greenbutton.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81a9718c675714b41bd7a17acdbceea06b936282
|
4
|
+
data.tar.gz: ca22f65eff6437cd41679f1c209bf73351c9757a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 821ecd0daf89446136f7f2955bfb4a1d0d3d63573c462b0e85222dd8043164688bb723f009db9021e06b773254803c26262f8a8250d48029dd870e4acc546f8d
|
7
|
+
data.tar.gz: f4d44f1a7cf9a531ce1d198564ca55ba16a8ce12b60e0648076b15f794ea0ed0698a3243712c5717aa374f125cb30612499337d7c6049e2c6b3a9ace406f1d1f
|
data/lib/ce-greenbutton.rb
CHANGED
@@ -120,12 +120,16 @@ module GreenButton
|
|
120
120
|
# Returns an array of gb_data_description
|
121
121
|
# Raises ArgumentError if any passed argument is invalid.
|
122
122
|
# Propagates errors from OpenURI for any connection/authentication
|
123
|
-
def self.download_data_ftp(application_id, time=Time.now, utility_name)
|
123
|
+
# def self.download_data_ftp(application_id, time=Time.now, utility_name)
|
124
|
+
def self.download_data_ftp(filename)
|
124
125
|
check_arguments_ftp(application_id, time, utility_name)
|
125
126
|
|
126
127
|
# construct the ftp url
|
128
|
+
# ftp_url = "ftp://#{@ftp_user}:#{@ftp_password}@#{@ftp_host}/#{@ftp_path}/" +
|
129
|
+
# "D_#{utility_name}_#{application_id}_CONSUMPTION_#{time.strftime('%Y%m%d%H%M%S')}.XML"
|
130
|
+
|
127
131
|
ftp_url = "ftp://#{@ftp_user}:#{@ftp_password}@#{@ftp_host}/#{@ftp_path}/" +
|
128
|
-
"
|
132
|
+
"#{filename}"
|
129
133
|
|
130
134
|
parse_data(open(ftp_url))
|
131
135
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ce-greenbutton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ahmed.seddiq
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|