strong_versions 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adffa925b8acf616a7d80b8f7122efcd450375d3dd001dbf7a7735a13199a415
4
- data.tar.gz: 3495a49f991f76bff0f75ea9d726a324eac68819b821dd419a1a8f8ea5b8e641
3
+ metadata.gz: 9589edc74d736ee2c17217c9bf8c4efe316c8ada4842ecec28a16d27f939afa9
4
+ data.tar.gz: 438bcc252b6bde7667b223b2efd55f26ca56597b21f5f238b9747ad78b1fb96b
5
5
  SHA512:
6
- metadata.gz: f88d7e3db8ad162490eb0426a48638fa8c5195d1b7ffc2342d8084166cd7af46fe5bd0667a2703ce68e3ef0fb54addc32739b0a1e8612f2dd5651d68d8848a5e
7
- data.tar.gz: 9a798e3a31a229f9191daf7e631171c5cd757bbf1d01db4426b905caa7b6ac6f4bfa76f3234fba778a96f131e11bd43fdb58fae4d20a7f1047cc14fef462c9b1
6
+ metadata.gz: 1688a28f9c4c9fa03c78c99d59994508bfa1cec61005751aa2e0b32f5388cec5736557449ae072965ef6448c229e4527bcbee7f53581e2cf47fbf8df72ea8e2f
7
+ data.tar.gz: aeae4848ecfb0ad258806e42ca4294d5010d0c7cbf5c434914eea8dc29214f1e9c7be11cd1c6c5de0c37683f2efad5ba88a110038ef84415566ed365970697d3
data/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  .PHONY: test
2
2
  test:
3
- bin/rspec
4
- bin/rubocop
5
- bundle exec bin/strong_versions
3
+ @bin/rspec
4
+ @bundle exec bin/strong_versions
5
+ @bin/rubocop
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.3.1'
31
+ gem 'strong_versions', '~> 0.3.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.3.0'
42
+ $ gem install strong_versions -v '0.3.2'
43
43
  ```
44
44
 
45
45
  ## Usage
@@ -50,7 +50,9 @@ _StrongVersions_ is invoked with a provided executable:
50
50
  $ bundle exec strong_versions
51
51
  ```
52
52
 
53
- The executable will output all non-passing gems and will return an exit code of `1` on failure, `0` on success (i.e. all gems passing).
53
+ The executable will output all non-passing gems and will return an exit code of `1` on failure, `0` on success (i.e. all gems passing). This makes _StrongVersions_ suitable for use in a continuous integration pipeline:
54
+
55
+ ![StrongVersions](doc/images/ci-pipeline.png)
54
56
 
55
57
  ### Exclusions
56
58
 
@@ -41,9 +41,10 @@ module StrongVersions
41
41
  end
42
42
 
43
43
  def lockfile_version
44
- @lockfile_version ||= version(
45
- @lockfile.specs.find { |spec| spec.name == @name }&.version
46
- )
44
+ @lockfile_version ||= begin
45
+ gem_spec = @lockfile.specs.find { |spec| spec.name == @name }
46
+ gem_spec.nil? ? nil : version(gem_spec.version)
47
+ end
47
48
  end
48
49
 
49
50
  def default_lockfile
@@ -37,7 +37,7 @@ module StrongVersions
37
37
  # Success and failure output format brazenly stolen from Rubocop.
38
38
  def success(count)
39
39
  color(
40
- "#{count} #{t('checked')}, %{no_issues} #{t('detected')}",
40
+ "#{count} #{t('checked')}, %{no_issues} #{t('detected')}\n",
41
41
  :default,
42
42
  no_issues: [t('no_issues'), :green]
43
43
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StrongVersions
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.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.3.1
4
+ version: 0.3.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: 2018-12-15 00:00:00.000000000 Z
11
+ date: 2018-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -162,6 +162,7 @@ files:
162
162
  - bin/setup
163
163
  - bin/strong_versions
164
164
  - config/locales/en.yml
165
+ - doc/images/ci-pipeline.png
165
166
  - doc/images/strong-versions-example.png
166
167
  - lib/strong_versions.rb
167
168
  - lib/strong_versions/config.rb