gittest 0.1.2 → 0.1.3

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.
Files changed (4) hide show
  1. data/Manifest.txt +0 -1
  2. data/lib/gittest.rb +2 -3
  3. metadata +27 -13
  4. data/History.txt +0 -3
data/Manifest.txt CHANGED
@@ -1,4 +1,3 @@
1
- History.txt
2
1
  Manifest.txt
3
2
  README.txt
4
3
  Rakefile
data/lib/gittest.rb CHANGED
@@ -4,7 +4,7 @@ require 'rbconfig'
4
4
 
5
5
  class Gittest
6
6
 
7
- VERSION = '0.1.2'
7
+ VERSION = '0.1.3'
8
8
 
9
9
  attr_reader :commit, :test_mappings
10
10
 
@@ -17,14 +17,12 @@ class Gittest
17
17
  cd_to_repository_root # note: I'm assuming that the repository root is the project root, and any .autotest file will be in the project root
18
18
  @at = Autotest.new
19
19
  @at.hook :initialize
20
- @at.find_files # find known files on initialisation
21
20
  @test_mappings = @at.instance_eval { @test_mappings }
22
21
  @commit = commit
23
22
  end
24
23
 
25
24
  # Reset the known files and both new_or_modified_files and files_to_test values
26
25
  def reset
27
- @at.find_files
28
26
  @new_or_modified_files = nil
29
27
  @files_to_test = nil
30
28
  end
@@ -46,6 +44,7 @@ class Gittest
46
44
 
47
45
  # Finds files to test by checking if the autotest test mappings match any of the new or modified files
48
46
  def find_files_to_test
47
+ @at.find_files # populate the known files, otherwise procs defined as part of test mappings may fail to find any matching files when called
49
48
  files_to_test = @at.new_hash_of_arrays
50
49
  new_or_modified_files.each do |f|
51
50
  next if f =~ @at.exceptions # skip exceptions
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gittest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease:
4
+ hash: 29
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mark Woods
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-14 00:00:00 +00:00
18
+ date: 2011-01-17 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -33,21 +33,37 @@ dependencies:
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: hoe
36
+ name: rubyforge
37
37
  prerelease: false
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- hash: 5
43
+ hash: 7
44
44
  segments:
45
45
  - 2
46
- - 3
47
- - 3
48
- version: 2.3.3
46
+ - 0
47
+ - 4
48
+ version: 2.0.4
49
49
  type: :development
50
50
  version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: hoe
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 19
60
+ segments:
61
+ - 2
62
+ - 7
63
+ - 0
64
+ version: 2.7.0
65
+ type: :development
66
+ version_requirements: *id003
51
67
  description: |-
52
68
  Gittest uses your autotest mappings to run tests based on the files
53
69
  you've created or changed, according to git diff.
@@ -58,11 +74,9 @@ executables:
58
74
  extensions: []
59
75
 
60
76
  extra_rdoc_files:
61
- - History.txt
62
77
  - Manifest.txt
63
78
  - README.txt
64
79
  files:
65
- - History.txt
66
80
  - Manifest.txt
67
81
  - README.txt
68
82
  - Rakefile
@@ -99,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
113
  requirements: []
100
114
 
101
115
  rubyforge_project: gittest
102
- rubygems_version: 1.4.1
116
+ rubygems_version: 1.3.7
103
117
  signing_key:
104
118
  specification_version: 3
105
119
  summary: Gittest uses your autotest mappings to run tests based on the files you've created or changed, according to git diff.
data/History.txt DELETED
@@ -1,3 +0,0 @@
1
- === 0.1.1 2010-12-30
2
-
3
- * Initial release