refile-tinypng 0.1.0 → 0.1.1

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: e7caf8f25128a50215a63496fcdc0ed43b52bdcd
4
- data.tar.gz: 71d9834b10e817baf60e343afa14cad1dd8793b2
3
+ metadata.gz: 3c0e742efb6ca8165fc0291fdedea2d64e161918
4
+ data.tar.gz: 20179ee951c2694da0efb880675129ecfaa97bc0
5
5
  SHA512:
6
- metadata.gz: bd445452fe8a6dac3583b6fbd7e2b2a87322feca15f993051af0cde273ccfc8cab452f1b0ebf19df31d77ffdd7d96f988aa57377f4e741ebde3687942736c88d
7
- data.tar.gz: 8022c4b79c9c69405d9bcf3f0ab4bd769ac237ca7900882c8c742b805d87a589f9d7ef196cb63c66c1738930de066861cc62043605a80585974ce9713dccf3cc
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Refile
2
2
  module Tinypng
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  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.0
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