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: 7b47851083c2f01c0930e555b82d3e198dc76c73
4
- data.tar.gz: fb1455391d1fa0ef384417339506efef0ac6ad8e
3
+ metadata.gz: 0d0993deeb9662962e86db335f5b178a44481c3f
4
+ data.tar.gz: 3b1ed4367b988e8b1ae394155fd858a5ce90f5a7
5
5
  SHA512:
6
- metadata.gz: 1d60472d04d6be9b52f99af8fbea87768655c09e3de33826c8595515c078a52c54f1cd42767fa8e0785c22f763a9c187fdf6d0755e96ec1bd5ef95084e798065
7
- data.tar.gz: 2577b213dd4b2df3bc70309218cce076ffbfb70d1e1fbdf4b2b88688d3992a5c6ab629087fa9c1725edb848aaac90b1f70fd2ea054c01290f6fa9fb8ef7ae346
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)
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.3)
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.4)
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.13)
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.each_with_index do |object, position|
69
- array << { name: object, position: position }
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
@@ -2,7 +2,7 @@
2
2
  module Locomotive
3
3
  module Mounter #:nodoc
4
4
 
5
- VERSION = '1.5.4'
5
+ VERSION = '1.5.5'
6
6
 
7
7
  end
8
8
  end
@@ -148,4 +148,4 @@ module Locomotive
148
148
  end
149
149
  end
150
150
  end
151
- end
151
+ 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
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-15 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt