quandl_client 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/quandl/client/concerns/properties.rb +17 -0
- data/lib/quandl/client/version.rb +1 -1
- data/quandl_client.gemspec +1 -2
- metadata +2 -18
@@ -10,6 +10,9 @@ module Properties
|
|
10
10
|
include Her::Model
|
11
11
|
use_api Client.her_api
|
12
12
|
|
13
|
+
before_save :touch_save_time
|
14
|
+
after_save :log_save_time
|
15
|
+
|
13
16
|
before_save :halt_unless_valid!
|
14
17
|
|
15
18
|
def valid_with_server?
|
@@ -43,6 +46,20 @@ module Properties
|
|
43
46
|
return false unless valid?
|
44
47
|
end
|
45
48
|
|
49
|
+
private
|
50
|
+
|
51
|
+
def save_timer
|
52
|
+
@save_timer
|
53
|
+
end
|
54
|
+
|
55
|
+
def touch_save_time
|
56
|
+
@save_timer = Time.now
|
57
|
+
end
|
58
|
+
|
59
|
+
def log_save_time
|
60
|
+
Quandl::Logger.info("#{self.class.name}.save (#{save_timer.elapsed_ms})")
|
61
|
+
end
|
62
|
+
|
46
63
|
end
|
47
64
|
end
|
48
65
|
|
data/quandl_client.gemspec
CHANGED
@@ -25,8 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_runtime_dependency "activesupport", ">= 3.0.0"
|
26
26
|
s.add_runtime_dependency "her", "~> 0.6.7"
|
27
27
|
s.add_runtime_dependency "scope_builder", "~> 0.0.6"
|
28
|
-
s.add_runtime_dependency "quandl_data", "~> 0.0.
|
29
|
-
s.add_runtime_dependency "quandl_operation", "~> 0.0.8"
|
28
|
+
s.add_runtime_dependency "quandl_data", "~> 0.0.8"
|
30
29
|
s.add_runtime_dependency "yajl-ruby", "~> 1.1.0"
|
31
30
|
s.add_runtime_dependency 'json', '~> 1.7.7'
|
32
31
|
end
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: quandl_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.13
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Blkae Hilscher
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -125,22 +125,6 @@ dependencies:
|
|
125
125
|
prerelease: false
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: quandl_data
|
128
|
-
version_requirements: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ~>
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 0.0.5
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
135
|
-
none: false
|
136
|
-
requirements:
|
137
|
-
- - ~>
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: 0.0.5
|
140
|
-
type: :runtime
|
141
|
-
prerelease: false
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: quandl_operation
|
144
128
|
version_requirements: !ruby/object:Gem::Requirement
|
145
129
|
none: false
|
146
130
|
requirements:
|