image_limit_resize 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +14 -0
- data/.travis.yml +11 -2
- data/README.md +5 -1
- data/data/orient_resize.jpg +0 -0
- data/data/sakura_resize.jpg +0 -0
- data/image_limit_resize.gemspec +1 -1
- data/lib/image_limit_resize/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8e5b9d2268257a6ad69355740d03ba96ef1ccd7efd5efb8f7bc2424aff63eb1a
|
4
|
+
data.tar.gz: 21583d6fb3be8704d86b1b04d535893abbf6f992bba5a8f0913d9698d15d07a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d523e7cab66e1c281848f777d8b002c9ee0d6bb73ebab3f5976b99de2a186617d09afe67683041afc58153887223396e48420b5eab66f95389fbfd1ed281bcc7
|
7
|
+
data.tar.gz: dc09d2f1a2a92d6628996c4ae8a96230101d9623d1195714e72874aa09617ca910bf0bfbdb06397a2b510e0a4558a47528417209b4d85f57c4cf41ed50e17059
|
data/.travis.yml
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- 2.
|
5
|
-
before_install:
|
4
|
+
- 2.7.1
|
5
|
+
before_install:
|
6
|
+
- gem install bundler -v 2.1.4
|
7
|
+
- sudo apt-get update -qq
|
8
|
+
install:
|
9
|
+
# imagemagic
|
10
|
+
- sudo apt install libmagickcore-dev libmagickwand-dev
|
11
|
+
# explicitly install
|
12
|
+
- bundle install --path .bundle
|
13
|
+
script:
|
14
|
+
- bundle exec ruby test/image_limit_resize_test.rb
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/kanayannet/image_limit_resize.svg?branch=master)](https://travis-ci.org/kanayannet/image_limit_resize)
|
2
|
+
|
1
3
|
# ImageLimitResize
|
2
4
|
|
3
5
|
It is a library for shrinking the image to equal ratio. It depends on rmagick.
|
@@ -12,7 +14,7 @@ gem 'image_limit_resize'
|
|
12
14
|
|
13
15
|
And then execute:
|
14
16
|
|
15
|
-
$ bundle
|
17
|
+
$ bundle install
|
16
18
|
|
17
19
|
Or install it yourself as:
|
18
20
|
|
@@ -21,6 +23,8 @@ Or install it yourself as:
|
|
21
23
|
## Usage
|
22
24
|
|
23
25
|
```
|
26
|
+
require 'image_limit_resize'
|
27
|
+
|
24
28
|
file = './sakura.jpg'
|
25
29
|
image_limit = ImageLimitResize::Base.new(file: file)
|
26
30
|
image_limit.format #=> 'JPEG'
|
data/data/orient_resize.jpg
CHANGED
Binary file
|
data/data/sakura_resize.jpg
CHANGED
Binary file
|
data/image_limit_resize.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.
|
24
|
+
spec.add_development_dependency "bundler", "~> 2.1.4"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "minitest", "~> 5.0"
|
27
27
|
spec.add_runtime_dependency "rmagick"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_limit_resize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kanayannet
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.1.4
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.1.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,6 +74,7 @@ executables: []
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
+
- ".circleci/config.yml"
|
77
78
|
- ".gitignore"
|
78
79
|
- ".travis.yml"
|
79
80
|
- CODE_OF_CONDUCT.md
|
@@ -93,7 +94,7 @@ homepage: https://github.com/kanayannet/image_limit_resize
|
|
93
94
|
licenses:
|
94
95
|
- MIT
|
95
96
|
metadata: {}
|
96
|
-
post_install_message:
|
97
|
+
post_install_message:
|
97
98
|
rdoc_options: []
|
98
99
|
require_paths:
|
99
100
|
- lib
|
@@ -108,9 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
109
|
- !ruby/object:Gem::Version
|
109
110
|
version: '0'
|
110
111
|
requirements: []
|
111
|
-
|
112
|
-
|
113
|
-
signing_key:
|
112
|
+
rubygems_version: 3.0.3
|
113
|
+
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: It is a library for shrinking the image to equal ratio.
|
116
116
|
test_files: []
|