guard-rails_best_practices 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ require 'active_support/core_ext/string' # Fixes undefined method `blank?' for "
5
5
  require File.join(File.dirname(__FILE__), "rails_best_practices/version")
6
6
 
7
7
  module Guard
8
- class Rails_best_practices < Guard
8
+ class RailsBestPractices < Guard
9
9
  autoload :Notifier, 'guard/annotate/notifier'
10
10
 
11
11
  def initialize(watchers = [], options = {})
@@ -2,9 +2,9 @@
2
2
  #
3
3
  # Borrowed from guard-annotate
4
4
  module Guard
5
- class Rails_best_practices
5
+ class RailsBestPractices
6
6
  class Notifier
7
-
7
+
8
8
  class << self
9
9
  def guard_message( result, duration )
10
10
  case result
@@ -14,19 +14,19 @@ module Guard
14
14
  "Rails Best Practices checklist run has failed!\nPlease check manually."
15
15
  end
16
16
  end
17
-
17
+
18
18
  def guard_image( result )
19
19
  result ? :success : :failed
20
20
  end
21
-
21
+
22
22
  def notify( result, duration )
23
23
  message = guard_message( result, duration )
24
24
  image = guard_image( result )
25
-
25
+
26
26
  ::Guard::Notifier.notify( message, :title => 'Rails Best Practices checklist complete', :image => image )
27
- end
27
+ end
28
28
  end
29
-
29
+
30
30
  end
31
31
  end
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RailsBestPracticesVersion
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rails_best_practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-10 00:00:00.000000000 Z
12
+ date: 2012-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &15189520 !ruby/object:Gem::Requirement
16
+ requirement: &16010980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.8.4
21
+ version: '0.9'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15189520
24
+ version_requirements: *16010980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails_best_practices
27
- requirement: &15188940 !ruby/object:Gem::Requirement
27
+ requirement: &16010480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *15188940
35
+ version_requirements: *16010480
36
36
  - !ruby/object:Gem::Dependency
37
- name: active_support
38
- requirement: &15188360 !ruby/object:Gem::Requirement
37
+ name: activesupport
38
+ requirement: &16010020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *15188360
46
+ version_requirements: *16010020
47
47
  description: Guard for rails_best_practices, a code metric tool to check the quality
48
48
  of rails code.
49
49
  email:
@@ -52,10 +52,10 @@ executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
- - lib/guard/rails_best_practices.rb
56
- - lib/guard/rails_best_practices/templates/Guardfile
57
55
  - lib/guard/rails_best_practices/notifier.rb
56
+ - lib/guard/rails_best_practices/templates/Guardfile
58
57
  - lib/guard/rails_best_practices/version.rb
58
+ - lib/guard/rails_best_practices.rb
59
59
  - README.md
60
60
  homepage: http://rubygems.org/gems/guard-rails_best_practices
61
61
  licenses: []