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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2246b24540c8fa6161289db092e74f4104ea6fc7
4
- data.tar.gz: a412c88ed0fe63e9a1af3ce8f217d42496d8cfc3
3
+ metadata.gz: b3592e808ba4498abb9b158c25279b743309262b
4
+ data.tar.gz: ee338b2e226f3c306ded1bdab8199e7af15eedac
5
5
  SHA512:
6
- metadata.gz: ed6349f91a26eee0ba8efbe2ef9bd5298745fc831e943fc284c7c66f3a09c4814304c7e6976d750e9e85763d30bbf6ebbadc20620643ebc324cf8f2e1defa06e
7
- data.tar.gz: 54c588cf353e2bcdf1b13133b4af2d371d74e96ead7ed74a8be3de2fa577a9ffb5560918eb5305efc5a48f9d5d9a5b73b1cf6e7815d56416fa8c1dce153e308b
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.
@@ -1,3 +1,3 @@
1
1
  module DeadGems
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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, test_helper: 'test/test_helper.rb')
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.3
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-10-23 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler