simple_form_extension 1.2.15 → 1.2.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,5 @@
1
1
  require 'simple_form_extension/version'
2
2
  require 'redactor-rails'
3
- require 'underscore-rails'
4
3
 
5
4
  module SimpleFormExtension
6
5
  extend ActiveSupport::Autoload
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = "1.2.15"
2
+ VERSION = "1.2.16"
3
3
  end
@@ -24,7 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency 'redactor-rails'
25
25
  spec.add_dependency 'selectize-rails'
26
26
  spec.add_dependency 'compass-rails'
27
- spec.add_dependency 'underscore-rails'
28
27
 
29
28
  spec.add_development_dependency 'bundler', '~> 1.5'
30
29
  spec.add_development_dependency 'rake'
@@ -1,4 +1,3 @@
1
- #= require underscore
2
1
  #= require redactor-rails/redactor
3
2
  #= require redactor-rails/langs/fr
4
3
  #= require redactor-rails/plugins
@@ -5,7 +5,7 @@ class Selectize
5
5
  maxItems: if @single then 1 else @$el.data('max-items')
6
6
  sortField: 'text'
7
7
  plugins: ['remove_button']
8
- create: @creatable
8
+ create: @$el.data('creatable')
9
9
  render: @renderOptions()
10
10
  options: @$el.data('collection')
11
11
 
@@ -13,12 +13,10 @@ class Selectize
13
13
  @single = @$el.data('multi') is false
14
14
  @el = @$el[0]
15
15
 
16
- @creatable = @$el.data('creatable')
17
-
18
16
  @$el.val('')
19
17
 
20
18
  @$el.selectize(
21
- _.defaults @options, @selectizeDefaults()
19
+ $.extend @selectizeDefaults(), @options
22
20
  )
23
21
 
24
22
  if (value = @$el.data('value'))
metadata CHANGED
@@ -1,125 +1,126 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.15
4
+ version: 1.2.16
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Alexandre Vasseur
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
12
+ date: 2015-04-24 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '3.1'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.1'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: simple_form
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: redactor-rails
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: selectize-rails
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: compass-rails
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: underscore-rails
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
91
+ - - ! '>='
95
92
  - !ruby/object:Gem::Version
96
93
  version: '0'
97
94
  - !ruby/object:Gem::Dependency
98
95
  name: bundler
99
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
100
98
  requirements:
101
- - - "~>"
99
+ - - ~>
102
100
  - !ruby/object:Gem::Version
103
101
  version: '1.5'
104
102
  type: :development
105
103
  prerelease: false
106
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
107
106
  requirements:
108
- - - "~>"
107
+ - - ~>
109
108
  - !ruby/object:Gem::Version
110
109
  version: '1.5'
111
110
  - !ruby/object:Gem::Dependency
112
111
  name: rake
113
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
114
  requirements:
115
- - - ">="
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
121
122
  requirements:
122
- - - ">="
123
+ - - ! '>='
123
124
  - !ruby/object:Gem::Version
124
125
  version: '0'
125
126
  description: A simple extention for simple_form with, colorpiker, icon, fileupload,
@@ -130,7 +131,7 @@ executables: []
130
131
  extensions: []
131
132
  extra_rdoc_files: []
132
133
  files:
133
- - ".gitignore"
134
+ - .gitignore
134
135
  - Gemfile
135
136
  - LICENSE.txt
136
137
  - README.md
@@ -181,26 +182,27 @@ files:
181
182
  homepage: http://www.glyph.fr
182
183
  licenses:
183
184
  - MIT
184
- metadata: {}
185
185
  post_install_message:
186
186
  rdoc_options: []
187
187
  require_paths:
188
188
  - lib
189
189
  required_ruby_version: !ruby/object:Gem::Requirement
190
+ none: false
190
191
  requirements:
191
- - - ">="
192
+ - - ! '>='
192
193
  - !ruby/object:Gem::Version
193
194
  version: '0'
194
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
+ none: false
195
197
  requirements:
196
- - - ">="
198
+ - - ! '>='
197
199
  - !ruby/object:Gem::Version
198
200
  version: '0'
199
201
  requirements: []
200
202
  rubyforge_project:
201
- rubygems_version: 2.2.2
203
+ rubygems_version: 1.8.23
202
204
  signing_key:
203
- specification_version: 4
205
+ specification_version: 3
204
206
  summary: A simple extention for simple_form with, colorpiker, icon, fileupload, image
205
207
  upload
206
208
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: be7a0afee037a67238f32133f43bb0c5a709369f
4
- data.tar.gz: 630cf5f03f70c93a85d602f809c19e65fd4912a9
5
- SHA512:
6
- metadata.gz: 9911fbe04e23d77dddcac4ce7d61cf075ff6e554a0eda8ad0c007a2b0011551d5f02581880bd129d88f798862f08e8fc700ca3829074426141fa03545ebc6f46
7
- data.tar.gz: 8eafb32ad5517840c24718e1cea5a8e23c7bbfd439b3ab4261330288fbee356464154e610d9f309938de810597d60332a94b7c6855e0a9271c1396e18d22da56