skellington 0.4.15 → 0.4.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b6a645a46b6c4d657f2445178b175cffa1d67af
4
- data.tar.gz: 4d0b99ccf7a9e03b7a871116b9a445cf9b70d5a6
3
+ metadata.gz: 9314efa2e543396e6d7c0499ac5f885609a01326
4
+ data.tar.gz: 501903a3cbd2783a152db0c91dd7d45440cab1b3
5
5
  SHA512:
6
- metadata.gz: 19714b5afa9da20d34967d097bd89075eb1c2bc05a22621e107338dd97f33941ce7c55490495cad540a6486efd9f97337abd71e8e23ca8998ce1b88df82285cc
7
- data.tar.gz: 2b9bd1ef55f607859139fa672bbf745b18d12e0b32e26d61c521cbddd7f48aba57ad0740c5beda335749b383b529b00e9961e7e4ed2a581e461fe8b06de9ca4a
6
+ metadata.gz: aad4f8daf6ba212ac7f101a0e04395c6c29150849e283a36131d8354a4787fdb46d4994e9dd33a03581dbd676b7b606e8ab8b562eb0493fc66b01cf1512b2b86
7
+ data.tar.gz: 70d2b3a1068e304e430168b76ae408f1426e325ed2d15b0be856bbcf259d7ec258838e655e5c113e8f9800c57d8d94957c843e9d64957f1cfb072b602f8e82cc
data/config/config.yaml CHANGED
@@ -51,6 +51,8 @@ files:
51
51
  views/index.erb:
52
52
  views/includes/header.erb:
53
53
  spec/spec_helper.rb:
54
+ spec/app/helpers_spec.rb:
55
+ outpath: app/wormname
54
56
  spec/app/app_spec.rb:
55
57
  outpath: app/wormname
56
58
  spec/javascripts/support/jasmine.yml:
@@ -1,3 +1,3 @@
1
1
  module Skellington
2
- VERSION = '0.4.15'
2
+ VERSION = '0.4.16'
3
3
  end
@@ -1,4 +1,7 @@
1
1
  module <%= @gen.camelname %>
2
2
  module Helpers
3
+ def hello
4
+ 'Hello'
5
+ end
3
6
  end
4
7
  end
@@ -0,0 +1,13 @@
1
+ class TestHelper
2
+ include <%= @gen.camelname %>::Helpers
3
+ end
4
+
5
+ module <%= @gen.camelname %>
6
+ describe Helpers do
7
+ let(:helpers) { TestHelper.new }
8
+
9
+ it 'says hello' do
10
+ expect(helpers.hello).to eq 'Hello'
11
+ end
12
+ end
13
+ end
@@ -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
@@ -79,6 +79,9 @@ module Skellington
79
79
  """
80
80
  module DummyApp
81
81
  module Helpers
82
+ def hello
83
+ 'Hello'
84
+ end
82
85
  end
83
86
  end
84
87
  """
@@ -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>
@@ -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.15
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-01-23 00:00:00.000000000 Z
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