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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36cbea46c28756e98ccca2362918fb0658675dbb
4
- data.tar.gz: e7fad9012f943c7dab18e93d0791777dca569486
3
+ metadata.gz: 4ce6c996c781e2c010f1cac3326fe48a27e3aca7
4
+ data.tar.gz: 07c3420b040aeed77b1355b4dd46b7c52a11d35d
5
5
  SHA512:
6
- metadata.gz: 9a492f16edd4e0a9bea624e87fa72534a79f9e130779477c0aedd150430e8777e3e48cb3c3e11b2519548f1f571210214adc31a8c0c0dcdebbf8faf8e1c07a75
7
- data.tar.gz: 1e0862915c6f5c326a7a44fb4b5e057c86efc1cc7243138f869b80130dc37e8f2a075a30e8a3e1fe5e22c4231ac8555fd1fd10a89c2a99e3732f4bb23ccb6d8e
6
+ metadata.gz: 72a745388ce4b9ce06ce9e3b481819f1255f7197234c8ec7d99a4c0f8532eb29efa96d48a1e161af796c9b4399034842ffa704dd492b7c2c58eec00f7ac4fbc0
7
+ data.tar.gz: d0b0b7a9acbc7eb4a695a22b984aec0b6cfd0f976f23b4e98de4658c265b323261cbe145758b7a2d4f849ea9ccf6fcd268871dabfadf32f8ffe9cc13f2f16248
@@ -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', '< 5.0'
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
@@ -1,5 +1,5 @@
1
1
  module Ezdz
2
2
  module Rails
3
- VERSION = '0.4.3'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -1,10 +1,10 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  // Ezdz [izy-dizy]
3
- // v0.4.3 - released 2014-12-16 11:29
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) 2014 Jay Salvat
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.4.3 - released 2014-12-16 11:29
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) 2014 Jay Salvat
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.3
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-04-19 00:00:00.000000000 Z
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: '5.0'
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: '5.0'
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.3
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