dead_gems 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/dead_gems/version.rb +1 -1
- data/lib/dead_gems.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3592e808ba4498abb9b158c25279b743309262b
|
4
|
+
data.tar.gz: ee338b2e226f3c306ded1bdab8199e7af15eedac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d3ad4db03080484b4f1537f2e3682900e13322e8fdea028694629d0a5dda2108437d329a51d40e6eb2d975946d4d103c234056b7d6681f87f3802f7364eb557
|
7
|
+
data.tar.gz: 1558f6d9edabeebf7ab27bb9cf7352df704bd9155f76664b76372da6ca3d6d3194184c4aea3a12017a8fd8431bfc1937462b9b0f35cf4d56663af7b970b2e1fb
|
data/README.md
CHANGED
@@ -31,7 +31,10 @@ Or install it yourself as:
|
|
31
31
|
# First make sure to backup any changes you have (e.g. commit them to git, stash them, etc)
|
32
32
|
$ irb
|
33
33
|
$ irb(main)> require 'dead_gems'
|
34
|
-
$ irb(main)> DeadGems.find('~/my_slow_project', 'bundle exec rake test')
|
34
|
+
$ irb(main)> DeadGems.find('~/my_slow_project', 'bundle exec rake test')
|
35
|
+
|
36
|
+
# You can also specify the path to your test helper if you are using RSpec or something
|
37
|
+
$ irb(main)> DeadGems.find('~/my_slow_project', 'bundle exec rake test', test_helper: 'spec/spec_helper.rb')
|
35
38
|
```
|
36
39
|
|
37
40
|
This will run my project's tests and output all of the gems that aren't used in my tests.
|
data/lib/dead_gems/version.rb
CHANGED
data/lib/dead_gems.rb
CHANGED
@@ -6,7 +6,8 @@ module DeadGems
|
|
6
6
|
GemInstance = Struct.new(:name, :path)
|
7
7
|
|
8
8
|
class << self
|
9
|
-
def find(project_root, exerciser,
|
9
|
+
def find(project_root, exerciser, opts = {})
|
10
|
+
test_helper = opts[:test_helper] || 'test/test_helper.rb'
|
10
11
|
begin_dir = Dir.pwd
|
11
12
|
logger = Logger.new($stdout)
|
12
13
|
change_directory_to project_root
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dead_gems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bodah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|