hexx-suit 2.2.1 → 2.2.2

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: 12f33f70c1cd5e9a9e01aae9486aa55e2f66f0fc
4
- data.tar.gz: bb7c3babd93055937fd000542fe2755112f8fc0e
3
+ metadata.gz: 22028fa4c4c2b660f117de27f84175ed40b278ef
4
+ data.tar.gz: a05f833e566728cb76d2bac77df652e2b9ae52b3
5
5
  SHA512:
6
- metadata.gz: 8ad3deba69da01a70e0c83b498d305fe7716a4be05a30af3d5c863b2c1a46652542367c7d0cdb3842ae60c8c93585c01e52bc4046780c7917e0760d45a6df532
7
- data.tar.gz: 793c972fd56155f59debf5bdee911a617ff4d9b64dd16060c5dca77f1ccf40ddebfaea440eb4c59cd319186e0922731794dc2dd5341431ffb0dff4960bcce5af
6
+ metadata.gz: c5121f84254e22957a9cabd670b24aacdc3931fe32220ebf97fce0b7531b6caab0770d96e41b34765e7b4ab34869554ed1f73cefccc86cf69839828db06d37ce
7
+ data.tar.gz: 8c236de82f8e48127b1f504b10640eafc58a7bc5a15d56d284a49c44fef9f1441b39e509389cd8a85397b7baa9fc7f06ffa1643c47e3a37d6c6e01cea2057441
@@ -7,3 +7,6 @@ rvm:
7
7
  - '2.1'
8
8
  - '2.2'
9
9
  - ruby-head
10
+ matrix:
11
+ allow_failures:
12
+ - rvm: ruby-head
@@ -38,17 +38,17 @@ module Hexx
38
38
 
39
39
  # @private
40
40
  def create_rakefile
41
- copy_file "Rakefile"
41
+ template "Rakefile.erb", "Rakefile"
42
42
  end
43
43
 
44
44
  # @private
45
45
  def create_guardfile
46
- copy_file "Guardfile"
46
+ template "Guardfile.erb", "Guardfile"
47
47
  end
48
48
 
49
49
  # @private
50
50
  def create_yardopts
51
- copy_file "_yardopts", ".yardopts"
51
+ template "_yardopts.erb", ".yardopts"
52
52
  end
53
53
 
54
54
  # @private
@@ -87,6 +87,14 @@ module Hexx
87
87
  @gemname ||= ::File.basename(destination_root).downcase
88
88
  end
89
89
 
90
+ def namespace
91
+ @namespace ||=
92
+ gemname
93
+ .split("-")
94
+ .map { |item| item.split("_").map(&:capitalize).join }
95
+ .join("::")
96
+ end
97
+
90
98
  end # class Install
91
99
 
92
100
  end # module Suit
@@ -0,0 +1,14 @@
1
+ # encoding: utf-8
2
+
3
+ guard :rspec, cmd: "bundle exec rspec" do
4
+
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+
7
+ watch(%r{^lib/<%= gemname %>/(.+)\.rb}) do |m|
8
+ "spec/unit/#{ m[1] }_spec.rb"
9
+ end
10
+
11
+ watch("lib/<%= gemname %>.rb") { "spec" }
12
+ watch("spec/spec_helper.rb") { "spec" }
13
+
14
+ end # guard :rspec
@@ -20,3 +20,8 @@ end
20
20
 
21
21
  # Sets the Hexx::RSpec :test task to default
22
22
  task default: "test:coverage:run"
23
+
24
+ desc "Runs mutation metric for testing"
25
+ task :mutant do
26
+ system "mutant -r spec/spec_helper --use rspec <%= namespace %>* --fail-fast"
27
+ end
@@ -0,0 +1,3 @@
1
+ --asset LICENSE
2
+ --exclude lib/<%= gemname %>/version.rb
3
+ --output doc/api
@@ -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.2.1".freeze
9
+ VERSION = "2.2.2".freeze
10
10
 
11
11
  end # module Suit
12
12
 
@@ -33,5 +33,10 @@ describe Hexx::Suit::Install, :sandbox, :capture do
33
33
  expect(read_in_sandbox "Rakefile").to include "Hexx::Suit.install_tasks"
34
34
  end
35
35
 
36
+ it "adds mutant task to Rakefile" do
37
+ expect(read_in_sandbox "Rakefile")
38
+ .to include "mutant -r spec/spec_helper --use rspec Sandbox*"
39
+ end
40
+
36
41
  end
37
42
  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: 2.2.1
4
+ version: 2.2.2
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-04-27 00:00:00.000000000 Z
11
+ date: 2015-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fasterer
@@ -195,11 +195,11 @@ files:
195
195
  - lib/hexx/suit.rb
196
196
  - lib/hexx/suit/install.rb
197
197
  - lib/hexx/suit/install/Gemfile
198
- - lib/hexx/suit/install/Guardfile
199
- - lib/hexx/suit/install/Rakefile
198
+ - lib/hexx/suit/install/Guardfile.erb
199
+ - lib/hexx/suit/install/Rakefile.erb
200
200
  - lib/hexx/suit/install/_metrics
201
201
  - lib/hexx/suit/install/_rubocop.yml
202
- - lib/hexx/suit/install/_yardopts
202
+ - lib/hexx/suit/install/_yardopts.erb
203
203
  - lib/hexx/suit/install/metrics/STYLEGUIDE
204
204
  - lib/hexx/suit/install/metrics/cane.yml
205
205
  - lib/hexx/suit/install/metrics/churn.yml
@@ -1,14 +0,0 @@
1
- # encoding: utf-8
2
-
3
- guard :rspec, cmd: "bundle exec rspec" do
4
-
5
- watch(%r{^spec/tests/.+_spec\.rb$})
6
-
7
- watch(%r{^lib/(.+)\.rb}) do
8
- "spec/tests/#{ m[1] }_spec.rb"
9
- end
10
-
11
- watch(%r{^lib/\w+\.rb$}) { "spec" }
12
- watch("spec/spec_helper.rb") { "spec" }
13
-
14
- end # guard :rspec
@@ -1,3 +0,0 @@
1
- --asset LICENSE
2
- --exclude lib/**/version.rb
3
- --output doc/api