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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWQ1ZWY0NTlkOGFiNGY1ZjdjYmFiNmIwZDM4ZWRmOTVkMzRlNjczNA==
4
+ ZGIyNjkwODRlNDQ4NjUxY2FjNzQwYTc3MGU4Mjk5ZGU2NGE5ODFhNw==
5
5
  data.tar.gz: !binary |-
6
- NzcxMGExNmE2NTVjY2E4NDU4NjY4MDQ2ZjMwMmQ5ZDczOTJkZWQ2ZA==
6
+ ZjQ1NzM2NGQwMzRkODRmNTYxOTFmNzM2OWNiNzRmMjczZGE0ZmFhYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGRkOTViZGU0YWExZjk5NDU3OGU0YWVkNTliNGMwYjQ1MzczMzBiYmFhOWM2
10
- MzY1ZmM4YTc1ZGExOTgyYTRiZjNhMThlNDk3OTIwN2I0OTQ2NGNhMDRmN2Jh
11
- N2MxNGMzYWNkNzU5MTM1MDc5ZjdlZTVhMWE5Y2Y3YTY2Y2VhYjA=
9
+ YmVjYWIyNTQ3OTRiY2NmMmE0YzNhM2U1ZDExOWI2MzBhZWQ1OGUyNzI1YTBh
10
+ YWI5OTBmY2ZmMzQ4NTIxNjk5YjA3MTYwYmU0YTdlNmFhYTcwMDhiOTJkM2Mz
11
+ OTlhNDUyZTU2OWZkYjllMzc1MWVmNzA0YTQ5MjRmMmNjZTdlN2Y=
12
12
  data.tar.gz: !binary |-
13
- NWEzMzc0NWMzNDlhNmM2ZTA2YmVkYTQ3YzI5NDg5Yjc2N2VjOGU0NWE0YWZi
14
- MWRiYmVkN2JhMjE4OGQ1NzY3NDg1NGYwZTMyNDI1M2QxOGI4NjA4ZWFjYWE4
15
- ZTVjYzYyMmYwMDNhYmQ3NGU4ZWYzODA2NGZmN2JkMTkzNTkzNWQ=
13
+ MWJkYzc1ZWEyNTcyNmVlNTI4Zjk5ZTEzZjQ3MmYyYWJhYTE0YWNjMzU2OGQ0
14
+ ZjgzOGM1MWUzYmMyNTVlNmE3N2JiY2FhZjkzNDVhYTkyNmJiMDM3Y2Y4YjY2
15
+ Y2IxNzlkZDUwMmQwMzBkYzMyYmFmZDdmYmIzZmM5NjczN2VmMjA=
@@ -1,5 +1,5 @@
1
1
  module Sounddrop
2
- class Drop
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 get_track(url)
46
+ def get_drop(url)
47
47
  sc_track = client.get('/resolve', url: url)
48
- Sounddrop::Track.new(sc_track, client)
48
+ Sounddrop::Drop.new(sc_track, client)
49
49
  end
50
50
 
51
51
  private :get_client, :username?, :password?
52
52
 
53
- end # class Drop
53
+ end # class Client
54
54
  end # module Sounddrop
@@ -1,5 +1,5 @@
1
1
  module Sounddrop
2
- class Track
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 Track
44
+ end # class Drop
41
45
  end # module Sounddrop
@@ -1,3 +1,3 @@
1
1
  module Sounddrop
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/sounddrop.rb CHANGED
@@ -2,5 +2,5 @@ require 'soundcloud'
2
2
  require 'logbert'
3
3
  require 'sounddrop/version'
4
4
  require 'sounddrop/exceptions'
5
- require 'sounddrop/track'
6
- require 'sounddrop/core'
5
+ require 'sounddrop/drop'
6
+ require 'sounddrop/client'
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.2
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/core.rb
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: