spotify-to-mp3 0.5.1 → 0.5.2
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 +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +32 -7
- data/LICENSE +18 -0
- data/README.md +30 -14
- data/bin/spotify-to-mp3 +1 -1
- data/spotify-to-mp3.gemspec +7 -4
- metadata +42 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c2b681c52ba88839064c53ca190d0ce29d29abab
|
4
|
+
data.tar.gz: cd59816baea3e42fe227e39f3bb99b6624da11f9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e5ae9e0ef0c19e95dde3e2b351df1a3523f8ce73ad3846a323f0b56adbee015d31cbe3bef1dc5ec4090a3ddaab42b124eb51133942b87b36e35aa9e0dd41e5ed
|
7
|
+
data.tar.gz: b3ff7be71d1201066c0174cc9f0dde8c457e9aa95f49f5944a401fbb41a9ca322d719af2505ff59d6400dcb0e95b5d50cfdf2e8192b541c2fd2ec8c97fa682d4
|
data/Gemfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,43 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
spotify-to-mp3 (0.5.1)
|
5
|
+
colorize
|
6
|
+
grooveshark
|
7
|
+
json_pure
|
8
|
+
rest-client
|
9
|
+
|
1
10
|
GEM
|
2
|
-
remote:
|
11
|
+
remote: https://rubygems.org/
|
3
12
|
specs:
|
4
|
-
colorize (0.
|
5
|
-
|
13
|
+
colorize (0.6.0)
|
14
|
+
diff-lcs (1.2.4)
|
15
|
+
grooveshark (0.2.11)
|
6
16
|
json (>= 1.4.6)
|
7
17
|
rest-client (>= 1.5.1)
|
8
|
-
|
9
|
-
|
18
|
+
uuid (~> 2.0)
|
19
|
+
json (1.8.1)
|
20
|
+
json_pure (1.8.1)
|
21
|
+
macaddr (1.6.5)
|
22
|
+
systemu (~> 2.6.2)
|
23
|
+
mime-types (2.1)
|
10
24
|
rest-client (1.6.7)
|
11
25
|
mime-types (>= 1.16)
|
26
|
+
rspec (2.13.0)
|
27
|
+
rspec-core (~> 2.13.0)
|
28
|
+
rspec-expectations (~> 2.13.0)
|
29
|
+
rspec-mocks (~> 2.13.0)
|
30
|
+
rspec-core (2.13.1)
|
31
|
+
rspec-expectations (2.13.0)
|
32
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
33
|
+
rspec-mocks (2.13.1)
|
34
|
+
systemu (2.6.3)
|
35
|
+
uuid (2.3.7)
|
36
|
+
macaddr (~> 1.0)
|
12
37
|
|
13
38
|
PLATFORMS
|
14
39
|
ruby
|
15
40
|
|
16
41
|
DEPENDENCIES
|
17
|
-
|
18
|
-
|
42
|
+
rspec
|
43
|
+
spotify-to-mp3!
|
data/LICENSE
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
Copyright (c) 2012 Francesc Rosàs
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -6,39 +6,49 @@ A simple command line utility to download MP3 files of Spotify tracks
|
|
6
6
|
|
7
7
|
### Mac OS X (Snow Leopard & Lion)
|
8
8
|
|
9
|
-
|
9
|
+
```bash
|
10
|
+
$ sudo gem install spotify-to-mp3
|
11
|
+
```
|
10
12
|
|
11
13
|
Probably `sudo` can be ommited if using [rvm](http://beginrescueend.com/) or similar.
|
12
14
|
|
13
|
-
### Linux (Ubuntu
|
15
|
+
### Linux (Ubuntu 12.10 / 13.10)
|
14
16
|
|
15
17
|
Make sure you have rubygems installed and configured:
|
16
18
|
|
17
|
-
|
18
|
-
|
19
|
+
```bash
|
20
|
+
$ sudo apt-get install rubygems1.9 ruby1.9.1-dev
|
21
|
+
$ echo 'PATH=$PATH:/var/lib/gems/1.9/bin' | sudo tee /etc/profile.d/rubygems1.9.sh >/dev/null
|
22
|
+
```
|
19
23
|
|
20
24
|
<span></span>
|
21
25
|
|
22
|
-
|
26
|
+
```bash
|
27
|
+
$ sudo gem install spotify-to-mp3
|
28
|
+
```
|
23
29
|
|
24
30
|
### Windows (not tested)
|
25
31
|
|
26
32
|
[Install Ruby](http://rubyinstaller.org/)
|
27
33
|
|
28
|
-
|
34
|
+
```
|
35
|
+
gem install spotify-to-mp3
|
36
|
+
```
|
29
37
|
|
30
38
|
## Usage
|
31
39
|
|
32
|
-
1.
|
33
|
-
accepted. It
|
40
|
+
1. Create a file (like `songs.txt`) and copy the Spotify songs URLs to it. Plain song names are also
|
41
|
+
accepted. It will look like this:
|
34
42
|
|
35
43
|
http://open.spotify.com/track/1JqTcOjOn7gEpeC0JcRVPa
|
36
44
|
spotify:track:1fE3ddAlmjJ99IIfLgZjTy
|
37
45
|
The Drums - Money
|
38
46
|
|
39
|
-
2. Download songs. Errors will appear in red (
|
47
|
+
2. Download songs. They are saved to the current directory. Errors will appear in red (like when a song is not found).
|
40
48
|
|
41
|
-
|
49
|
+
```bash
|
50
|
+
$ spotify-to-mp3 songs.txt
|
51
|
+
```
|
42
52
|
|
43
53
|
## Changelog
|
44
54
|
|
@@ -58,11 +68,17 @@ Make sure you have rubygems installed and configured:
|
|
58
68
|
|
59
69
|
- Both Spotify URLs and plain song names are accepted
|
60
70
|
|
71
|
+
## Testing
|
72
|
+
|
73
|
+
```bash
|
74
|
+
$ rspec
|
75
|
+
```
|
76
|
+
|
61
77
|
## TODO
|
62
78
|
|
63
79
|
- Consider multiple artists songs
|
64
80
|
- Filter Grooveshark results by artist, title and length
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
81
|
+
- Accept tracks from stdin (instead of from a file, to drag songs directly to the app)
|
82
|
+
- Exit with a single Ctrl+C
|
83
|
+
- Cleaner output
|
84
|
+
- Don't pick remixes
|
data/bin/spotify-to-mp3
CHANGED
data/spotify-to-mp3.gemspec
CHANGED
@@ -2,14 +2,17 @@ Gem::Specification.new do |gem|
|
|
2
2
|
gem.name = 'spotify-to-mp3'
|
3
3
|
gem.summary = 'Spotify to MP3'
|
4
4
|
gem.description = 'Download Spotify tracks as MP3 files from Grooveshark'
|
5
|
-
gem.version = '0.5.
|
5
|
+
gem.version = '0.5.2'
|
6
6
|
gem.author = 'Francesc Rosàs'
|
7
7
|
gem.email = 'francescrosasbosque@gmail.com'
|
8
8
|
gem.homepage = 'https://github.com/frosas/spotify-to-mp3'
|
9
9
|
|
10
|
-
gem.
|
11
|
-
gem.
|
12
|
-
gem.
|
10
|
+
gem.add_runtime_dependency 'grooveshark'
|
11
|
+
gem.add_runtime_dependency 'colorize'
|
12
|
+
gem.add_runtime_dependency 'rest-client'
|
13
|
+
gem.add_runtime_dependency 'json_pure'
|
14
|
+
|
15
|
+
gem.add_development_dependency 'rspec'
|
13
16
|
|
14
17
|
gem.files = `git ls-files`.split("\n")
|
15
18
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,62 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spotify-to-mp3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Francesc Rosàs
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-02-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: grooveshark
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: colorize
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rest-client
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: json_pure
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
60
81
|
- !ruby/object:Gem::Version
|
61
82
|
version: '0'
|
62
83
|
description: Download Spotify tracks as MP3 files from Grooveshark
|
@@ -69,6 +90,7 @@ files:
|
|
69
90
|
- .rspec
|
70
91
|
- Gemfile
|
71
92
|
- Gemfile.lock
|
93
|
+
- LICENSE
|
72
94
|
- README.md
|
73
95
|
- bin/spotify-to-mp3
|
74
96
|
- lib/spotify_to_mp3.rb
|
@@ -88,26 +110,25 @@ files:
|
|
88
110
|
- spotify-to-mp3.gemspec
|
89
111
|
homepage: https://github.com/frosas/spotify-to-mp3
|
90
112
|
licenses: []
|
113
|
+
metadata: {}
|
91
114
|
post_install_message:
|
92
115
|
rdoc_options: []
|
93
116
|
require_paths:
|
94
117
|
- lib
|
95
118
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
119
|
requirements:
|
98
|
-
- -
|
120
|
+
- - '>='
|
99
121
|
- !ruby/object:Gem::Version
|
100
122
|
version: '0'
|
101
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
124
|
requirements:
|
104
|
-
- -
|
125
|
+
- - '>='
|
105
126
|
- !ruby/object:Gem::Version
|
106
127
|
version: '0'
|
107
128
|
requirements: []
|
108
129
|
rubyforge_project:
|
109
|
-
rubygems_version:
|
130
|
+
rubygems_version: 2.0.3
|
110
131
|
signing_key:
|
111
|
-
specification_version:
|
132
|
+
specification_version: 4
|
112
133
|
summary: Spotify to MP3
|
113
134
|
test_files: []
|