discog-get 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b8c6d44bda0b3c509a0797a14c7eb8976ea2725
4
- data.tar.gz: c75971b4f9fe02f96d35461b1490296e7f0eb3b2
3
+ metadata.gz: 3c20cd4a46ed70ef0915ca9221bdf3e21d206a2b
4
+ data.tar.gz: 2fbba9352a4fbce623e9cc41495018bf9249e600
5
5
  SHA512:
6
- metadata.gz: fdcf76b7c62bc863e4ec0efd1582a87ace59c83942f010c685e1e5c7137bd1ae431c851e6a081bfea0183bdaac53adf2cd6e313dd22dc4e170b8fa4026d0eae4
7
- data.tar.gz: 0bc795d942f186829c6f07ec570da1c84320e3a5d9c75b17c68ab5d9be64aaf46eaec3215fe1ec75246dff82feba038155665e100122580b8121a980fc705908
6
+ metadata.gz: 77a004704592054c08c6b21e017e580fab0e2017bc55591bf0aaa88cf49855c12f7dcd15a881e39057bfd20a9e097388a1a42f3b642303338cb5d611b04a3bea
7
+ data.tar.gz: e4d770a692a15460b542d770861793cc825fad6cbac3c74ce42612f3223122a6dc52a671d01d7e2843031581958e1f236b19f518af05a68da3e200b950cd95f5
data/README.md CHANGED
@@ -1,38 +1,46 @@
1
- # Disget
1
+ # discog-get
2
2
 
3
- TODO: Delete this and the text above, and describe your gem
3
+ Download mp3 tracks from youtube using discog release as source.
4
4
 
5
- ## Installation
5
+ ## dependencies
6
6
 
7
- Add this line to your application's Gemfile:
7
+ Mac:
8
8
 
9
- ```ruby
10
- gem 'disget'
11
- ```
9
+ brew install youtube-dl ffmpeg
12
10
 
13
- And then execute:
11
+ Ubuntu:
14
12
 
15
- $ bundle
13
+ sudo apt-get install ffmpeg
16
14
 
17
- Or install it yourself as:
15
+ sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
16
+ sudo chmod a+rx /usr/local/bin/youtube-dl
18
17
 
19
- $ gem install disget
18
+ ## installation
20
19
 
21
- ## Usage
22
20
 
23
- TODO: Write usage instructions here
21
+ gem install discog-get
24
22
 
25
- ## Development
23
+ ## usage
24
+
25
+ disget release-id
26
+
27
+ Example:
28
+
29
+ https://www.discogs.com/Shadow-Child-Shadow-Child-EP/release/3579913
30
+
31
+ disget 3579913
32
+
33
+ ## development
26
34
 
27
35
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
36
 
29
37
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
38
 
31
- ## Contributing
39
+ ## contributing
32
40
 
33
41
  Bug reports and pull requests are welcome on GitHub at https://github.com/arubinofaux/discog-get. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
42
 
35
43
 
36
- ## License
44
+ ## license
37
45
 
38
46
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/exe/disget CHANGED
@@ -6,7 +6,6 @@ require "discogs-wrapper"
6
6
  discog = Discogs::Wrapper.new("disget")
7
7
 
8
8
  disget = Disget::Robot.new
9
- # puts disget.say_hello
10
9
 
11
10
  options = {}
12
11
  option_parser = OptionParser.new do |opts|
@@ -20,7 +19,7 @@ end
20
19
  option_parser.parse!
21
20
 
22
21
  if options[:version]
23
- puts "Version: #{Disget::Version}"
22
+ puts "Version: #{Disget::VERSION}"
24
23
  puts " "
25
24
  end
26
25
 
@@ -1,3 +1,3 @@
1
1
  module Disget
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/disget.rb CHANGED
@@ -4,11 +4,6 @@ require "httparty"
4
4
 
5
5
  module Disget
6
6
  class Robot
7
-
8
- def say_hello
9
- puts 'This is zerp. Coming in loud and clear. Over.'
10
- end
11
-
12
7
  def search(string)
13
8
  youtube_search = Nokogiri::HTML(HTTParty.get("https://www.youtube.com/results?search_query=#{string}"))
14
9
  first_result = youtube_search.css("#results .section-list .item-section li").first
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discog-get
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dainel Vera