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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6db3970977e3cec6c389e31e36e13df1a1744c25
4
- data.tar.gz: 6330afe7eb0c5fd3c67d61d23b58c4acdefddf82
3
+ metadata.gz: a3d490650992ec237eef5f474308d234f5035606
4
+ data.tar.gz: 0a6d4ec31ce21306390d81d625871aa1174f3213
5
5
  SHA512:
6
- metadata.gz: 8936e786a6839d456fd3da48ae37e11190481c83f8e399ac22b456bb0f5cf7d6ce9c61f591ff92978428afd0ef651011ad423eb4bd7b6f90c866c23f7669d018
7
- data.tar.gz: 74512e4cafa561cdb5ca4bd0ceb2e953100b504b4b7a4e6afb497c015f9c66d67f0084699a6cdd3b2c1496a6ef5679aa1ed4666b91011abd1903ddc2a1342c55
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
- $ bundle
32
+ bundle
33
33
  ```
34
34
 
35
35
  And run the task from the application root:
36
36
 
37
37
  ```
38
- $ hexx-suit install
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
- $ rake test
66
+ rake test
67
67
  ```
68
68
 
69
69
  This is a simple shortcut for longer syntaxes:
70
70
 
71
71
  ```
72
- $ bundle exec rspec spec
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
- $ rake debug
80
+ rake debug
81
81
  ```
82
82
 
83
83
  This is the same as:
84
84
 
85
85
  ```
86
- $ bundle exec rescue rspec spec
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
- $ rake check
94
+ rake check
95
95
  ```
96
96
 
97
97
  You can use single metrics as well:
98
98
 
99
99
  ```
100
- $ rake check:yardstick
100
+ rake check:yardstick
101
101
  ```
102
102
 
103
103
  See all tasks at:
104
104
 
105
105
  ```
106
- $ rake -T check
106
+ rake -T check
107
107
  ```
108
108
 
109
109
  All the tasks will use settings from `config/metrics` folder.
@@ -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
- AllCops:
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 (see #load)
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
- # @abstract
40
- #
41
- # @return [Hexx::Suit::Metrics]
42
- # the configured metric object
40
+ # @return [self]
43
41
  #
44
42
  # @api private
45
43
  def load
@@ -23,7 +23,7 @@ module Hexx
23
23
  configure_metric_fu
24
24
  configure_packages
25
25
 
26
- self
26
+ super
27
27
  end
28
28
 
29
29
  private
@@ -25,19 +25,19 @@ module Hexx
25
25
  def load
26
26
  configure { |metric| options.each { |option| add(metric, option) } }
27
27
 
28
- self
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
@@ -26,7 +26,7 @@ module Hexx
26
26
  prepare_output
27
27
  set_environment
28
28
 
29
- self
29
+ super
30
30
  end
31
31
 
32
32
  # @!scope class
@@ -13,7 +13,7 @@ module Hexx
13
13
  ENV["RUBOCOP_FORMAT"] = options["format"]
14
14
  ENV["RUBOCOP_OUTPUT"] = options["output"]
15
15
 
16
- self
16
+ super
17
17
  end
18
18
 
19
19
  private
@@ -25,7 +25,7 @@ module Hexx
25
25
  set_environment
26
26
  configure_metric
27
27
 
28
- self
28
+ super
29
29
  end
30
30
 
31
31
  # @!scope class
@@ -23,7 +23,7 @@ module Hexx
23
23
  prepare_output
24
24
  set_environment
25
25
 
26
- self
26
+ super
27
27
  end
28
28
 
29
29
  # @!scope class
@@ -2,6 +2,6 @@ module Hexx
2
2
  module Suit
3
3
  # The semantic version of the module.
4
4
  # @see http://semver.org/ Semantic versioning 2.0
5
- VERSION = "0.0.1".freeze
5
+ VERSION = "0.1.0".freeze
6
6
  end # module Suit
7
7
  end # module Hexx
@@ -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
@@ -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
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.1
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-22 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls