panache 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,4 +33,4 @@ end
33
33
  Panache.load_styles(style_directory)
34
34
  results = {}
35
35
  code_paths.each { |path| results.merge! Panache.check_path(path) }
36
- Panache::Printer.new(results).print_results
36
+ exit 1 unless Panache::Printer.new(results).print_results
@@ -149,6 +149,7 @@ module Panache
149
149
  else
150
150
  puts "Found #{plural(violations_found, "violation")} in #{plural(bad_files, "bad file")}.".red
151
151
  end
152
+ violations_found.zero?
152
153
  end
153
154
  end
154
155
  end
@@ -1,3 +1,3 @@
1
1
  module Panache
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -22,5 +22,5 @@ It does simple parsing of source files and then applies user-specified rules to
22
22
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
23
  s.require_paths = ["lib"]
24
24
 
25
- s.add_development_dependency "colorize"
25
+ s.add_dependency "colorize"
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,19 +10,24 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-15 00:00:00.000000000Z
13
+ date: 2013-07-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colorize
17
- requirement: &2164909680 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
- type: :development
23
+ type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2164909680
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  description: ! 'Panache is a simple way to create style checkers for various languages.
27
32
 
28
33
  It does simple parsing of source files and then applies user-specified rules to
@@ -67,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
72
  version: '0'
68
73
  requirements: []
69
74
  rubyforge_project: panache
70
- rubygems_version: 1.8.7
75
+ rubygems_version: 1.8.23
71
76
  signing_key:
72
77
  specification_version: 3
73
78
  summary: Create style checkers for various languages