sounddrop 0.0.2 → 0.0.3
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 +8 -8
- data/lib/sounddrop/{core.rb → client.rb} +4 -4
- data/lib/sounddrop/{track.rb → drop.rb} +6 -2
- data/lib/sounddrop/version.rb +1 -1
- data/lib/sounddrop.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGIyNjkwODRlNDQ4NjUxY2FjNzQwYTc3MGU4Mjk5ZGU2NGE5ODFhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjQ1NzM2NGQwMzRkODRmNTYxOTFmNzM2OWNiNzRmMjczZGE0ZmFhYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmVjYWIyNTQ3OTRiY2NmMmE0YzNhM2U1ZDExOWI2MzBhZWQ1OGUyNzI1YTBh
|
10
|
+
YWI5OTBmY2ZmMzQ4NTIxNjk5YjA3MTYwYmU0YTdlNmFhYTcwMDhiOTJkM2Mz
|
11
|
+
OTlhNDUyZTU2OWZkYjllMzc1MWVmNzA0YTQ5MjRmMmNjZTdlN2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWJkYzc1ZWEyNTcyNmVlNTI4Zjk5ZTEzZjQ3MmYyYWJhYTE0YWNjMzU2OGQ0
|
14
|
+
ZjgzOGM1MWUzYmMyNTVlNmE3N2JiY2FhZjkzNDVhYTkyNmJiMDM3Y2Y4YjY2
|
15
|
+
Y2IxNzlkZDUwMmQwMzBkYzMyYmFmZDdmYmIzZmM5NjczN2VmMjA=
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Sounddrop
|
2
|
-
class
|
2
|
+
class Client
|
3
3
|
|
4
4
|
###########################################################################
|
5
5
|
# Setup #
|
@@ -43,12 +43,12 @@ module Sounddrop
|
|
43
43
|
|
44
44
|
# Returns a Track object with all sorts of useful data with useful getters.
|
45
45
|
# The Track object is where most of the data retrieval occurs.
|
46
|
-
def
|
46
|
+
def get_drop(url)
|
47
47
|
sc_track = client.get('/resolve', url: url)
|
48
|
-
Sounddrop::
|
48
|
+
Sounddrop::Drop.new(sc_track, client)
|
49
49
|
end
|
50
50
|
|
51
51
|
private :get_client, :username?, :password?
|
52
52
|
|
53
|
-
end # class
|
53
|
+
end # class Client
|
54
54
|
end # module Sounddrop
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Sounddrop
|
2
|
-
class
|
2
|
+
class Drop
|
3
3
|
|
4
4
|
###########################################################################
|
5
5
|
# Setup #
|
@@ -12,6 +12,10 @@ module Sounddrop
|
|
12
12
|
@CLIENT = client
|
13
13
|
end
|
14
14
|
|
15
|
+
###########################################################################
|
16
|
+
# Core #
|
17
|
+
###########################################################################
|
18
|
+
|
15
19
|
# Track id
|
16
20
|
def id
|
17
21
|
@TRACK.id
|
@@ -37,5 +41,5 @@ module Sounddrop
|
|
37
41
|
end
|
38
42
|
end
|
39
43
|
|
40
|
-
end # class
|
44
|
+
end # class Drop
|
41
45
|
end # module Sounddrop
|
data/lib/sounddrop/version.rb
CHANGED
data/lib/sounddrop.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sounddrop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Bezobchuk
|
@@ -89,9 +89,9 @@ extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
91
|
- lib/sounddrop.rb
|
92
|
-
- lib/sounddrop/
|
92
|
+
- lib/sounddrop/client.rb
|
93
|
+
- lib/sounddrop/drop.rb
|
93
94
|
- lib/sounddrop/exceptions.rb
|
94
|
-
- lib/sounddrop/track.rb
|
95
95
|
- lib/sounddrop/version.rb
|
96
96
|
homepage: https://github.com/Alexanderbez/sounddrop
|
97
97
|
licenses:
|