ayadn 1.4.4 → 1.4.5

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: ed75a275fb68ca1a03b8e9cd8a947c2bc390097b
4
- data.tar.gz: 54bee828a9440ff8c730e83d14fba6a6f1f647a7
3
+ metadata.gz: cb18969bf6252b4390c8413adc3f781901ed8d18
4
+ data.tar.gz: cf2cda4d58a7ff274f8374528e6c221cac37c487
5
5
  SHA512:
6
- metadata.gz: 1b54a5ed78f687fa12502a0867b6276b3ce38f8e1a2bb235910f4c30214d02dde8dd7caf92c03a63d06bf14212cbe480bf56b7bbdd47ef605948d9e9102f82c4
7
- data.tar.gz: 731bcececa7fa6bec76c6d4bd0cbcc963cf399a8dc83d97eb5fc96c58cd6d5f81e72c30845220ca40f2fd5f71f0b0dca341930a2fe885f19417a28d686ba7849
6
+ metadata.gz: 7f917484efe47ead5c0a345db9c41b0716fd1a16c31ed29631ff2f662877d037b8f76d30421db2978160126237455f654fe1c078f409cef0489319a1d232eaf7
7
+ data.tar.gz: 6cc53efcfdc09221c178ef4ce760564cbee1df864058e2591ab31551e69d31458dc351b429d890c0f0797ed3cad38072ac6bd0d36d755fc30c002bbf6273d3a3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.4.5 - 'Sébastien'
2
+
3
+ - Fixed a crash when iTunes Store URL contained exotic characters
4
+
1
5
  # 1.4.4 - 'Randolph'
2
6
 
3
7
  - Fixed a database problem in PM and SEND
data/lib/ayadn/action.rb CHANGED
@@ -816,7 +816,7 @@ module Ayadn
816
816
  post_nowplaying(text_to_post, store, options)
817
817
  rescue => e
818
818
  puts Status.wtf
819
- Errors.global_error({error: e, caller: caller, data: [lfm, store, options]})
819
+ Errors.global_error({error: e, caller: caller, data: [store, options]})
820
820
  end
821
821
  end
822
822
 
@@ -909,7 +909,7 @@ module Ayadn
909
909
  end
910
910
 
911
911
  def get_itunes_store url
912
- results = JSON.load(CNX.download(url))['results']
912
+ results = JSON.load(CNX.download(URI.escape(url)))['results']
913
913
  unless results.empty? || results.nil?
914
914
  candidate = results[0]
915
915
  return {
data/lib/ayadn/cnx.rb CHANGED
@@ -14,9 +14,9 @@ module Ayadn
14
14
  retry
15
15
  end
16
16
  puts "\nConnexion error.\n\n".color(:red)
17
- Errors.global_error({error: e, caller: caller, data: [url, response]})
17
+ Errors.global_error({error: e, caller: caller, data: [url]})
18
18
  rescue => e
19
- Errors.global_error({error: e, caller: caller, data: [url, response]})
19
+ Errors.global_error({error: e, caller: caller, data: [url]})
20
20
  end
21
21
  end
22
22
 
@@ -36,7 +36,7 @@ module Ayadn
36
36
  Errors.nr "URL: #{url}"
37
37
  return {'meta' => {'code' => 666}, 'data' => "#{e}"}.to_json
38
38
  rescue => e
39
- Errors.global_error({error: e, caller: caller, data: [url, response]})
39
+ Errors.global_error({error: e, caller: caller, data: [url]})
40
40
  end
41
41
  end
42
42
 
@@ -67,7 +67,7 @@ module Ayadn
67
67
  puts "\nConnection error.".color(:red)
68
68
  Errors.global_error({error: e, caller: caller, data: [url]})
69
69
  rescue => e
70
- Errors.global_error({error: e, caller: caller, data: [url, response]})
70
+ Errors.global_error({error: e, caller: caller, data: [url]})
71
71
  end
72
72
  end
73
73
 
data/lib/ayadn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "1.4.4"
3
+ VERSION = "1.4.5"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor