refile-tinypng 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/refile/tinypng.rb +2 -2
- data/lib/refile/tinypng/version.rb +1 -1
- metadata +1 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c0e742efb6ca8165fc0291fdedea2d64e161918
|
4
|
+
data.tar.gz: 20179ee951c2694da0efb880675129ecfaa97bc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba665b28f1068ff558c6f8575b7cb0c332ca44a4c1ea6d78dc3b33c8110f803b6c31a5cca6701bf02380abb1ff5898ad9ed1d4043ae4ad1e082a4ddbab08df3e
|
7
|
+
data.tar.gz: bdc0b8099c15a0e5fa5a1ac95f23a19f61e48adea15adbf9350d98243fb588599581eeadc9343d808b7b45f4265c289cc2da39bd31101570c54ed8e5cec50d23
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# Refile::Tinypng
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/refile/tinypng`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
3
|
TODO: Delete this and the text above, and describe your gem
|
6
4
|
|
7
5
|
## Installation
|
data/lib/refile/tinypng.rb
CHANGED
@@ -42,9 +42,9 @@ module Refile
|
|
42
42
|
request = Net::HTTP::Post.new(uri.request_uri)
|
43
43
|
request.basic_auth('api', key)
|
44
44
|
|
45
|
-
response = http.request(request, File.binread(input))
|
45
|
+
response = http.request(request, ::File.binread(input))
|
46
46
|
if response.code == '201'
|
47
|
-
File.binwrite(output, http.get(response['location']).body)
|
47
|
+
::File.binwrite(output, http.get(response['location']).body)
|
48
48
|
else
|
49
49
|
raise response.body
|
50
50
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refile-tinypng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuichi Takeuchi
|
@@ -60,14 +60,6 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
-
- ".idea/.name"
|
64
|
-
- ".idea/compiler.xml"
|
65
|
-
- ".idea/copyright/profiles_settings.xml"
|
66
|
-
- ".idea/deployment.xml"
|
67
|
-
- ".idea/misc.xml"
|
68
|
-
- ".idea/modules.xml"
|
69
|
-
- ".idea/vcs.xml"
|
70
|
-
- ".idea/workspace.xml"
|
71
63
|
- ".travis.yml"
|
72
64
|
- CODE_OF_CONDUCT.md
|
73
65
|
- Gemfile
|
@@ -77,7 +69,6 @@ files:
|
|
77
69
|
- lib/refile/tinypng.rb
|
78
70
|
- lib/refile/tinypng/version.rb
|
79
71
|
- refile-tinypng.gemspec
|
80
|
-
- refile-tinypng.iml
|
81
72
|
homepage: https://github.com/takeyuweb/refile-tinypng
|
82
73
|
licenses:
|
83
74
|
- MIT
|