eac_ruby_gems_utils 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_ruby_gems_utils/gem.rb +2 -2
- data/lib/eac_ruby_gems_utils/gem/command.rb +33 -0
- data/lib/eac_ruby_gems_utils/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc8552216df01a59f7d3afdc63bfca9843e22c4644be9e6aba4df0fb074de98c
|
4
|
+
data.tar.gz: 145894d3a7c6084ebb822d41a5650a00eed3da35f383e0b9d2f1c28e1d65ef39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a803645dfc1033fae9c9b3af9f7e9c51872011449c5e3b27426bd51bc904dd2ce2f7002e969ff2e49046a82c7d697154b57e6b1b2311df01aa3acc334880a01
|
7
|
+
data.tar.gz: 90857fa721bb2f349cdfe26f68bcf69ecae7b854baa8c9005e344a3988add13a2a4649e7332132ce314be8c2e8d4c7e763317bd4a4f0764aa7f8ddd80232d48a
|
@@ -5,6 +5,7 @@ require 'eac_ruby_utils/envs'
|
|
5
5
|
|
6
6
|
module EacRubyGemsUtils
|
7
7
|
class Gem
|
8
|
+
require_sub __FILE__
|
8
9
|
enable_simple_cache
|
9
10
|
|
10
11
|
common_constructor :root
|
@@ -17,8 +18,7 @@ module EacRubyGemsUtils
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def bundle(*args)
|
20
|
-
::
|
21
|
-
.envvar('BUNDLE_GEMFILE', gemfile_path)
|
21
|
+
::EacRubyGemsUtils::Gem::Command.new(self, %w[bundle] + args).envvar_gemfile
|
22
22
|
end
|
23
23
|
|
24
24
|
def gemfile_lock_gem_version(gem_name)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'eac_ruby_utils/ruby/command'
|
5
|
+
require 'delegate'
|
6
|
+
|
7
|
+
module EacRubyGemsUtils
|
8
|
+
class Gem
|
9
|
+
class Command < ::EacRubyUtils::Ruby::Command
|
10
|
+
attr_reader :gem
|
11
|
+
|
12
|
+
def initialize(gem, command_args, extra_options = {})
|
13
|
+
@gem = gem
|
14
|
+
super(command_args, extra_options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# Changes current directory to the gem's directory.
|
18
|
+
def chdir_root
|
19
|
+
chdir(gem.root.to_path)
|
20
|
+
end
|
21
|
+
|
22
|
+
def envvar_gemfile
|
23
|
+
envvar('BUNDLE_GEMFILE', gem.gemfile_path.to_path)
|
24
|
+
end
|
25
|
+
|
26
|
+
protected
|
27
|
+
|
28
|
+
def duplicate(command, extra_options)
|
29
|
+
self.class.new(gem, command, extra_options)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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.
|
4
|
+
version: 0.4.0
|
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-04-
|
11
|
+
date: 2020-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.29'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.29'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eac_ruby_gem_support
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- README.rdoc
|
48
48
|
- lib/eac_ruby_gems_utils.rb
|
49
49
|
- lib/eac_ruby_gems_utils/gem.rb
|
50
|
+
- lib/eac_ruby_gems_utils/gem/command.rb
|
50
51
|
- lib/eac_ruby_gems_utils/tests.rb
|
51
52
|
- lib/eac_ruby_gems_utils/tests/base.rb
|
52
53
|
- lib/eac_ruby_gems_utils/tests/minitest.rb
|