hexx-rspec 0.3.1 → 0.4.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: c95310a4f2ff6ab71acbab295faeefc52e727509
4
- data.tar.gz: 4c4600c04ff95fa5c1af2cec6acf6fc7a17cbd71
3
+ metadata.gz: fbfa5d92b4a49c8d9cfb833301013a6985fe1663
4
+ data.tar.gz: d949ee55e3519117ea0430d1c35fa711fdd50691
5
5
  SHA512:
6
- metadata.gz: 25a7b6c131c7c4b49672e5a0f45237f50e353574a2e78aeb40e6a00142a70f68b284714c38a78f74541cd2ba03ad6de2cc3af32f1d5a7193bac69da1f1183e50
7
- data.tar.gz: 7e91036dd642da71c5301076cca89140228235825fb9ab7d8b0bbae46a938eb87b5b71a97c4cdab03530c972e6b7a59c97a7592e56ce060cc381637beb7d521b
6
+ metadata.gz: 93eab1199412db06415f270cc3f60f689c4a7264d591eb0674e72b47eac2e4cdb3f161a8bbba785d3da388388d8c6ad1330211af3675ce5fe892bfeafe1d6e93
7
+ data.tar.gz: 03fb21a46c85c61dbeb87b7383abafdb48759c8e6b1b6be6a626eaf9e22b1c37355fb9e67f8fb19fa26a6cdacebc283644c290d934ba8d44f37502b2c71f2b0f
@@ -44,6 +44,17 @@ module Hexx
44
44
  copy_file "simplecov.yml", "config/metrics/simplecov.yml"
45
45
  end
46
46
 
47
+ # @private
48
+ def create_spec_helper
49
+ template "spec_helper.erb", "spec/spec_helper.rb"
50
+ end
51
+
52
+ private
53
+
54
+ def gemname
55
+ @gemname ||= ::File.basename(destination_root).downcase
56
+ end
57
+
47
58
  end # class Install
48
59
 
49
60
  end # module RSpec
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ require "hexx-rspec"
3
+
4
+ # Loads runtime metrics
5
+ Hexx::RSpec.load_metrics_for(self)
6
+
7
+ # Loads the code under test
8
+ 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 = "0.3.1".freeze
9
+ VERSION = "0.4.0".freeze
10
10
 
11
11
  end # module RSpec
12
12
 
@@ -16,6 +16,7 @@ describe Hexx::RSpec::Install, :sandbox do
16
16
  .rspec
17
17
  Rakefile
18
18
  config/metrics/simplecov.yml
19
+ spec/spec_helper.rb
19
20
  ).each { |file| expect(file).to be_present_in_sandbox }
20
21
  end
21
22
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.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-15 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls
@@ -133,6 +133,7 @@ files:
133
133
  - lib/hexx/rspec/install/Rakefile
134
134
  - lib/hexx/rspec/install/_rspec
135
135
  - lib/hexx/rspec/install/simplecov.yml
136
+ - lib/hexx/rspec/install/spec_helper.erb
136
137
  - lib/hexx/rspec/metrics.rb
137
138
  - lib/hexx/rspec/metrics/base.rb
138
139
  - lib/hexx/rspec/metrics/simplecov.rb