nehm 2.2.2 → 2.2.3

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
  SHA1:
3
- metadata.gz: efed52ef870d01c0b3b12c62769ceaf50a8a10b0
4
- data.tar.gz: ac34cdf9e5d626619349e47cc12c12e6552855cb
3
+ metadata.gz: bb22da3f9d11fce9f56f393dac2ff985e548613f
4
+ data.tar.gz: eacf18ed7ce0b6ba0bc359353ed7a83d821648c0
5
5
  SHA512:
6
- metadata.gz: 8b5210fbea97babdf7b00eeee3b9ce3b32c30150c615c539442683c907554244cc281c315a913b27448f92c258d4b24d6b3fd03a9536e8e8b8e4bfd2ade16fea
7
- data.tar.gz: 8e9f0cc264820233d25649089028a3be78ce266b9323dfa878809f07298a44b6015a5244d2324433a3e5bdc0406206dc588bb9153417c79494187c9695d0ebc3
6
+ metadata.gz: f6188ab7a283a474db13ebaec6c96b80fb1f9bfd94c7cde6df77256ad527e9e4f076ec1e89598213bb680b9881273eb3a112c4d3cd0ddb3c14dfbdf00603f2a4
7
+ data.tar.gz: d75552e1fb8202d80e7eae86593219e636035f9f3dfbeccfb919d5cc2de098641689bb8a8f3bc3a9fadf251145a17cbfb006831166f79cd246b91bcf3d0760a2
@@ -1,5 +1,8 @@
1
1
  # nehm change log
2
2
 
3
+ ## 2.2.3
4
+ * Fix https://github.com/bogem/nehm/issues/3. Thanks `galaris` for report
5
+
3
6
  ## 2.2.2
4
7
  * If you input in `to` option non-existing directory, you can create it from `nehm`
5
8
 
data/README.md CHANGED
@@ -128,7 +128,7 @@ A: Permalink is the last word in your profile url. **Example:** for profile url
128
128
 
129
129
  ## License
130
130
 
131
- MIT License
131
+ MIT
132
132
 
133
133
  ## Links
134
134
 
@@ -34,7 +34,7 @@ module Nehm
34
34
 
35
35
  def config_hash
36
36
  @config_hash ||= YAML.load_file(FILE_PATH)
37
- @config_hash ||= {} unless @config_hash
37
+ @config_hash ||= {}
38
38
 
39
39
  @config_hash
40
40
  end
@@ -36,13 +36,16 @@ module Nehm
36
36
  limit = count < TRACKS_LIMIT ? count : TRACKS_LIMIT
37
37
  count -= TRACKS_LIMIT
38
38
 
39
- tracks +=
39
+ received =
40
40
  case type
41
41
  when :likes
42
42
  likes(limit, i * TRACKS_LIMIT + offset, uid)
43
43
  when :posts
44
44
  posts(limit, i * TRACKS_LIMIT + offset, uid)
45
45
  end
46
+
47
+ tracks += received if received.is_a? Array # If received is a hash, then
48
+ # there was error
46
49
  end
47
50
  tracks
48
51
  end
@@ -14,7 +14,7 @@ module Nehm
14
14
 
15
15
  def self.get_path(path)
16
16
  unless Dir.exist?(path)
17
- UI.warning "This directory doesn't exist."
17
+ UI.warning "Directory #{path} doesn't exist."
18
18
  wish = UI.ask('Want to create it? (Y/n):')
19
19
  wish = 'y' if wish == ''
20
20
 
@@ -103,7 +103,7 @@ module Nehm
103
103
  permalink = options[:from]
104
104
  @uid = permalink ? UserManager.get_uid(permalink) : UserManager.default_uid
105
105
  unless @uid
106
- UI.error "You didn't logged in"
106
+ UI.error "You didn't log in"
107
107
  UI.say "Login from #{'nehm configure'.yellow} " \
108
108
  "or use #{'from PERMALINK'.yellow} option"
109
109
  UI.term
@@ -1,3 +1,3 @@
1
1
  module Nehm
2
- VERSION = '2.2.2'.freeze
2
+ VERSION = '2.2.3'.freeze
3
3
  end
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: 2.2.2
4
+ version: 2.2.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-12-11 00:00:00.000000000 Z
11
+ date: 2015-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: certifi
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.5.0
151
+ rubygems_version: 2.5.1
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Convenient way to download tracks (and add them to iTunes) from SoundCloud