link_thumbnailer 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.ruby-version +1 -0
- data/.travis.yml +2 -4
- data/CHANGELOG.md +252 -75
- data/Gemfile +5 -3
- data/README.md +4 -0
- data/Rakefile +2 -0
- data/lib/generators/link_thumbnailer/install_generator.rb +2 -0
- data/lib/generators/templates/initializer.rb +15 -0
- data/lib/link_thumbnailer.rb +2 -0
- data/lib/link_thumbnailer/configuration.rb +74 -68
- data/lib/link_thumbnailer/exceptions.rb +3 -0
- data/lib/link_thumbnailer/grader.rb +2 -0
- data/lib/link_thumbnailer/graders/base.rb +2 -0
- data/lib/link_thumbnailer/graders/html_attribute.rb +2 -0
- data/lib/link_thumbnailer/graders/length.rb +2 -0
- data/lib/link_thumbnailer/graders/link_density.rb +2 -0
- data/lib/link_thumbnailer/graders/position.rb +2 -0
- data/lib/link_thumbnailer/image_comparator.rb +2 -0
- data/lib/link_thumbnailer/image_comparators/base.rb +2 -0
- data/lib/link_thumbnailer/image_comparators/size.rb +2 -0
- data/lib/link_thumbnailer/image_parser.rb +13 -1
- data/lib/link_thumbnailer/image_validator.rb +2 -0
- data/lib/link_thumbnailer/model.rb +20 -17
- data/lib/link_thumbnailer/models/description.rb +2 -0
- data/lib/link_thumbnailer/models/favicon.rb +2 -0
- data/lib/link_thumbnailer/models/image.rb +56 -54
- data/lib/link_thumbnailer/models/title.rb +2 -0
- data/lib/link_thumbnailer/models/video.rb +2 -0
- data/lib/link_thumbnailer/models/website.rb +54 -52
- data/lib/link_thumbnailer/page.rb +4 -1
- data/lib/link_thumbnailer/parser.rb +3 -1
- data/lib/link_thumbnailer/processor.rb +38 -5
- data/lib/link_thumbnailer/railtie.rb +2 -0
- data/lib/link_thumbnailer/response.rb +39 -0
- data/lib/link_thumbnailer/scraper.rb +62 -60
- data/lib/link_thumbnailer/scrapers/base.rb +69 -67
- data/lib/link_thumbnailer/scrapers/default/base.rb +2 -0
- data/lib/link_thumbnailer/scrapers/default/description.rb +2 -0
- data/lib/link_thumbnailer/scrapers/default/favicon.rb +16 -2
- data/lib/link_thumbnailer/scrapers/default/images.rb +5 -1
- data/lib/link_thumbnailer/scrapers/default/title.rb +2 -0
- data/lib/link_thumbnailer/scrapers/default/videos.rb +2 -0
- data/lib/link_thumbnailer/scrapers/opengraph/base.rb +2 -0
- data/lib/link_thumbnailer/scrapers/opengraph/description.rb +2 -0
- data/lib/link_thumbnailer/scrapers/opengraph/favicon.rb +2 -0
- data/lib/link_thumbnailer/scrapers/opengraph/image.rb +7 -1
- data/lib/link_thumbnailer/scrapers/opengraph/images.rb +2 -0
- data/lib/link_thumbnailer/scrapers/opengraph/title.rb +2 -0
- data/lib/link_thumbnailer/scrapers/opengraph/video.rb +2 -0
- data/lib/link_thumbnailer/scrapers/opengraph/videos.rb +2 -0
- data/lib/link_thumbnailer/uri.rb +20 -0
- data/lib/link_thumbnailer/version.rb +3 -1
- data/lib/link_thumbnailer/video_parser.rb +3 -1
- data/link_thumbnailer.gemspec +8 -6
- data/spec/configuration_spec.rb +4 -2
- data/spec/fixture_spec.rb +21 -0
- data/spec/fixtures/default_with_few_favicons.html +15 -0
- data/spec/fixtures/google_shift_jis.html +6 -0
- data/spec/fixtures/google_utf8.html +6 -0
- data/spec/fixtures/google_utf8_no_meta_charset.html +6 -0
- data/spec/fixtures/with_related_path_in_href.html +13 -0
- data/spec/fixtures/with_root_path_in_href.html +13 -0
- data/spec/grader_spec.rb +3 -1
- data/spec/graders/base_spec.rb +2 -0
- data/spec/graders/html_attribute_spec.rb +9 -7
- data/spec/graders/length_spec.rb +10 -6
- data/spec/graders/link_density_spec.rb +4 -2
- data/spec/graders/position_spec.rb +8 -6
- data/spec/image_comparators/size_spec.rb +2 -0
- data/spec/image_validator_spec.rb +3 -1
- data/spec/model_spec.rb +2 -0
- data/spec/models/description_spec.rb +3 -1
- data/spec/models/favicon_spec.rb +2 -0
- data/spec/models/image_spec.rb +6 -4
- data/spec/models/title_spec.rb +2 -0
- data/spec/models/video_spec.rb +7 -5
- data/spec/models/website_spec.rb +5 -3
- data/spec/page_spec.rb +2 -0
- data/spec/processor_spec.rb +74 -23
- data/spec/response_spec.rb +84 -0
- data/spec/scraper_spec.rb +6 -4
- data/spec/scrapers/base_spec.rb +6 -4
- data/spec/scrapers/opengraph/base_spec.rb +8 -6
- data/spec/spec_helper.rb +2 -0
- data/spec/uri_spec.rb +44 -0
- data/spec/video_parser_spec.rb +15 -13
- metadata +37 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4a61e97176d3dfeee5edd1b272ad4c9bb9e4d967655edd529d128f5ec0bf2a9f
|
|
4
|
+
data.tar.gz: 48430fe14a47d7a76b26df13421c01474b21c4b76df823723f6e13ba70d2a46f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 206962b937ceb0a38910c71bce981379972c0291e7a71c21b1b2d6ccbd22f82e991be36ec4c2b084a681b6c8e2c7f7713ad420d26a8e617fc5d4733bb9785f7c
|
|
7
|
+
data.tar.gz: 38ee02ac70e404432ce97d276f09e4f2dff02c2b323753098fe7607cb93cbcf549e85b8ec9c0ed11cead8f8c81ba0282bb1c0c22a173208773b10a080e34b9c6
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.6.6
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [3.4.0]
|
|
10
|
+
### Adds
|
|
11
|
+
|
|
12
|
+
- Adds `download_size_limit` configuration to raise `LinkThumbnailer::DownloadSizeLimit` when the body of the request is too big. Defaults to `10 * 1024 * 1024` bytes.
|
|
13
|
+
- Adds `favicon_size` configuration to allow to choose which favison
|
|
14
|
+
size the gem should prefer. Defaults to the first favicon found otherwise.
|
|
15
|
+
|
|
16
|
+
### Fixes
|
|
17
|
+
|
|
18
|
+
- Fixes string encoding in previous versions of Ruby
|
|
19
|
+
- Fixes favicon by providing the full path.
|
|
20
|
+
- When HTML charset cannot be found in the HTML header, we now try
|
|
21
|
+
to find it in the body.
|
|
22
|
+
- Closes the HTTP connection upon completion
|
|
23
|
+
|
|
24
|
+
### Changes
|
|
25
|
+
|
|
26
|
+
- 401 HTTP errors now raise `LinkThumbnailer::HTTPError`
|
|
27
|
+
- Upgrades [ImageInfo](https://github.com/gottfrois/image_info/blob/master/CHANGELOG.md) gem
|
|
28
|
+
|
|
29
|
+
## [3.3.2]
|
|
30
|
+
### Fixes
|
|
31
|
+
|
|
32
|
+
- Frozen strings https://github.com/gottfrois/link_thumbnailer/pull/125
|
|
33
|
+
|
|
34
|
+
## [3.3.1]
|
|
35
|
+
### Changes
|
|
36
|
+
|
|
37
|
+
- Gem upgrade (json)
|
|
38
|
+
|
|
39
|
+
## [3.3.0]
|
|
40
|
+
### Adds
|
|
41
|
+
|
|
42
|
+
- Allows to configure overrided http headers
|
|
43
|
+
|
|
44
|
+
```ruby
|
|
45
|
+
LinkThumbnailer.configure do |config|
|
|
46
|
+
config.http_override_headers = { 'Accept-Encoding' => 'none', ... }
|
|
47
|
+
end
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## [3.2.1]
|
|
51
|
+
### Fixes
|
|
52
|
+
|
|
53
|
+
- Fixes #88
|
|
54
|
+
- Override User-Agent header properly
|
|
55
|
+
- Match xpath nodes if attribute content is present
|
|
56
|
+
- Avoid nil urls in image parser
|
|
57
|
+
|
|
58
|
+
## [3.2.0]
|
|
59
|
+
### Adds
|
|
2
60
|
|
|
3
61
|
Makes scrapers configurable by allowing to set the scraping strategy:
|
|
4
62
|
|
|
@@ -11,7 +69,8 @@ end
|
|
|
11
69
|
`opengraph` use the [Open Graph Protocol](http://ogp.me/).
|
|
12
70
|
`default` use a homemade algorithm
|
|
13
71
|
|
|
14
|
-
|
|
72
|
+
## [3.1.2]
|
|
73
|
+
### Adds
|
|
15
74
|
|
|
16
75
|
Allows to customize ideal description length
|
|
17
76
|
|
|
@@ -33,14 +92,22 @@ end
|
|
|
33
92
|
Will default to `120` characters. More information about how the gem manage to find the best description can be found at
|
|
34
93
|
http://www.codeids.com/2015/06/27/how-to-find-best-description-of-a-website-using-linkthumbnailer/
|
|
35
94
|
|
|
36
|
-
|
|
95
|
+
## [3.1.1]
|
|
96
|
+
### Fixes
|
|
37
97
|
|
|
38
|
-
- Upgrade `video_info` gem
|
|
39
98
|
- Fixes https://github.com/gottfrois/link_thumbnailer/issues/69
|
|
40
99
|
|
|
41
|
-
|
|
100
|
+
### Changes
|
|
101
|
+
|
|
102
|
+
- Upgrade `video_info` gem
|
|
103
|
+
|
|
104
|
+
## [3.1.0]
|
|
105
|
+
### Fixes
|
|
42
106
|
|
|
43
107
|
- Fix an issue when image sizes could not be retrieved.
|
|
108
|
+
|
|
109
|
+
### Adds
|
|
110
|
+
|
|
44
111
|
- Grapers now accepts an optional parameter to customize the weigth of the grader in the probablity computation.
|
|
45
112
|
|
|
46
113
|
```ruby
|
|
@@ -51,64 +118,83 @@ Will give a 3 times more weigth to the `Position` grader compare to other grader
|
|
|
51
118
|
By default all graders have a weigth of `1` except the above position grader since position should play a bigger role in
|
|
52
119
|
order to find good description candidates.
|
|
53
120
|
|
|
54
|
-
|
|
121
|
+
## [3.0.3]
|
|
122
|
+
### Fixes
|
|
55
123
|
|
|
56
124
|
- Fix an issue when dealing with absolute urls. https://github.com/gottfrois/link_thumbnailer/issues/68
|
|
57
125
|
- Fix an issue with http redirection and location header not beeing present. https://github.com/gottfrois/link_thumbnailer/issues/70
|
|
58
126
|
- Rescue and raise custom LinkThumbnailer exceptions. https://github.com/gottfrois/link_thumbnailer/issues/71
|
|
59
127
|
|
|
60
|
-
|
|
128
|
+
## [3.0.2]
|
|
129
|
+
### Fixes
|
|
61
130
|
|
|
62
131
|
- Replace FastImage gem dependency by [ImageInfo](https://github.com/gottfrois/image_info) to improve performances when
|
|
63
132
|
fetching multiple images size information. Benchmark shows an order of magnitude improvement response time.
|
|
64
133
|
- Fixes [#57](https://github.com/gottfrois/link_thumbnailer/issues/57)
|
|
65
134
|
|
|
66
|
-
|
|
135
|
+
## [3.0.1]
|
|
136
|
+
### Fixes
|
|
67
137
|
|
|
68
138
|
- Remove useless dependencies
|
|
69
139
|
|
|
70
|
-
|
|
140
|
+
## [3.0.0]
|
|
141
|
+
### Changes
|
|
71
142
|
|
|
72
143
|
- Improved description sorting.
|
|
73
144
|
- Refactored how graders work. More information [here](https://github.com/gottfrois/link_thumbnailer/wiki/How-to-build-your-own-Grader%3F)
|
|
74
145
|
|
|
75
|
-
|
|
146
|
+
## [2.6.1]
|
|
147
|
+
### Fixes
|
|
76
148
|
|
|
77
149
|
- Fix remove useless dependency
|
|
78
150
|
|
|
79
|
-
|
|
151
|
+
## [2.6.0]
|
|
152
|
+
### Adds
|
|
80
153
|
|
|
81
154
|
- Introduce new `raise_on_invalid_format` option (false by default) to raise `LinkThumbnailer::FormatNotSupported` if http `Content-Type` is invalid. Fixes #61 and #64.
|
|
82
155
|
|
|
83
|
-
|
|
156
|
+
## [2.5.2]
|
|
157
|
+
### Fixes
|
|
84
158
|
|
|
85
159
|
- Fix OpenURI::HTTPError exception raised when video_info gem is not able to parse video metadata. Fixes #60.
|
|
86
160
|
|
|
87
|
-
|
|
161
|
+
## [2.5.1]
|
|
162
|
+
### Adds
|
|
88
163
|
|
|
89
164
|
- Implement `Set-Cookie` header between http redirections to set cookies when site requires it. Fixes #55.
|
|
90
165
|
|
|
91
|
-
|
|
166
|
+
## [2.5.0]
|
|
167
|
+
### Adds
|
|
92
168
|
|
|
93
169
|
- Handles seamlessly `og:image` and `og:image:url`
|
|
94
170
|
- Handles seamlessly `og:video` and `og:video:url`
|
|
95
171
|
- Handles `og:video:width` and `og:video:height` for one video only (please create a ticket if you want support for multiple videos/images width & height)
|
|
172
|
+
|
|
173
|
+
### Fixes
|
|
174
|
+
|
|
96
175
|
- Fix calling `as_json` on `website` to return `as_json` representation of videos and images, not just their urls
|
|
97
|
-
- Gem updates and fix rspec deprecation warnings
|
|
98
176
|
|
|
99
|
-
|
|
177
|
+
### Changes
|
|
178
|
+
|
|
179
|
+
- Gem updates
|
|
180
|
+
|
|
181
|
+
## [2.4.0]
|
|
182
|
+
### Adds
|
|
100
183
|
|
|
101
184
|
- Handle connection through proxy automatically using the `ENV['HTTP_PROXY']` variable thanks to [taganaka](https://github.com/taganaka).
|
|
102
185
|
|
|
103
|
-
|
|
186
|
+
## [2.3.2]
|
|
187
|
+
### Fixes
|
|
104
188
|
|
|
105
189
|
- Fix an issue with vimeo opengraph urls. Fixes [#46](https://github.com/gottfrois/link_thumbnailer/pull/46)
|
|
106
190
|
|
|
107
|
-
|
|
191
|
+
## [2.3.1]
|
|
192
|
+
### Fixes
|
|
108
193
|
|
|
109
194
|
- Fix an issue with the link density grader caused by links with image instead of text. Fixes [#45](https://github.com/gottfrois/link_thumbnailer/issues/45)
|
|
110
195
|
|
|
111
|
-
|
|
196
|
+
## [2.3.0]
|
|
197
|
+
### Adds
|
|
112
198
|
|
|
113
199
|
- Add requested favicon scraper [#40](https://github.com/gottfrois/link_thumbnailer/issues/40)
|
|
114
200
|
|
|
@@ -126,19 +212,23 @@ o.favicon
|
|
|
126
212
|
=> "https://github.com/fluidicon.png"
|
|
127
213
|
```
|
|
128
214
|
|
|
129
|
-
|
|
215
|
+
## [2.2.3]
|
|
216
|
+
### Fixes
|
|
130
217
|
|
|
131
218
|
- Fixes [#41](https://github.com/gottfrois/link_thumbnailer/issues/41)
|
|
132
219
|
|
|
133
|
-
|
|
220
|
+
## [2.2.2]
|
|
221
|
+
### Fixes
|
|
134
222
|
|
|
135
223
|
- Fixes [#41](https://github.com/gottfrois/link_thumbnailer/issues/41)
|
|
136
224
|
|
|
137
|
-
|
|
225
|
+
## [2.2.1]
|
|
226
|
+
### Fixes
|
|
138
227
|
|
|
139
|
-
-
|
|
228
|
+
- Fixes issue when computing link density ratio
|
|
140
229
|
|
|
141
|
-
|
|
230
|
+
## [2.2.0]
|
|
231
|
+
### Adds
|
|
142
232
|
|
|
143
233
|
- Add support for `og:video`
|
|
144
234
|
- Add support for multiple `og:video` as well
|
|
@@ -164,30 +254,35 @@ Ex:
|
|
|
164
254
|
config.attributes = [:title, :images, :description, :videos]
|
|
165
255
|
```
|
|
166
256
|
|
|
167
|
-
|
|
257
|
+
## [2.1.0]
|
|
258
|
+
### Adds
|
|
168
259
|
|
|
169
260
|
- Increased `og:image` scraping performance by parsing `og:image:width` and `og:image:height` attribute if specified
|
|
170
261
|
- Introduced `image_stats` option to allow disabling image size and type parsing causing performance issues.
|
|
171
262
|
|
|
172
263
|
When disabled, size will be `[0, 0]` and type will be `nil`
|
|
173
264
|
|
|
174
|
-
|
|
265
|
+
## [2.0.4]
|
|
266
|
+
### Fixes
|
|
175
267
|
|
|
176
268
|
- Fixes [#39](https://github.com/gottfrois/link_thumbnailer/issues/39)
|
|
177
269
|
|
|
178
|
-
|
|
270
|
+
## [2.0.3]
|
|
271
|
+
### Fixes
|
|
179
272
|
|
|
180
273
|
- Fixes [#37](https://github.com/gottfrois/link_thumbnailer/issues/37)
|
|
181
274
|
|
|
182
|
-
|
|
275
|
+
## [2.0.2]
|
|
276
|
+
### Fixes
|
|
183
277
|
|
|
184
|
-
-
|
|
278
|
+
- Fixes couple of issues with `URI` class namespace
|
|
185
279
|
|
|
186
|
-
|
|
280
|
+
## [2.0.1]
|
|
187
281
|
|
|
188
|
-
-
|
|
282
|
+
- Fixes issue with image parser (fastimage) when given an URI instance instead of a string
|
|
189
283
|
|
|
190
|
-
|
|
284
|
+
## [2.0.0]
|
|
285
|
+
### Changes
|
|
191
286
|
|
|
192
287
|
- Fully refactored LinkThumbnailer
|
|
193
288
|
- Introduced [Graders](https://github.com/gottfrois/link_thumbnailer/wiki/How-to-build-your-own-Grader%3F)
|
|
@@ -203,60 +298,85 @@ When disabled, size will be `[0, 0]` and type will be `nil`
|
|
|
203
298
|
To update from `1.x.x` to `2.x.x` you need to run `rails g link_thumbnailer:install` to get the new configuration file.
|
|
204
299
|
If you used the `PreviewsController` feature, you need to build it yourself since it is not supported anymore.
|
|
205
300
|
|
|
206
|
-
|
|
301
|
+
## [1.1.2]
|
|
302
|
+
### Fixes
|
|
207
303
|
|
|
208
|
-
-
|
|
304
|
+
- Fixes issue with FastImage URLs [https://github.com/gottfrois/link_thumbnailer/pull/31](https://github.com/gottfrois/link_thumbnailer/pull/31)
|
|
209
305
|
|
|
210
|
-
|
|
306
|
+
## [1.1.1]
|
|
307
|
+
### Fixes
|
|
211
308
|
|
|
212
|
-
-
|
|
309
|
+
- Fixes route helper not working under rails 4.
|
|
213
310
|
|
|
214
|
-
|
|
311
|
+
## [1.1.0]
|
|
312
|
+
### Changes
|
|
215
313
|
|
|
216
314
|
- Replace RMagick by [FastImage](https://github.com/sdsykes/fastimage)
|
|
217
315
|
- Rename `rmagick_attributes` config into `image_attributes`
|
|
218
316
|
|
|
219
|
-
|
|
317
|
+
## [1.0.9]
|
|
318
|
+
### Fixes
|
|
319
|
+
|
|
320
|
+
- Fixes issue when Location header used a relative path instead of an absolute path
|
|
321
|
+
|
|
322
|
+
### Changes
|
|
220
323
|
|
|
221
|
-
- Fix issue when Location header used a relative path instead of an absolute path
|
|
222
324
|
- Update gemfile to be more flexible when using Hashie gem
|
|
223
325
|
|
|
224
|
-
|
|
326
|
+
## [1.0.8]
|
|
327
|
+
# Adds
|
|
225
328
|
|
|
226
329
|
- Thanks to [juriglx](https://github.com/juriglx), support for canonical urls
|
|
330
|
+
|
|
331
|
+
### Fixes
|
|
332
|
+
|
|
227
333
|
- Bug fixes
|
|
228
334
|
|
|
229
|
-
|
|
335
|
+
## [1.0.7]
|
|
336
|
+
### Fixes
|
|
230
337
|
|
|
231
|
-
-
|
|
338
|
+
- Fixes an issue with the preview controller
|
|
232
339
|
|
|
233
|
-
|
|
340
|
+
## [1.0.6]
|
|
341
|
+
### Fixes
|
|
234
342
|
|
|
235
|
-
-
|
|
343
|
+
- Fixes an issue when setting `strict` option. Always returning OG representation.
|
|
236
344
|
|
|
237
|
-
|
|
345
|
+
## [1.0.5]
|
|
346
|
+
### Adds
|
|
238
347
|
|
|
239
348
|
- Thanks to [phlegx](https://github.com/phlegx), support for timeout http connection through configurations.
|
|
240
349
|
|
|
241
|
-
|
|
350
|
+
## [1.0.4]
|
|
351
|
+
### Fixes
|
|
352
|
+
|
|
353
|
+
- Fixes issue #7: nil img was returned when exception is raised. Now skiping nil images in results.
|
|
354
|
+
|
|
355
|
+
### Adds
|
|
242
356
|
|
|
243
|
-
- Fix issue #7: nil img was returned when exception is raised. Now skiping nil images in results.
|
|
244
357
|
- Thanks to [phlegx](https://github.com/phlegx), support for SSL and User Agent customization through configurations.
|
|
245
358
|
|
|
246
|
-
|
|
359
|
+
## [1.0.3]
|
|
360
|
+
### Fixes
|
|
247
361
|
|
|
248
|
-
-
|
|
362
|
+
- Fixes issue #5: Url was incorect in case of HTTP Redirections.
|
|
249
363
|
|
|
250
|
-
|
|
364
|
+
## [1.0.2]
|
|
365
|
+
### Fixes
|
|
251
366
|
|
|
252
|
-
- Feature: User can now set options at runtime by passing valid options to ```generate``` method
|
|
253
367
|
- Bug fix when doing ```rails g link_thumbnailer:install``` by explicitly specifying the scope of Rails
|
|
254
368
|
|
|
255
|
-
|
|
369
|
+
### Adds
|
|
370
|
+
|
|
371
|
+
- User can now set options at runtime by passing valid options to ```generate``` method
|
|
372
|
+
|
|
373
|
+
## [1.0.1]
|
|
374
|
+
### Fixes
|
|
256
375
|
|
|
257
376
|
- Refactor LinkThumbnailer#generate method to have a cleaner code
|
|
258
377
|
|
|
259
|
-
|
|
378
|
+
## [1.0.0]
|
|
379
|
+
### Changes
|
|
260
380
|
|
|
261
381
|
- Update readme
|
|
262
382
|
- Add PreviewController for easy integration with user's app
|
|
@@ -264,46 +384,103 @@ If you used the `PreviewsController` feature, you need to build it yourself sinc
|
|
|
264
384
|
- Refactor some code
|
|
265
385
|
- Change 'to_a' method to 'to_hash' in object model
|
|
266
386
|
|
|
267
|
-
|
|
387
|
+
## [0.0.6]
|
|
388
|
+
### Adds
|
|
268
389
|
|
|
269
390
|
- Update readme
|
|
270
391
|
- Add `to_a` to WebImage class
|
|
271
|
-
- Refactor `to_json` for WebImage class
|
|
272
392
|
- Add specs corresponding
|
|
273
393
|
|
|
274
|
-
|
|
394
|
+
### Fixes
|
|
395
|
+
|
|
396
|
+
- Refactor `to_json` for WebImage class
|
|
397
|
+
|
|
398
|
+
## [0.0.5]
|
|
399
|
+
### Fixes
|
|
275
400
|
|
|
276
401
|
- Bug fix
|
|
277
402
|
- Remove `require 'rails'` from spec_helper.rb
|
|
278
403
|
- Remove rails dependences (blank? method) in code
|
|
279
404
|
- Spec fix
|
|
280
405
|
|
|
281
|
-
|
|
406
|
+
## [0.0.4]
|
|
407
|
+
### Adds
|
|
282
408
|
|
|
283
409
|
- Add specs for almost all classes
|
|
284
410
|
- Add a method `to_json` for WebImage class to be able to get a usable array of images' attributes
|
|
285
411
|
|
|
286
|
-
|
|
412
|
+
## [0.0.3]
|
|
413
|
+
### Adds
|
|
287
414
|
|
|
288
415
|
- Add specs for LinkThumbnailer class
|
|
416
|
+
|
|
417
|
+
### Fixes
|
|
418
|
+
|
|
289
419
|
- Refactor config system, now using dedicated configuration class
|
|
290
420
|
|
|
291
|
-
|
|
421
|
+
## [0.0.2]
|
|
422
|
+
### Adds
|
|
292
423
|
|
|
293
424
|
- Added Rspec
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
425
|
+
|
|
426
|
+
### Fixes
|
|
427
|
+
|
|
428
|
+
- Now checking if attribute is blank for LinkThumbnailer::Object.valid? method
|
|
429
|
+
|
|
430
|
+
## [0.0.1]
|
|
431
|
+
### Adds
|
|
432
|
+
|
|
433
|
+
- First release 🎆
|
|
434
|
+
|
|
435
|
+
[Unreleased]: https://github.com/gottfrois/link_thumbnailer/compare/v3.4.0...HEAD
|
|
436
|
+
[3.4.0]: https://github.com/gottfrois/link_thumbnailer/compare/v3.3.2...v3.4.0
|
|
437
|
+
[3.3.2]: https://github.com/gottfrois/link_thumbnailer/compare/v3.3.1...v3.3.2
|
|
438
|
+
[3.3.1]: https://github.com/gottfrois/link_thumbnailer/compare/v3.3.0...v3.3.1
|
|
439
|
+
[3.3.0]: https://github.com/gottfrois/link_thumbnailer/compare/v3.2.1...v3.3.0
|
|
440
|
+
[3.2.1]: https://github.com/gottfrois/link_thumbnailer/compare/v3.2.0...v3.2.1
|
|
441
|
+
[3.2.0]: https://github.com/gottfrois/link_thumbnailer/compare/v3.1.2...v3.2.0
|
|
442
|
+
[3.1.2]: https://github.com/gottfrois/link_thumbnailer/compare/v3.1.1...v3.1.2
|
|
443
|
+
[3.1.1]: https://github.com/gottfrois/link_thumbnailer/compare/v3.1.0...v3.1.1
|
|
444
|
+
[3.1.0]: https://github.com/gottfrois/link_thumbnailer/compare/v3.0.3...v3.1.0
|
|
445
|
+
[3.0.3]: https://github.com/gottfrois/link_thumbnailer/compare/v3.0.2...v3.0.3
|
|
446
|
+
[3.0.2]: https://github.com/gottfrois/link_thumbnailer/compare/v3.0.1...v3.0.2
|
|
447
|
+
[3.0.1]: https://github.com/gottfrois/link_thumbnailer/compare/v3.0.0...v3.0.1
|
|
448
|
+
[3.0.0]: https://github.com/gottfrois/link_thumbnailer/compare/v2.6.1...v3.0.0
|
|
449
|
+
[2.6.1]: https://github.com/gottfrois/link_thumbnailer/compare/v2.6.0...v2.6.1
|
|
450
|
+
[2.6.0]: https://github.com/gottfrois/link_thumbnailer/compare/v2.5.2...v2.6.0
|
|
451
|
+
[2.5.2]: https://github.com/gottfrois/link_thumbnailer/compare/v2.5.1...v2.5.2
|
|
452
|
+
[2.5.1]: https://github.com/gottfrois/link_thumbnailer/compare/v2.5.0...v2.5.1
|
|
453
|
+
[2.5.0]: https://github.com/gottfrois/link_thumbnailer/compare/v2.4.0...v2.5.0
|
|
454
|
+
[2.4.0]: https://github.com/gottfrois/link_thumbnailer/compare/v2.3.2...v2.4.0
|
|
455
|
+
[2.3.2]: https://github.com/gottfrois/link_thumbnailer/compare/v2.3.1...v2.3.2
|
|
456
|
+
[2.3.1]: https://github.com/gottfrois/link_thumbnailer/compare/v2.3.0...v2.3.1
|
|
457
|
+
[2.3.0]: https://github.com/gottfrois/link_thumbnailer/compare/v2.2.3...v2.3.0
|
|
458
|
+
[2.2.3]: https://github.com/gottfrois/link_thumbnailer/compare/v2.2.2...v2.2.3
|
|
459
|
+
[2.2.2]: https://github.com/gottfrois/link_thumbnailer/compare/v2.2.1...v2.2.2
|
|
460
|
+
[2.2.1]: https://github.com/gottfrois/link_thumbnailer/compare/v2.2.0...v2.2.1
|
|
461
|
+
[2.2.0]: https://github.com/gottfrois/link_thumbnailer/compare/v2.1.0...v2.2.0
|
|
462
|
+
[2.1.0]: https://github.com/gottfrois/link_thumbnailer/compare/v2.0.4...v2.1.0
|
|
463
|
+
[2.0.4]: https://github.com/gottfrois/link_thumbnailer/compare/v2.0.3...v2.0.4
|
|
464
|
+
[2.0.3]: https://github.com/gottfrois/link_thumbnailer/compare/v2.0.2...v2.0.3
|
|
465
|
+
[2.0.2]: https://github.com/gottfrois/link_thumbnailer/compare/v2.0.1...v2.0.2
|
|
466
|
+
[2.0.1]: https://github.com/gottfrois/link_thumbnailer/compare/v2.0.0...v2.0.1
|
|
467
|
+
[2.0.0]: https://github.com/gottfrois/link_thumbnailer/compare/v1.1.2...v2.0.0
|
|
468
|
+
[1.1.2]: https://github.com/gottfrois/link_thumbnailer/compare/v1.1.1...v1.1.2
|
|
469
|
+
[1.1.1]: https://github.com/gottfrois/link_thumbnailer/compare/v1.1.0...v1.1.1
|
|
470
|
+
[1.1.0]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.9...v1.1.0
|
|
471
|
+
[1.0.9]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.8...v1.0.9
|
|
472
|
+
[1.0.8]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.7...v1.0.8
|
|
473
|
+
[1.0.7]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.6...v1.0.7
|
|
474
|
+
[1.0.6]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.5...v1.0.6
|
|
475
|
+
[1.0.5]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.4...v1.0.5
|
|
476
|
+
[1.0.4]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.3...v1.0.4
|
|
477
|
+
[1.0.3]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.2...v1.0.3
|
|
478
|
+
[1.0.2]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.1...v1.0.2
|
|
479
|
+
[1.0.1]: https://github.com/gottfrois/link_thumbnailer/compare/v1.0.0...v1.0.1
|
|
480
|
+
[1.0.0]: https://github.com/gottfrois/link_thumbnailer/compare/v0.0.6...v1.0.0
|
|
481
|
+
[0.0.6]: https://github.com/gottfrois/link_thumbnailer/compare/v0.0.5...v0.0.6
|
|
482
|
+
[0.0.5]: https://github.com/gottfrois/link_thumbnailer/compare/v0.0.4...v0.0.5
|
|
483
|
+
[0.0.4]: https://github.com/gottfrois/link_thumbnailer/compare/v0.0.3...v0.0.4
|
|
484
|
+
[0.0.3]: https://github.com/gottfrois/link_thumbnailer/compare/v0.0.2...v0.0.3
|
|
485
|
+
[0.0.2]: https://github.com/gottfrois/link_thumbnailer/compare/v0.0.1...v0.0.2
|
|
486
|
+
[0.0.1]: https://github.com/gottfrois/link_thumbnailer/releases/tag/v0.0.1
|