ayadn 1.4.5 → 1.4.6

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: cb18969bf6252b4390c8413adc3f781901ed8d18
4
- data.tar.gz: cf2cda4d58a7ff274f8374528e6c221cac37c487
3
+ metadata.gz: 8d24e69e9bb60c49085dbb5a2301b2da8b9789f7
4
+ data.tar.gz: 39c9219947d43fdb3bf16bf4643fa8a8141a456c
5
5
  SHA512:
6
- metadata.gz: 7f917484efe47ead5c0a345db9c41b0716fd1a16c31ed29631ff2f662877d037b8f76d30421db2978160126237455f654fe1c078f409cef0489319a1d232eaf7
7
- data.tar.gz: 6cc53efcfdc09221c178ef4ce760564cbee1df864058e2591ab31551e69d31458dc351b429d890c0f0797ed3cad38072ac6bd0d36d755fc30c002bbf6273d3a3
6
+ metadata.gz: bc082c53a74daff0a800cfb9fcd2f663730e9f35b7e96bd3fe80a35a4353914060cdcd1e3e7f965608942c9e0ba2f5eddbf9852295eeede5ff46bc9f4cbb9e37
7
+ data.tar.gz: 3a7fa5aa5494de09e95aa43b67c0fd9a5ee720285095fed3be53533111905bf195edf1ea0e9638c46951694a5125d941f37dc4c908c31ca54c7265ac5a993a8e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.4.6 - 'Filepaths'
2
+
3
+ - Temporary fix for filepaths instability when uploading pictures
4
+
1
5
  # 1.4.5 - 'Sébastien'
2
6
 
3
7
  - Fixed a crash when iTunes Store URL contained exotic characters
data/lib/ayadn/fileops.rb CHANGED
@@ -45,11 +45,11 @@ module Ayadn
45
45
  begin
46
46
  case File.extname(file).downcase
47
47
  when ".png"
48
- `curl -k -H 'Authorization: BEARER #{token}' https://api.app.net/files -F 'type=com.ayadn.files' -F "content=@'#{file}';type=image/png" -F 'public=true' -X POST`
48
+ `curl -k -H 'Authorization: BEARER #{token}' https://api.app.net/files -F 'type=com.ayadn.files' -F "content=@#{file};type=image/png" -F 'public=true' -X POST`
49
49
  when ".gif"
50
- `curl -k -H 'Authorization: BEARER #{token}' https://api.app.net/files -F 'type=com.ayadn.files' -F "content=@'#{file}';type=image/gif" -F 'public=true' -X POST`
50
+ `curl -k -H 'Authorization: BEARER #{token}' https://api.app.net/files -F 'type=com.ayadn.files' -F "content=@#{file};type=image/gif" -F 'public=true' -X POST`
51
51
  else #jpg or jpeg or JPG or JPEG, automatically recognized as such
52
- `curl -k -H 'Authorization: BEARER #{token}' https://api.app.net/files -F 'type=com.ayadn.files' -F content=@'#{file}' -F 'public=true' -X POST`
52
+ `curl -k -H 'Authorization: BEARER #{token}' https://api.app.net/files -F 'type=com.ayadn.files' -F content=@#{file} -F 'public=true' -X POST`
53
53
  end
54
54
  rescue Errno::ENOENT
55
55
  abort(Status.no_curl)
data/lib/ayadn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "1.4.5"
3
+ VERSION = "1.4.6"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere