blobsterix_carrierwave 1.0.11 → 1.0.12

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: 9ed1d3d640b57a85c4d0a2e56691a7a598f0583c
4
- data.tar.gz: 11ae08d96b34951f2b273fd6a0f013107f05a03c
3
+ metadata.gz: ef4c54a70d0f9364680822b7492ef327614002c9
4
+ data.tar.gz: ab03a5623ff631db1ee05903d315ad177e2f4965
5
5
  SHA512:
6
- metadata.gz: 59d27f3f6c248cd39d467c82dca54f24631d375cc06adc23d94c7b8c90c6b6450c6455d340379d47fb7411aa8e073cceaf8ac1f8cacac1120a084d1b53b0949a
7
- data.tar.gz: 082352cee72847b21d57fbe198c5dd8ea93c6925daaa221840dc75e3410314e5123b9cdd2eea6aa09cee78928f70197ab19ca02de6f6635e8d21bfd0e55d1d7f
6
+ metadata.gz: 9e0ad642b5a6a4ccbefaa86ec76a726dd872f6f839e831f114ad3b664aa1fee4b76d4c50d4b39c06344a3296d9aa9f5880f993a7e025a1f3f70dc1ca5874cd79
7
+ data.tar.gz: 6426e50954b5bcd7386fac1881e366dff361d758deeda362f3740517134b26e8a72714b151ba58f9ccd2fa99cb910f12e479f34672ea58e1c8502eb2c9057b0a
@@ -19,6 +19,16 @@ module BlobsterixTransforms
19
19
  }
20
20
  end
21
21
 
22
+ def blur(args)
23
+ args=[args].flatten
24
+ radius=args[0]
25
+ sigma=args[1]
26
+ {
27
+ :method => "blur",
28
+ :args => "#{radius}x#{sigma}"
29
+ }
30
+ end
31
+
22
32
  # extent takes 3 params in a hash, :background, :gravity and :size
23
33
  #
24
34
  # size is mandatory, background
@@ -47,22 +57,32 @@ module BlobsterixTransforms
47
57
  :args => "#{angle}"
48
58
  }
49
59
  end
60
+
50
61
  def raw_image(e)
51
62
  {
52
63
  :method => "raw",
53
64
  :args => ""
54
65
  }
55
66
  end
67
+
56
68
  def set_format(format, option = "")
57
69
  {
58
- :method => format,
59
- :args => option
70
+ :method => format.to_s,
71
+ :args => option.to_s
72
+ }
73
+ end
74
+
75
+ def apply(method, option = "")
76
+ {
77
+ :method => method.to_s,
78
+ :args => option.to_s
60
79
  }
61
80
  end
81
+
62
82
  def strip(e)
63
83
  {
64
84
  :method => "strip",
65
85
  :args => ""
66
86
  }
67
87
  end
68
- end
88
+ end
@@ -1,3 +1,3 @@
1
1
  module BlobsterixCarrierwave
2
- VERSION = "1.0.11"
2
+ VERSION = "1.0.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blobsterix_carrierwave
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Sudmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave