nsrr 5.0.0 → 6.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd96334e3980a29c40eb11a6685ba0a4d67ba97460acde42f90f7bf4d146d2f8
4
- data.tar.gz: d2e44882cda2f7a03459c07be35aec42768d4b7204b16f70d194b5186da41ede
3
+ metadata.gz: 4e34599bcac4f2fea33a2528d51aa4144cd68dcc2dfafa406d3916f158c7be5f
4
+ data.tar.gz: 5863f09d1c7e513af9c5443e8f53ee31119eb44fbd80abb0f1bdfd7bcb90d8ea
5
5
  SHA512:
6
- metadata.gz: 5172227af82a4d6e702f403e9e71b874eba4bf62f54950ae764560e54219cc536c5b2c68e076fd10d98b7a2c57dc112a374d74ffe5ba92bc321990ddc2b3b18c
7
- data.tar.gz: 61ff385192e3bd5be548d4f67aa0f9854a12805415ee3dda3b4bdc93aae73987f0adb71477f6800a2f9cc834ecf28943c4409f0930133f85ec4c534518a315d2
6
+ metadata.gz: 46522e99a17f25b030f0b51cce2eb12010f9f25f23fad7847891f3e5b46578d67d4ff4fbdc356e54259b198ca5fc2ddf12369700037b8a48e8642b28687122b5
7
+ data.tar.gz: 729d9f04bfd27c5c3519a81c9891df279d41074f97b2310d062c628e834db87ba15f57889d9a6a4194c8a4523bc745b4897e28731f9451eb90ead00a92a3cafc
@@ -1,3 +1,9 @@
1
+ ## 6.0.0 (January 16, 2021)
2
+
3
+ ### Enhancements
4
+ - **General Changes**
5
+ - Added compatibility for Ruby 3.0.0
6
+
1
7
  ## 5.0.0 (May 7, 2019)
2
8
 
3
9
  ### Enhancements
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2019 National Sleep Research Resource
1
+ Copyright (c) 2016-2021 National Sleep Research Resource
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -17,8 +17,7 @@ module Nsrr
17
17
  attr_reader :url, :error, :file_size
18
18
 
19
19
  def initialize(url, download_folder)
20
- escaped_url = URI.escape(url)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Nsrr
4
4
  module VERSION #:nodoc:
5
- MAJOR = 5
5
+ MAJOR = 6
6
6
  MINOR = 0
7
7
  TINY = 0
8
8
  BUILD = nil # "pre", "beta1", "beta2", "rc", "rc2", nil
@@ -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.4.6"
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: 5.0.0
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: 2019-05-07 00:00:00.000000000 Z
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.4.6
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.0.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: []