ezdz-rails 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ezdz-rails.gemspec +1 -1
- data/lib/ezdz-rails/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.ezdz.js +16 -3
- data/vendor/assets/stylesheets/jquery.ezdz.css +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ce6c996c781e2c010f1cac3326fe48a27e3aca7
|
4
|
+
data.tar.gz: 07c3420b040aeed77b1355b4dd46b7c52a11d35d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72a745388ce4b9ce06ce9e3b481819f1255f7197234c8ec7d99a4c0f8532eb29efa96d48a1e161af796c9b4399034842ffa704dd492b7c2c58eec00f7ac4fbc0
|
7
|
+
data.tar.gz: d0b0b7a9acbc7eb4a695a22b984aec0b6cfd0f976f23b4e98de4658c265b323261cbe145758b7a2d4f849ea9ccf6fcd268871dabfadf32f8ffe9cc13f2f16248
|
data/ezdz-rails.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'railties', '>= 3.2', '<
|
22
|
+
spec.add_dependency 'railties', '>= 3.2', '< 6.0'
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
24
|
spec.add_development_dependency 'rake'
|
25
25
|
end
|
data/lib/ezdz-rails/version.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
// Ezdz [izy-dizy]
|
3
|
-
// v0.
|
3
|
+
// v0.5.0 - released 2016-04-30 17:30
|
4
4
|
// Licensed under the MIT license.
|
5
5
|
// https://github.com/jaysalvat/ezdz
|
6
6
|
// ----------------------------------------------------------------------------
|
7
|
-
// Copyright (C)
|
7
|
+
// Copyright (C) 2016 Jay Salvat
|
8
8
|
// http://jaysalvat.com/
|
9
9
|
// ---------------------------------------------------------------------------*/
|
10
10
|
|
@@ -305,9 +305,22 @@
|
|
305
305
|
var settings = this.settings,
|
306
306
|
$input = this.$input,
|
307
307
|
$ezdz = $input.parent('.' + settings.classes.main),
|
308
|
-
basename = path.replace(/\\/g,'/').replace( /.*\//, ''),
|
308
|
+
basename = (path || '').replace(/\\/g,'/').replace( /.*\//, ''),
|
309
309
|
formatted = settings.format(basename);
|
310
310
|
|
311
|
+
if (!path) {
|
312
|
+
$ezdz
|
313
|
+
.removeClass([
|
314
|
+
settings.classes.enter,
|
315
|
+
settings.classes.reject,
|
316
|
+
settings.classes.accept
|
317
|
+
].join(' '))
|
318
|
+
.find('div').html(settings.text);
|
319
|
+
|
320
|
+
$input.val('');
|
321
|
+
return;
|
322
|
+
}
|
323
|
+
|
311
324
|
var img = new Image();
|
312
325
|
img.src = path;
|
313
326
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
// Ezdz [izy-dizy]
|
3
|
-
// v0.
|
3
|
+
// v0.5.0 - released 2016-04-30 17:30
|
4
4
|
// Licensed under the MIT license.
|
5
5
|
// https://github.com/jaysalvat/ezdz
|
6
6
|
// ----------------------------------------------------------------------------
|
7
|
-
// Copyright (C)
|
7
|
+
// Copyright (C) 2016 Jay Salvat
|
8
8
|
// http://jaysalvat.com/
|
9
9
|
// ---------------------------------------------------------------------------*/
|
10
10
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezdz-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedr Browne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '6.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '6.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.6.
|
100
|
+
rubygems_version: 2.6.6
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: This Gem integrates Jay Salvat's Ezdz [izy-dizy] with Rails, exposing its
|