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 +4 -4
- data/README.md +2 -2
- data/bin/strong_versions +2 -1
- data/doc/images/strong-versions-example.png +0 -0
- data/lib/strong_versions/dependency.rb +2 -2
- data/lib/strong_versions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b8013eab29eed756e82642806ffa493cdfe95b811a04cbf1a8671f438a7d941
|
4
|
+
data.tar.gz: 99d19f00b86a8499cac020279583a32da2a14f3639eeb7036df0338113c60f83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
42
|
+
$ gem install strong_versions -v '0.4.2'
|
43
43
|
```
|
44
44
|
|
45
45
|
## Usage
|
data/bin/strong_versions
CHANGED
@@ -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
|
Binary file
|
@@ -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
|
|
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.
|
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-
|
11
|
+
date: 2020-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|