switchery-rails 0.8.1.1 → 0.8.2.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
- SHA1:
3
- metadata.gz: f5df15ce0ffaf963cbec9d15bdb94716658865ed
4
- data.tar.gz: eec5643334ffafda3bfb21b0bd9fb2ae0e72b19a
2
+ SHA256:
3
+ metadata.gz: 59fb74ac8ba5c0b5a7ac0f744c7f7072b9fd37db4f76c75f75917f4810e5320e
4
+ data.tar.gz: 670e4f260eea535c9e77dcdad3a49b5241388e83f77391ee12c10ec01827f93e
5
5
  SHA512:
6
- metadata.gz: 1b78cadbc734cdb6cdf603b7fa1f35b14a7d2d90d0cf80d897061de3e333fc1912ee121cd2affa28d8022894c93c2c02e6ba481948278dc0661b095e2220623e
7
- data.tar.gz: f88a64c1fc1a95997a045f7e4c181b9160992acb2ca4b8764399e3f234349e4f6f81d946255bd69b2622ce0650cc4af2e706041b3788d8efeaa37ece963cc2fe
6
+ metadata.gz: c271caf8c995a0dcc3cc94405ea653c0e79dfb8b1f13ef8ee8812883e0fea9ed86853bea05f0d8075d04055b4a5e91771c088ee3537125eed19d2d5aee167f42
7
+ data.tar.gz: 84546e4b7674b952f6f824ea4954be410fa01120869d5d394009fc70ec17b6a04a08ebd42931f7b76b7ee33d947d82f32af5ce38ebf373456ce5061c8419da13
data/Dockerfile CHANGED
@@ -3,11 +3,11 @@
3
3
  # How to use it
4
4
  # =============
5
5
  #
6
- # Visit http://blog.zedroot.org/using-docker-to-maintain-a-ruby-gem/
6
+ # Visit https://blog.zedroot.org/2015/04/30/using-docker-to-maintain-a-ruby-gem/
7
7
 
8
8
  # ~~~~ Image base ~~~~
9
9
  # Base image with the latest Ruby only
10
- FROM ruby:2.3.0-slim
10
+ FROM ruby:3.0.3-slim
11
11
  MAINTAINER Guillaume Hain zedtux@zedroot.org
12
12
 
13
13
 
@@ -21,7 +21,7 @@ ADD . /gem/
21
21
  # ~~~~ OS Maintenance & Rails Preparation ~~~~
22
22
  # Rubygems and Bundler
23
23
  RUN apt-get update && \
24
- apt-get install -y git build-essential && \
24
+ apt-get install -y git build-essential curl && \
25
25
  touch ~/.gemrc && \
26
26
  echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
27
27
  gem install rubygems-update && \
@@ -1,5 +1,5 @@
1
1
  module Switchery
2
2
  module Rails
3
- VERSION = '0.8.1.1'
3
+ VERSION = '0.8.2.0'
4
4
  end
5
5
  end
data/make_new_release.sh CHANGED
@@ -9,12 +9,8 @@ if [[ -n "$LIBRARY_UPDATED" ]]; then
9
9
  exit 1
10
10
  fi
11
11
 
12
- echo "Ensuring Docker image $DOCKER_IMAGE_NAME exists ..."
13
- EXISTING_DOCKER_IMAGE=`docker images | grep "$DOCKER_IMAGE_NAME"`
14
- if [[ -z "$EXISTING_DOCKER_IMAGE" ]]; then
15
- echo "Building the Docker image ..."
16
- docker build -t "$DOCKER_IMAGE_NAME" .
17
- fi
12
+ echo "Building the Docker image ..."
13
+ docker build -t "$DOCKER_IMAGE_NAME" .
18
14
 
19
15
  echo "Updating library code to version $LIBRARY_NEW_VERSION ..."
20
16
  docker run --rm -v `pwd`:/gem/ "$DOCKER_IMAGE_NAME" rake update
@@ -29,7 +25,8 @@ elif [[ "$LIBRARY_UPDATED" == " M lib/switchery/rails/version.rb" ]]; then
29
25
  fi
30
26
 
31
27
  echo "Committing new version ..."
32
- git commit -am "Import version $LIBRARY_NEW_VERSION"
28
+ git commit -am "Bumped version $LIBRARY_NEW_VERSION"
29
+ git tag -a "v$LIBRARY_NEW_VERSION" -m "v$LIBRARY_NEW_VERSION"
33
30
 
34
31
  echo "Releasing gem ..."
35
32
  docker run --rm -v ~/.gitconfig:/root/.gitconfig \
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'railties', '>= 3.2', '< 6.0'
22
+ spec.add_dependency 'railties', '>= 3.2'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 1.7'
24
+ spec.add_development_dependency 'bundler'
25
25
  spec.add_development_dependency 'rake', '~> 10.0'
26
26
  end
@@ -56,11 +56,11 @@ require.helper.semVerSort = function(a, b) {
56
56
 
57
57
  /**
58
58
  * Find and require a module which name starts with the provided name.
59
- * If multiple modules exists, the highest semver is used.
59
+ * If multiple modules exists, the highest semver is used.
60
60
  * This function can only be used for remote dependencies.
61
61
 
62
62
  * @param {String} name - module name: `user~repo`
63
- * @param {Boolean} returnPath - returns the canonical require path if true,
63
+ * @param {Boolean} returnPath - returns the canonical require path if true,
64
64
  * otherwise it returns the epxorted module
65
65
  */
66
66
  require.latest = function (name, returnPath) {
@@ -83,7 +83,7 @@ require.latest = function (name, returnPath) {
83
83
  semVerCandidates.push({version: version, name: moduleName});
84
84
  } else {
85
85
  otherCandidates.push({version: version, name: moduleName});
86
- }
86
+ }
87
87
  }
88
88
  }
89
89
  if (semVerCandidates.concat(otherCandidates).length === 0) {
@@ -943,7 +943,7 @@ FastClick.notNeeded = function(layer) {
943
943
 
944
944
  if (FastClick.prototype.deviceIsAndroid) {
945
945
  metaViewport = document.querySelector('meta[name=viewport]');
946
-
946
+
947
947
  if (metaViewport) {
948
948
  // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
949
949
  if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
@@ -1922,6 +1922,7 @@ Switchery.prototype.destroy = function() {
1922
1922
  */
1923
1923
 
1924
1924
  Switchery.prototype.enable = function() {
1925
+ if (!this.options.disabled) return;
1925
1926
  if (this.options.disabled) this.options.disabled = false;
1926
1927
  if (this.element.disabled) this.element.disabled = false;
1927
1928
  if (this.element.readOnly) this.element.readOnly = false;
@@ -1936,6 +1937,7 @@ Switchery.prototype.enable = function() {
1936
1937
  */
1937
1938
 
1938
1939
  Switchery.prototype.disable = function() {
1940
+ if (this.options.disabled) return;
1939
1941
  if (!this.options.disabled) this.options.disabled = true;
1940
1942
  if (!this.element.disabled) this.element.disabled = true;
1941
1943
  if (!this.element.readOnly) this.element.readOnly = true;
@@ -1952,4 +1954,4 @@ if (typeof exports == "object") {
1952
1954
  } else {
1953
1955
  (this || window)["Switchery"] = require("switchery");
1954
1956
  }
1955
- })()
1957
+ })();
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.1.1
4
+ version: 0.8.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Hain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-16 00:00:00.000000000 Z
11
+ date: 2021-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '6.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,23 +24,20 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.2'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '6.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bundler
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - "~>"
31
+ - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: '1.7'
33
+ version: '0'
40
34
  type: :development
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
- - - "~>"
38
+ - - ">="
45
39
  - !ruby/object:Gem::Version
46
- version: '1.7'
40
+ version: '0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: rake
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -98,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
92
  - !ruby/object:Gem::Version
99
93
  version: '0'
100
94
  requirements: []
101
- rubyforge_project:
102
- rubygems_version: 2.6.6
95
+ rubygems_version: 3.2.33
103
96
  signing_key:
104
97
  specification_version: 4
105
98
  summary: Use Switchery for Rails