nsrr 0.2.0.rc → 0.2.0

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: b8c27aa5e00981e30edb2fd1e54be534f2080491
4
- data.tar.gz: eedc928285c028bc7355ed1fa6a044978ce37fe7
3
+ metadata.gz: 69a067a927b05ad944da6faccfdf79b6d470f940
4
+ data.tar.gz: fb46592c764214c6f6c8d3a854911d128c1336df
5
5
  SHA512:
6
- metadata.gz: b90b6320bedafd5eccf91672344ba0b5b5e27726abf0f3c3719bccdad996528af2a3ea66ca498aaa2b1818aa89068ff9c92d5301772f5b8ace20b7eaa32278f5
7
- data.tar.gz: 72b6f6537adb848bc90e303562d7cc24bba363ca31d9b6818e3ba320af966cf7fa4abb96139c33a2a9f79990b3b40ad701047fecdd1e5fc16f38b3765c6c38bc
6
+ metadata.gz: 18a1d58c5c4a82bed071492dc3598ae57e4273b1fc37d42b71cac834fc9d0157adaa58cd171c8f4c87bf4d45e68b28ce1b4a454f3864dd1600669758c3b4f069
7
+ data.tar.gz: 73557b26b0f68b376011a701ee105a3909c0c80e28c6700e00e9921de2ebadfd74f9c6b7507bc35b3e332c40d56cd6bc86f5711780beca02fe757c7291ac61a1
@@ -1,9 +1,10 @@
1
- ## 0.2.0
1
+ ## 0.2.0 (May 29, 2015)
2
2
 
3
3
  ### Enhancements
4
4
  - The `nsrr download` command now allows users to download files from private datasets
5
5
  - The `nsrr download` command provides better feedback on the validity of the authorization token provided by the user
6
- - Use of Ruby 2.2.1 is now recommended
6
+ - Use of Ruby 2.2.2 is now recommended
7
+ - Added text to inform users that input is hidden while entering token
7
8
 
8
9
  ### Bug Fixes
9
10
  - Fixed an issue preventing public files from being downloaded when an invalid token was entered
data/README.md CHANGED
@@ -16,17 +16,25 @@ You must have **Ruby 2.0+ installed** on your system to use the NSRR gem.
16
16
 
17
17
  ## Installation
18
18
 
19
+ The following commands can be run in **Command Prompt** on Windows, and in **Terminal** on Mac OS X.
20
+
19
21
  Install it yourself as:
20
22
 
21
- $ gem install nsrr --no-ri --no-rdoc
23
+ ```console
24
+ gem install nsrr --no-ri --no-rdoc
25
+ ```
22
26
 
23
27
  Or add this line to your application's Gemfile:
24
28
 
25
- gem 'nsrr'
29
+ ```
30
+ gem 'nsrr'
31
+ ```
26
32
 
27
33
  And then execute:
28
34
 
29
- $ bundle
35
+ ```console
36
+ bundle
37
+ ```
30
38
 
31
39
 
32
40
  ## Usage
@@ -38,49 +46,50 @@ And then execute:
38
46
  Download an entire dataset.
39
47
 
40
48
  ```console
41
- $ nsrr download shhs
49
+ nsrr download shhs
42
50
  ```
43
51
 
44
52
  Download a subfolder of a dataset.
45
53
 
46
54
  ```console
47
- $ nsrr download shhs/forms
55
+ nsrr download shhs/forms
48
56
  ```
49
57
 
50
58
  Download a folder without downloading contents of subfolders. By default, when not specified, the command will recursively download all contents of the specified folder and subfolders.
51
59
 
52
60
  ```console
53
- $ nsrr download shhs/datasets --shallow
61
+ nsrr download shhs/datasets --shallow
54
62
  ```
55
63
 
56
64
  Continue an in progress download and only compare file sizes. By default, when a downloaded file already exists, the command will do an MD5 file comparison to verify the file is identical to the one on the server. The MD5 comparison is exact, but can be slow on older machines. If you want a quick check, you can tell the command to simply compare the file sizes of the local file and the file on the server which speeds up the comparison process, however it may in some cases be inaccurate.
57
65
 
58
66
  ```console
59
- $ nsrr download shhs --fast
67
+ nsrr download shhs --fast
60
68
  ```
61
69
 
62
70
  Redownload all files and overwrite any existing downloaded files.
63
71
 
64
72
  ```console
65
- $ nsrr download shhs --fresh
73
+ nsrr download shhs --fresh
66
74
  ```
67
75
 
68
76
  You can combine the file check flag with the folder depth flag as well.
69
77
 
70
78
  ```console
71
- $ nsrr download shhs/datasets --shallow --fast
79
+ nsrr download shhs/datasets --shallow --fast
72
80
  ```
73
81
 
74
82
  ### Open the console and download entire datasets
75
83
 
76
84
  ```console
77
- $ nsrr console
85
+ nsrr console
78
86
  ```
79
87
 
80
88
  ```
81
- > d = Dataset.find 'shhs'
82
- > d.download
89
+ d = Dataset.find 'shhs'
90
+ d.download
83
91
  Get your token here: https://sleepdata.org/token
92
+ Your input is hidden while entering token.
84
93
  Enter your token: AUTHORIZED
85
94
  File Check: md5
86
95
  Depth: recursive
@@ -112,10 +121,11 @@ $ nsrr console
112
121
  For example to download only the shhs1 edfs folder and skip MD5 file validation:
113
122
 
114
123
  ```
115
- > d = Dataset.find 'shhs'
116
- > d.download('edfs/shhs1', method: 'fast', depth: 'shallow')
124
+ d = Dataset.find 'shhs'
125
+ d.download('edfs/shhs1', method: 'fast', depth: 'shallow')
117
126
 
118
127
  Get your token here: https://sleepdata.org/token
128
+ Your input is hidden while entering token.
119
129
  Enter your token: AUTHORIZED
120
130
  File Check: md5
121
131
  Depth: recursive
@@ -131,10 +141,11 @@ For example to download only the shhs1 edfs folder and skip MD5 file validation:
131
141
  You can type `Ctrl-C` to pause the download, and retype the command to restart:
132
142
 
133
143
  ```
134
- > d = Dataset.find 'shhs'
135
- > d.download
144
+ d = Dataset.find 'shhs'
145
+ d.download
136
146
 
137
147
  Get your token here: https://sleepdata.org/token
148
+ Your input is hidden while entering token.
138
149
  Enter your token: AUTHORIZED
139
150
  File Check: md5
140
151
  Depth: recursive
@@ -146,13 +157,14 @@ You can type `Ctrl-C` to pause the download, and retype the command to restart:
146
157
  ^C
147
158
  Interrupted
148
159
 
149
- Finished in 4.384734 seconds.
160
+ Finished in 4.384734 seconds.
150
161
 
151
- 1 folder created, 2 files downloaded, 60 MiBs downloaded, 0 files skipped, 0 files failed
162
+ 1 folder created, 2 files downloaded, 60 MiBs downloaded, 0 files skipped, 0 files failed
152
163
 
153
- > d.download
164
+ d.download
154
165
 
155
166
  Get your token here: https://sleepdata.org/token
167
+ Your input is hidden while entering token.
156
168
  Enter your token: AUTHORIZED
157
169
  File Check: md5
158
170
  Depth: recursive
@@ -164,27 +176,27 @@ Finished in 4.384734 seconds.
164
176
  ^C
165
177
  Interrupted
166
178
 
167
- Finished in 2.384734 seconds.
179
+ Finished in 2.384734 seconds.
168
180
 
169
- 1 folder created, 0 files downloaded, 0 MiBs downloaded, 2 files skipped, 0 files failed
181
+ 1 folder created, 0 files downloaded, 0 MiBs downloaded, 2 files skipped, 0 files failed
170
182
  ```
171
183
 
172
184
  ### Update the NSRR gem
173
185
 
174
186
  To make sure you're using the latest stable version of the NSRR gem, you can run the following command:
175
187
 
176
- ```
188
+ ```console
177
189
  nsrr update
178
190
  ```
179
191
 
180
192
  ### Show the version of the NSRR gem
181
193
 
182
- ```
194
+ ```console
183
195
  nsrr version
184
196
  ```
185
197
 
186
198
  ### Show the available commands of the NSRR gem
187
199
 
188
- ```
200
+ ```console
189
201
  nsrr help
190
202
  ```
@@ -5,6 +5,7 @@ module Nsrr
5
5
  class Authorization
6
6
  def self.get_token(token)
7
7
  puts " Get your token here: " + "#{Nsrr::WEBSITE}/token".colorize( :blue ).on_white.underline
8
+ puts " Your input is hidden while entering token.".colorize(:white)
8
9
  print " Enter your token: "
9
10
  token = STDIN.noecho(&:gets).chomp if token.to_s.strip == ''
10
11
 
@@ -3,7 +3,7 @@ module Nsrr
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
5
  TINY = 0
6
- BUILD = "rc" # nil, "pre", "rc", "rc2"
6
+ BUILD = nil # "pre", "rc", "rc2", nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsrr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.rc
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Remo Mueller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -123,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ">"
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: 1.3.1
128
+ version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
131
  rubygems_version: 2.4.6