ika 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 +4 -4
- data/lib/carrierwave/base64uploader.rb +15 -10
- data/lib/ika/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc3a9857afd1cd1f1b3e18273b2d698df2c4e19f
|
4
|
+
data.tar.gz: 4153e44d62da2100bf8cef338868c3b229dc17f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eac737c70afa348306879f02029ee5592a3dcc8e58b74348cb75095423c652b738b1f2058111fd689b551f98ce39a176aea5ad1f2faabf436e2c59d35a7204d
|
7
|
+
data.tar.gz: 383ee4dfc605d8093b9cd69d2a6b0ad5673c6c78957396e76eac356c17a505f49b5058d8f8078687574d3d642b45d10d3834079b4cc04bba8a10ee6fd701fd62
|
@@ -16,16 +16,21 @@ module CarrierWave
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def split_base64(uri_str)
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
19
|
+
# uri_str.match(%r{data:(.*?);(.*?),(.*)$})
|
20
|
+
a = uri_str.index(/^data:/)
|
21
|
+
return nil unless a
|
22
|
+
b = uri_str.index(/;/, a + 1)
|
23
|
+
return nil unless b
|
24
|
+
c = uri_str.index(/,/, b + 1)
|
25
|
+
return nil unless c
|
26
|
+
|
27
|
+
type = uri_str[a + 5, b - a - 5]
|
28
|
+
{
|
29
|
+
type: type,
|
30
|
+
encoder: uri_str[b + 1, c - b - 1],
|
31
|
+
data: uri_str[c + 1, uri_str.length - c - 1],
|
32
|
+
extension: type.split('/')[1]
|
33
|
+
}
|
29
34
|
end
|
30
35
|
end
|
31
36
|
end
|
data/lib/ika/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ika
|
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
|
- Makoto NAKAYA
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-04-
|
12
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|