muzik 0.0.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a14e57de8903f8bd1bddac2b87f04aae6faa7a43aeeafe3044a2f9b0f5d212e
4
- data.tar.gz: 18a6c8cba0f2189e26e618539e4b9f6d788f05280b1193e0ee26ed45d32f549d
3
+ metadata.gz: c0b7ab87c591779817ad60ff8dc79235f7a5026769218b98e431d0cb80dcc317
4
+ data.tar.gz: 391a8f044710efa51563b4c4f4a34885de0ee21dfdd22c9a10bfafa875ec68d8
5
5
  SHA512:
6
- metadata.gz: 1b13e659865f94f834bbf08e6cd9487e40ebe74a5a086c5ac44f838b0b68c9d280428ff646fef17ba37fc1640bfa61184d8c0c9619b175a467b59100c606574c
7
- data.tar.gz: 709c754b71ee16bae3c724fbc22123868d1ccfd2b719d9a0eb4c9e00ac16da5201e03a3ea95f3a92622bb427bd6e2bb1a501388b56ba998dce038d2bc4eb7f9b
6
+ metadata.gz: 4e863dbcf87682a7e5d246f316ec98bedc0d054d73e7db89ce9b4b1b5494a0ace0f19c657d1c9c108a2589a77701ee9aefa60c5c5b4c3968b9d213bda2706581
7
+ data.tar.gz: b285461dac3608815bdb991cf5f1ee31a4c4353a9d9ae70e262e00dcd200a5bc6e6f13ed0a40cf19e38847a4027b2a7df6ed4bf55ff1f906617ef0ca59cb9d94
data/bin/muzik CHANGED
@@ -49,7 +49,7 @@ rescue StandardError
49
49
  end
50
50
 
51
51
  def instantiate(cloud: true, external: nil)
52
- relative 'muzik'
52
+ require 'muzik'
53
53
 
54
54
  options = {
55
55
  cloud_url: (CONFIG['cloud_url'] if cloud),
@@ -98,7 +98,7 @@ begin
98
98
  system('open', CONFIG['download_path'], '-a', CONFIG['tagging_app'])
99
99
  when 'download'
100
100
  system(
101
- 'youtube-dl',
101
+ 'yt-dlp',
102
102
  '-x',
103
103
  '--audio-format',
104
104
  'mp3',
@@ -0,0 +1,11 @@
1
+ # https://github.com/rails/rails/blob/main/activesupport/lib/active_support/core_ext/hash/except.rb
2
+ class Hash
3
+ def except(*keys)
4
+ dup.except!(*keys)
5
+ end
6
+
7
+ def except!(*keys)
8
+ keys.each { |key| delete(key) }
9
+ self
10
+ end
11
+ end
data/lib/muzik/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Muzik
2
- VERSION = '0.0.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
data/lib/muzik.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  require 'csv'
2
2
  require 'google_drive'
3
- require 'active_support/core_ext/hash/except'
4
3
  require 'fileutils'
5
4
  require 'id3tag'
6
5
  require 'colorize'
7
6
  require 'rb-scpt'
8
7
  require 'octokit'
9
8
 
9
+ require_relative 'core_ext/hash.rb'
10
10
  require_relative 'muzik/version'
11
11
  require_relative 'muzik/client'
metadata CHANGED
@@ -1,15 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muzik
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Russoniello
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-25 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2022-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: octokit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.20'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.20'
27
+ - !ruby/object:Gem::Dependency
28
+ name: google_drive
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: id3tag
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.14'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.14'
55
+ - !ruby/object:Gem::Dependency
56
+ name: colorize
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.8'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rb-scpt
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
13
83
  description: Muzik manages your personal library of music files by syncing it across
14
84
  your devices using Google Drive.
15
85
  email: tommy.russoniello@gmail.com
@@ -21,6 +91,7 @@ files:
21
91
  - LICENSE.txt
22
92
  - README.md
23
93
  - bin/muzik
94
+ - lib/core_ext/hash.rb
24
95
  - lib/muzik.rb
25
96
  - lib/muzik/client.rb
26
97
  - lib/muzik/version.rb
@@ -37,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
37
108
  requirements:
38
109
  - - ">="
39
110
  - !ruby/object:Gem::Version
40
- version: '0'
111
+ version: '2.7'
41
112
  required_rubygems_version: !ruby/object:Gem::Requirement
42
113
  requirements:
43
114
  - - ">="