switchery-rails 0.8.0 → 0.8.1

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: 67fef65691b2777c85b1264bbbe619f21a943311
4
- data.tar.gz: b7fd5512ba99d5d581fac9b1762685082ce1a043
3
+ metadata.gz: 6423f1816de36ccda13d246f04d04b8c52c50f62
4
+ data.tar.gz: 819af681da5b276484ae86d28429c9f5e5e19055
5
5
  SHA512:
6
- metadata.gz: ddf413a66709204db4aac7fc5a68b49a0fb8cef7de69cb2bf42afc59e736585949e41a975d3be13da8011437649652ad28d61d0a58026b1805abf15e10a7b6b0
7
- data.tar.gz: b04a4bb9838674e3e22a9f79d351372423d4eaea1f48b50c7e0613112121fcc27b44572a0229a9bbdaffb23dcb331329275213d310f7fb58a41421ae0d7495b7
6
+ metadata.gz: 03f4f03799e83fc5704fd081ee8cb7f6e8d174f6200072deba3c509ca3748c7da618ad3c5a05054fdad798ada2019356e5157fbe4e493f87d6c79f38144d808b
7
+ data.tar.gz: 4d6ddab8557b248f3ff5fcc80afc95b1da7c2afb66c3512ddb98eafeb824917b93a81a6d0263aa05a5f566d960ab3d0b0455c00cb20a6d31f955c842b4675c50
data/Dockerfile CHANGED
@@ -3,23 +3,7 @@
3
3
  # How to use it
4
4
  # =============
5
5
  #
6
- # $ sudo docker build -t zedtux/switchery-rails .
7
- # $ sudo docker run -it zedtux/switchery-rails
8
- # rake build # Build switchery-rails-0.1.0.gem into the pkg directory
9
- # rake install # Build and install switchery-rails-0.1.0.gem into system gems
10
- # rake install:local # Build and install switchery-rails-0.1.0.gem into system gems without network access
11
- # rake release # Create tag v0.1.0 and build and push switchery-rails-0.1.0.gem to Rubygems
12
- # rake update_switchery # Update the Switchery Javascript and CSS files
13
- #
14
- # Update the Switchery library
15
- # ----------------------------
16
- #
17
- # Update the file `lib/switchery/rails/version.rb` in order to set the Switchery version to download then:
18
- #
19
- # $ sudo docker run --rm -v `pwd`:/gem/ -it zedtux/switchery-rails rake update_switchery
20
- # Downlading Switchery 0.8.0 ...
21
- # Done!
22
- #
6
+ # Visit http://blog.zedroot.org/using-docker-to-maintain-a-ruby-gem/
23
7
 
24
8
  # ~~~~ Image base ~~~~
25
9
  # Base image with the latest Ruby only
@@ -1,5 +1,5 @@
1
1
  module Switchery
2
2
  module Rails
3
- VERSION = '0.8.0'
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
@@ -1559,7 +1559,7 @@ function parse(event) {
1559
1559
 
1560
1560
  require.register("switchery", function (exports, module) {
1561
1561
  /**
1562
- * Switchery 0.8.0
1562
+ * Switchery 0.8.1
1563
1563
  * http://abpetkov.github.io/switchery/
1564
1564
  *
1565
1565
  * Authored by Alexander Petkov
@@ -1936,9 +1936,9 @@ Switchery.prototype.enable = function() {
1936
1936
  */
1937
1937
 
1938
1938
  Switchery.prototype.disable = function() {
1939
- if (this.options.disabled) this.options.disabled = true;
1940
- if (this.element.disabled) this.element.disabled = true;
1941
- if (this.element.readOnly) this.element.readOnly = true;
1939
+ if (!this.options.disabled) this.options.disabled = true;
1940
+ if (!this.element.disabled) this.element.disabled = true;
1941
+ if (!this.element.readOnly) this.element.readOnly = true;
1942
1942
  this.switcher.style.opacity = this.options.disabledOpacity;
1943
1943
  this.destroy();
1944
1944
  };
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchery-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Hain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-30 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.4.6
98
+ rubygems_version: 2.4.7
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Use Switchery for Rails