hellgrid 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 76604f073de83eccc0552e5eb2d956abf515257e
4
- data.tar.gz: 83fdbe0bb110aa0fd648e2c190b869ada27dd061
3
+ metadata.gz: 8cf6eaeb8266e3defb76dfd2356cf8afc48fe022
4
+ data.tar.gz: 534f6360775cfaa91cc640d22944cc2d0373e2a6
5
5
  SHA512:
6
- metadata.gz: 2986e0b3139bfd4d117d61c785b26d67208f096af09641311d2e03a851885836a1b07610838fcd2f8a24a0a343fa78f5c75bc0f73f67e3217a8efd1a446e2d9f
7
- data.tar.gz: 75508df3dba613d5ba2f0323c1a905264011a006d0b3992381d2ce7cbff4b09098ff130a1ddcd5b35308ab50fe9453e9b646344cd3fb4c425d78c8676f6dc977
6
+ metadata.gz: 72f0cecdd42d996e20732e97dbb8bbda9e77b4a888330561f55417f934298d711134f85660bcba61c0732d308666666aa24623bd092b53d807acde9e304cb727
7
+ data.tar.gz: d54c079d37e6c9eff6b1536a7a059e9fcd07a57fe348c6d063f163a7f12e14b6a62cd67f48f77c9b278c74634ef2aff921473c8908bf4f8f0f91b027655f3b6d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hellgrid (0.0.1)
4
+ hellgrid (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -30,4 +30,4 @@ DEPENDENCIES
30
30
  rspec (~> 3.4, >= 3.4.0)
31
31
 
32
32
  BUNDLED WITH
33
- 1.11.2
33
+ 1.13.6
data/README.md CHANGED
@@ -19,6 +19,11 @@ Executing:
19
19
  hellgrid /path/to/root/dir
20
20
  ```
21
21
 
22
+ To search recursively (should you have nested projects), use the `-r ` flag:
23
+ ```
24
+ hellgrid -r /path/to/root/dir
25
+ ```
26
+
22
27
  Should result in:
23
28
  ```bash
24
29
  x | bar | foo
data/bin/hellgrid CHANGED
@@ -9,6 +9,7 @@ require 'find'
9
9
 
10
10
  require 'hellgrid'
11
11
 
12
+ recursive_search = !!(ARGV.delete('-r'))
12
13
  folders = ARGV.empty? ? [Dir.pwd] : ARGV
13
14
 
14
15
  folders.each do |folder|
@@ -17,7 +18,7 @@ folders.each do |folder|
17
18
  Find.find(folder) do |path|
18
19
  if File.directory?(path) && File.exists?(File.join(path, 'Gemfile.lock'))
19
20
  matrix.add_project(Hellgrid::Project.new(folder, path))
20
- Find.prune
21
+ Find.prune unless recursive_search
21
22
  end
22
23
  end
23
24
 
data/hellgrid.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.test_files = s.files.grep(/^spec\//)
17
17
  s.require_paths = ['lib']
18
18
  s.homepage = 'https://github.com/FundingCircle/hellgrid'
19
- s.license = 'BSD-3'
19
+ s.license = 'BSD-3-Clause'
20
20
 
21
21
  s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
22
22
  s.add_development_dependency 'bundler', '~> 1.11', '>= 1.11.0'
@@ -1,3 +1,3 @@
1
1
  module Hellgrid
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -110,4 +110,22 @@ TABLE
110
110
  expect(`cd #{PROJECT_ROOT}/spec/tmp && #{PROJECT_ROOT}/bin/hellgrid`).to eq(expected_result)
111
111
  end
112
112
  end
113
+
114
+ context 'when passing -r' do
115
+ it 'searches recursively within folders if you flag it to' do
116
+ Bundler.with_clean_env do
117
+ expect(`cd #{PROJECT_ROOT} && #{PROJECT_ROOT}/bin/hellgrid -r`).to(
118
+ include(
119
+ 'hellgrid',
120
+ 'spec/tmp/bar',
121
+ 'spec/tmp/in/foo',
122
+ 'rspec',
123
+ '3.4.0',
124
+ '2.0.0',
125
+ '3.0.0'
126
+ )
127
+ )
128
+ end
129
+ end
130
+ end
113
131
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hellgrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deyan Dobrinov
@@ -76,7 +76,7 @@ files:
76
76
  - spec/spec_helper.rb
77
77
  homepage: https://github.com/FundingCircle/hellgrid
78
78
  licenses:
79
- - BSD-3
79
+ - BSD-3-Clause
80
80
  metadata: {}
81
81
  post_install_message:
82
82
  rdoc_options: []