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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c62f2a544c4de43d07168c0cda34dbd1c7b4a5e3b88044c8d478717b25f7ffe
4
- data.tar.gz: eb78317c811b39f572d5c98b991001ec5aa6df4fb6dedbedd4c11fa9c021f10b
3
+ metadata.gz: 0af38f91de340f196826c8212eafc801241008f627182ce51becf3b26bd9ba17
4
+ data.tar.gz: 8efb380d6348e099c8e135a945a7ed80e6a8bff3f86529b25d6977001957a9e5
5
5
  SHA512:
6
- metadata.gz: 04dfbb59957e4fe622d0ba7ea72b18cdad11cbb6e922e141051c49446015062c52528e84f289f4627f7f717a2acccf707bfee9ed10a10c12cc1f94343f2ed630
7
- data.tar.gz: 1980c5f06e08f6831f8a7d36d289be85ab71e15df576d3e5314fa4e128c6bd6436df318fa87f577f63e89fde6e1b5f328a1fca6a63b49c84a78436c769b680a8
6
+ metadata.gz: caa09523b18893a0428510b9341b3e7c323d5db6792b3aa46cb72b37d19e373a9c47e1bdf423d240526c3eb9a5d9c7e1ef7e66cc15ed18be01e27c658c4eb62c
7
+ data.tar.gz: dd90dc7224da6b5e146393b1c1019262d01fa13186da3229fa6b64eccd1f2a33829ba1d70bf1cd60c7ada25f008d16d8ff725d01ab0a6f5d25977fb177e414fb
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source "https://rubygems.org"
2
+ ruby "2.7.2"
2
3
 
3
4
  # Specify your gem's dependencies in gem_paths.gemspec
4
5
  gemspec
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.2)
18
+ backports (3.21.0)
19
19
  builder (3.2.4)
20
20
  childprocess (3.0.0)
21
- contracts (0.16.0)
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.13.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.1)
44
- rspec (3.9.0)
45
- rspec-core (~> 3.9.0)
46
- rspec-expectations (~> 3.9.0)
47
- rspec-mocks (~> 3.9.0)
48
- rspec-core (3.9.2)
49
- rspec-support (~> 3.9.3)
50
- rspec-expectations (3.9.2)
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.9.0)
53
- rspec-mocks (3.9.1)
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.9.0)
56
- rspec-support (3.9.3)
57
- thor (1.0.1)
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.0.1
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 `rake spec` and `cucumber features`
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)
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module GemPaths
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.1
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: 2020-09-01 00:00:00.000000000 Z
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
- rubyforge_project:
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