hexx-suit 2.2.1 → 2.2.2
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/.travis.yml +3 -0
- data/lib/hexx/suit/install.rb +11 -3
- data/lib/hexx/suit/install/Guardfile.erb +14 -0
- data/lib/hexx/suit/install/{Rakefile → Rakefile.erb} +5 -0
- data/lib/hexx/suit/install/_yardopts.erb +3 -0
- data/lib/hexx/suit/version.rb +1 -1
- data/spec/tests/lib/install_spec.rb +5 -0
- metadata +5 -5
- data/lib/hexx/suit/install/Guardfile +0 -14
- data/lib/hexx/suit/install/_yardopts +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22028fa4c4c2b660f117de27f84175ed40b278ef
|
4
|
+
data.tar.gz: a05f833e566728cb76d2bac77df652e2b9ae52b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5121f84254e22957a9cabd670b24aacdc3931fe32220ebf97fce0b7531b6caab0770d96e41b34765e7b4ab34869554ed1f73cefccc86cf69839828db06d37ce
|
7
|
+
data.tar.gz: 8c236de82f8e48127b1f504b10640eafc58a7bc5a15d56d284a49c44fef9f1441b39e509389cd8a85397b7baa9fc7f06ffa1643c47e3a37d6c6e01cea2057441
|
data/.travis.yml
CHANGED
data/lib/hexx/suit/install.rb
CHANGED
@@ -38,17 +38,17 @@ module Hexx
|
|
38
38
|
|
39
39
|
# @private
|
40
40
|
def create_rakefile
|
41
|
-
|
41
|
+
template "Rakefile.erb", "Rakefile"
|
42
42
|
end
|
43
43
|
|
44
44
|
# @private
|
45
45
|
def create_guardfile
|
46
|
-
|
46
|
+
template "Guardfile.erb", "Guardfile"
|
47
47
|
end
|
48
48
|
|
49
49
|
# @private
|
50
50
|
def create_yardopts
|
51
|
-
|
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
|
data/lib/hexx/suit/version.rb
CHANGED
@@ -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.
|
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-
|
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
|