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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef4c54a70d0f9364680822b7492ef327614002c9
|
4
|
+
data.tar.gz: ab03a5623ff631db1ee05903d315ad177e2f4965
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|