spiker 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/Gemfile +8 -6
- data/Gemfile.lock +36 -29
- data/LICENSE.txt +1 -1
- data/README.md +5 -1
- data/lib/spiker/generators/multi.rb +2 -2
- data/lib/spiker/generators/templates/multi/test_helper.rb +1 -1
- data/lib/spiker/version.rb +1 -1
- data/lib/spiker.rb +1 -1
- data/spiker.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98350ed051acebc34e10ec68fb8c7cf2a92bf965a6488db604e03b6c5db29dda
|
4
|
+
data.tar.gz: 1def1fb1ea6f87032c8122d1fd64e1703a9c9c328acfd0b41c943321c6f4a539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fbf79f17bd7b7f63a7d8ed10818be30b55e72466e943f17427d10ec5bb2b42bdd5a13874a7933f67b0fb01a52ef49f56043f2a3648b426fb3939b3aa81de1e7
|
7
|
+
data.tar.gz: b629943faee3516a88bbc5412bdfb72ab0c7f21076bd9e26433bd11053dd18f56f828e3ff0fd0f87607710622f45673f14732a5f624daff799c0e610172efacf
|
data/.circleci/config.yml
CHANGED
data/Gemfile
CHANGED
@@ -7,12 +7,14 @@ gemspec
|
|
7
7
|
|
8
8
|
gem "rake", "~> 13.0"
|
9
9
|
|
10
|
-
|
11
|
-
gem "minitest
|
10
|
+
group :development, :test do
|
11
|
+
gem "minitest", "~> 5.0"
|
12
|
+
gem "minitest-reporters", "~> 1.0"
|
12
13
|
|
13
|
-
gem "guard", "~> 2.18.0"
|
14
|
-
gem "guard-minitest", "~> 2.4.0"
|
14
|
+
gem "guard", "~> 2.18.0"
|
15
|
+
gem "guard-minitest", "~> 2.4.0"
|
15
16
|
|
16
|
-
gem "rubocop", "~>
|
17
|
+
gem "rubocop", "~> 1.60"
|
18
|
+
end
|
17
19
|
|
18
|
-
gem "thor", "~>
|
20
|
+
gem "thor", "~> 1.3"
|
data/Gemfile.lock
CHANGED
@@ -2,7 +2,7 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
spiker (0.1.5)
|
5
|
-
thor (~>
|
5
|
+
thor (~> 1.3)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -11,9 +11,9 @@ GEM
|
|
11
11
|
ast (2.4.2)
|
12
12
|
builder (3.2.4)
|
13
13
|
coderay (1.1.3)
|
14
|
-
ffi (1.
|
15
|
-
formatador (
|
16
|
-
guard (2.18.
|
14
|
+
ffi (1.16.3)
|
15
|
+
formatador (1.1.0)
|
16
|
+
guard (2.18.1)
|
17
17
|
formatador (>= 0.2.4)
|
18
18
|
listen (>= 2.7, < 4.0)
|
19
19
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -26,13 +26,15 @@ GEM
|
|
26
26
|
guard-minitest (2.4.6)
|
27
27
|
guard-compat (~> 1.2)
|
28
28
|
minitest (>= 3.0)
|
29
|
-
|
29
|
+
json (2.7.1)
|
30
|
+
language_server-protocol (3.17.0.3)
|
31
|
+
listen (3.8.0)
|
30
32
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
31
33
|
rb-inotify (~> 0.9, >= 0.9.10)
|
32
|
-
lumberjack (1.2.
|
34
|
+
lumberjack (1.2.10)
|
33
35
|
method_source (1.0.0)
|
34
|
-
minitest (5.
|
35
|
-
minitest-reporters (1.
|
36
|
+
minitest (5.21.2)
|
37
|
+
minitest-reporters (1.6.1)
|
36
38
|
ansi
|
37
39
|
builder
|
38
40
|
minitest (>= 5.0)
|
@@ -41,36 +43,41 @@ GEM
|
|
41
43
|
notiffany (0.1.3)
|
42
44
|
nenv (~> 0.1)
|
43
45
|
shellany (~> 0.0)
|
44
|
-
parallel (1.
|
45
|
-
parser (3.
|
46
|
+
parallel (1.24.0)
|
47
|
+
parser (3.3.0.5)
|
46
48
|
ast (~> 2.4.1)
|
47
|
-
|
49
|
+
racc
|
50
|
+
pry (0.14.2)
|
48
51
|
coderay (~> 1.1)
|
49
52
|
method_source (~> 1.0)
|
53
|
+
racc (1.7.3)
|
50
54
|
rainbow (3.1.1)
|
51
|
-
rake (13.0
|
52
|
-
rb-fsevent (0.11.
|
55
|
+
rake (13.1.0)
|
56
|
+
rb-fsevent (0.11.2)
|
53
57
|
rb-inotify (0.10.1)
|
54
58
|
ffi (~> 1.0)
|
55
|
-
regexp_parser (2.
|
56
|
-
rexml (3.2.
|
57
|
-
rubocop (
|
59
|
+
regexp_parser (2.9.0)
|
60
|
+
rexml (3.2.6)
|
61
|
+
rubocop (1.60.2)
|
62
|
+
json (~> 2.3)
|
63
|
+
language_server-protocol (>= 3.17.0)
|
58
64
|
parallel (~> 1.10)
|
59
|
-
parser (>=
|
65
|
+
parser (>= 3.3.0.2)
|
60
66
|
rainbow (>= 2.2.2, < 4.0)
|
61
|
-
regexp_parser (>= 1.8)
|
62
|
-
rexml
|
63
|
-
rubocop-ast (>=
|
67
|
+
regexp_parser (>= 1.8, < 3.0)
|
68
|
+
rexml (>= 3.2.5, < 4.0)
|
69
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
64
70
|
ruby-progressbar (~> 1.7)
|
65
|
-
unicode-display_width (>=
|
66
|
-
rubocop-ast (1.
|
67
|
-
parser (>= 3.
|
68
|
-
ruby-progressbar (1.
|
71
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
72
|
+
rubocop-ast (1.30.0)
|
73
|
+
parser (>= 3.2.1.0)
|
74
|
+
ruby-progressbar (1.13.0)
|
69
75
|
shellany (0.0.1)
|
70
|
-
thor (
|
71
|
-
unicode-display_width (
|
76
|
+
thor (1.3.0)
|
77
|
+
unicode-display_width (2.5.0)
|
72
78
|
|
73
79
|
PLATFORMS
|
80
|
+
ruby
|
74
81
|
x86_64-linux
|
75
82
|
|
76
83
|
DEPENDENCIES
|
@@ -79,9 +86,9 @@ DEPENDENCIES
|
|
79
86
|
minitest (~> 5.0)
|
80
87
|
minitest-reporters (~> 1.0)
|
81
88
|
rake (~> 13.0)
|
82
|
-
rubocop (~>
|
89
|
+
rubocop (~> 1.60)
|
83
90
|
spiker!
|
84
|
-
thor (~>
|
91
|
+
thor (~> 1.3)
|
85
92
|
|
86
93
|
BUNDLED WITH
|
87
|
-
2.
|
94
|
+
2.5.5
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -51,7 +51,11 @@ end
|
|
51
51
|
|
52
52
|
From here, the user should be able to start Guard and immediately begin development in a red-green fashion.
|
53
53
|
|
54
|
-
|
54
|
+
## Types of Spikes
|
55
|
+
|
56
|
+
The `simple` option shown above puts the code and the tests together in a single file, which can be useful in a number of circumstances. Similar to the `simple` option, the `given` option puts the code and tests in the same file but offers the user the Minitest::Spec and ::Given syntax options. Learn more about the [Given/When/Then](https://en.wikipedia.org/wiki/Given-When-Then) syntax on Wikipedia, or the work of Jim Weirich related to Rspec with [Given](https://github.com/jimweirich/rspec-given).
|
57
|
+
|
58
|
+
The `multi` option places directories and files into a named directory, and is intended to flesh out a more complex spike that includes a tests directory and `test_helper.rb`, a `lib` directory, README.md, etc. The overall workflow is still the same:
|
55
59
|
|
56
60
|
$ spiker multi my_spike
|
57
61
|
$ cd my_spike
|
@@ -26,7 +26,7 @@ module Spiker
|
|
26
26
|
def create_test_files
|
27
27
|
name_in_snake_case = Spiker.snake_case(name)
|
28
28
|
name_as_class = Spiker.classify(name)
|
29
|
-
opts = { name_as_class
|
29
|
+
opts = { name_as_class:, name_in_snake_case: }
|
30
30
|
template("app_test.rb.erb", "#{name}/test/#{name_in_snake_case}_test.rb", opts)
|
31
31
|
template("test_helper.rb", "#{name}/test/test_helper.rb", opts)
|
32
32
|
end
|
@@ -50,7 +50,7 @@ module Spiker
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def create_readme_file
|
53
|
-
opts = { name_as_class: Spiker.classify(name), name:
|
53
|
+
opts = { name_as_class: Spiker.classify(name), name: }
|
54
54
|
template("readme.md.erb", "#{name}/README.md", opts)
|
55
55
|
end
|
56
56
|
|
data/lib/spiker/version.rb
CHANGED
data/lib/spiker.rb
CHANGED
data/spiker.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
32
|
# Uncomment to register a new dependency of your gem
|
33
|
-
spec.add_dependency "thor", "~>
|
33
|
+
spec.add_dependency "thor", "~> 1.3"
|
34
34
|
|
35
35
|
# For more information and examples about making a new gem, checkout our
|
36
36
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spiker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Norling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.3'
|
27
27
|
description: Scaffold for code spikes, includes simple boilerplate with Minitest +
|
28
28
|
Guard to make red/green work out-of-the-box.
|
29
29
|
email:
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
|
-
rubygems_version: 3.
|
92
|
+
rubygems_version: 3.5.5
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Properly spike your Ruby
|