guard-brakeman 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +2 -2
  2. data/lib/guard/brakeman.rb +6 -2
  3. metadata +46 -63
data/README.md CHANGED
@@ -53,7 +53,7 @@ Please read the [Guard documentation](http://github.com/guard/guard#readme) for
53
53
  ### List of available options
54
54
 
55
55
  ```ruby
56
- :output_file => 'donkey.html' # write the results to the specified file
56
+ :output_files => %w(donkey.html) # write the results to the specified files
57
57
  :notifications => false # display Growl notifications, defaults to true
58
58
  :run_on_start => true # run all checks on startup, defaults to false
59
59
  :min_confidence => 3 # only alert on warnings above a threshold, defaults to 1
@@ -128,4 +128,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
128
128
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
129
129
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
130
130
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
131
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
131
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -164,9 +164,13 @@ module Guard
164
164
  end
165
165
  end
166
166
 
167
- # stolen from ActiveSupport
168
167
  def pluralize(count, singular, plural = nil)
169
- "#{count || 0} " + ((count == 1 || count =~ /^1(\.0+)?$/) ? singular : (plural || singular.pluralize))
168
+ "#{count || 0} " + ((count == 1 || count =~ /^1(\.0+)?$/) ? singular : (plural || pluralize_word(singular)))
169
+ end
170
+
171
+ # try ActiveSupport or naive pluralize
172
+ def pluralize_word(singular)
173
+ singular.respond_to?(:pluralize) ? singular.pluralize : singular + 's'
170
174
  end
171
175
 
172
176
  def info(message, color = :white)
metadata CHANGED
@@ -1,102 +1,85 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: guard-brakeman
3
- version: !ruby/object:Gem::Version
4
- hash: 1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 3
10
- version: 0.6.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Neil Matatall
14
9
  - Justin Collins
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2013-01-17 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2013-06-19 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: guard
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 19
30
- segments:
31
- - 1
32
- - 1
33
- - 0
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
34
22
  version: 1.1.0
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: brakeman
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 1.1.0
31
+ - !ruby/object:Gem::Dependency
32
+ name: brakeman
33
+ requirement: !ruby/object:Gem::Requirement
41
34
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 51
46
- segments:
47
- - 1
48
- - 8
49
- - 2
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
50
38
  version: 1.8.2
51
39
  type: :runtime
52
- version_requirements: *id002
53
- description: Guard::Brakeman automatically scans your Rails app for vulnerabilities using the Brakeman Scaner https://github.com/presidentbeef/brakeman
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.8.2
47
+ description: Guard::Brakeman automatically scans your Rails app for vulnerabilities
48
+ using the Brakeman Scaner https://github.com/presidentbeef/brakeman
54
49
  email:
55
50
  executables: []
56
-
57
51
  extensions: []
58
-
59
52
  extra_rdoc_files: []
60
-
61
- files:
53
+ files:
62
54
  - lib/guard/brakeman/templates/Guardfile
63
55
  - lib/guard/brakeman.rb
64
56
  - LICENSE
65
57
  - README.md
66
58
  homepage: https://github.com/guard/guard-brakeman
67
59
  licenses: []
68
-
69
60
  post_install_message:
70
- rdoc_options:
61
+ rdoc_options:
71
62
  - --charset=UTF-8
72
63
  - --main=README.md
73
64
  - --exclude='(test|spec)|(Gem|Guard|Rake)file'
74
- require_paths:
65
+ require_paths:
75
66
  - lib
76
- required_ruby_version: !ruby/object:Gem::Requirement
67
+ required_ruby_version: !ruby/object:Gem::Requirement
77
68
  none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- hash: 3
82
- segments:
83
- - 0
84
- version: "0"
85
- required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
74
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- hash: 3
91
- segments:
92
- - 0
93
- version: "0"
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
94
79
  requirements: []
95
-
96
80
  rubyforge_project: guard-brakeman
97
- rubygems_version: 1.8.24
81
+ rubygems_version: 1.8.25
98
82
  signing_key:
99
83
  specification_version: 3
100
84
  summary: Guard gem for Brakeman
101
85
  test_files: []
102
-