hexx-suit 0.0.1 → 0.1.0
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.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/lib/hexx/suit/install.rb +9 -0
- data/lib/hexx/suit/install/_rubocop.yml +1 -74
- data/lib/hexx/suit/metrics/base.rb +3 -5
- data/lib/hexx/suit/metrics/metric_fu.rb +1 -1
- data/lib/hexx/suit/metrics/metric_fu/base.rb +3 -3
- data/lib/hexx/suit/metrics/pippi.rb +1 -1
- data/lib/hexx/suit/metrics/rubocop.rb +1 -1
- data/lib/hexx/suit/metrics/simplecov.rb +1 -1
- data/lib/hexx/suit/metrics/yardstick.rb +1 -1
- data/lib/hexx/suit/version.rb +1 -1
- data/spec/tests/bin/install_spec.rb +2 -0
- data/spec/tests/lib/install_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d490650992ec237eef5f474308d234f5035606
|
4
|
+
data.tar.gz: 0a6d4ec31ce21306390d81d625871aa1174f3213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c20945cc60b91b5a8f013e9ee551b7d1f3c83f74284557733d035ae3f348eae82774329af2a8457089be1dfe0664f14ba98737223c38b244b6be40924db84eb
|
7
|
+
data.tar.gz: 76ae1aebb9e29593f54ca6094fcdd12c658acbb0ba582549b999f52b25b4aa714cc2e22794d5c2ad9bd4658badf0b1f06b0e10bb77032eb9b6727baeff816689
|
data/README.md
CHANGED
@@ -29,13 +29,13 @@ Add this line to your application's Gemfile:
|
|
29
29
|
Then execute:
|
30
30
|
|
31
31
|
```
|
32
|
-
|
32
|
+
bundle
|
33
33
|
```
|
34
34
|
|
35
35
|
And run the task from the application root:
|
36
36
|
|
37
37
|
```
|
38
|
-
|
38
|
+
hexx-suit install
|
39
39
|
```
|
40
40
|
|
41
41
|
Require the gem in the `spec_helper.rb` **before** loading application:
|
@@ -63,13 +63,13 @@ The gem adds three tasks for a development process authomation:
|
|
63
63
|
The task runs rspec (runs no coverage controls) **in a bundle environment**.
|
64
64
|
|
65
65
|
```
|
66
|
-
|
66
|
+
rake test
|
67
67
|
```
|
68
68
|
|
69
69
|
This is a simple shortcut for longer syntaxes:
|
70
70
|
|
71
71
|
```
|
72
|
-
|
72
|
+
bundle exec rspec spec
|
73
73
|
```
|
74
74
|
|
75
75
|
### Debug
|
@@ -77,13 +77,13 @@ This is a simple shortcut for longer syntaxes:
|
|
77
77
|
The tasks runs specs wrapped to pry `rescue` command.
|
78
78
|
|
79
79
|
```
|
80
|
-
|
80
|
+
rake debug
|
81
81
|
```
|
82
82
|
|
83
83
|
This is the same as:
|
84
84
|
|
85
85
|
```
|
86
|
-
|
86
|
+
bundle exec rescue rspec spec
|
87
87
|
```
|
88
88
|
|
89
89
|
### Check
|
@@ -91,19 +91,19 @@ This is the same as:
|
|
91
91
|
The task runs rspec under the test coverage control, and then calls all the code metrics, except for mutation testing.
|
92
92
|
|
93
93
|
```
|
94
|
-
|
94
|
+
rake check
|
95
95
|
```
|
96
96
|
|
97
97
|
You can use single metrics as well:
|
98
98
|
|
99
99
|
```
|
100
|
-
|
100
|
+
rake check:yardstick
|
101
101
|
```
|
102
102
|
|
103
103
|
See all tasks at:
|
104
104
|
|
105
105
|
```
|
106
|
-
|
106
|
+
rake -T check
|
107
107
|
```
|
108
108
|
|
109
109
|
All the tasks will use settings from `config/metrics` folder.
|
data/lib/hexx/suit/install.rb
CHANGED
@@ -80,6 +80,15 @@ module Hexx
|
|
80
80
|
def create_metrics_loader
|
81
81
|
copy_file "_metrics", ".metrics"
|
82
82
|
end
|
83
|
+
|
84
|
+
# creates metric_fu loader
|
85
|
+
#
|
86
|
+
# @return [undefined]
|
87
|
+
#
|
88
|
+
# @api private
|
89
|
+
def create_rubocop_loader
|
90
|
+
copy_file "_rubocop.yml", ".rubocop.yml"
|
91
|
+
end
|
83
92
|
end # class Install
|
84
93
|
end # module Suit
|
85
94
|
end # module Hexx
|
@@ -1,74 +1 @@
|
|
1
|
-
|
2
|
-
Exclude:
|
3
|
-
- '**/db/schema.rb'
|
4
|
-
|
5
|
-
Lint/HandleExceptions:
|
6
|
-
Exclude:
|
7
|
-
- 'spec/**/*'
|
8
|
-
|
9
|
-
Lint/RescueException:
|
10
|
-
Exclude:
|
11
|
-
- 'spec/**/*'
|
12
|
-
|
13
|
-
Metrics/ClassLength:
|
14
|
-
Exclude:
|
15
|
-
- 'lib/**/generator*'
|
16
|
-
|
17
|
-
Style/AccessorMethodName:
|
18
|
-
Exclude:
|
19
|
-
- 'spec/**/*'
|
20
|
-
|
21
|
-
Style/AsciiComments:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Style/ClassAndModuleChildren:
|
25
|
-
Exclude:
|
26
|
-
- 'spec/**/*'
|
27
|
-
|
28
|
-
Style/Documentation:
|
29
|
-
Exclude:
|
30
|
-
- 'lib/**/version.rb'
|
31
|
-
- 'spec/**/*'
|
32
|
-
|
33
|
-
Style/EmptyLinesAroundBlockBody:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
Style/EmptyLinesAroundClassBody:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
Style/EmptyLinesAroundMethodBody:
|
40
|
-
Enabled: false
|
41
|
-
|
42
|
-
Style/EmptyLinesAroundModuleBody:
|
43
|
-
Enabled: false
|
44
|
-
|
45
|
-
Style/EmptyLineBetweenDefs:
|
46
|
-
Enabled: false
|
47
|
-
|
48
|
-
Style/FileName:
|
49
|
-
Enabled: false
|
50
|
-
|
51
|
-
Style/RaiseArgs:
|
52
|
-
EnforcedStyle: compact
|
53
|
-
|
54
|
-
Style/SingleLineMethods:
|
55
|
-
Exclude:
|
56
|
-
- 'spec/**/*'
|
57
|
-
|
58
|
-
Style/SingleSpaceBeforeFirstArg:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Style/SpecialGlobalVars:
|
62
|
-
Exclude:
|
63
|
-
- 'Gemfile'
|
64
|
-
- '*.gemspec'
|
65
|
-
|
66
|
-
Style/StringLiterals:
|
67
|
-
EnforcedStyle: double_quotes
|
68
|
-
|
69
|
-
Stype/StringLiteralsInInterpolation:
|
70
|
-
EnforcedStyle: double_quotes
|
71
|
-
|
72
|
-
Style/TrivialAccessors:
|
73
|
-
Exclude:
|
74
|
-
- 'spec/**/*'
|
1
|
+
inherited_from: "./config/metrics/rubocop.yml"
|
@@ -22,7 +22,8 @@ module Hexx
|
|
22
22
|
|
23
23
|
# Loads metric settings and configures the current metric
|
24
24
|
#
|
25
|
-
# @return
|
25
|
+
# @return [Hexx::Suit::Metrics]
|
26
|
+
# the configured metric object
|
26
27
|
def self.load
|
27
28
|
send(:new).load
|
28
29
|
end
|
@@ -36,10 +37,7 @@ module Hexx
|
|
36
37
|
|
37
38
|
# Loads the configuration file and configures the metric
|
38
39
|
#
|
39
|
-
# @
|
40
|
-
#
|
41
|
-
# @return [Hexx::Suit::Metrics]
|
42
|
-
# the configured metric object
|
40
|
+
# @return [self]
|
43
41
|
#
|
44
42
|
# @api private
|
45
43
|
def load
|
@@ -25,19 +25,19 @@ module Hexx
|
|
25
25
|
def load
|
26
26
|
configure { |metric| options.each { |option| add(metric, option) } }
|
27
27
|
|
28
|
-
|
28
|
+
super
|
29
29
|
end
|
30
30
|
|
31
31
|
private
|
32
32
|
|
33
33
|
# current metric definitions
|
34
34
|
|
35
|
+
# @abstract
|
35
36
|
def name
|
36
|
-
:metric_fu
|
37
37
|
end
|
38
38
|
|
39
|
+
# @abstract
|
39
40
|
def options
|
40
|
-
%w()
|
41
41
|
end
|
42
42
|
|
43
43
|
# helpers
|
data/lib/hexx/suit/version.rb
CHANGED
@@ -9,6 +9,7 @@ describe "hexx-suit install", :sandbox do
|
|
9
9
|
it "creates necessary files" do
|
10
10
|
%w(
|
11
11
|
.rspec
|
12
|
+
.rubocop.yml
|
12
13
|
.yardopts
|
13
14
|
Guardfile
|
14
15
|
Rakefile
|
@@ -23,6 +24,7 @@ describe "hexx-suit install", :sandbox do
|
|
23
24
|
config/metrics/saikuro.yml
|
24
25
|
config/metrics/simplecov.yml
|
25
26
|
config/metrics/yardstick.yml
|
27
|
+
config/metrics/STYLEGUIDE
|
26
28
|
).each { |file| expect(file).to be_present_in_sandbox }
|
27
29
|
end
|
28
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hexx-suit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kozin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|