dirty 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/dirty.rb +12 -2
  3. data/lib/dirty/version.rb +1 -1
  4. metadata +11 -12
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8ea4991ee271e8316588575282db579b941dc61a
4
+ data.tar.gz: 78b70f2f45ac1e4523c19598a7bf5291cd626c7b
5
+ SHA512:
6
+ metadata.gz: 6365643e4ae3d8e651f212b1a3286625a899fdd5b920265be54a5bf1568591d618ce0ccd03e7de19004e8647f4abcd8ec0fba3ceaec6ab529617de7d77caa6db
7
+ data.tar.gz: e8fd290af23b5d9831e5553af5581b5866b9fbf8cf525d3ec65db96fe26999c460c0a03cef26993322e811e1a977991d2413d7b3aec42e50548b22901577c785
@@ -16,8 +16,10 @@ module Dirty
16
16
  [cucumber]
17
17
  when /spec/
18
18
  [rspec]
19
+ when /test/
20
+ [test]
19
21
  else
20
- [rspec, cucumber]
22
+ [rspec, test, cucumber]
21
23
  end.compact
22
24
  end
23
25
 
@@ -29,6 +31,10 @@ module Dirty
29
31
  "rspec #{dirty_specs.join(' ')}" if dirty_specs.any?
30
32
  end
31
33
 
34
+ def test
35
+ "ruby -I lib:test #{dirty_tests.join(' ')}" if dirty_tests.any?
36
+ end
37
+
32
38
  def cucumber
33
39
  "cucumber #{dirty_features.join(' ')}" if dirty_features.any?
34
40
  end
@@ -41,6 +47,10 @@ module Dirty
41
47
  dirty_matches(/spec.*(\_spec\.rb|\.feature)/)
42
48
  end
43
49
 
50
+ def dirty_tests
51
+ dirty_matches(/test.*(\_test\.rb|\.feature)/)
52
+ end
53
+
44
54
  def dirty_matches(regex)
45
55
  dirty_files.map do |s|
46
56
  s[/^.. (?:.* -> )?(#{regex})$/,1]
@@ -52,7 +62,7 @@ module Dirty
52
62
  end
53
63
 
54
64
  def status
55
- `git status --porcelain`.split("\n")
65
+ `git status --porcelain --untracked=all`.split("\n")
56
66
  end
57
67
 
58
68
  end
@@ -1,3 +1,3 @@
1
1
  module Dirty
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dirty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Robert Pitts
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-03-18 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: ! "Easily run dirty cucumber features and rspec specs in your current
15
- project\n if you're using git"
13
+ description: |-
14
+ Easily run dirty cucumber features and rspec specs in your current project
15
+ if you're using git
16
16
  email:
17
17
  - rbxbxdev@gmail.com
18
18
  executables:
@@ -20,7 +20,7 @@ executables:
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
- - .gitignore
23
+ - ".gitignore"
24
24
  - Gemfile
25
25
  - README.md
26
26
  - Rakefile
@@ -30,26 +30,25 @@ files:
30
30
  - lib/dirty/version.rb
31
31
  homepage: ''
32
32
  licenses: []
33
+ metadata: {}
33
34
  post_install_message:
34
35
  rdoc_options: []
35
36
  require_paths:
36
37
  - lib
37
38
  required_ruby_version: !ruby/object:Gem::Requirement
38
- none: false
39
39
  requirements:
40
- - - ! '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  required_rubygems_version: !ruby/object:Gem::Requirement
44
- none: false
45
44
  requirements:
46
- - - ! '>='
45
+ - - ">="
47
46
  - !ruby/object:Gem::Version
48
47
  version: '0'
49
48
  requirements: []
50
49
  rubyforge_project: dirty
51
- rubygems_version: 1.8.15
50
+ rubygems_version: 2.5.1
52
51
  signing_key:
53
- specification_version: 3
52
+ specification_version: 4
54
53
  summary: Run those dirty tests!
55
54
  test_files: []