simple_form_attachments 0.2.1 → 0.2.2

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: c206f7a0923db913cc9dbeaa4712344d494588a7
4
- data.tar.gz: 6782f5df30fd743cad7f890f1bc92ffaa5d4a211
3
+ metadata.gz: 41b3b4abe24b321d237b831f0b7c674ad77a3d22
4
+ data.tar.gz: 4f81d7a6e9578b666a09420d587ddba141c2cc91
5
5
  SHA512:
6
- metadata.gz: 122e2356fc2dd7b939e9df7cf909fd007efc9173528526b3ec594dd4ebc82bfacca222b8f055b131aac32c3ed559307aa499ce43bacf0662874fba2e907387eb
7
- data.tar.gz: 3c28b252fc57811df2548056d08fcac5174f75579a92f43e92fe6d7f2fa485be7c9122cebc91a44d41f5b035c01eb84838fd93c63e684bd2563b2e3dee8cdae5
6
+ metadata.gz: cdb12404eaac4a1b511093337bf8d2a420d4b1d749dcad02d8f75773d5c8c42bad8fd9cea39e2da9f70a4903b06f74107635a2f19b8c970847e0e1504cabb524
7
+ data.tar.gz: 49d7b7f414e734c2a746ff4a237ba83796a360444e27c9858fd25554c9a6cfe6816dfcd7a7e2c8a9f79dd0de1b4f6b4a2e7bf7b4a4686624a67c059ceb92a51a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_form_attachments (0.2.1)
4
+ simple_form_attachments (0.2.2)
5
5
  jquery-ui-rails
6
6
  rails (>= 4.2)
7
7
  rails-assets-blueimp-file-upload (>= 9.6.0)
@@ -146,16 +146,16 @@ GEM
146
146
  bundler (>= 1.3.0, < 2.0)
147
147
  railties (= 4.2.5)
148
148
  sprockets-rails
149
- rails-assets-blueimp-canvas-to-blob (2.2.4)
149
+ rails-assets-blueimp-canvas-to-blob (3.1.0)
150
150
  rails-assets-blueimp-file-upload (9.11.2)
151
151
  rails-assets-blueimp-canvas-to-blob (>= 2.1.1)
152
152
  rails-assets-blueimp-load-image (>= 1.13.0)
153
153
  rails-assets-blueimp-tmpl (>= 2.5.4)
154
154
  rails-assets-jquery (>= 1.6)
155
- rails-assets-blueimp-load-image (1.14.0)
156
- rails-assets-blueimp-tmpl (2.5.7)
155
+ rails-assets-blueimp-load-image (2.1.0)
156
+ rails-assets-blueimp-tmpl (3.1.0)
157
157
  rails-assets-handlebars (4.0.5)
158
- rails-assets-jquery (2.1.4)
158
+ rails-assets-jquery (2.2.0)
159
159
  rails-deprecated_sanitizer (1.0.3)
160
160
  activesupport (>= 4.2.0.alpha)
161
161
  rails-dom-testing (1.0.7)
@@ -178,9 +178,9 @@ GEM
178
178
  mime-types (>= 1.16, < 3.0)
179
179
  netrc (~> 0.7)
180
180
  shellany (0.0.1)
181
- simple_form (3.2.0)
182
- actionpack (~> 4.0)
183
- activemodel (~> 4.0)
181
+ simple_form (3.2.1)
182
+ actionpack (> 4, < 5.1)
183
+ activemodel (> 4, < 5.1)
184
184
  simplecov (0.11.1)
185
185
  docile (~> 1.1.0)
186
186
  json (~> 1.8)
@@ -202,7 +202,7 @@ GEM
202
202
  tins (~> 1.0)
203
203
  thor (0.19.1)
204
204
  thread_safe (0.3.5)
205
- tilt (2.0.1)
205
+ tilt (2.0.2)
206
206
  tins (1.6.0)
207
207
  tzinfo (1.2.2)
208
208
  thread_safe (~> 0.1)
@@ -226,4 +226,4 @@ DEPENDENCIES
226
226
  simple_form_attachments!
227
227
 
228
228
  BUNDLED WITH
229
- 1.10.6
229
+ 1.11.2
@@ -28,7 +28,6 @@
28
28
  # ---------------------------------------------------------------------
29
29
 
30
30
  class Plugin
31
-
32
31
  constructor: (@element, options) ->
33
32
  @options = $.extend {}, defaults, options
34
33
 
@@ -46,7 +45,7 @@
46
45
  @init_fileupload()
47
46
 
48
47
  init_sortable: () ->
49
- @get_attachment_list().find('tbody').sortable(@options.sortable_options).disableSelection()
48
+ @get_attachment_list().find('tbody').sortable(@options.sortable_options)#.disableSelection()
50
49
 
51
50
  init_fileupload: () ->
52
51
  console.log "init jQuery.fileupload" if @options.debug
@@ -155,25 +154,16 @@
155
154
  get_form: -> @$element.parents('form').first()
156
155
  get_form_submit: -> @get_form().find('input[type="submit"]').first()
157
156
  get_max_number_of_files: -> @$element.data('max-number-of-files')
158
- get_number_of_files: ->
159
- @get_attachment_list().children('tr').not('.has_error').length
160
-
161
- get_attachment_type_input: ->
162
- @$element.find('input[name="attachment_type"]')
163
- get_attachment_multiple_input: ->
164
- @$element.find('input[name="attachment[multiple]"]')
165
- get_attachment_parent_class_input: ->
166
- @$element.find('input[name="attachment_parent[class]"]')
167
- get_attachment_parent_name_input: ->
168
- @$element.find('input[name="attachment_parent[name]"]')
169
- get_attachment_relation_key_input: ->
170
- @$element.find('input[name="attachment_relation[key]"]')
171
- get_attachment_relation_name_input: ->
172
- @$element.find('input[name="attachment_relation[name]"]')
173
- get_attachment_relation_type_input: ->
174
- @$element.find('input[name="attachment_relation[type]"]')
175
- get_attachment_relation_referenced_input: ->
176
- @$element.find('input[name="attachment_relation[referenced]"]')
157
+ get_number_of_files: -> @get_attachment_list().children('tr').not('.has_error').length
158
+
159
+ get_attachment_type_input: -> @$element.find('input[name="attachment_type"]')
160
+ get_attachment_multiple_input: -> @$element.find('input[name="attachment[multiple]"]')
161
+ get_attachment_parent_class_input: -> @$element.find('input[name="attachment_parent[class]"]')
162
+ get_attachment_parent_name_input: -> @$element.find('input[name="attachment_parent[name]"]')
163
+ get_attachment_relation_key_input: -> @$element.find('input[name="attachment_relation[key]"]')
164
+ get_attachment_relation_name_input: -> @$element.find('input[name="attachment_relation[name]"]')
165
+ get_attachment_relation_type_input: -> @$element.find('input[name="attachment_relation[type]"]')
166
+ get_attachment_relation_referenced_input: -> @$element.find('input[name="attachment_relation[referenced]"]')
177
167
 
178
168
  get_relation_name: -> @$element.data('relation-name')
179
169
  get_relation_key: -> @$element.data('relation-key')
@@ -1,3 +1,3 @@
1
1
  module SimpleFormAttachments
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_attachments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-20 00:00:00.000000000 Z
12
+ date: 2016-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -388,7 +388,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
388
388
  version: '0'
389
389
  requirements: []
390
390
  rubyforge_project:
391
- rubygems_version: 2.4.8
391
+ rubygems_version: 2.4.6
392
392
  signing_key:
393
393
  specification_version: 4
394
394
  summary: A Rails engine which takes care of creating Attachments using the jQuery