strong_versions 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: 3a6f079070e66cd3ed6ce44e528fac54f1c3c8b0d997b4bf4c8a7d91a0eddeb8
4
- data.tar.gz: 2e013a9ff3016707b445a77b18a42f9e84c3b0f8f2235f2f6216ecd6fab0309e
3
+ metadata.gz: 4b8013eab29eed756e82642806ffa493cdfe95b811a04cbf1a8671f438a7d941
4
+ data.tar.gz: 99d19f00b86a8499cac020279583a32da2a14f3639eeb7036df0338113c60f83
5
5
  SHA512:
6
- metadata.gz: c067dd53846c4b49e7104c11744569703b20c26b50c1de29a2fb7810889945939fe5d70f869f480d52851c28ac1c821541ace4e03c57e6fb09eb0ae15c9a0a05
7
- data.tar.gz: 07f2665d5a01d9cc0686f7faf4990536a1151f630dbaeadbbb029a73f3dad5d956c255370938640b2e69aeda4db03845640da0a7bb9b883578cc6a19d4d96d27
6
+ metadata.gz: '047964e0861c334509ae41809d5b57ee2cc0f412223148d374d2008ecca64db6ca4eca7df9ebe2d579dcdfc4d988c1d141642b766a47d701ebb866cb281fab01'
7
+ data.tar.gz: 48268429b4da20105b90fd3671488180753550f4776467d77e3de0d8c761295b767cd2502a61d99330830a95efde09c129ba9f7e615a2f18e783c885093daf7e
data/README.md CHANGED
@@ -28,7 +28,7 @@ The benefit of applying this standard is that, if all gems follow [Semantic Vers
28
28
  Add the gem to your `Gemfile`
29
29
 
30
30
  ```ruby
31
- gem 'strong_versions', '~> 0.4.1'
31
+ gem 'strong_versions', '~> 0.4.2'
32
32
  ```
33
33
 
34
34
  And rebuild your bundle:
@@ -39,7 +39,7 @@ $ bundle install
39
39
 
40
40
  Or install yourself:
41
41
  ```bash
42
- $ gem install strong_versions -v '0.4.1'
42
+ $ gem install strong_versions -v '0.4.2'
43
43
  ```
44
44
 
45
45
  ## Usage
@@ -33,11 +33,12 @@ validated = StrongVersions::Dependencies.new(dependencies).validate!(
33
33
  auto_correct: options[:auto_correct]
34
34
  )
35
35
 
36
+ exit 0 if validated
37
+
36
38
  if options[:auto_correct]
37
39
  # Re-evaluate
38
40
  args = original_args.map { |arg| Shellwords.escape(arg) }.join(' ')
39
41
  exec "#{$PROGRAM_NAME} #{args} --no-auto-correct"
40
42
  end
41
43
 
42
- exit 0 if validated
43
44
  exit 1
@@ -39,7 +39,7 @@ module StrongVersions
39
39
  end
40
40
 
41
41
  def updatable?
42
- gemfile && !suggested_version.missing? && !path_source?
42
+ !valid? && gemfile && !suggested_version.missing? && !path_source?
43
43
  end
44
44
 
45
45
  private
@@ -72,7 +72,7 @@ module StrongVersions
72
72
  return if path_source?
73
73
  return if any_valid?
74
74
 
75
- check_pessimistic(operator)
75
+ check_pessimistic(operator) unless version.zero?
76
76
  check_valid_version(version)
77
77
  end
78
78
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StrongVersions
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_versions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-25 00:00:00.000000000 Z
11
+ date: 2020-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n