nehm 2.1.2 → 2.1.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ece0cb803be426dda1c977fa8c5749c89b22854
4
- data.tar.gz: 09d8e471b3f3a35e66cff539f1ebeb0fdf5be99f
3
+ metadata.gz: bfc4c8d8a9d6ac5c34213a6bb6027f7d6853308f
4
+ data.tar.gz: 837fad03841ccf97f46c3b2c92e2c434bda07828
5
5
  SHA512:
6
- metadata.gz: 841f20a8424b56f5dd66bf98b07d5978d36d96a3827e2f4fb169bcf8a51e938d1c6ead04f2013b4b790d6c820a8fc474b056967be56a96bf99c02a858a80ae94
7
- data.tar.gz: 62b1d170ffc2cff0705468f8aa3c92e5127d8d363841daa5e961c56d2552232830e86e2e0ee05dfde637a86179fad59c41fee755321825d9cbb3d482b8a8a319
6
+ metadata.gz: 5a04f75639eb3496c23d00d8cb76f222ee285c8e4f5362a64975a070ca7a2da4b1b351379088382647e09b229cb02fd3af3875c825393dcbfbda1cfb23b6eae6
7
+ data.tar.gz: dd49755b7101bda086b64e146d440f4ced8a0c6dd444f0af5f823a610e4a3bde4ffd7da7754bdfc9344cbe10c80da115bab7d2672e2ec4a242d66dafbe9911bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # nehm change log
2
2
 
3
+ ## 2.1.3
4
+ * Fix bug, when `nehm` couldn't be initialized if you enter no command
5
+ * More detailed error description if there is no query in `search` command
6
+ * Fix `select` and `search` help
7
+
3
8
  ## 2.1.2
4
9
  * Fix infinite loop in `select` and `search` commands if there are no tracks
5
10
 
@@ -14,10 +14,10 @@ module Nehm
14
14
  'Add track(s) to iTunes playlist with PLAYLIST name')
15
15
 
16
16
  add_option(:"-lim", '-lim NUMBER',
17
- 'Show NUMBER+1 tracks on each page')
17
+ 'Show NUMBER tracks on each page')
18
18
 
19
19
  add_option(:"-dl", '-dl yes',
20
- "Don't add a track to iTunes. Just download and set tags")
20
+ "Don't add tracks to iTunes. Just download and set tags")
21
21
 
22
22
  end
23
23
 
@@ -57,7 +57,7 @@ module Nehm
57
57
  protected
58
58
 
59
59
  def get_tracks
60
- UI.term 'You must provide an argument' if @query.empty?
60
+ UI.term 'You must provide a query' if @query.empty?
61
61
 
62
62
  @track_manager.search(@query, @limit, @offset)
63
63
  end
@@ -27,7 +27,7 @@ module Nehm
27
27
  'Show from NUMBER+1 track')
28
28
 
29
29
  add_option(:dl, 'dl yes',
30
- "Don't add a track to iTunes. Just download and set tags")
30
+ "Don't add tracks to iTunes. Just download and set tags")
31
31
  end
32
32
 
33
33
  def arguments
data/lib/nehm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nehm
2
- VERSION = '2.1.2'.freeze
2
+ VERSION = '2.1.3'.freeze
3
3
  end
data/lib/nehm.rb CHANGED
@@ -13,13 +13,13 @@ require 'nehm/user_manager'
13
13
  module Nehm
14
14
 
15
15
  def self.start(args)
16
+ init unless initialized?
17
+
16
18
  if args.empty?
17
19
  UI.say HELP
18
20
  UI.term
19
21
  end
20
22
 
21
- init unless initialized?
22
-
23
23
  CommandManager.run(args)
24
24
  end
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nehm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Nigmatzianov