ruby-thumbor 1.3.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,142 +1,136 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-thumbor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernardo Heynemann
8
+ - Guilherme Souza
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-11 00:00:00.000000000 Z
12
+ date: 2022-01-28 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: rspec
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ! '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ! '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: simplecov
15
+ name: rake
29
16
  requirement: !ruby/object:Gem::Requirement
30
17
  requirements:
31
- - - ! '>='
18
+ - - "~>"
32
19
  - !ruby/object:Gem::Version
33
- version: '0'
20
+ version: '13.0'
34
21
  type: :development
35
22
  prerelease: false
36
23
  version_requirements: !ruby/object:Gem::Requirement
37
24
  requirements:
38
- - - ! '>='
25
+ - - "~>"
39
26
  - !ruby/object:Gem::Version
40
- version: '0'
27
+ version: '13.0'
41
28
  - !ruby/object:Gem::Dependency
42
- name: guard-rspec
29
+ name: rspec
43
30
  requirement: !ruby/object:Gem::Requirement
44
31
  requirements:
45
- - - ! '>='
32
+ - - "~>"
46
33
  - !ruby/object:Gem::Version
47
- version: '0'
34
+ version: '3.10'
48
35
  type: :development
49
36
  prerelease: false
50
37
  version_requirements: !ruby/object:Gem::Requirement
51
38
  requirements:
52
- - - ! '>='
39
+ - - "~>"
53
40
  - !ruby/object:Gem::Version
54
- version: '0'
41
+ version: '3.10'
55
42
  - !ruby/object:Gem::Dependency
56
- name: rb-fsevent
43
+ name: rubocop-rspec
57
44
  requirement: !ruby/object:Gem::Requirement
58
45
  requirements:
59
- - - ~>
46
+ - - "~>"
60
47
  - !ruby/object:Gem::Version
61
- version: 0.9.1
48
+ version: 2.8.0
62
49
  type: :development
63
50
  prerelease: false
64
51
  version_requirements: !ruby/object:Gem::Requirement
65
52
  requirements:
66
- - - ~>
53
+ - - "~>"
67
54
  - !ruby/object:Gem::Version
68
- version: 0.9.1
55
+ version: 2.8.0
69
56
  - !ruby/object:Gem::Dependency
70
- name: listen
57
+ name: simplecov
71
58
  requirement: !ruby/object:Gem::Requirement
72
59
  requirements:
73
- - - ~>
60
+ - - "~>"
74
61
  - !ruby/object:Gem::Version
75
- version: 1.3.1
62
+ version: 0.21.2
76
63
  type: :development
77
64
  prerelease: false
78
65
  version_requirements: !ruby/object:Gem::Requirement
79
66
  requirements:
80
- - - ~>
67
+ - - "~>"
81
68
  - !ruby/object:Gem::Version
82
- version: 1.3.1
69
+ version: 0.21.2
83
70
  - !ruby/object:Gem::Dependency
84
- name: rake
71
+ name: simplecov-lcov
85
72
  requirement: !ruby/object:Gem::Requirement
86
73
  requirements:
87
- - - ! '>='
74
+ - - "~>"
88
75
  - !ruby/object:Gem::Version
89
- version: '0'
76
+ version: 0.8.0
90
77
  type: :development
91
78
  prerelease: false
92
79
  version_requirements: !ruby/object:Gem::Requirement
93
80
  requirements:
94
- - - ! '>='
81
+ - - "~>"
95
82
  - !ruby/object:Gem::Version
96
- version: '0'
97
- description: ruby-thumbor is the client to the thumbor imaging service (http://github.com/globocom/thumbor).
83
+ version: 0.8.0
84
+ description: ruby-thumbor is the client to the thumbor imaging service (http://github.com/thumbor/thumbor).
98
85
  email:
99
86
  - heynemann@gmail.com
87
+ - guilherme@souza.tech
100
88
  executables: []
101
89
  extensions: []
102
- extra_rdoc_files: []
90
+ extra_rdoc_files:
91
+ - README.md
103
92
  files:
93
+ - README.md
104
94
  - lib/ruby-thumbor.rb
105
95
  - lib/thumbor/cascade.rb
106
96
  - lib/thumbor/crypto_url.rb
107
97
  - lib/thumbor/version.rb
108
- - README.rdoc
109
98
  - spec/spec_helper.rb
110
99
  - spec/thumbor/cascade_spec.rb
111
- - spec/thumbor/crypto_url_spec.rb
112
- - spec/util/thumbor.rb
113
- homepage: http://github.com/heynemann/ruby-thumbor
114
- licenses: []
115
- metadata: {}
100
+ homepage: http://github.com/thumbor/ruby-thumbor
101
+ licenses:
102
+ - MIT
103
+ metadata:
104
+ bug_tracker_uri: https://github.com/thumbor/ruby-thumbor/issues
105
+ documentation_uri: https://www.rubydoc.info/gems/ruby-thumbor
106
+ homepage_uri: http://github.com/thumbor/ruby-thumbor
107
+ source_code_uri: https://github.com/thumbor/ruby-thumbor
116
108
  post_install_message:
117
109
  rdoc_options:
118
- - --main
119
- - README.rdoc
110
+ - "--title"
111
+ - Ruby-Thumbor
112
+ - "--main"
113
+ - README.md
114
+ - "--line-numbers"
115
+ - "--inline-source"
116
+ - "--quiet"
120
117
  require_paths:
121
118
  - lib
122
119
  required_ruby_version: !ruby/object:Gem::Requirement
123
120
  requirements:
124
- - - ! '>='
121
+ - - ">="
125
122
  - !ruby/object:Gem::Version
126
123
  version: '0'
127
124
  required_rubygems_version: !ruby/object:Gem::Requirement
128
125
  requirements:
129
- - - ! '>='
126
+ - - ">="
130
127
  - !ruby/object:Gem::Version
131
128
  version: '0'
132
129
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.1.11
130
+ rubygems_version: 3.3.3
135
131
  signing_key:
136
132
  specification_version: 4
137
- summary: ruby-thumbor is the client to the thumbor imaging service (http://github.com/globocom/thumbor).
133
+ summary: ruby-thumbor is the client to the thumbor imaging service (http://github.com/thumbor/thumbor).
138
134
  test_files:
139
135
  - spec/spec_helper.rb
140
136
  - spec/thumbor/cascade_spec.rb
141
- - spec/thumbor/crypto_url_spec.rb
142
- - spec/util/thumbor.rb
data/README.rdoc DELETED
@@ -1,98 +0,0 @@
1
- = ruby-thumbor {<img src="https://secure.travis-ci.org/thumbor/ruby-thumbor.png?branch=master" alt="Build Status" />}[http://travis-ci.org/thumbor/ruby-thumbor] {<img src="https://gemnasium.com/thumbor/ruby-thumbor.png" alt="Dependency Status" />}[https://gemnasium.com/thumbor/ruby-thumbor] {<img src="https://badge.fury.io/rb/ruby-thumbor.svg" alt="Gem Version" />}[http://badge.fury.io/rb/ruby-thumbor]
2
-
3
- * http://github.com/thumbor/ruby-thumbor
4
-
5
- == DESCRIPTION:
6
-
7
- ruby-thumbor is the client to the thumbor imaging service (http://github.com/globocom/thumbor).
8
-
9
- == FEATURES:
10
-
11
- * Generate thumbor encrypted URLs
12
- * Obtain metadata from image operations in thumbor
13
-
14
- == DEPENDENCIES
15
-
16
- No dependencies required for regular usage.
17
-
18
- * thumbor (http://github.com/globocom/thumbor) for running ruby-thumbor tests.
19
-
20
- == INSTALL:
21
-
22
- gem install ruby-thumbor
23
-
24
- gem 'ruby-thumbor'
25
-
26
-
27
- == USAGE:
28
-
29
- require 'ruby-thumbor'
30
-
31
- crypto = Thumbor::CryptoURL.new 'my-security-key'
32
-
33
- url = crypto.generate :width => 200, :height => 300, :image => 'my.server.com/path/to/image.jpg'
34
-
35
- # url will contain something like:
36
- # /2913921in321n3k2nj32hjhj3h22/my.server.com/path/to/image.jpg
37
-
38
- or
39
-
40
- require 'ruby-thumbor'
41
-
42
- Thumbor.key = 'my-security-key'
43
- image = Thumbor::Cascade.new('my.server.com/path/to/image.jpg')
44
- image.width(300).height(200).watermark_filter('http://my-server.com/image.png', 30).generate
45
-
46
- Available arguments to the generate method:
47
-
48
- :meta => bool - flag that indicates that thumbor should return only meta-data on the operations it would
49
- otherwise perform;
50
-
51
- :crop => [<int>, <int>, <int>, <int>] - Coordinates for manual cropping. The first item is the two arguments are
52
- the coordinates for the left, top point and the last two are the coordinates
53
- for the right, bottom point (thus forming the square to crop);
54
-
55
- :width => <int> - the width for the thumbnail;
56
-
57
- :height => <int> - the height for the thumbnail;
58
-
59
- :flip => <bool> - flag that indicates that thumbor should flip horizontally (on the vertical axis) the image;
60
-
61
- :flop => <bool> - flag that indicates that thumbor should flip vertically (on the horizontal axis) the image;
62
-
63
- :halign => :left, :center or :right - horizontal alignment that thumbor should use for cropping;
64
-
65
- :valign => :top, :middle or :bottom - horizontal alignment that thumbor should use for cropping;
66
-
67
- :smart => <bool> - flag that indicates that thumbor should use smart cropping;
68
-
69
- If you need more info on what each option does, check thumbor's documentation at https://github.com/globocom/thumbor/wiki.
70
-
71
- == CONTRIBUTIONS:
72
-
73
- * Hugo Lopes (hugobr) - Fixes in the usage readme part of the docs.
74
-
75
- == LICENSE:
76
-
77
- (The MIT License)
78
-
79
- Copyright (c) 2011 Bernardo Heynemann <heynemann@gmail.com>
80
-
81
- Permission is hereby granted, free of charge, to any person obtaining
82
- a copy of this software and associated documentation files (the
83
- 'Software'), to deal in the Software without restriction, including
84
- without limitation the rights to use, copy, modify, merge, publish,
85
- distribute, sublicense, and/or sell copies of the Software, and to
86
- permit persons to whom the Software is furnished to do so, subject to
87
- the following conditions:
88
-
89
- The above copyright notice and this permission notice shall be
90
- included in all copies or substantial portions of the Software.
91
-
92
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
93
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
94
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
95
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
96
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
97
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
98
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.