hexx-suit 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffad0f15addbda17f8cb1b4194e6b9fa79cac088
4
- data.tar.gz: ca39bdb22516a1b61fd000e14c9aad66daaed23c
3
+ metadata.gz: 8c2cb3d7683bd9a1bc6f3358c6c1bbbf215060ac
4
+ data.tar.gz: 20c2c592c4153d2e1e5c8dd9a06914ea622e72ad
5
5
  SHA512:
6
- metadata.gz: 6adc97a1a2d0c65e75220bb1b8e50e65d32b3de0c0da83c57df3e453d451511fe720f2e6ea90457d49fb1bcc640959bd87fecffa6d1c34ba9369bec0b3ce5e9a
7
- data.tar.gz: 24a5a21e0078a98b274cb1120aa62ec9e170c6966b621990c9e43d0d0264a6632f3a1df415a707b6e98bb6ea971e936801133f0515b811846fb9e27649ebc255
6
+ metadata.gz: 1612f0ef30e5ab66978183ac9c0eb269e52e09d286460aaf37eed185d0fdf1e8f53558e708921a7da6cdb3db17c6b602df1790bc7e3a99e3a16c0f56fea3df66
7
+ data.tar.gz: 741f67f17a60aaeb9233cc4419b0592e8ffb7f156469400793d348db6a1f337b75ea1acb0d07d6aaa8772762219310a74eb0a97722ab839d423952533ccb784c
@@ -31,6 +31,11 @@ module Hexx
31
31
  Hexx::RSpec::Install.start %w(--no-rakefile)
32
32
  end
33
33
 
34
+ # @private
35
+ def update_spec_helper
36
+ template "spec/spec_helper.erb", "spec/spec_helper.rb", force: true
37
+ end
38
+
34
39
  # @private
35
40
  def create_rakefile
36
41
  copy_file "Rakefile"
@@ -78,6 +83,10 @@ module Hexx
78
83
  Hexx::Suit::VERSION.split(".")[0..1].join(".")
79
84
  end
80
85
 
86
+ def gemname
87
+ @gemname ||= ::File.basename(destination_root).downcase
88
+ end
89
+
81
90
  end # class Install
82
91
 
83
92
  end # module Suit
@@ -1,5 +1,9 @@
1
1
  # Settings for metric_fu and its packages are collected in the `config/metrics`
2
2
  # and loaded by the Hexx::Suit::Metrics::MetricFu.
3
3
 
4
- require "hexx-suit"
5
- Hexx::Suit::Metrics::MetricFu.load
4
+ begin
5
+ require "hexx-suit"
6
+ Hexx::Suit::Metrics::MetricFu.load
7
+ rescue LoadError
8
+ puts "The 'hexx-suit' gem is not installed"
9
+ end
@@ -27,9 +27,7 @@ Style/ClassAndModuleChildren:
27
27
  - '**/*_spec.rb'
28
28
 
29
29
  Style/Documentation:
30
- Exclude:
31
- - '**/version.rb'
32
- - '**/*_spec.rb'
30
+ Enabled: false
33
31
 
34
32
  Style/EmptyLinesAroundBlockBody:
35
33
  Enabled: false
@@ -0,0 +1,12 @@
1
+ # encoding: utf-8
2
+
3
+ begin
4
+ require "hexx-suit"
5
+ Hexx::Suit.load_metrics_for(self)
6
+ rescue
7
+ require "hexx-rspec"
8
+ Hexx::RSpec.load_metrics_for(self)
9
+ end
10
+
11
+ # Loads the code under test
12
+ require "<%= gemname %>"
@@ -6,7 +6,7 @@ module Hexx
6
6
 
7
7
  # The semantic version of the module.
8
8
  # @see http://semver.org/ Semantic versioning 2.0
9
- VERSION = "2.1.0".freeze
9
+ VERSION = "2.2.0".freeze
10
10
 
11
11
  end # module Suit
12
12
 
@@ -25,6 +25,7 @@ describe Hexx::Suit::Install, :sandbox, :capture do
25
25
  config/metrics/simplecov.yml
26
26
  config/metrics/yardstick.yml
27
27
  config/metrics/STYLEGUIDE
28
+ spec/spec_helper.rb
28
29
  ).each { |file| expect(file).to be_present_in_sandbox }
29
30
  end
30
31
 
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: 2.1.0
4
+ version: 2.2.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-03-19 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fasterer
@@ -210,6 +210,7 @@ files:
210
210
  - lib/hexx/suit/install/metrics/rubocop.yml
211
211
  - lib/hexx/suit/install/metrics/saikuro.yml
212
212
  - lib/hexx/suit/install/metrics/yardstick.yml
213
+ - lib/hexx/suit/install/spec/spec_helper.erb
213
214
  - lib/hexx/suit/metrics.rb
214
215
  - lib/hexx/suit/metrics/metric_fu.rb
215
216
  - lib/hexx/suit/metrics/metric_fu/base.rb