thingfish-processor-image 0.1.1 → 0.2.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
2
  SHA1:
3
- metadata.gz: 71abb68f2697e12cca499539898150e567ba6381
4
- data.tar.gz: 250cff10b3af2aa083985b4636cda38c12ec179e
3
+ metadata.gz: 1bb1025a0265161b538335fa929884f3d1fdf786
4
+ data.tar.gz: 23a7faf21fdac87f3a1c12b5b42c8a25dc8e565d
5
5
  SHA512:
6
- metadata.gz: 1921b02379a6c6d6ce639ff887ee938e8250ed049ba27348fcae7846cf326dfda057455480432801f0c0d5291b0f79131a23b23e1d03edd0261ad803897cd1ae
7
- data.tar.gz: 0c01adf4f342fc581f07a3bceb11207ffcaba83ec6da70b5b6acefc499248295a3cf91d8727db303143afc21e94e1dd3dda66645903d04696a0df16c236bf2ee
6
+ metadata.gz: 4cea9d8efbab2f1c9f6f566baccbba9dd0e189572feaf4c796ea770b4a095873bd1e80bd1cce9e022053b951b4dcde27511958a22545df6f2ad60a6d62abf4c7
7
+ data.tar.gz: eae99ece63cbfd0526fabd0d2637ade708799cc08cf6d2a4de97f44df75721958161d66726a9f6454f6aab2ea4fb34b51a7c94c151c0c379dc94fc03b9c3ed90
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,10 +1,44 @@
1
+ 2017-01-16 Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ * History.md, LICENSE.txt, README.md,
4
+ lib/thingfish/processor/image.rb:
5
+ Update for Configurability 3.x.
6
+ [36754e6ded9d] [tip]
7
+
8
+ 2016-11-16 Michael Granger <ged@FaerieMUD.org>
9
+
10
+ * .hgtags:
11
+ Added tag v0.1.1 for changeset 55ddff2950ba
12
+ [b55753288dd8]
13
+
14
+ * .hgsigs:
15
+ Added signature for changeset c3964930bd4f
16
+ [55ddff2950ba] [v0.1.1]
17
+
18
+ * History.md, Rakefile, lib/thingfish/processor/image.rb, thingfish-
19
+ processor-image.gemspec:
20
+ Allow public release, update history, bump patch version.
21
+ [c3964930bd4f]
22
+
23
+ * .hgtags:
24
+ Added tag v0.1.0 for changeset a4094d45e915
25
+ [1a3ef2bccc1e]
26
+
27
+ * .hgsigs:
28
+ Added signature for changeset 19ca547fde2d
29
+ [a4094d45e915] [v0.1.0]
30
+
31
+ * History.md, thingfish-processor-image.gemspec:
32
+ Update history for initial release.
33
+ [19ca547fde2d]
34
+
1
35
  2016-11-16 Mahlon E. Smith <mahlon@martini.nu>
2
36
 
3
37
  * lib/thingfish/processor/image.rb,
4
38
  spec/thingfish/processor/image_spec.rb:
5
39
  Add ImageMagick parsing catch. Only load the first
6
40
  frame/page/whatever into memory to generate a thumbnail.
7
- [663fd528faed] [tip]
41
+ [663fd528faed]
8
42
 
9
43
  2016-11-14 Michael Granger <ged@FaerieMUD.org>
10
44
 
@@ -21,7 +55,7 @@
21
55
 
22
56
  * thingfish-processor-image.gemspec:
23
57
  Add the gemspec
24
- [a43952fd8558] [github/master]
58
+ [a43952fd8558]
25
59
 
26
60
  * .hgignore, Manifest.txt, Rakefile:
27
61
  Update manifest, specify minimum version of Mongrel2
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.2.0 [2016-11-16] Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ Update for Configurability 3.x.
4
+
5
+
1
6
  ## v0.1.1 [2016-11-16] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  Build system fix only.
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016 Michael Granger
1
+ Copyright (c) 2017 Michael Granger
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -49,8 +49,8 @@ Here's an example configuration file that enables this plugin.
49
49
  processors:
50
50
  - image
51
51
 
52
- images:
53
- thumbnail_dimensions: 150x150
52
+ image_processor:
53
+ thumbnail_dimensions: 150x150
54
54
 
55
55
 
56
56
 
@@ -70,7 +70,7 @@ and generate the API documentation.
70
70
 
71
71
  ## License
72
72
 
73
- Copyright (c) 2016, Michael Granger
73
+ Copyright (c) 2016-2017, Michael Granger
74
74
  All rights reserved.
75
75
 
76
76
  Redistribution and use in source and binary forms, with or without
@@ -18,23 +18,24 @@ class Thingfish::Processor::Image < Thingfish::Processor
18
18
 
19
19
 
20
20
  # Package version
21
- VERSION = '0.1.1'
21
+ VERSION = '0.2.0'
22
22
 
23
23
  # Version control revision
24
- REVISION = %q$Revision: c3964930bd4f $
24
+ REVISION = %q$Revision: 36754e6ded9d $
25
25
 
26
26
 
27
27
  # Loggability API -- log to the :angelfish logger
28
28
  log_to :thingfish
29
29
 
30
30
  # Configurability API -- use the 'image_processor' section of the config
31
- config_key :image_processor
31
+ configurability( 'thingfish.image_processor' ) do
32
32
 
33
+ # The (maximum) dimensions of generated thumbnails
34
+ setting :thumbnail_dimensions, default: [ '100', '100' ] do |val|
35
+ val.split( 'x', 2 ).map( &:to_i )
36
+ end
37
+ end
33
38
 
34
- # The default dimensions of thumbnails
35
- CONFIG_DEFAULTS = {
36
- thumbnail_dimensions: '100x100',
37
- }
38
39
 
39
40
  # An array of mediatypes to ignore, even though ImageMagick claims it groks them
40
41
  IGNORED_MIMETYPES = %w[
@@ -45,22 +46,6 @@ class Thingfish::Processor::Image < Thingfish::Processor
45
46
  ]
46
47
 
47
48
 
48
- ##
49
- # The (maximum) dimensions of generated thumbnails
50
- singleton_attr_accessor :thumbnail_dimensions
51
- @thumbnail_dimensions = [ 100, 100 ]
52
-
53
-
54
- ### Configurability API -- configure the processor with the :images section of
55
- ### the config.
56
- def self::configure( config=nil )
57
- config = self.defaults.merge( config || {} )
58
-
59
- self.thumbnail_dimensions = config[:thumbnail_dimensions].split('x', 2).map( &:to_i )
60
- end
61
-
62
-
63
-
64
49
  #################################################################
65
50
  ### I N S T A N C E M E T H O D S
66
51
  #################################################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thingfish-processor-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -10,32 +10,27 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
14
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
15
- HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
16
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
17
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
18
- 83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
19
- ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
20
- TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xYP26a
21
- 4MAX2qqKX/FKXqmFO+AGsbwYTEds1mksBF3fGsFgsQWxftG8GfZQ9+Cyu2+l1eOw
22
- cZ+lPcg834G9DrqW2zhqUoLr1MTly4pqxYGb7XoDhoR7dd1kFE2a067+DzWC/ADt
23
- +QkcqWUm5oh1fN0eqr7NsZlVJDulFgdiiYPQiIN7UNsii4Wc9aZqBoGcYfBeQNPZ
24
- soo/6za/bWajOKUmDhpqvaiRv9EDpVLzuj53uDoukMMwxCMfgb04+ckQ0t2G7wqc
25
- /D+K9JW9DDs3Yjgv9k4h7YMhW5gftosd+NkNC/+Y2CkCAwEAAaN1MHMwCQ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KAoIBAQDpXGN0YbMVpYv4EoiCxpQw
18
+ sxKdyhlkvpvENUkpEhbpnEuMKXgUfRHO4T/vBZf0h8eYgwnrHCRhAeIqesFKfoj9
19
+ mpEJk5JUuADOAz18aT+v24UqAtJdiwBJLuqhslSNB6CFXZv3OOMny9bjoJegz0hI
20
+ Fht9ppCuNmxJNd+L3zAX8lD01RUWNRC+8L5QLCjViJtjFDDCFfh9NCirs+XnTCzo
21
+ AJgFbsZIzFJtSiXUtFgscKr4Ik8ruhRbPbYbmx9rf6W74aTMPxggq/d3gj0Eh32y
22
+ WsXsQ5giVnmkbsRkBNu3QyZ8Xr5+7mvy5AWyqXKOrcW7lnYaob6Z9x/MGXGNeD6j
23
+ AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRY8ea6
24
+ +6kAaW7ukKph2/4MTAD8/TAcBgNVHREEFTATgRFtYWhsb25AbWFydGluaS5udTAc
25
+ BgNVHRIEFTATgRFtYWhsb25AbWFydGluaS5udTANBgkqhkiG9w0BAQUFAAOCAQEA
26
+ MxBPdbmfh3dJN51visg0QilqtyPbqxyd8YVm9wbkcmi1D2Sv9deppFvZ+pXyR+eq
27
+ qy/efw4F+3DAPw+9QNlPJG8DHQ8HrYPrf7wv5DPBpyKLD1atMGnoDb5gijIx5IMR
28
+ MxiffPYQsT7Noimqaz8KWqP1keDY9aqVKe3iDXUXKBV27sl9GhOt5jJ3rVW9ihok
29
+ KiEoBnrgQcZIEAOwfXbWT4IaIcOCgD+JloEesuHL72/3zP/vOcqZf4SOcne4+qti
30
+ DHE5pl144V24tqxZb65WTup/ov22SCXmpU8/wTeZVL3rePGRfwTJNpm+6iYszl7A
31
+ SixmX0X3SOeYg4FRkblUIA==
37
32
  -----END CERTIFICATE-----
38
- date: 2016-11-16 00:00:00.000000000 Z
33
+ date: 2017-01-16 00:00:00.000000000 Z
39
34
  dependencies:
40
35
  - !ruby/object:Gem::Dependency
41
36
  name: mongrel2
@@ -241,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
236
  version: '0'
242
237
  requirements: []
243
238
  rubyforge_project:
244
- rubygems_version: 2.6.8
239
+ rubygems_version: 2.5.1
245
240
  signing_key:
246
241
  specification_version: 4
247
242
  summary: This is a basic image-processor plugin for the Thingfish digital asset manager
metadata.gz.sig CHANGED
Binary file