nsrr 0.1.0.beta4 → 0.1.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/nsrr/models/dataset.rb +1 -1
- data/lib/nsrr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf83eed2a83df571696e324f97366ea87fc3e490
|
4
|
+
data.tar.gz: 5fcbd1b4d93c3cb2af3e3fbd9648ee4210d994c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a6db82a874e184a4a3ebedfa19ab0dce5e72aa59145a1b26629103d116b65c456714649cfbd61d85ae301e482895582e0faf8f93b76efd39458c09b094f6674
|
7
|
+
data.tar.gz: eeba970b058397bf73d0bc4557e5143490918fad258f279be6197e5054d08f9f5f9020afd7289fd784e0999c69e004e7a63087f33f8867322b9143e170242435
|
data/README.md
CHANGED
@@ -8,11 +8,19 @@ The official ruby gem built to simplify file downloads and dataset integration t
|
|
8
8
|
|
9
9
|
## Prerequisites
|
10
10
|
|
11
|
-
You must have
|
11
|
+
You must have **Ruby 2.0+ installed** on your system to use the NSRR gem.
|
12
|
+
|
13
|
+
- [Install Ruby on Windows](http://rubyinstaller.org/)
|
14
|
+
- [Install Ruby on Mac](https://github.com/remomueller/documentation/blob/master/macosx/140-install-ruby.md)
|
15
|
+
- [Install Ruby on Linux (CentOS)](https://github.com/remomueller/documentation/blob/master/centos/140-install-ruby.md)
|
12
16
|
|
13
17
|
## Installation
|
14
18
|
|
15
|
-
|
19
|
+
Install it yourself as:
|
20
|
+
|
21
|
+
$ gem install nsrr --pre --no-ri --no-rdoc
|
22
|
+
|
23
|
+
Or add this line to your application's Gemfile:
|
16
24
|
|
17
25
|
gem 'nsrr'
|
18
26
|
|
@@ -20,9 +28,6 @@ And then execute:
|
|
20
28
|
|
21
29
|
$ bundle
|
22
30
|
|
23
|
-
Or install it yourself as:
|
24
|
-
|
25
|
-
$ gem install nsrr
|
26
31
|
|
27
32
|
## Usage
|
28
33
|
|
data/lib/nsrr/models/dataset.rb
CHANGED
@@ -86,7 +86,7 @@ module Nsrr
|
|
86
86
|
|
87
87
|
def download_helper(path, options)
|
88
88
|
current_folder = ::File.join(self.slug.to_s, path.to_s)
|
89
|
-
create_folder(current_folder)
|
89
|
+
create_folder(current_folder) if self.files(path).count > 0
|
90
90
|
|
91
91
|
self.files(path).select{|f| f.is_file}.each do |file|
|
92
92
|
result = file.download(options[:method], current_folder, @download_token)
|
data/lib/nsrr/version.rb
CHANGED