pre_push 1.1.2 → 1.1.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e09d5104c4233c2941daa15f57205fd191e61487
4
- data.tar.gz: 47a07425e8b613e674dcf28c0b395a2b30dbfe96
3
+ metadata.gz: a633832925bb48a3566e26c8ed5b191d6da9c0a2
4
+ data.tar.gz: 37a31a5d7689239a6db0c87f12190265359ecd63
5
5
  SHA512:
6
- metadata.gz: 81cf47b697f0254be3f2e8c88b0b3235e1708ab77651ac34ff1e5458f2769510036e6e33aa95a26a1cb741d6c00abaaef6a14547f37b85c77330a870bd52680e
7
- data.tar.gz: 86bcc1524667745b5d3e26e5424af40ffb280dd99c8b2475a50cee9e6d68dc778c2e22f99c15014025bc8a280f45d410464bec84c5a81e29df9d25c1e5a7ae99
6
+ metadata.gz: e44a7732bcc0f491db133fd99bf47e7e4ec83576dc1ad3023dd353cc461c0ae46e938c543630c21e28b86e80f73d87ff0551095d4363a8e6fe1f97c032d50c3e
7
+ data.tar.gz: 00e8232aaf594cccca573e4e3d269154b5a55c27a70d5d4221d0ec8fd9dc403139cdb4862912c40f08f2989c2e56d9f80584128e72903702dd8467f067dd8bc5
@@ -18,43 +18,44 @@ module PrePush
18
18
  def build
19
19
  @solution.to_a.each do |s|
20
20
  system "#{msbuild} #{s}"
21
+ return false if !$?.success?
21
22
  end
22
23
  $?.success?
23
24
  end
24
- def run_tests assemblies
25
+ def run_tests assemblies
25
26
  assemblies = assemblies.to_a.empty? ? @solution.to_a : assemblies
26
27
  success = true
27
- gem_lib = File.dirname(__FILE__)
28
- tests_to_run = @tests_to_run || {@test_runner => assemblies}
29
- tests_to_run.each_pair do |test_to_run|
28
+ gem_lib = File.dirname(__FILE__)
29
+ tests_to_run = @tests_to_run || {@test_runner => assemblies}
30
+ tests_to_run.each_pair do |test_to_run|
30
31
  test_to_run[1].each do |assembly|
31
- system "#{test_runner_path(gem_lib, test_to_run[0])} \"#{assembly}\""
32
- success &= $?.success?
33
- end
34
- end
35
- success
36
- end
32
+ system "#{test_runner_path(gem_lib, test_to_run[0])} \"#{assembly}\""
33
+ success &= $?.success?
34
+ end
35
+ end
36
+ success
37
+ end
37
38
 
38
- private
39
- def msbuild
40
- MSBuild
41
- end
42
- def test_runner_path gem_lib, test_runner
43
- test_runner = test_runner.to_s
44
- "\"#{gem_lib}/runners/#{test_runner}/#{runners_exes[test_runner]}\""
45
- end
46
- def override_msbuild custom_msbuild
47
- define_singleton_method :msbuild do
48
- custom_msbuild
49
- end
50
- end
51
- def force_test_runner runner_path
52
- define_singleton_method :test_runner_path do |gem_lib, nothing|
53
- runner_path
54
- end
55
- end
56
- def runners_exes
57
- {
39
+ private
40
+ def msbuild
41
+ MSBuild
42
+ end
43
+ def test_runner_path gem_lib, test_runner
44
+ test_runner = test_runner.to_s
45
+ "\"#{gem_lib}/runners/#{test_runner}/#{runners_exes[test_runner]}\""
46
+ end
47
+ def override_msbuild custom_msbuild
48
+ define_singleton_method :msbuild do
49
+ custom_msbuild
50
+ end
51
+ end
52
+ def force_test_runner runner_path
53
+ define_singleton_method :test_runner_path do |gem_lib, nothing|
54
+ runner_path
55
+ end
56
+ end
57
+ def runners_exes
58
+ {
58
59
  'mspec' => 'mspec-clr4.exe',
59
60
  'mspec0515' => 'mspec-clr4.exe',
60
61
  'mspec0512' => 'mspec-clr4.exe',
@@ -62,7 +63,7 @@ module PrePush
62
63
  'nunit263' => 'nunit-console.exe',
63
64
  'xunit191' => 'xunit.console.exe'
64
65
  }
65
- end
66
+ end
66
67
  end
67
68
 
68
69
  def self.included(receiver)
@@ -1,3 +1,3 @@
1
1
  module PrePush
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pre_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nieve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-31 00:00:00.000000000 Z
11
+ date: 2014-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler