quandl_operation 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,10 +14,10 @@ class Collapse
14
14
  data
15
15
  end
16
16
 
17
- def collapse_and_log(*args)
17
+ def collapse_and_log(data, frequency)
18
18
  t1 = Time.now
19
- r = collapse(*args)
20
- Quandl::Logger.debug "#{self.name}.perform (#{t1.elapsed.microseconds}ms)"
19
+ r = collapse(data, frequency)
20
+ Quandl::Logger.debug "#{self.name}.perform(#{data.try(:count)} rows, #{frequency}) (#{t1.elapsed.microseconds}ms)"
21
21
  r
22
22
  end
23
23
 
@@ -11,10 +11,10 @@ class Transform
11
11
  data
12
12
  end
13
13
 
14
- def transform_and_log(*args)
14
+ def transform_and_log( data, type)
15
15
  t1 = Time.now
16
- r = transform(*args)
17
- Quandl::Logger.debug "#{self.name}.perform (#{t1.elapsed.microseconds}ms)"
16
+ r = transform( data, type)
17
+ Quandl::Logger.debug "#{self.name}.perform(#{data.try(:count)} rows, #{type}) (#{t1.elapsed.microseconds}ms)"
18
18
  r
19
19
  end
20
20
 
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Operation
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_operation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: