songle-song-uri-parser 1.1.8 → 1.2.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: 0045b4cf8d0aca35d4be4c619bdcd6d84b522bfc7a4a079553ae71f6178dc8ab
4
- data.tar.gz: 1dd6c2f680eb6fa5145cebd1b66fff3ffe14fd3e28451e8f5a58ece293356c55
3
+ metadata.gz: 58dacbfe79b72d66a60caceb4f89fc1ab2b88147fac8f73402b400569eeac11d
4
+ data.tar.gz: 7e37cda80f16464545723eaa7e68ac6fd3511e60300aa82aa42f57b31936587f
5
5
  SHA512:
6
- metadata.gz: 8b30d0dcb30c9755850a4718b8d91fe61dc6febe78cb7365478adbb382a7f6da3095da606ed55dcccdeaa314392e9d25bce50af8b9d6f5047b8ae39ca8057197
7
- data.tar.gz: 05fdf22000e90e912a98ff0631c976bc98e2280e9b4f4e43c538ee22820203dcd14c801163357f4e108ad2e6f86ec5f8327cc0624a4dcc40aa51ba52ca88c7f7
6
+ metadata.gz: c997ffbf6d564be60bcd828ded8563a63a026af78b10f1a4ef898e32508257b365300381b583b99d5bb95b7da0b47426e38b7cb0fb414a13f2161dc0e7dd73ec
7
+ data.tar.gz: dcc2db4f1c5c4b340e21369ac6a7bc2bafc922fbf43be96d59675ee3d46c8086adaf302d79f596d1b9abc83d35fd68239b0538714c302ae8a27fea2c1ae2532a
@@ -0,0 +1,24 @@
1
+ name: Test
2
+
3
+ on:
4
+ - push
5
+
6
+ jobs:
7
+ test:
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ ruby:
12
+ - "3.2"
13
+ - "3.3"
14
+ - "3.4"
15
+ - "4.0"
16
+ steps:
17
+ - uses: actions/checkout@v6
18
+ - uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ bundler-cache: true
22
+
23
+ - name: Run tests
24
+ run: bundle exec rake spec
data/.gitignore CHANGED
@@ -1,11 +1,2 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
1
+ .bundle/
11
2
  .rspec_status
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
2
1
  --color
2
+ --format documentation
3
3
  --require spec_helper
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- songle-song-uri-parser (1.1.8)
4
+ songle-song-uri-parser (1.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- diff-lcs (1.3)
10
- rake (13.0.1)
11
- rspec (3.9.0)
12
- rspec-core (~> 3.9.0)
13
- rspec-expectations (~> 3.9.0)
14
- rspec-mocks (~> 3.9.0)
15
- rspec-core (3.9.1)
16
- rspec-support (~> 3.9.1)
17
- rspec-expectations (3.9.0)
9
+ diff-lcs (1.6.2)
10
+ rake (13.4.2)
11
+ rspec (3.13.2)
12
+ rspec-core (~> 3.13.0)
13
+ rspec-expectations (~> 3.13.0)
14
+ rspec-mocks (~> 3.13.0)
15
+ rspec-core (3.13.6)
16
+ rspec-support (~> 3.13.0)
17
+ rspec-expectations (3.13.5)
18
18
  diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.9.0)
20
- rspec-mocks (3.9.1)
19
+ rspec-support (~> 3.13.0)
20
+ rspec-mocks (3.13.8)
21
21
  diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.9.0)
23
- rspec-support (3.9.2)
22
+ rspec-support (~> 3.13.0)
23
+ rspec-support (3.13.7)
24
24
 
25
25
  PLATFORMS
26
26
  ruby
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class InvalidSongURIError < ::StandardError
4
3
  ##
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class Mp3SongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class NnSchemeSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class NnShortSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class NnSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class NumericSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class ScSchemeSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class ScSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class YtSchemeSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class YtShortSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::Songle::SongURI
3
2
  class YtSongURI
4
3
  include ::Songle::SongURI
@@ -1,4 +1,5 @@
1
- #@# vim: set filetype=ruby:
1
+ require "uri"
2
+
2
3
  module ::Songle
3
4
  module SongURI
4
5
  attr_reader :endpoint_scheme
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  module ::SongleSongURIParser
3
- VERSION = "1.1.8"
2
+ VERSION = "1.2.0"
4
3
  end
@@ -1,4 +1,3 @@
1
- #@# vim: set filetype=ruby:
2
1
  require "songle/song_uri"
3
2
 
4
3
  require "songle/song_uri/invalid_song_uri_error"
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.required_ruby_version = "~> 2.4"
32
+ spec.required_ruby_version = ">= 2.4"
33
33
 
34
34
  spec.add_development_dependency "bundler"
35
35
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: songle-song-uri-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro INOUE
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -61,11 +60,9 @@ executables: []
61
60
  extensions: []
62
61
  extra_rdoc_files: []
63
62
  files:
63
+ - ".github/workflows/test.yml"
64
64
  - ".gitignore"
65
65
  - ".rspec"
66
- - ".ruby-version"
67
- - CHANGELOG.md
68
- - Dockerfile
69
66
  - Gemfile
70
67
  - Gemfile.lock
71
68
  - LICENSE.txt
@@ -90,13 +87,12 @@ homepage: https://github.com/hinata/songle-song-uri-parser
90
87
  licenses:
91
88
  - MIT
92
89
  metadata: {}
93
- post_install_message:
94
90
  rdoc_options: []
95
91
  require_paths:
96
92
  - lib
97
93
  required_ruby_version: !ruby/object:Gem::Requirement
98
94
  requirements:
99
- - - "~>"
95
+ - - ">="
100
96
  - !ruby/object:Gem::Version
101
97
  version: '2.4'
102
98
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -105,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
101
  - !ruby/object:Gem::Version
106
102
  version: '0'
107
103
  requirements: []
108
- rubygems_version: 3.1.2
109
- signing_key:
104
+ rubygems_version: 4.0.14
110
105
  specification_version: 4
111
106
  summary: The Songle Song URI parser is a gem package providing class to handle the
112
107
  Song URI.
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.7.0
data/CHANGELOG.md DELETED
@@ -1,45 +0,0 @@
1
- # CHANGELOG.md
2
-
3
- ## v1.1.8 (2020-03-13 JST)
4
-
5
- - [Improved] Updated the `README.md`
6
-
7
- ## v1.1.7 (2020-03-02 JST)
8
-
9
- - [Merged] https://github.com/hinata/songle-song-uri-parser/pull/1
10
-
11
- ## v1.1.6 (2019-07-27 JST)
12
-
13
- - [Fixed] When the Song URI included white-spaces, it couldn't parse correctly
14
- - e.g. https://he3.magnatune.com/all/05-Goodbye%20Perfectionist-Linda%20Woods.mp3
15
-
16
- ## v1.1.5 (2019-07-19 JST)
17
-
18
- - [Improved] Removed an unused gem
19
-
20
- ## v1.1.4 (2019-07-08 JST)
21
-
22
- - [Improved] Supported the private Song URI
23
- - e.g. https://songle.jp/uploads/{ID}.mp3
24
-
25
- ## v1.1.3 (2019-02-06 JST)
26
-
27
- - [Improved] Updated the `README.md`
28
-
29
- ## v1.1.2 (2019-01-31 JST)
30
-
31
- - [Improved] Changed a constructor parameter of the `::Songle::SongURI` class
32
-
33
- ## v1.1.1 (2019-01-26 JST)
34
-
35
- - [Improved] Changed a constructor parameter of the `::Songle::SongURI` class
36
-
37
- ## v1.1.0 (2019-01-25 JST)
38
-
39
- - [Improved] Changed a return value of the `::Songle::SongURI#type` method
40
- - [Improved] Supported the numeric Song URI
41
- - e.g. https://songle.jp/songs/{ID}
42
-
43
- ## v1.0.0 (2019-01-09 JST)
44
-
45
- - Initial public release
data/Dockerfile DELETED
@@ -1,17 +0,0 @@
1
- #@# vim: set filetype=ruby:
2
- ARG RUBY_VERSION=2.6.0
3
-
4
- FROM ruby:${RUBY_VERSION}-alpine
5
- MAINTAINER Takahiro INOUE <takahiro.inoue@aist.go.jp>
6
-
7
- WORKDIR /work
8
-
9
- ADD . .
10
-
11
- RUN apk update && \
12
- apk add \
13
- git
14
-
15
- RUN bundle install -j $(cat /proc/cpuinfo | grep '^processor' | wc -l)
16
-
17
- ENTRYPOINT [ "rake", "spec" ]