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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4b4549ff3ed2ca83b6c5b5ac3fe625ff2acf1c40
4
- data.tar.gz: 4542619b73dcb8e90066b6f0a7b6897629f908ab
2
+ SHA256:
3
+ metadata.gz: a77acd248f771a74f0dda2639ca59317e515e707178b0336cddca50183598ddc
4
+ data.tar.gz: 4e580b01dfa238135b3f59091048c251c4d978be61528ad1f7e581d8db84f5fd
5
5
  SHA512:
6
- metadata.gz: caf4b811ba86fc221e1d7f4207fc146d91e7b67cc38d53da0d8edeca46fd842fe32ad3bc480a96616d41036d376b7c1cc2338f86972afd06dfeaa9dc1e79e818
7
- data.tar.gz: 8245bc792003b0022c9917a89ca358c797f67e5190e57d518c736368186a7eaae4e4dbe6c8c8ef574f93b5a14e80b677d3d8dfd0b42a877ba635d61417565659
6
+ metadata.gz: 90104677dfb4448a596972aa62cb736e0fd567ca9f924b2f74a1d6e03e16bf3f16dd2a326de71222a746d269925cf67c0318efe673d7bdde720b7bf42dc9505b
7
+ data.tar.gz: c796ff53e1d85bb86a8aceeb63d71e6f9e396a4d6004220305076537201764bc04707789e3e5d7f4d2c9d78c65b43a0d09699bb56005c5273142fd982ce536cb
@@ -2,12 +2,16 @@ version: 2
2
2
  jobs:
3
3
  build:
4
4
  docker:
5
- - image: circleci/ruby:2.4.1
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("/original.jpg', width: 100)
35
+ origin.image_url('/original.jpg', width: 100)
36
36
  # => https://example.imageflux.jp/c/w=100/original.jpg
37
37
  ```
38
38
 
@@ -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', '~> 1.16'
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'
@@ -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: {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ImageFlux
4
- VERSION = '1.0.2'.freeze
4
+ VERSION = '1.1.0'.freeze
5
5
  end
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.2
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: 2017-12-07 00:00:00.000000000 Z
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
- rubyforge_project:
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