quandl 0.3.7 → 0.4.0
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 +8 -8
- data/Rakefile +0 -4
- data/UPGRADE.md +8 -0
- data/VERSION +1 -1
- data/dist/resources/pkg/Distribution.erb +1 -1
- data/dist/resources/pkg/{postinstall → postinstall.erb} +3 -1
- data/dist/resources/pkg/quandl +2 -2
- data/dist/resources/windows/quandl +25 -0
- data/lib/quandl/command.rb +1 -1
- data/lib/quandl/command/config.rb +4 -0
- data/lib/quandl/command/task/configurable.rb +1 -1
- data/lib/quandl/command/task/dependable.rb +1 -0
- data/lib/quandl/command/task/updatable.rb +5 -5
- data/lib/quandl/command/tasks/schedule.rb +59 -51
- data/lib/quandl/command/tasks/update.rb +159 -105
- data/quandl.gemspec +4 -4
- data/scripts/win/quandl_toolbelt.iss +10 -5
- data/spec/factories/dataset.rb +10 -0
- data/spec/factories/source.rb +10 -0
- data/spec/fixtures/{scraper.rb → scraper-test-file.rb} +0 -0
- data/spec/lib/quandl/command/delete_spec.rb +7 -1
- data/spec/lib/quandl/command/replace_spec.rb +1 -1
- data/spec/lib/quandl/command/schedule_spec.rb +33 -2
- data/spec/lib/quandl/command/superset_spec.rb +2 -2
- data/spec/lib/quandl/command/upload_spec.rb +3 -3
- data/spec/lib/quandl/command_spec.rb +3 -3
- data/spec/spec_helper.rb +14 -3
- data/tasks/toolbelt.rake +27 -18
- data/tasks/toolbelt.rb +26 -2
- data/tasks/toolbelt/build/darwin.rb +59 -12
- data/tasks/toolbelt/build/tarball.rb +9 -3
- metadata +18 -13
@@ -9,8 +9,9 @@ class Tasks::Toolbelt::Build::Tarball < Tasks::Toolbelt
|
|
9
9
|
clean
|
10
10
|
# copy files into release
|
11
11
|
copy_files_into_release
|
12
|
+
add_quandl_executable
|
12
13
|
# add revision when given
|
13
|
-
append_revision_to_release_version
|
14
|
+
append_revision_to_release_version unless git_branch == 'master'
|
14
15
|
# vendorize the bundle
|
15
16
|
copy_vendored_gems
|
16
17
|
# build tar
|
@@ -19,13 +20,18 @@ class Tasks::Toolbelt::Build::Tarball < Tasks::Toolbelt
|
|
19
20
|
|
20
21
|
protected
|
21
22
|
|
23
|
+
def add_quandl_executable
|
24
|
+
resource_path = options.platform.present? ? "#{options.platform}/quandl" : "pkg/quandl"
|
25
|
+
mkdir_p("#{release_path}/pkg") unless Dir.exists?("#{release_path}/pkg")
|
26
|
+
cp resource(resource_path), "#{release_path}/pkg/quandl"
|
27
|
+
end
|
28
|
+
|
22
29
|
def checkout_revision
|
23
30
|
raise "You have unstaged commits." if %x{git status} =~ /Changes not staged for commit/
|
24
31
|
sh "git checkout #{options.revision}"
|
25
32
|
raise "Unable to checkout #{options.revision}" unless %x{git branch | grep '*'} =~ /#{options.revision}/
|
26
33
|
end
|
27
34
|
|
28
|
-
|
29
35
|
def copy_files_into_release
|
30
36
|
# for each path
|
31
37
|
['lib', 'bin', 'config', 'VERSION'].each do |path|
|
@@ -43,7 +49,7 @@ class Tasks::Toolbelt::Build::Tarball < Tasks::Toolbelt
|
|
43
49
|
def append_revision_to_release_version
|
44
50
|
version_file = File.join( release_path, 'VERSION')
|
45
51
|
IO.write(version_file, File.open(version_file) do |f|
|
46
|
-
f.read.gsub(version, "#{version}
|
52
|
+
f.read.gsub(version, "#{version} #{prerelease_information}")
|
47
53
|
end
|
48
54
|
)
|
49
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Hilscher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.4.
|
33
|
+
version: 0.4.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.4.
|
40
|
+
version: 0.4.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: quandl_client
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.8.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.8.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: quandl_data
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.0.
|
89
|
+
version: 0.0.11
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.0.
|
96
|
+
version: 0.0.11
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: quandl_logger
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.2.
|
103
|
+
version: 0.2.6
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.2.
|
110
|
+
version: 0.2.6
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: json
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -325,9 +325,10 @@ files:
|
|
325
325
|
- config/locales/en.yml
|
326
326
|
- dist/resources/pkg/Distribution.erb
|
327
327
|
- dist/resources/pkg/PackageInfo.erb
|
328
|
-
- dist/resources/pkg/postinstall
|
328
|
+
- dist/resources/pkg/postinstall.erb
|
329
329
|
- dist/resources/pkg/quandl
|
330
330
|
- dist/resources/ruby/PackageInfo
|
331
|
+
- dist/resources/windows/quandl
|
331
332
|
- lib/commander/command/quandl_ext.rb
|
332
333
|
- lib/quandl/command.rb
|
333
334
|
- lib/quandl/command/client.rb
|
@@ -379,7 +380,9 @@ files:
|
|
379
380
|
- scripts/compile_ruby_pkg.sh
|
380
381
|
- scripts/install.sh
|
381
382
|
- scripts/win/quandl_toolbelt.iss
|
382
|
-
- spec/
|
383
|
+
- spec/factories/dataset.rb
|
384
|
+
- spec/factories/source.rb
|
385
|
+
- spec/fixtures/scraper-test-file.rb
|
383
386
|
- spec/lib/quandl/command/delete_spec.rb
|
384
387
|
- spec/lib/quandl/command/download_spec.rb
|
385
388
|
- spec/lib/quandl/command/replace_spec.rb
|
@@ -423,7 +426,9 @@ signing_key:
|
|
423
426
|
specification_version: 4
|
424
427
|
summary: Quandl Toolbelt
|
425
428
|
test_files:
|
426
|
-
- spec/
|
429
|
+
- spec/factories/dataset.rb
|
430
|
+
- spec/factories/source.rb
|
431
|
+
- spec/fixtures/scraper-test-file.rb
|
427
432
|
- spec/lib/quandl/command/delete_spec.rb
|
428
433
|
- spec/lib/quandl/command/download_spec.rb
|
429
434
|
- spec/lib/quandl/command/replace_spec.rb
|