image_flux 1.0.2 → 1.1.0
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 +5 -1
- data/README.md +1 -1
- data/image_flux.gemspec +1 -1
- data/lib/image_flux/option.rb +6 -1
- data/lib/image_flux/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a77acd248f771a74f0dda2639ca59317e515e707178b0336cddca50183598ddc
|
4
|
+
data.tar.gz: 4e580b01dfa238135b3f59091048c251c4d978be61528ad1f7e581d8db84f5fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90104677dfb4448a596972aa62cb736e0fd567ca9f924b2f74a1d6e03e16bf3f16dd2a326de71222a746d269925cf67c0318efe673d7bdde720b7bf42dc9505b
|
7
|
+
data.tar.gz: c796ff53e1d85bb86a8aceeb63d71e6f9e396a4d6004220305076537201764bc04707789e3e5d7f4d2c9d78c65b43a0d09699bb56005c5273142fd982ce536cb
|
data/.circleci/config.yml
CHANGED
@@ -2,12 +2,16 @@ version: 2
|
|
2
2
|
jobs:
|
3
3
|
build:
|
4
4
|
docker:
|
5
|
-
- image: circleci/ruby:2.
|
5
|
+
- image: circleci/ruby:2.6.1
|
6
6
|
working_directory: ~/repo
|
7
7
|
|
8
8
|
steps:
|
9
9
|
- checkout
|
10
10
|
|
11
|
+
- run:
|
12
|
+
name: Update rubygems
|
13
|
+
command: gem update --system
|
14
|
+
|
11
15
|
- run:
|
12
16
|
name: Update Bunndler
|
13
17
|
command: gem update bundler
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ Or install it yourself as:
|
|
32
32
|
require 'image_flux'
|
33
33
|
origin = ImageFlux::Origin.new(domain: 'example.imageflux.jp')
|
34
34
|
|
35
|
-
origin.image_url(
|
35
|
+
origin.image_url('/original.jpg', width: 100)
|
36
36
|
# => https://example.imageflux.jp/c/w=100/original.jpg
|
37
37
|
```
|
38
38
|
|
data/image_flux.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.add_development_dependency 'bundler', '
|
26
|
+
spec.add_development_dependency 'bundler', '>= 1.16'
|
27
27
|
spec.add_development_dependency 'ffaker'
|
28
28
|
spec.add_development_dependency 'rake', '~> 10.0'
|
29
29
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
data/lib/image_flux/option.rb
CHANGED
@@ -31,7 +31,12 @@ class ImageFlux::Option
|
|
31
31
|
attribute :w, :integer, default: nil, aliases: %i[width]
|
32
32
|
attribute :h, :integer, default: nil, aliases: %i[height]
|
33
33
|
attribute :u, :boolean, default: true, aliases: %i[upscale]
|
34
|
-
attribute :a, :integer, default: 1, aliases: %i[aspect]
|
34
|
+
attribute :a, :integer, default: 1, aliases: %i[aspect], enum:{
|
35
|
+
scale: 0,
|
36
|
+
force_scale: 1,
|
37
|
+
crop: 2,
|
38
|
+
pad: 3
|
39
|
+
}
|
35
40
|
attribute :c, :integer_array, default: nil, aliases: %i[crop]
|
36
41
|
attribute :cr, :float_array, default: nil, aliases: %i[]
|
37
42
|
attribute :g, :integer, default: 4, aliases: %i[gravity], enum: {
|
data/lib/image_flux/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_flux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Kusano
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.16'
|
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
26
|
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -152,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
|
-
|
156
|
-
rubygems_version: 2.6.13
|
155
|
+
rubygems_version: 3.0.2
|
157
156
|
signing_key:
|
158
157
|
specification_version: 4
|
159
158
|
summary: URL builder for ImageFlux
|