kinit 0.0.5 → 0.0.6

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 (3) hide show
  1. data/lib/kinit.rb +25 -18
  2. data/lib/kinit/version.rb +1 -1
  3. metadata +2 -2
data/lib/kinit.rb CHANGED
@@ -8,31 +8,38 @@ module Kinit
8
8
 
9
9
  class GemsEnforcer
10
10
 
11
- #class GemNotPresent < Exception; end
12
- #attr_reader :error, :message
13
- GemError = Class.new(ArgumentError)
11
+ #class GemNotPresent < Exception; end
12
+ #attr_reader :error, :message
13
+ GemError = Class.new(ArgumentError)
14
14
 
15
- #def initialize (app, options={})
15
+ #def initialize (app, options={})
16
16
  #end
17
17
 
18
18
  #def initialize
19
19
  #end
20
20
 
21
- def CheckIsGemPresent
22
- #return true if Gem::Specification.find_by_name(gemName)
23
- if Gem.available?('cane')
24
- puts "All good. Your project passes Kinit checks."
25
- return true
26
- else
27
- raise GemsEnforcer::GemError, "Please include gem 'cane' to the project."
21
+ def CheckIsGemPresent
22
+ gemList = ["cane","rails_best_practices", "rcov", "reek"]
23
+
24
+ gemList.each do |gemname|
25
+ puts "Checking if Gem '#{gemname}' present."
26
+
27
+ #if Gem::Specification.find_by_name(gem)
28
+ if Gem.available?(gemname)
29
+ puts "Gem '#{gemname}' is present in your project. Pretty Good."
30
+ else
31
+ # raise GemsEnforcer::GemError, "Please include gem 'cane' to the project."
32
+ puts "Gem '#{gemname}' is not present in your project. Not Good."
33
+ end
28
34
  end
29
- end
30
35
 
31
- #def invalid_ruby_version
32
- # @error = GemNotPresent
33
- # @message = "Please include gem #{GEM_NAME} to the project."
34
- #end
36
+ puts "Suggestion - You should use tools like 'CodeClimate' for your project."
37
+
38
+ return true
39
+ #puts "All good. Your project passes Kinit checks."
40
+
41
+ end # method ends here
35
42
 
36
- end
43
+ end # Class ends here
37
44
 
38
- end
45
+ end #module ends here
data/lib/kinit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kinit
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kinit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-30 00:00:00.000000000 Z
12
+ date: 2013-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler