nehm 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -7
- data/README.md +5 -3
- data/lib/nehm/configure.rb +4 -4
- data/lib/nehm/get.rb +4 -0
- data/lib/nehm/help.rb +6 -4
- data/lib/nehm/path_control.rb +1 -1
- data/lib/nehm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bf19dcd813d15eaaa99341e35776f10b4659c34
|
4
|
+
data.tar.gz: a569b37fb0261e6b873b4080cc94934e4d95a4aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a10ba0e6aa0dfe912de49f81bbcb57d9844768946ad65edab9e50ac73c35c53f9c34517c5557ebdb7533e3a4d1fef348cf487e50695d86167c612e13e8d0925
|
7
|
+
data.tar.gz: 6870f0928cea34964ae4cae6123e47cc410cc96e156869e531898edcfa62585884eb243ce79af9c8f5a7f8e65f628eed537df87bc74e5ff8d8d010ff47ab17b9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# nehm change log
|
2
2
|
|
3
|
+
## 1.3.3
|
4
|
+
|
5
|
+
* Add `to current` feature
|
6
|
+
|
3
7
|
## 1.3.2
|
4
8
|
|
5
9
|
* Add check for no user's posts/likes
|
@@ -15,9 +19,7 @@
|
|
15
19
|
## 1.3
|
16
20
|
|
17
21
|
* Now you can type short paths to download and iTunes paths while configuring nehm (e.g. ~/Music)
|
18
|
-
|
19
22
|
* Configure menu doesn't automatically exit after choose
|
20
|
-
|
21
23
|
* nehm doesn't ask for iTunes path by first run
|
22
24
|
|
23
25
|
## 1.2.2
|
@@ -30,13 +32,13 @@
|
|
30
32
|
|
31
33
|
## 1.2
|
32
34
|
|
33
|
-
* Add
|
35
|
+
* Add `to PARHTODIRECTORY` feature. See the 'Usage' for instructions
|
34
36
|
* Improve readability of help
|
35
37
|
* Add some error checks
|
36
38
|
|
37
39
|
## 1.1
|
38
40
|
|
39
|
-
* Add
|
41
|
+
* Add `from PERMALINK` feature. See the 'Usage' for instructions
|
40
42
|
|
41
43
|
## 1.0.7.1
|
42
44
|
|
@@ -54,8 +56,8 @@
|
|
54
56
|
## 1.0.6
|
55
57
|
|
56
58
|
* Add check for invalid number of likes/posts
|
57
|
-
* Add CHANGELOG.md
|
58
|
-
* Use OPTIONS instead of [options] in help
|
59
|
+
* Add `CHANGELOG.md`
|
60
|
+
* Use `OPTIONS` instead of `[options]` in help
|
59
61
|
|
60
62
|
## 1.0.5
|
61
63
|
|
@@ -82,7 +84,7 @@
|
|
82
84
|
* Modify tasks
|
83
85
|
|
84
86
|
* Edit required Ruby version
|
85
|
-
* Fix: if you invalid argument in
|
87
|
+
* Fix: if you type invalid argument in `nehm get`, then app fails
|
86
88
|
|
87
89
|
## 1.0
|
88
90
|
|
data/README.md
CHANGED
@@ -60,15 +60,17 @@ Go to usage for further instructions
|
|
60
60
|
|
61
61
|
* To just download and set tags any track, you can input
|
62
62
|
|
63
|
-
`nehm dl post` or `nehm dl like` or `nehm dl 3 likes`
|
63
|
+
`nehm dl post` or `nehm dl like` or `nehm dl 3 likes`
|
64
64
|
|
65
65
|
* To get tracks from another user
|
66
66
|
|
67
67
|
`nehm get post from nasa` or `nehm dl like from bogem`
|
68
68
|
|
69
|
-
* To
|
69
|
+
* To get tracks to custom directory
|
70
70
|
|
71
|
-
`nehm
|
71
|
+
`nehm get post from nasa to ~/Downloads` or `nehm dl like from bogem to current`
|
72
|
+
|
73
|
+
(if you type *..to current*, nehm will get track to current working directory)
|
72
74
|
|
73
75
|
* And of course you can get or download track from url
|
74
76
|
|
data/lib/nehm/configure.rb
CHANGED
@@ -10,10 +10,10 @@ module Configure
|
|
10
10
|
HighLine.new.choose do |menu|
|
11
11
|
menu.prompt = Paint['Choose setting', :yellow]
|
12
12
|
|
13
|
-
menu.choice('Edit download path') { PathControl.set_dl_path }
|
14
|
-
menu.choice('Edit itunes path') { PathControl.set_itunes_path } unless OS.linux?
|
15
|
-
menu.choice('Edit permalink') { UserControl.log_in }
|
16
|
-
menu.choice('Exit') { exit }
|
13
|
+
menu.choice('Edit download path'.freeze) { PathControl.set_dl_path }
|
14
|
+
menu.choice('Edit itunes path'.freeze) { PathControl.set_itunes_path } unless OS.linux?
|
15
|
+
menu.choice('Edit permalink'.freeze) { UserControl.log_in }
|
16
|
+
menu.choice('Exit'.freeze) { exit }
|
17
17
|
end
|
18
18
|
sleep(1)
|
19
19
|
puts "\n"
|
data/lib/nehm/get.rb
CHANGED
@@ -24,8 +24,12 @@ module Get
|
|
24
24
|
args.delete_at(index + 1)
|
25
25
|
args.delete_at(index)
|
26
26
|
|
27
|
+
# If 'to ~/../..' typed
|
27
28
|
path = PathControl.tilde_to_home(path) if PathControl.tilde_at_top?(path)
|
28
29
|
|
30
|
+
# If 'to current' typed
|
31
|
+
path = Dir.pwd if path == 'current'
|
32
|
+
|
29
33
|
PathControl.temp_dl_path = path
|
30
34
|
end
|
31
35
|
|
data/lib/nehm/help.rb
CHANGED
@@ -40,8 +40,9 @@ module Help
|
|
40
40
|
puts ' ' + Paint['<number> likes', :green] + ' - Downloading and setting tags your last <number> likes'
|
41
41
|
puts "\n"
|
42
42
|
puts Paint['Extra options:', :yellow]
|
43
|
-
puts ' ' + Paint['from PERMALINK', :green] + ' - Do the aforecited operations from
|
44
|
-
puts ' ' + Paint['to PATHTODIRECTORY', :green] + ' - Do the aforecited operations to
|
43
|
+
puts ' ' + Paint['from PERMALINK', :green] + ' - Do the aforecited operations from custom user profile'
|
44
|
+
puts ' ' + Paint['to PATHTODIRECTORY', :green] + ' - Do the aforecited operations to custom directory'
|
45
|
+
puts ' ' + Paint['to current', :green] + ' - Do the aforecited operations to current working directory'
|
45
46
|
end
|
46
47
|
|
47
48
|
def get
|
@@ -54,8 +55,9 @@ module Help
|
|
54
55
|
puts ' ' + Paint['<number> likes', :green] + ' - Downloading, setting tags and adding to your iTunes library your last <number> likes'
|
55
56
|
puts "\n"
|
56
57
|
puts Paint['Extra options:', :yellow]
|
57
|
-
puts ' ' + Paint['from PERMALINK', :green] + ' - Do the aforecited operations from
|
58
|
-
puts ' ' + Paint['to PATHTODIRECTORY', :green] + ' - Do the aforecited operations to
|
58
|
+
puts ' ' + Paint['from PERMALINK', :green] + ' - Do the aforecited operations from profile with PERMALINK'
|
59
|
+
puts ' ' + Paint['to PATHTODIRECTORY', :green] + ' - Do the aforecited operations to custom directory'
|
60
|
+
puts ' ' + Paint['to current', :green] + ' - Do the aforecited operations to current working directory'
|
59
61
|
end
|
60
62
|
|
61
63
|
def permalink
|
data/lib/nehm/path_control.rb
CHANGED
data/lib/nehm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nehm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Nigmatzianov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|