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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ayadn/action.rb +2 -2
- data/lib/ayadn/cnx.rb +4 -4
- data/lib/ayadn/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: cb18969bf6252b4390c8413adc3f781901ed8d18
|
4
|
+
data.tar.gz: cf2cda4d58a7ff274f8374528e6c221cac37c487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f917484efe47ead5c0a345db9c41b0716fd1a16c31ed29631ff2f662877d037b8f76d30421db2978160126237455f654fe1c078f409cef0489319a1d232eaf7
|
7
|
+
data.tar.gz: 6cc53efcfdc09221c178ef4ce760564cbee1df864058e2591ab31551e69d31458dc351b429d890c0f0797ed3cad38072ac6bd0d36d755fc30c002bbf6273d3a3
|
data/CHANGELOG.md
CHANGED
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: [
|
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
|
17
|
+
Errors.global_error({error: e, caller: caller, data: [url]})
|
18
18
|
rescue => e
|
19
|
-
Errors.global_error({error: e, caller: caller, data: [url
|
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
|
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
|
70
|
+
Errors.global_error({error: e, caller: caller, data: [url]})
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
data/lib/ayadn/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2014-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|