spiker 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/spiker/generators/simple.rb +4 -1
- data/lib/spiker/generators/templates/simple_app.rb +2 -2
- data/lib/spiker/version.rb +1 -1
- data/lib/spiker.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a83635eae4874bcb567fdcae912b250f3c4096620c5703885d5de9c501527090
|
4
|
+
data.tar.gz: f2dc29b6a4dd30cf380c44b68f970f15ac93cea3db71ab86db22c657a4e9ea65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63f83edb340f1480c296fbc6eff8e1f943086f0bfecf3146d0f9581d0a674131b66bb196ae65bcf9893e5c3003fa0dda49419b3acdfa06449f27c4118dafc448
|
7
|
+
data.tar.gz: '03718cc66377cd005f6a27334da152ab2f331c52e5f58d60a0f24dcc73eda967a30cc94a8479433b59fdc19c577a9bf880ef36e92352bffde3b523069accab0e'
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "thor/group"
|
4
|
+
require_relative "../../spiker"
|
5
|
+
|
4
6
|
module Spiker
|
5
7
|
module Generators
|
6
8
|
# Generates a single spike file, with supporting infrastructure.
|
@@ -19,7 +21,8 @@ module Spiker
|
|
19
21
|
end
|
20
22
|
|
21
23
|
def create_spike_file
|
22
|
-
|
24
|
+
opts = {name_as_class: Spiker.classify(name)}
|
25
|
+
template("simple_app.rb", "#{name}/app.rb", opts)
|
23
26
|
end
|
24
27
|
|
25
28
|
def create_guard_file
|
@@ -4,13 +4,13 @@ require 'minitest/reporters'
|
|
4
4
|
|
5
5
|
Minitest::Reporters.use!
|
6
6
|
|
7
|
-
class <%=
|
7
|
+
class <%= config[:name_as_class] %>Test < Minitest::Test
|
8
8
|
def test_that_it_works
|
9
9
|
assert true
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
class <%=
|
13
|
+
class <%= config[:name_as_class] %>
|
14
14
|
attr_accessor :name
|
15
15
|
def initialize(name:)
|
16
16
|
@name = name
|
data/lib/spiker/version.rb
CHANGED
data/lib/spiker.rb
CHANGED