eac_ruby_gems_utils 0.7.2 → 0.7.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c26b2235fcb990e88ce893a82c90d84300c6a11e2d236a3259cba110f56e8c45
|
4
|
+
data.tar.gz: 250ecc8711c9419c044344257e059a1045b26d73a5f4fa17e43254e424e760a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
File without changes
|
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.
|
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-
|
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
|