nsrr 5.0.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/LICENSE +1 -1
- data/lib/nsrr/helpers/download_request.rb +1 -4
- data/lib/nsrr/version.rb +1 -1
- data/nsrr.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e34599bcac4f2fea33a2528d51aa4144cd68dcc2dfafa406d3916f158c7be5f
|
4
|
+
data.tar.gz: 5863f09d1c7e513af9c5443e8f53ee31119eb44fbd80abb0f1bdfd7bcb90d8ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46522e99a17f25b030f0b51cce2eb12010f9f25f23fad7847891f3e5b46578d67d4ff4fbdc356e54259b198ca5fc2ddf12369700037b8a48e8642b28687122b5
|
7
|
+
data.tar.gz: 729d9f04bfd27c5c3519a81c9891df279d41074f97b2310d062c628e834db87ba15f57889d9a6a4194c8a4523bc745b4897e28731f9451eb90ead00a92a3cafc
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
@@ -17,8 +17,7 @@ module Nsrr
|
|
17
17
|
attr_reader :url, :error, :file_size
|
18
18
|
|
19
19
|
def initialize(url, download_folder)
|
20
|
-
|
21
|
-
@url = URI.parse(escaped_url)
|
20
|
+
@url = URI.parse(url)
|
22
21
|
@http = Net::HTTP.new(@url.host, @url.port)
|
23
22
|
if @url.scheme == "https"
|
24
23
|
@http.use_ssl = true
|
@@ -26,8 +25,6 @@ module Nsrr
|
|
26
25
|
end
|
27
26
|
@download_folder = download_folder
|
28
27
|
@file_size = 0
|
29
|
-
rescue
|
30
|
-
@error = "Invalid Token"
|
31
28
|
end
|
32
29
|
|
33
30
|
# Writes file segments to disk immediately instead of storing in memory
|
data/lib/nsrr/version.rb
CHANGED
data/nsrr.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.description = "The official ruby gem to download files and datasets from the [NSRR](https://sleepdata.org)"
|
22
22
|
spec.homepage = "https://github.com/nsrr/nsrr-gem"
|
23
23
|
|
24
|
-
spec.required_ruby_version = ">= 2.
|
24
|
+
spec.required_ruby_version = ">= 2.7.2"
|
25
25
|
spec.required_rubygems_version = ">= 2.6.3"
|
26
26
|
|
27
27
|
spec.license = "MIT"
|
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:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Remo Mueller
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,7 +84,7 @@ homepage: https://github.com/nsrr/nsrr-gem
|
|
84
84
|
licenses:
|
85
85
|
- MIT
|
86
86
|
metadata: {}
|
87
|
-
post_install_message:
|
87
|
+
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|
90
90
|
- lib
|
@@ -92,15 +92,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 2.
|
95
|
+
version: 2.7.2
|
96
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: 2.6.3
|
101
101
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
103
|
-
signing_key:
|
102
|
+
rubygems_version: 3.2.5
|
103
|
+
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Download files easily from the NSRR website, https://sleepdata.org
|
106
106
|
test_files: []
|