gem_paths 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/Gemfile +1 -0
- data/Gemfile.lock +20 -17
- data/README.md +5 -1
- data/lib/gem_paths/cli.rb +2 -0
- data/lib/gem_paths/list.rb +4 -0
- data/lib/gem_paths/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0af38f91de340f196826c8212eafc801241008f627182ce51becf3b26bd9ba17
|
4
|
+
data.tar.gz: 8efb380d6348e099c8e135a945a7ed80e6a8bff3f86529b25d6977001957a9e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa09523b18893a0428510b9341b3e7c323d5db6792b3aa46cb72b37d19e373a9c47e1bdf423d240526c3eb9a5d9c7e1ef7e66cc15ed18be01e27c658c4eb62c
|
7
|
+
data.tar.gz: dd90dc7224da6b5e146393b1c1019262d01fa13186da3229fa6b64eccd1f2a33829ba1d70bf1cd60c7ada25f008d16d8ff725d01ab0a6f5d25977fb177e414fb
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -15,10 +15,10 @@ GEM
|
|
15
15
|
ffi (~> 1.9)
|
16
16
|
rspec-expectations (>= 2.99)
|
17
17
|
thor (>= 0.19, < 2.0)
|
18
|
-
backports (3.
|
18
|
+
backports (3.21.0)
|
19
19
|
builder (3.2.4)
|
20
20
|
childprocess (3.0.0)
|
21
|
-
contracts (0.16.
|
21
|
+
contracts (0.16.1)
|
22
22
|
cucumber (3.2.0)
|
23
23
|
builder (>= 2.1.2)
|
24
24
|
cucumber-core (~> 3.2.0)
|
@@ -36,25 +36,25 @@ GEM
|
|
36
36
|
cucumber-tag_expressions (1.1.1)
|
37
37
|
cucumber-wire (0.0.1)
|
38
38
|
diff-lcs (1.4.4)
|
39
|
-
ffi (1.
|
39
|
+
ffi (1.15.4)
|
40
40
|
gherkin (5.1.0)
|
41
41
|
multi_json (1.15.0)
|
42
42
|
multi_test (0.1.2)
|
43
|
-
rake (13.0.
|
44
|
-
rspec (3.
|
45
|
-
rspec-core (~> 3.
|
46
|
-
rspec-expectations (~> 3.
|
47
|
-
rspec-mocks (~> 3.
|
48
|
-
rspec-core (3.
|
49
|
-
rspec-support (~> 3.
|
50
|
-
rspec-expectations (3.
|
43
|
+
rake (13.0.6)
|
44
|
+
rspec (3.10.0)
|
45
|
+
rspec-core (~> 3.10.0)
|
46
|
+
rspec-expectations (~> 3.10.0)
|
47
|
+
rspec-mocks (~> 3.10.0)
|
48
|
+
rspec-core (3.10.1)
|
49
|
+
rspec-support (~> 3.10.0)
|
50
|
+
rspec-expectations (3.10.1)
|
51
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-mocks (3.
|
52
|
+
rspec-support (~> 3.10.0)
|
53
|
+
rspec-mocks (3.10.2)
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.
|
56
|
-
rspec-support (3.
|
57
|
-
thor (1.0
|
55
|
+
rspec-support (~> 3.10.0)
|
56
|
+
rspec-support (3.10.2)
|
57
|
+
thor (1.1.0)
|
58
58
|
|
59
59
|
PLATFORMS
|
60
60
|
ruby
|
@@ -66,5 +66,8 @@ DEPENDENCIES
|
|
66
66
|
rake (>= 12.3.3)
|
67
67
|
rspec (~> 3.0)
|
68
68
|
|
69
|
+
RUBY VERSION
|
70
|
+
ruby 2.7.2p137
|
71
|
+
|
69
72
|
BUNDLED WITH
|
70
|
-
2.
|
73
|
+
2.1.4
|
data/README.md
CHANGED
@@ -30,7 +30,11 @@ To display the path for each installed gem, do:
|
|
30
30
|
|
31
31
|
## Development
|
32
32
|
|
33
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
33
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run :
|
34
|
+
|
35
|
+
$ bundle exec rspec
|
36
|
+
$ bundle exec cucumber features
|
37
|
+
|
34
38
|
to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
35
39
|
|
36
40
|
To install your local copy of this gem onto your local machine, run `bundle exec rake install`.
|
data/lib/gem_paths/cli.rb
CHANGED
@@ -17,6 +17,8 @@ module GemPaths
|
|
17
17
|
puts GemPaths::List.to_json
|
18
18
|
when 'make'
|
19
19
|
puts GemPaths::List.to_make
|
20
|
+
when 'sh'
|
21
|
+
say GemPaths::List.to_sh
|
20
22
|
else
|
21
23
|
shell.error set_color("Invalid value for --format option. Try 'gempaths help list' for more info.", Thor::Shell::Color::RED)
|
22
24
|
exit(2)
|
data/lib/gem_paths/list.rb
CHANGED
@@ -14,6 +14,10 @@ module GemPaths
|
|
14
14
|
gem_name_path_map.map { |pair| "export gem-path-#{pair[0]} := #{pair[1]}" }
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.to_sh
|
18
|
+
gem_name_path_map.map { |pair| "export gem-path-#{pair[0]}=#{pair[1]}" }
|
19
|
+
end
|
20
|
+
|
17
21
|
def self.to_yaml
|
18
22
|
str = "---\n"
|
19
23
|
str << "gem:\n"
|
data/lib/gem_paths/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_paths
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Torben Jacobsen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -149,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
|
153
|
-
rubygems_version: 2.7.7
|
152
|
+
rubygems_version: 3.1.4
|
154
153
|
signing_key:
|
155
154
|
specification_version: 4
|
156
155
|
summary: Gem to be used in plugin for Bundler, which can list gem paths in various
|