skellington 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/app.feature +6 -6
- data/features/cli.feature +2 -2
- data/features/config.ru.feature +5 -5
- data/features/cukes.feature +8 -8
- data/features/gemfile.feature +4 -4
- data/features/git.feature +2 -2
- data/features/procfile.feature +4 -4
- data/features/rakefile.feature +4 -4
- data/features/rbenv.feature +3 -3
- data/lib/skellington/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22c2fe6f47f008f1236144f8530f04bd5d688a34
|
4
|
+
data.tar.gz: e9879bb33aca212bd00c3165f697ea646b814f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c97bb9de3f67378aa600423da51d8e0bf194b94c7a5ce3dbd9e8807dafbcf9878e3f3ac6ee60efd3c5aea2e330483b17270106f08845410dfc7c929c9e3106
|
7
|
+
data.tar.gz: 399ae0d91028c49bb31fea5635893e4cff9fab1fe87531bf23c5a82cd02dd9cf5c3844036bc8063c196064f9d4aaf54ea4d4dea55f3debf67767f77162a04cbb
|
data/features/app.feature
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: generate app file
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a directory named "
|
6
|
-
And a file named "
|
7
|
-
And the file "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a directory named "dummy_app/lib/" should exist
|
6
|
+
And a file named "dummy_app/lib/dummy_app.rb" should exist
|
7
|
+
And the file "dummy_app/lib/dummy_app.rb" should contain:
|
8
8
|
"""
|
9
9
|
require 'sinatra/base'
|
10
10
|
|
11
|
-
class
|
11
|
+
class DummyApp < Sinatra::Base
|
12
12
|
get '/' do
|
13
|
-
'Hello from
|
13
|
+
'Hello from DummyApp'
|
14
14
|
end
|
15
15
|
|
16
16
|
# start the server if ruby file executed directly
|
data/features/cli.feature
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: get some feedback
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then the output should contain "Generating
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then the output should contain "Generating dummy_app/Gemfile"
|
6
6
|
And the output should contain "bundle"
|
7
7
|
And the output should contain "rake"
|
8
8
|
|
data/features/config.ru.feature
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: generate config.ru
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a file named "
|
6
|
-
And the file "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a file named "dummy_app/config.ru" should exist
|
6
|
+
And the file "dummy_app/config.ru" should contain:
|
7
7
|
"""
|
8
8
|
require 'rubygems'
|
9
|
-
require File.join(File.dirname(__FILE__), 'lib/
|
9
|
+
require File.join(File.dirname(__FILE__), 'lib/dummy_app.rb')
|
10
10
|
|
11
|
-
run
|
11
|
+
run DummyApp
|
12
12
|
"""
|
data/features/cukes.feature
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: generate feature
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a directory named "
|
6
|
-
And a file named "
|
7
|
-
And the file "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a directory named "dummy_app/features" should exist
|
6
|
+
And a file named "dummy_app/features/dummy_app.feature" should exist
|
7
|
+
And the file "dummy_app/features/dummy_app.feature" should contain:
|
8
8
|
"""
|
9
9
|
Feature: Make sure it's plumbed in correctly
|
10
10
|
|
@@ -14,9 +14,9 @@ Feature: Generate skellington
|
|
14
14
|
"""
|
15
15
|
|
16
16
|
Scenario: generate env.rb
|
17
|
-
When I successfully run `skellington generate
|
18
|
-
And a file named "
|
19
|
-
And the file "
|
17
|
+
When I successfully run `skellington generate dummy_app`
|
18
|
+
And a file named "dummy_app/features/support/env.rb" should exist
|
19
|
+
And the file "dummy_app/features/support/env.rb" should contain:
|
20
20
|
"""
|
21
|
-
|
21
|
+
DummyApp
|
22
22
|
"""
|
data/features/gemfile.feature
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: generate Gemfile
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a file named "
|
6
|
-
And the file "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a file named "dummy_app/Gemfile" should exist
|
6
|
+
And the file "dummy_app/Gemfile" should contain:
|
7
7
|
"""
|
8
8
|
source 'https://rubygems.org'
|
9
9
|
|
10
10
|
ruby '
|
11
11
|
"""
|
12
12
|
|
13
|
-
And the file "
|
13
|
+
And the file "dummy_app/Gemfile" should contain:
|
14
14
|
"""
|
15
15
|
gem 'sinatra'
|
16
16
|
gem 'thin'
|
data/features/git.feature
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: git init the repo
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a directory named "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a directory named "dummy_app/.git/" should exist
|
data/features/procfile.feature
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: generate Procfile
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a file named "
|
6
|
-
And the file "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a file named "dummy_app/Procfile" should exist
|
6
|
+
And the file "dummy_app/Procfile" should contain:
|
7
7
|
"""
|
8
|
-
web: bundle exec ruby lib/
|
8
|
+
web: bundle exec ruby lib/dummy_app.rb
|
9
9
|
"""
|
data/features/rakefile.feature
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: generate Rakefile
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a file named "
|
6
|
-
And the file "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a file named "dummy_app/Rakefile" should exist
|
6
|
+
And the file "dummy_app/Rakefile" should contain:
|
7
7
|
"""
|
8
|
-
require File.join(File.dirname(__FILE__), 'lib/
|
8
|
+
require File.join(File.dirname(__FILE__), 'lib/dummy_app.rb')
|
9
9
|
|
10
10
|
unless ENV['RACK_ENV'] == 'production'
|
11
11
|
require 'rspec/core/rake_task'
|
data/features/rbenv.feature
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Feature: Generate skellington
|
2
2
|
|
3
3
|
Scenario: generate .ruby-version
|
4
|
-
When I successfully run `skellington generate
|
5
|
-
Then a file named "
|
6
|
-
And the file "
|
4
|
+
When I successfully run `skellington generate dummy_app`
|
5
|
+
Then a file named "dummy_app/.ruby-version" should exist
|
6
|
+
And the file "dummy_app/.ruby-version" should match /[0-9].[0-9].[0-9]/
|
data/lib/skellington/version.rb
CHANGED