object_dojo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- object_dojo (0.0.1)
4
+ object_dojo (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -6,19 +6,25 @@ ObjectDojo is a utility to improve your Object oriented programming skills using
6
6
 
7
7
  1. One level of indentation per method
8
8
  2. Don’t use the ELSE keyword
9
- 3. Wrap all primitives and Strings
9
+ 3. Wrap all primitives and Strings(Not implemented)
10
10
  4. First class collections
11
11
  5. One dot per line
12
- 6. Don’t abbreviate
12
+ 6. Don’t abbreviate (Not implemented)
13
13
  7. Keep all entities small
14
14
  8. No classes with more than two instance variables
15
15
  9. No getters/setters/properties
16
16
 
17
+ ### Installation
18
+
19
+ To install object dojo
20
+
21
+ $ gem install object_dojo
22
+
17
23
  ### Usage
18
24
 
19
- Run the command line utility dojo in your current project folder.
25
+ Run the command line utility dojo with path to code
20
26
 
21
- myapp$ dojo
27
+ $ dojo /path/to/code
22
28
 
23
29
  ### Configure
24
30
 
@@ -28,5 +34,4 @@ $ dojo -h
28
34
 
29
35
  #### Supported languages
30
36
 
31
- The current version supports only Ruby.
32
- Support for other languages like Java, C# and Python will be added in the future.
37
+ The current version supports only Ruby.
@@ -1,5 +1,5 @@
1
1
  rules:
2
- max_indent: 3
2
+ max_indent: 1
3
3
  avoid_keywords: "else,elsif"
4
4
  max_collections: 1
5
5
  max_chaining: 1
@@ -1,3 +1,3 @@
1
1
  module ObjectDojo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -2,15 +2,15 @@ class MethodIndentation
2
2
  TABS = 2
3
3
 
4
4
  def initialize(max)
5
- @max = max + 2 # including class and def indent
5
+ @max = max
6
6
  end
7
7
 
8
8
  def valid?(method)
9
- max_indent(method) <= @max
9
+ max_indent(method) <= @max + 2 # including class and def indent
10
10
  end
11
11
 
12
12
  def message
13
- "indentation is more than #{@max} levels"
13
+ "indentation is more than #{@max} level"
14
14
  end
15
15
 
16
16
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: object_dojo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  segments:
67
67
  - 0
68
- hash: -1806527109624100395
68
+ hash: -1036084530137473874
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  none: false
71
71
  requirements:
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  segments:
76
76
  - 0
77
- hash: -1806527109624100395
77
+ hash: -1036084530137473874
78
78
  requirements: []
79
79
  rubyforge_project: object_dojo
80
80
  rubygems_version: 1.8.10