ce-greenbutton 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e02ea138af90eae3c4f7c0dd7fe0598013f3c0e4
4
- data.tar.gz: 7b80b4a3e2775c28bc940b585c6bd1ba93641717
3
+ metadata.gz: 81a9718c675714b41bd7a17acdbceea06b936282
4
+ data.tar.gz: ca22f65eff6437cd41679f1c209bf73351c9757a
5
5
  SHA512:
6
- metadata.gz: 50755016e85cfc5656fc26e2fc058e33f71d91d578b3a495171214a4df0ec0f387da5f6674c442ed41c328484579e27c6d85d068a491aad502d991deaf499d10
7
- data.tar.gz: ea548d78a9a0cb1ae4081c13506dc95937d1d360fdc9aaa1f0de6d091ce304bcd91fbaf9c374242defc854f8606206e113dd07550925f4795f3ab3e0737459d0
6
+ metadata.gz: 821ecd0daf89446136f7f2955bfb4a1d0d3d63573c462b0e85222dd8043164688bb723f009db9021e06b773254803c26262f8a8250d48029dd870e4acc546f8d
7
+ data.tar.gz: f4d44f1a7cf9a531ce1d198564ca55ba16a8ce12b60e0648076b15f794ea0ed0698a3243712c5717aa374f125cb30612499337d7c6049e2c6b3a9ace406f1d1f
@@ -1,3 +1,3 @@
1
1
  module GreenButton
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -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
- "D_#{utility_name}_#{application_id}_CONSUMPTION_#{time.strftime('%Y%m%d%H%M%S')}.XML"
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.5
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-04-17 00:00:00.000000000 Z
12
+ date: 2015-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler