wedge 0.1.9 → 0.1.10

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: a94aeb77ec52e4aeac034e6f49461c0a83d563e3
4
- data.tar.gz: 1bf42f2f509758307845f8aaf82e9e09df0772ae
3
+ metadata.gz: 1bfac0ca714e64ea3db9767ebabc102b0b3aa959
4
+ data.tar.gz: a54730263f8008f9685fcb857c1d94b02f1d50e4
5
5
  SHA512:
6
- metadata.gz: 995a85b4e0cf6ebbce656c4d72238bfe254460a28c5912d0c5eb06e918cb36d7c39666fe923514e1fa06c35837cf8a074cf7b4608f689e47bc19393381de9a08
7
- data.tar.gz: c98f4ecfc2025f8d2e2942a393025a0ad7f4a0d2649643d5ee84b636a5b7da408b549d060b6f76f2ca5c24fe8ebdcd887c6bf2f7ef90db2d9fc705005e6f17cf
6
+ metadata.gz: 67145fd799ba9ab39e0a4ae37fb6347504565eae3e88ec29099811566c6abbe7e9e7de49a696b3a6894549036bb629c85269571a8f6b15b879177e52be3ca2b3
7
+ data.tar.gz: ae2921c72016ff8831b04d737a66fec037edbe0ee0f115a69ae514cf683698cb99d514d9f0df4e81052a8fdfc48d832652b66093e2ad721ee5721a9bb95ce082
@@ -16,3 +16,13 @@ class Wedge
16
16
  # Create our own opal instance.
17
17
  Opal = ::Opal.dup
18
18
  end
19
+
20
+ if RUBY_ENGINE == 'opal'
21
+ class Element
22
+ alias_native :mask
23
+ alias_native :remove_data, :removeData
24
+ alias_native :replace_with, :replaceWith
25
+ alias_native :selectize
26
+ end
27
+ end
28
+
@@ -1,16 +1,3 @@
1
- if RUBY_ENGINE == 'opal'
2
- class Element
3
- alias_native :mask
4
- alias_native :remove_data, :removeData
5
- alias_native :replace_with, :replaceWith
6
- alias_native :selectize
7
-
8
- def date_picker options = {}
9
- `self.datepicker(JSON.parse(#{options.to_json}))`
10
- end
11
- end
12
- end
13
-
14
1
  require 'wedge/plugins/history'
15
2
 
16
3
  class Wedge
@@ -163,12 +163,12 @@ class Wedge
163
163
  enabled: true
164
164
  },
165
165
 
166
- thumbnails: {
167
- placeholders: {
168
- # notAvailablePath: "assets/not_available-generic.png",
169
- # waitingPath: "assets/waiting-generic.png"
170
- }
171
- },
166
+ # thumbnails: {
167
+ # placeholders: {
168
+ # # notAvailablePath: "assets/not_available-generic.png",
169
+ # # waitingPath: "assets/waiting-generic.png"
170
+ # }
171
+ # },
172
172
 
173
173
  callbacks: {
174
174
  onSubmitted: function { |fu_id|
@@ -188,6 +188,15 @@ class Wedge
188
188
  }
189
189
  }
190
190
 
191
+ if resize = options[:resize]
192
+ uploader_settings[:scaling] = {
193
+ sendOriginal: false,
194
+ sizes: [
195
+ { name: "#{resize}", maxSize: resize }
196
+ ]
197
+ }
198
+ end
199
+
191
200
  if options[:delete_method]
192
201
  uploader_settings[:deleteFile] = {
193
202
  enabled: true,
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-25 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal