radikocopy 0.5.1 → 0.6.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: 947ecd5ba111de3c16809a8767206bdc35e6ac08cb6d9dd40545ef9fa15f56c1
4
- data.tar.gz: 304a23734d2357340335cc9f1adb081aa8b7d24022763496d510c054e7399209
3
+ metadata.gz: b908f63f946c2fa4a294a8613dfdf22f0d9ba117cfb13590644cfdfc18c532ca
4
+ data.tar.gz: e4772d1e15f9f27e01f0354352760fe91cabf03a4154e29f9cd181ce76e3c464
5
5
  SHA512:
6
- metadata.gz: da78caf3f8ccd535db845e56be41792a5c8b58d0ba79fc381d8df5554ccdf381672c6dbec9def255449320da66f44278fe568fc974feb2fc5e1dff5eeb83185a
7
- data.tar.gz: 6b774b8e862a4401646a7c276787a306bd0cba2b3cec9bd7f9f1316afc7e4060536fe462b88906593f59732502a971b8dc8ec58ff1a278303d0e426cd85e53c4
6
+ metadata.gz: 25411ca7628085da01aea1bb5789b90949b5cfe1d128b8158e8e59c56a6209b41106a10d76478a393462f1795e2087948de350a7cc518d910610486c38cd35a2
7
+ data.tar.gz: 90dd1f88993484a4f5a7c8233081b9e0288259dd300b8aea1775257c1a8829a96ba1daf6bb29e546c5a414687881ca0b6617c581163778904659d0b53e843b62
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.3
1
+ 2.6.5
@@ -1,3 +1,3 @@
1
1
  module Radikocopy
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/radikocopy.rb CHANGED
@@ -14,7 +14,11 @@ module Radikocopy
14
14
  raise RuntimeError, "local_dir does not exists: #{@local_dir}"
15
15
  end
16
16
  dir = File.dirname(File.expand_path(__FILE__))
17
- @import_scpt = File.join(dir, "radikoimport.scpt")
17
+ if FileTest.exist?('/System/Applications/Music.app')
18
+ @import_scpt = File.join(dir, "radikoimport_music.scpt")
19
+ else
20
+ @import_scpt = File.join(dir, "radikoimport_itunes.scpt")
21
+ end
18
22
  @keep = 20
19
23
  end
20
24
 
File without changes
@@ -0,0 +1,9 @@
1
+ on run argv
2
+ set a to item 1 of argv
3
+ set theFile to (a as POSIX file) as alias
4
+
5
+ tell application "Music"
6
+ set aTrack to (add theFile)
7
+ set bookmarkable of aTrack to true
8
+ end tell
9
+ end run
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radikocopy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - src
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-04 00:00:00.000000000 Z
11
+ date: 2019-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,8 @@ files:
75
75
  - exe/radikocopy
76
76
  - lib/radikocopy.rb
77
77
  - lib/radikocopy/version.rb
78
- - lib/radikoimport.scpt
78
+ - lib/radikoimport_itunes.scpt
79
+ - lib/radikoimport_music.scpt
79
80
  - radikocopy.gemspec
80
81
  - radikocopy.sh
81
82
  homepage: ''