eac_ruby_gems_utils 0.7.2 → 0.7.3

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: a270aafaa6c52ea47438710b51d984db6d41454e5f8f61867ca7bcba9efb1464
4
- data.tar.gz: b9087111ab04b098dca03bd1a5b15203586770a3dee280573fec7c14ddc044aa
3
+ metadata.gz: c26b2235fcb990e88ce893a82c90d84300c6a11e2d236a3259cba110f56e8c45
4
+ data.tar.gz: 250ecc8711c9419c044344257e059a1045b26d73a5f4fa17e43254e424e760a1
5
5
  SHA512:
6
- metadata.gz: 3b93b7e14f08dcda516149f86dce135f752cff4a5ec8b1d076642e63cc75b0565f28d306bf4fff6668fbaf982011e1c281d432f3c4949e7cc07572f391284c3d
7
- data.tar.gz: 6678b85a95bffdfc0ecb8bfe6dfd5516e804b94c56e60b8873ee5a6b80a6612433f5a3d638ad41c11d3d6dc8ccf44efa56a0d3d13a7df6ebc2ebea94ff816cb0
6
+ metadata.gz: 04523c761475b7acdb4558f80e17312fad58929918c3ff610e9cf690a065837a7c27403cdadca9af732907f30a3323c145016f977cf0f88eeb09e5ce0b101e58
7
+ data.tar.gz: 690a80843b3a9afbd736c153d9e38037dcf5d14f96ada89e6eb2114bbd51d3b8578d6750a4415406c9d7653c80c4037bcbde28ecc7bd4b13df6ae350036d7c06
@@ -12,14 +12,12 @@ module EacRubyGemsUtils
12
12
  log('running "bundle install"...')
13
13
  return if bundle('install').execute.fetch(:exit_code).zero?
14
14
 
15
- if can_remove_gemfile_lock?
16
- log('"bundle install" failed, removing Gemfile.lock and trying again...')
17
- gemfile_lock_path.unlink if gemfile_lock_path.exist?
18
- bundle('install').execute!
19
- else
15
+ unless can_remove_gemfile_lock?
20
16
  raise '"bundle install" failed and the Gemfile.lock is part of gem' \
21
- '(Should be changed by developer)'
17
+ '(Should be changed by developer)'
22
18
  end
19
+
20
+ prepare_with_removable_gemfile_lock
23
21
  end
24
22
 
25
23
  def tests
@@ -33,6 +31,12 @@ module EacRubyGemsUtils
33
31
  infov self, message
34
32
  end
35
33
 
34
+ def prepare_with_removable_gemfile_lock
35
+ log('"bundle install" failed, removing Gemfile.lock and trying again...')
36
+ gemfile_lock_path.unlink if gemfile_lock_path.exist?
37
+ bundle('install').execute!
38
+ end
39
+
36
40
  def can_remove_gemfile_lock?
37
41
  !files.include?(gemfile_lock_path.relative_path_from(root))
38
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyGemsUtils
4
- VERSION = '0.7.2'
4
+ VERSION = '0.7.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_ruby_gems_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-27 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_ruby_utils
@@ -64,10 +64,10 @@ files:
64
64
  - lib/eac_ruby_gems_utils/tests/multiple/result.rb
65
65
  - lib/eac_ruby_gems_utils/tests/rspec.rb
66
66
  - lib/eac_ruby_gems_utils/version.rb
67
+ - spec/code/rubocop_check_spec.rb
67
68
  - spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb
68
69
  - spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb
69
70
  - spec/lib/eac_ruby_gems_utils/gem_spec.rb
70
- - spec/rubocop_check_spec.rb
71
71
  - spec/spec_helper.rb
72
72
  - spec/support/mygem/Gemfile
73
73
  - spec/support/mygem/Gemfile.lock
@@ -102,10 +102,10 @@ signing_key:
102
102
  specification_version: 4
103
103
  summary: Utilities for Ruby gems development.
104
104
  test_files:
105
+ - spec/code/rubocop_check_spec.rb
105
106
  - spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb
106
107
  - spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb
107
108
  - spec/lib/eac_ruby_gems_utils/gem_spec.rb
108
- - spec/rubocop_check_spec.rb
109
109
  - spec/spec_helper.rb
110
110
  - spec/support/mygem/Gemfile
111
111
  - spec/support/mygem/Gemfile.lock