skellington 0.4.15 → 0.4.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/config.yaml +2 -0
- data/lib/skellington/version.rb +1 -1
- data/lib/templates/lib/app/helpers.rb.eruby +3 -0
- data/lib/templates/spec/app/helpers_spec.rb.eruby +13 -0
- data/lib/templates/spec/spec_helper.rb.eruby +6 -0
- data/lib/templates/views/includes/header.erb.eruby +1 -0
- data/spec/cli/app_spec.rb +3 -0
- data/spec/cli/bootstrap_spec.rb +1 -0
- data/spec/cli/spec_spec.rb +24 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9314efa2e543396e6d7c0499ac5f885609a01326
|
4
|
+
data.tar.gz: 501903a3cbd2783a152db0c91dd7d45440cab1b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aad4f8daf6ba212ac7f101a0e04395c6c29150849e283a36131d8354a4787fdb46d4994e9dd33a03581dbd676b7b606e8ab8b562eb0493fc66b01cf1512b2b86
|
7
|
+
data.tar.gz: 70d2b3a1068e304e430168b76ae408f1426e325ed2d15b0be856bbcf259d7ec258838e655e5c113e8f9800c57d8d94957c843e9d64957f1cfb072b602f8e82cc
|
data/config/config.yaml
CHANGED
data/lib/skellington/version.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'coveralls'
|
2
2
|
Coveralls.wear_merged!
|
3
3
|
|
4
|
+
require 'rack/test'
|
4
5
|
require '<%= @gen.wormname %>'
|
5
6
|
|
6
7
|
RSpec.configure do |config|
|
@@ -13,4 +14,9 @@ RSpec.configure do |config|
|
|
13
14
|
end
|
14
15
|
|
15
16
|
config.order = :random
|
17
|
+
|
18
|
+
include Rack::Test::Methods
|
19
|
+
def app
|
20
|
+
<%= @gen.camelname %>::App
|
21
|
+
end
|
16
22
|
end
|
@@ -15,6 +15,7 @@
|
|
15
15
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
16
16
|
<script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
|
17
17
|
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css' type='text/css' />
|
18
|
+
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
|
18
19
|
<link rel='icon' type='image/png' href='/assets/favicon.ico' />
|
19
20
|
<link rel='stylesheet' href='/css/styles.css' />
|
20
21
|
<script src='/js/<%= @gen.wormname %>.js'></script>
|
data/spec/cli/app_spec.rb
CHANGED
data/spec/cli/bootstrap_spec.rb
CHANGED
@@ -45,6 +45,7 @@ module Skellington
|
|
45
45
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
46
46
|
<script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>
|
47
47
|
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css' type='text/css' />
|
48
|
+
<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'>
|
48
49
|
<link rel='icon' type='image/png' href='/assets/favicon.ico' />
|
49
50
|
<link rel='stylesheet' href='/css/styles.css' />
|
50
51
|
<script src='/js/dummy_app.js'></script>
|
data/spec/cli/spec_spec.rb
CHANGED
@@ -11,6 +11,7 @@ module Skellington
|
|
11
11
|
require 'coveralls'
|
12
12
|
Coveralls.wear_merged!
|
13
13
|
|
14
|
+
require 'rack/test'
|
14
15
|
require 'dummy_app'
|
15
16
|
|
16
17
|
RSpec.configure do |config|
|
@@ -23,6 +24,11 @@ module Skellington
|
|
23
24
|
end
|
24
25
|
|
25
26
|
config.order = :random
|
27
|
+
|
28
|
+
include Rack::Test::Methods
|
29
|
+
def app
|
30
|
+
DummyApp::App
|
31
|
+
end
|
26
32
|
end
|
27
33
|
"""
|
28
34
|
)
|
@@ -39,6 +45,24 @@ module Skellington
|
|
39
45
|
"""
|
40
46
|
)
|
41
47
|
|
48
|
+
expect('dummy_app/spec/dummy_app/helpers_spec.rb').to have_content (
|
49
|
+
"""
|
50
|
+
class TestHelper
|
51
|
+
include DummyApp::Helpers
|
52
|
+
end
|
53
|
+
|
54
|
+
module DummyApp
|
55
|
+
describe Helpers do
|
56
|
+
let(:helpers) { TestHelper.new }
|
57
|
+
|
58
|
+
it 'says hello' do
|
59
|
+
expect(helpers.hello).to eq 'Hello'
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
"""
|
64
|
+
)
|
65
|
+
|
42
66
|
expect('dummy_app/.rspec').to have_content (
|
43
67
|
"""
|
44
68
|
--color
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skellington
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pikesley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- lib/templates/public/css/styles.css.eruby
|
197
197
|
- lib/templates/public/js/app.js.eruby
|
198
198
|
- lib/templates/spec/app/app_spec.rb.eruby
|
199
|
+
- lib/templates/spec/app/helpers_spec.rb.eruby
|
199
200
|
- lib/templates/spec/javascripts/app_spec.js.eruby
|
200
201
|
- lib/templates/spec/javascripts/support/jasmine.yml.eruby
|
201
202
|
- lib/templates/spec/javascripts/support/jasmine_helper.rb.eruby
|