Skip to content

Commit 6ccf345

Browse files
committedOct 20, 2014
Merge pull request #3 from fernandes/change_from_direct_to_group
Until some time ago this year, the extraneous option `direct:` worked, but then a check was added to not allow extra options and the feature has been broken ever since. I love your way around it. Perfect hack! Merging it in.
2 parents 55dcc1a + aa79d1b commit 6ccf345

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
 

Diff for: ‎README.md

+16
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ And then execute:
1515
Or install it yourself as:
1616

1717
$ gem install cobradeps
18+
19+
### Dependencies
20+
21+
You need [Graphviz](http://graphviz.org/) to generate the graph.png
22+
23+
#### OS X
24+
25+
If you're using OS X and homebrew, you just need to:
26+
27+
```bash
28+
brew install graphviz
29+
```
30+
31+
#### Other Operating Systems
32+
33+
For more information about installation on other operating systems, just check [Graphviz Download Page](http://graphviz.org/Download..php)
1834

1935
## Usage
2036

Diff for: ‎lib/cobradeps/gemfile_scraper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def path
8585
end
8686

8787
def direct
88-
match = @options.match(/direct(?:\s*=>|:)\s+true/)
88+
match = @options.match(/group(?:\s*=>|:)\s+:direct/)
8989
match ? {direct: true} : {}
9090
end
9191
end

Diff for: ‎spec/examples/letters/A/Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ gem 'spring', group: :development
3838
# Use debugger
3939
# gem 'debugger', group: [:development, :test]
4040

41-
gem "B", path: "../B", direct: true
41+
gem "B", path: "../B", group: :direct
4242
gem "C", path: "../C"
4343
gem "D", path: "../D"
4444
gem "E1", path: "../E1"

0 commit comments

Comments
 (0)
Please sign in to comment.