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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1faf3ef9d55a9cc868074351aa453221c1ca4ea5
4
- data.tar.gz: 7473f49f6cb6547ed04312cbf5a8dc7eb1f02892
2
+ SHA256:
3
+ metadata.gz: 8e5b9d2268257a6ad69355740d03ba96ef1ccd7efd5efb8f7bc2424aff63eb1a
4
+ data.tar.gz: 21583d6fb3be8704d86b1b04d535893abbf6f992bba5a8f0913d9698d15d07a1
5
5
  SHA512:
6
- metadata.gz: b4ae0d85f39e027685971e49175b76e9ce2f74d7d7e25f055c13caa922104b9b4e71c74bd97e882b238862e8751783da56b8bd20dc0f455467385758afc6eb6a
7
- data.tar.gz: 21eba8e4d757ed8803f1e9439758ae58ff530b2860b9a98fcef0811aafba37145c2045c5527efe4529b24a5c1852ccf0e4e62a55ca4951323a459869a41d3e59
6
+ metadata.gz: d523e7cab66e1c281848f777d8b002c9ee0d6bb73ebab3f5976b99de2a186617d09afe67683041afc58153887223396e48420b5eab66f95389fbfd1ed281bcc7
7
+ data.tar.gz: dc09d2f1a2a92d6628996c4ae8a96230101d9623d1195714e72874aa09617ca910bf0bfbdb06397a2b510e0a4558a47528417209b4d85f57c4cf41ed50e17059
@@ -0,0 +1,14 @@
1
+ version: 2
2
+ jobs:
3
+ test:
4
+ docker:
5
+ - image: kanayannet/image_limit_resize:latest
6
+ steps:
7
+ - checkout
8
+ - run: bundle install
9
+ - run: bundle exec ruby test/image_limit_resize_test.rb
10
+ workflows:
11
+ version: 2
12
+ test:
13
+ jobs:
14
+ - test
@@ -1,5 +1,14 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.3
5
- before_install: gem install bundler -v 1.16.1
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'
Binary file
Binary file
@@ -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.16"
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"
@@ -1,3 +1,3 @@
1
1
  module ImageLimitResize
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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: 2018-04-19 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
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
- rubyforge_project:
112
- rubygems_version: 2.6.14
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: []