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 +4 -4
- data/lib/wedge/opal.rb +10 -0
- data/lib/wedge/plugins/pjax.rb +0 -13
- data/lib/wedge/plugins/uploader.rb +15 -6
- data/lib/wedge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bfac0ca714e64ea3db9767ebabc102b0b3aa959
|
4
|
+
data.tar.gz: a54730263f8008f9685fcb857c1d94b02f1d50e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67145fd799ba9ab39e0a4ae37fb6347504565eae3e88ec29099811566c6abbe7e9e7de49a696b3a6894549036bb629c85269571a8f6b15b879177e52be3ca2b3
|
7
|
+
data.tar.gz: ae2921c72016ff8831b04d737a66fec037edbe0ee0f115a69ae514cf683698cb99d514d9f0df4e81052a8fdfc48d832652b66093e2ad721ee5721a9bb95ce082
|
data/lib/wedge/opal.rb
CHANGED
@@ -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
|
+
|
data/lib/wedge/plugins/pjax.rb
CHANGED
@@ -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
|
-
|
168
|
-
|
169
|
-
|
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,
|
data/lib/wedge/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|