enjoy_cms 0.3.1 → 0.3.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1d161c901fcad77111f3812b158201ac4a9f1e1
4
- data.tar.gz: 3c94d129878ee36a5c0ab63d2bfe96b4bef846d0
3
+ metadata.gz: c3f29137b7ac35d8921eb0200477981029256e54
4
+ data.tar.gz: 020deef61cffbbb240e3687e987e6271f8a0f5b2
5
5
  SHA512:
6
- metadata.gz: b7269789b50e12233a1958fe60e84f9b199e75db62ade20ba653672be54583484cce0c098c4cb11cd21f260da642424d61722a335d1eadd758072944f73f85b6
7
- data.tar.gz: 01e548a6a35a178cac39af26a8d6c8e07d51c639cc07c7549f5311fb78de2d34b8d6afdd49f667f60ab18fece0e61603f9c16b3a86408d35dae55cf092458187
6
+ metadata.gz: 6398bd0676dd142f1bba1f54c8de0768cd5b44bbd7791f59b94963f42433bfa9507c1fb3e83c8776cac382342ca20a606d0a7703f7a9e56c3b6d6ca607a1d428
7
+ data.tar.gz: 3461aa661d5bb8ca3d116f8e02fe1df1236559c1cc499051f2d2bc11e8b9ace2b9026301e4d4daae5b10072430f8ddd6609162dc51e0cb6b24b0477bc8f67695
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enjoy_cms (0.3.1)
4
+ enjoy_cms (0.3.1.1)
5
5
  ack_rails_admin_jcrop
6
6
  addressable
7
7
  ckeditor
@@ -0,0 +1,79 @@
1
+ # Set global optimisation options for all Paperclip models
2
+
3
+ # By default, image_optim enables all the compression binaries it supports and
4
+ # requires them to be present on your system, failing if one is actually missing.
5
+
6
+ # We disable everything by default and ignore missing ones with `skip_missing_workers`.
7
+ # This way, should a new version add support for a library we do not yet disable here,
8
+ # things won't suddenly break.
9
+
10
+ Paperclip::PaperclipOptimizer.default_options = {
11
+ skip_missing_workers: true,
12
+ advpng: true,
13
+ gifsicle: true,
14
+ jhead: true,
15
+ jpegoptim: true,
16
+ jpegrecompress: true,
17
+ jpegtran: true,
18
+ optipng: true,
19
+ pngcrush: true,
20
+ pngout: false,
21
+ pngquant: true,
22
+ svgo: false,
23
+
24
+ nice: 5,
25
+ verbose: true
26
+ }
27
+
28
+ # All available image_optim options. See https://github.com/toy/image_optim for more information
29
+
30
+ # Paperclip::PaperclipOptimizer.default_options = {
31
+ # skip_missing_workers: false, # Skip workers with missing or problematic binaries (defaults to false)
32
+ # nice: 10, # Nice level (defaults to 10)
33
+ # threads: 1, # Number of threads or disable (defaults to number of processors)
34
+ # verbose: false, # Verbose output (defaults to false)
35
+ # pack: nil, # Require image_optim_pack or disable it, by default image_optim_pack will be used if available,
36
+ # # will turn on :skip-missing-workers unless explicitly disabled (defaults to nil)
37
+ # allow_lossy: false, # Allow lossy workers and optimizations (defaults to false)
38
+ # advpng: {
39
+ # leve: 4 # Compression level: 0 - don't compress, 1 - fast, 2 - normal, 3 - extra, 4 - extreme (defaults to 4)
40
+ # },
41
+ # gifsicle: {
42
+ # interlace: true, # Interlace: true - interlace on, false - interlace off, nil - as is in original image
43
+ # # (defaults to running two instances, one with interlace off and one with on)
44
+ # level: 3, # Compression level: 1 - light and fast, 2 - normal, 3 - heavy (slower) (defaults to 3)
45
+ # careful: false # Avoid bugs with some software (defaults to false)
46
+ # },
47
+ # jhead: true, # no options
48
+ # jpegoptim: {
49
+ # strip: :all, # List of extra markers to strip: :comments, :exif, :iptc, :icc or :all (defaults to :all)
50
+ # max_quality: 100 # Maximum image quality factor 0..100 (defaults to 100)
51
+ # },
52
+ # jpegrecompress: {
53
+ # quality: 3 # JPEG quality preset: 0 - low, 1 - medium, 2 - high, 3 - veryhigh (defaults to 3)
54
+ # },
55
+ # jpegtran: {
56
+ # copy_chunks: false, # Copy all chunks (defaults to false)
57
+ # progressive: true, # Create progressive JPEG file (defaults to true)
58
+ # jpegrescan: false # Use jpegtran through jpegrescan, ignore progressive option (defaults to false)
59
+ # },
60
+ # optipng: {
61
+ # level: 6, # Optimization level preset: 0 is least, 7 is best (defaults to 6)
62
+ # interlace: false # Interlace: true - interlace on, false - interlace off, nil - as is in original image (defaults to false)
63
+ # },
64
+ # pngcrush: {
65
+ # chunks: :alla, # List of chunks to remove or :alla - all except tRNS/transparency or
66
+ # # :allb - all except tRNS and gAMA/gamma (defaults to :alla)
67
+ # fix: false, # Fix otherwise fatal conditions such as bad CRCs (defaults to false)
68
+ # brute: false # Brute force try all methods, very time-consuming and generally not worthwhile (defaults to false)
69
+ # },
70
+ # pngout: {
71
+ # copy_chunks: false, # Copy optional chunks (defaults to false)
72
+ # strategy: 0 # Strategy: 0 - xtreme, 1 - intense, 2 - longest Match, 3 - huffman Only, 4 - uncompressed (defaults to 0)
73
+ # },
74
+ # pngquant: {
75
+ # quality: 100..100, # min..max - don't save below min, use less colors below max (both in range 0..100; in yaml - !ruby/range 0..100) (defaults to 100..100)
76
+ # speed: 3 # speed/quality trade-off: 1 - slow, 3 - default, 11 - fast & rough (defaults to 3)
77
+ # },
78
+ # svgo: true # no options
79
+ # }
data/lib/enjoy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Enjoy
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
@@ -544,6 +544,7 @@ files:
544
544
  - app/views/shared/_obj.html.slim
545
545
  - app/views/shared/_og.html.slim
546
546
  - app/views/simple_captcha/_simple_captcha.html.slim
547
+ - config/initializers/paperclip_optimizer.rb
547
548
  - config/initializers/simple_captcha.rb
548
549
  - config/locales/en.enjoy.yml
549
550
  - config/locales/en.enjoy_admin.yml