locomotivecms_mounter 1.5.4 → 1.5.5
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: 0d0993deeb9662962e86db335f5b178a44481c3f
|
4
|
+
data.tar.gz: 3b1ed4367b988e8b1ae394155fd858a5ce90f5a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc533c661fde90530c868aebcd818fbf735c030a43b254a5343501c6108ed0c17389c0b89ee6c26692ac11632f3bd753592a27d85891e9c659f12f64189e83de
|
7
|
+
data.tar.gz: e52ddf0c11b993b0ca7e4f93cbfc56150caf585a2b10754d74f3edc4d17d36e3410ac97c48ec6534f60cfad4cba557582cfe1fd6aa3fedc232e53037781fa1ac
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
locomotivecms_mounter (1.5.
|
4
|
+
locomotivecms_mounter (1.5.5)
|
5
5
|
RedCloth (~> 4.2.3)
|
6
6
|
activesupport (~> 3.2.21)
|
7
7
|
chronic (~> 0.10.2)
|
@@ -63,7 +63,7 @@ GEM
|
|
63
63
|
httmultiparty (0.3.10)
|
64
64
|
httparty (>= 0.7.3)
|
65
65
|
multipart-post
|
66
|
-
httparty (0.13.
|
66
|
+
httparty (0.13.5)
|
67
67
|
json (~> 1.8)
|
68
68
|
multi_xml (>= 0.5.2)
|
69
69
|
i18n (0.6.11)
|
@@ -80,7 +80,7 @@ GEM
|
|
80
80
|
rack-test (0.6.2)
|
81
81
|
rack (>= 1.0)
|
82
82
|
rake (0.9.2)
|
83
|
-
rb-fsevent (0.9.
|
83
|
+
rb-fsevent (0.9.5)
|
84
84
|
rb-inotify (0.9.5)
|
85
85
|
ffi (>= 0.5.0)
|
86
86
|
ref (1.0.5)
|
@@ -94,7 +94,7 @@ GEM
|
|
94
94
|
rspec-mocks (2.14.6)
|
95
95
|
ruby-debug-wrapper (0.0.1)
|
96
96
|
safe_yaml (1.0.4)
|
97
|
-
sass (3.4.
|
97
|
+
sass (3.4.14)
|
98
98
|
sprockets (2.12.3)
|
99
99
|
hike (~> 1.2)
|
100
100
|
multi_json (~> 1.0)
|
@@ -65,8 +65,20 @@ module Locomotive
|
|
65
65
|
#
|
66
66
|
def sanitize_select_options(options)
|
67
67
|
[].tap do |array|
|
68
|
-
options.
|
69
|
-
|
68
|
+
if options.is_a?(Hash)
|
69
|
+
options.each do |locale, values|
|
70
|
+
values.each_with_index do |value, position|
|
71
|
+
if _option = array[position]
|
72
|
+
_option[:name][locale] = value
|
73
|
+
else
|
74
|
+
array << { name: { locale => value }, position: position }
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
else
|
79
|
+
options.each_with_index do |object, position|
|
80
|
+
array << { name: object, position: position }
|
81
|
+
end
|
70
82
|
end
|
71
83
|
end
|
72
84
|
end
|
@@ -85,4 +97,4 @@ module Locomotive
|
|
85
97
|
end
|
86
98
|
end
|
87
99
|
end
|
88
|
-
end
|
100
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotivecms_mounter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|