stationed 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +136 -0
- data/Rakefile +27 -0
- data/app/helpers/crud_link_helper.rb +22 -0
- data/app/helpers/page_title_helper.rb +107 -0
- data/lib/generators/stationed/templates_generator.rb +24 -0
- data/lib/stationed/app_builder.rb +13 -0
- data/lib/stationed/crud_tag.rb +70 -0
- data/lib/stationed/engine.rb +8 -0
- data/lib/stationed/generators/app_generator.rb +52 -0
- data/lib/stationed/generators/plugins/capybara.rb +12 -0
- data/lib/stationed/generators/plugins/capybara_webkit.rb +14 -0
- data/lib/stationed/generators/plugins/database_cleaner.rb +13 -0
- data/lib/stationed/generators/plugins/devise.rb +43 -0
- data/lib/stationed/generators/plugins/draper.rb +14 -0
- data/lib/stationed/generators/plugins/factory_girl.rb +14 -0
- data/lib/stationed/generators/plugins/flashes.rb +12 -0
- data/lib/stationed/generators/plugins/foreman.rb +15 -0
- data/lib/stationed/generators/plugins/generators.rb +12 -0
- data/lib/stationed/generators/plugins/guard.rb +26 -0
- data/lib/stationed/generators/plugins/haml.rb +12 -0
- data/lib/stationed/generators/plugins/i18n_spec.rb +13 -0
- data/lib/stationed/generators/plugins/kaminari.rb +18 -0
- data/lib/stationed/generators/plugins/layout.rb +13 -0
- data/lib/stationed/generators/plugins/normalize.rb +12 -0
- data/lib/stationed/generators/plugins/pry.rb +19 -0
- data/lib/stationed/generators/plugins/pundit.rb +20 -0
- data/lib/stationed/generators/plugins/rack_deflater.rb +17 -0
- data/lib/stationed/generators/plugins/responders.rb +28 -0
- data/lib/stationed/generators/plugins/rspec.rb +21 -0
- data/lib/stationed/generators/plugins/rubocop.rb +14 -0
- data/lib/stationed/generators/plugins/simple_form.rb +32 -0
- data/lib/stationed/generators/plugins/simple_form_inputs.rb +13 -0
- data/lib/stationed/generators/plugins/spring.rb +13 -0
- data/lib/stationed/generators/plugins/stationed.rb +12 -0
- data/lib/stationed/generators/plugins/strong_parameters.rb +18 -0
- data/lib/stationed/generators/plugins/styles.rb +24 -0
- data/lib/stationed/generators/plugins/turbolinks.rb +13 -0
- data/lib/stationed/generators/plugins/webmock.rb +13 -0
- data/lib/stationed/generators/plugins/wiki.rb +20 -0
- data/lib/stationed/generators/plugins/yard.rb +14 -0
- data/lib/stationed/generators/plugins.rb +10 -0
- data/lib/stationed/generators/templates/Deployment.md +3 -0
- data/lib/stationed/generators/templates/Home.md +8 -0
- data/lib/stationed/generators/templates/Procfile +1 -0
- data/lib/stationed/generators/templates/README.md.erb +42 -0
- data/lib/stationed/generators/templates/Services.md +3 -0
- data/lib/stationed/generators/templates/Setup.md +58 -0
- data/lib/stationed/generators/templates/Testing.md +3 -0
- data/lib/stationed/generators/templates/application.html.haml +11 -0
- data/lib/stationed/generators/templates/application.scss +6 -0
- data/lib/stationed/generators/templates/application_decorator.rb +23 -0
- data/lib/stationed/generators/templates/application_responder.rb +6 -0
- data/lib/stationed/generators/templates/authorization.rb +11 -0
- data/lib/stationed/generators/templates/capybara_webkit.rb +1 -0
- data/lib/stationed/generators/templates/database_cleaner.rb +19 -0
- data/lib/stationed/generators/templates/devise.rb +3 -0
- data/lib/stationed/generators/templates/env.erb +3 -0
- data/lib/stationed/generators/templates/factories_spec.rb +10 -0
- data/lib/stationed/generators/templates/factory_girl.rb +3 -0
- data/lib/stationed/generators/templates/flashes.html.haml +5 -0
- data/lib/stationed/generators/templates/generators.rb +11 -0
- data/lib/stationed/generators/templates/gollum.rake +5 -0
- data/lib/stationed/generators/templates/gollum.rb +5 -0
- data/lib/stationed/generators/templates/i18n_spec.rb +10 -0
- data/lib/stationed/generators/templates/layout.scss +3 -0
- data/lib/stationed/generators/templates/normalize.css +425 -0
- data/lib/stationed/generators/templates/paginating_decorator.rb +7 -0
- data/lib/stationed/generators/templates/pundit.rb +1 -0
- data/lib/stationed/generators/templates/rubocop.rake +5 -0
- data/lib/stationed/generators/templates/rubocop.yml +38 -0
- data/lib/stationed/generators/templates/select2_input.rb +14 -0
- data/lib/stationed/generators/templates/simple_form.rb +65 -0
- data/lib/stationed/generators/templates/simplecov +6 -0
- data/lib/stationed/generators/templates/spec_helper.rb +27 -0
- data/lib/stationed/generators/templates/spring.rb +1 -0
- data/lib/stationed/generators/templates/static_input.rb +11 -0
- data/lib/stationed/generators/templates/webmock.rb +1 -0
- data/lib/stationed/generators/templates/yardopts +7 -0
- data/lib/stationed/version.rb +3 -0
- data/lib/stationed.rb +4 -0
- data/lib/tasks/stationed_tasks.rake +4 -0
- data/lib/templates/haml/scaffold/_form.html.haml +11 -0
- data/lib/templates/haml/scaffold/edit.html.haml +2 -0
- data/lib/templates/haml/scaffold/index.html.haml +24 -0
- data/lib/templates/haml/scaffold/new.html.haml +2 -0
- data/lib/templates/haml/scaffold/show.html.haml +9 -0
- data/lib/templates/rails/scaffold_controller/controller.rb +64 -0
- data/lib/templates/rspec/integration/request_spec.rb +10 -0
- data/lib/templates/rspec/model/model_spec.rb +6 -0
- data/lib/templates/rspec/scaffold/controller_spec.rb +224 -0
- data/lib/templates/rspec/scaffold/edit_spec.rb +20 -0
- data/lib/templates/rspec/scaffold/index_spec.rb +20 -0
- data/lib/templates/rspec/scaffold/new_spec.rb +20 -0
- data/lib/templates/rspec/scaffold/routing_spec.rb +17 -0
- data/lib/templates/rspec/scaffold/show_spec.rb +14 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +1418 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/crud_link_helper_spec.rb +88 -0
- data/spec/helpers/page_title_helper_spec.rb +83 -0
- data/spec/spec_helper.rb +14 -0
- metadata +261 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe CrudLinkHelper do
|
4
|
+
before do
|
5
|
+
I18n.backend.store_translations(
|
6
|
+
:en,
|
7
|
+
helpers: { buttons: { post: {
|
8
|
+
new: 'New %{model}',
|
9
|
+
show: 'Show %{model} %{id}',
|
10
|
+
destroy: 'Destroy %{model} %{id}',
|
11
|
+
index: 'List %{plural}',
|
12
|
+
edit: 'Edit %{model} %{id}'
|
13
|
+
} } },
|
14
|
+
activemodel: { models: { post: 'Blog post' } }
|
15
|
+
)
|
16
|
+
model = Class.new do
|
17
|
+
include ActiveModel::Model
|
18
|
+
|
19
|
+
def to_param
|
20
|
+
'1'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
stub_const 'Post', model
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'generates a link to a new resource' do
|
27
|
+
allow(helper).to receive(:new_post_path).and_return('/posts/new')
|
28
|
+
expect(helper.link_to_new(Post)).to eql(
|
29
|
+
'<a href="/posts/new">New Blog post</a>'
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'generates a link to a new nested resource' do
|
34
|
+
allow(helper).to receive(:new_admin_post_path).and_return('/admin/posts/new')
|
35
|
+
expect(helper.link_to_new([:admin, Post])).to eql(
|
36
|
+
'<a href="/admin/posts/new">New Blog post</a>'
|
37
|
+
)
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'generates a link to show a record' do
|
41
|
+
allow(helper).to receive(:posts_path).and_return('/posts/1')
|
42
|
+
expect(helper.link_to_show(Post.new)).to eql(
|
43
|
+
'<a href="/posts/1">Show Blog post 1</a>'
|
44
|
+
)
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'generates a link to destroy a record' do
|
48
|
+
allow(helper).to receive(:posts_path).and_return('/posts/1')
|
49
|
+
expect(helper.link_to_destroy(Post.new)).to eql(
|
50
|
+
'<a data-method="delete" href="/posts/1">Destroy Blog post 1</a>'
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
it 'generates a link to list all records' do
|
55
|
+
allow(helper).to receive(:posts_path).with(no_args).and_return('/posts')
|
56
|
+
expect(helper.link_to_index(Post)).to eql(
|
57
|
+
'<a href="/posts">List Blog posts</a>'
|
58
|
+
)
|
59
|
+
end
|
60
|
+
|
61
|
+
it 'generates a link to edit a record' do
|
62
|
+
allow(helper).to receive(:edit_posts_path).and_return('/posts/1/edit')
|
63
|
+
expect(helper.link_to_edit(Post.new)).to eql(
|
64
|
+
'<a href="/posts/1/edit">Edit Blog post 1</a>'
|
65
|
+
)
|
66
|
+
end
|
67
|
+
|
68
|
+
it 'allows adding custom options' do
|
69
|
+
allow(helper).to receive(:new_post_path).and_return('/posts/new')
|
70
|
+
expect(helper.link_to_new(Post, title: 'bla')).to eql(
|
71
|
+
'<a href="/posts/new" title="bla">New Blog post</a>'
|
72
|
+
)
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'creates a button' do
|
76
|
+
allow(helper).to receive(:new_post_path).and_return('/posts/new')
|
77
|
+
expect(helper.button_to_new(Post)).to eql(
|
78
|
+
%Q{<form action="/posts/new" class="button_to" method="post"><div><input type="submit" value="New Blog post" /></div></form>}
|
79
|
+
)
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'creates a button link' do
|
83
|
+
allow(helper).to receive(:new_post_path).and_return('/posts/new')
|
84
|
+
expect(helper.button_link_to_new(Post, title: 'bla')).to eql(
|
85
|
+
'<a class="button" href="/posts/new" title="bla">New Blog post</a>'
|
86
|
+
)
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PageTitleHelper do
|
4
|
+
before do
|
5
|
+
allow(helper).to receive(:controller_name).and_return('controller')
|
6
|
+
allow(helper).to receive(:action_name).and_return('action')
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'stores a string as the page title' do
|
10
|
+
expect(helper).to receive(:content_for).with(:page_title, 'bla')
|
11
|
+
helper.page_title 'bla'
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'interpolates id, plural and singular names into the formatted default given a record' do
|
15
|
+
name = double human: 'Post'
|
16
|
+
model = double model_name: name
|
17
|
+
record = double class: model, to_param: '1'
|
18
|
+
expect(I18n).to receive(:translate).with(
|
19
|
+
:'page_title.controller.action.model',
|
20
|
+
singular: 'Post',
|
21
|
+
plural: 'Posts',
|
22
|
+
id: '1',
|
23
|
+
default: [
|
24
|
+
:'page_title.controller.model',
|
25
|
+
:'page_title.default.model',
|
26
|
+
:'page_title.default.standard',
|
27
|
+
'Dummy'
|
28
|
+
]
|
29
|
+
).and_return('bla')
|
30
|
+
helper.page_title record
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'interpolates plural and singular names into the formatted default given a model' do
|
34
|
+
name = double human: 'Post'
|
35
|
+
model = double model_name: name
|
36
|
+
expect(I18n).to receive(:translate).with(
|
37
|
+
:'page_title.controller.action.model',
|
38
|
+
singular: 'Post',
|
39
|
+
plural: 'Posts',
|
40
|
+
default: [
|
41
|
+
:'page_title.controller.model',
|
42
|
+
:'page_title.default.model',
|
43
|
+
:'page_title.default.standard',
|
44
|
+
'Dummy'
|
45
|
+
]
|
46
|
+
).and_return('bla')
|
47
|
+
helper.page_title model
|
48
|
+
end
|
49
|
+
|
50
|
+
context 'when a title has been set' do
|
51
|
+
before do
|
52
|
+
helper.page_title 'bla'
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'inserts it into the default format' do
|
56
|
+
expect(I18n).to receive(:translate).with(
|
57
|
+
:'page_title.controller.action.formatted',
|
58
|
+
default: [
|
59
|
+
:'page_title.controller.formatted',
|
60
|
+
:'page_title.default.formatted',
|
61
|
+
:'page_title.default.standard',
|
62
|
+
'Dummy'
|
63
|
+
],
|
64
|
+
title: 'bla'
|
65
|
+
).and_return('bla | site')
|
66
|
+
expect(helper.page_title).to eql('bla | site')
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
context 'when no title has been set' do
|
71
|
+
it 'returns the default page title' do
|
72
|
+
expect(I18n).to receive(:translate).with(
|
73
|
+
:'page_title.controller.action.standard',
|
74
|
+
default: [
|
75
|
+
:'page_title.controller.standard',
|
76
|
+
:'page_title.default.standard',
|
77
|
+
'Dummy'
|
78
|
+
]
|
79
|
+
).and_return('bla')
|
80
|
+
expect(helper.page_title).to eql('bla')
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
ENV['RAILS_ENV'] = 'test'
|
2
|
+
|
3
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
|
6
|
+
Rails.backtrace_cleaner.remove_silencers!
|
7
|
+
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.use_transactional_fixtures = true
|
12
|
+
config.infer_base_class_for_anonymous_controllers = false
|
13
|
+
config.order = 'random'
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,261 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stationed
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arjan van der Gaag
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: |
|
56
|
+
Stationed is an extensive Rails application generator, providing you with a
|
57
|
+
starter app full standard goodies such as testing, authentication,
|
58
|
+
authorization, decorators, tasks and styles. But as an engine it also provides
|
59
|
+
you with customized scaffold generators including proper tests. Finally, it
|
60
|
+
provides some basic view helpers that every project tends to need. All in all,
|
61
|
+
stationed is pretty sweet.
|
62
|
+
email:
|
63
|
+
- arjan@arjanvandergaag.nl
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files: []
|
67
|
+
files:
|
68
|
+
- LICENSE
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- app/helpers/crud_link_helper.rb
|
72
|
+
- app/helpers/page_title_helper.rb
|
73
|
+
- lib/generators/stationed/templates_generator.rb
|
74
|
+
- lib/stationed.rb
|
75
|
+
- lib/stationed/app_builder.rb
|
76
|
+
- lib/stationed/crud_tag.rb
|
77
|
+
- lib/stationed/engine.rb
|
78
|
+
- lib/stationed/generators/app_generator.rb
|
79
|
+
- lib/stationed/generators/plugins.rb
|
80
|
+
- lib/stationed/generators/plugins/capybara.rb
|
81
|
+
- lib/stationed/generators/plugins/capybara_webkit.rb
|
82
|
+
- lib/stationed/generators/plugins/database_cleaner.rb
|
83
|
+
- lib/stationed/generators/plugins/devise.rb
|
84
|
+
- lib/stationed/generators/plugins/draper.rb
|
85
|
+
- lib/stationed/generators/plugins/factory_girl.rb
|
86
|
+
- lib/stationed/generators/plugins/flashes.rb
|
87
|
+
- lib/stationed/generators/plugins/foreman.rb
|
88
|
+
- lib/stationed/generators/plugins/generators.rb
|
89
|
+
- lib/stationed/generators/plugins/guard.rb
|
90
|
+
- lib/stationed/generators/plugins/haml.rb
|
91
|
+
- lib/stationed/generators/plugins/i18n_spec.rb
|
92
|
+
- lib/stationed/generators/plugins/kaminari.rb
|
93
|
+
- lib/stationed/generators/plugins/layout.rb
|
94
|
+
- lib/stationed/generators/plugins/normalize.rb
|
95
|
+
- lib/stationed/generators/plugins/pry.rb
|
96
|
+
- lib/stationed/generators/plugins/pundit.rb
|
97
|
+
- lib/stationed/generators/plugins/rack_deflater.rb
|
98
|
+
- lib/stationed/generators/plugins/responders.rb
|
99
|
+
- lib/stationed/generators/plugins/rspec.rb
|
100
|
+
- lib/stationed/generators/plugins/rubocop.rb
|
101
|
+
- lib/stationed/generators/plugins/simple_form.rb
|
102
|
+
- lib/stationed/generators/plugins/simple_form_inputs.rb
|
103
|
+
- lib/stationed/generators/plugins/spring.rb
|
104
|
+
- lib/stationed/generators/plugins/stationed.rb
|
105
|
+
- lib/stationed/generators/plugins/strong_parameters.rb
|
106
|
+
- lib/stationed/generators/plugins/styles.rb
|
107
|
+
- lib/stationed/generators/plugins/turbolinks.rb
|
108
|
+
- lib/stationed/generators/plugins/webmock.rb
|
109
|
+
- lib/stationed/generators/plugins/wiki.rb
|
110
|
+
- lib/stationed/generators/plugins/yard.rb
|
111
|
+
- lib/stationed/generators/templates/Deployment.md
|
112
|
+
- lib/stationed/generators/templates/Home.md
|
113
|
+
- lib/stationed/generators/templates/Procfile
|
114
|
+
- lib/stationed/generators/templates/README.md.erb
|
115
|
+
- lib/stationed/generators/templates/Services.md
|
116
|
+
- lib/stationed/generators/templates/Setup.md
|
117
|
+
- lib/stationed/generators/templates/Testing.md
|
118
|
+
- lib/stationed/generators/templates/application.html.haml
|
119
|
+
- lib/stationed/generators/templates/application.scss
|
120
|
+
- lib/stationed/generators/templates/application_decorator.rb
|
121
|
+
- lib/stationed/generators/templates/application_responder.rb
|
122
|
+
- lib/stationed/generators/templates/authorization.rb
|
123
|
+
- lib/stationed/generators/templates/capybara_webkit.rb
|
124
|
+
- lib/stationed/generators/templates/database_cleaner.rb
|
125
|
+
- lib/stationed/generators/templates/devise.rb
|
126
|
+
- lib/stationed/generators/templates/env.erb
|
127
|
+
- lib/stationed/generators/templates/factories_spec.rb
|
128
|
+
- lib/stationed/generators/templates/factory_girl.rb
|
129
|
+
- lib/stationed/generators/templates/flashes.html.haml
|
130
|
+
- lib/stationed/generators/templates/generators.rb
|
131
|
+
- lib/stationed/generators/templates/gollum.rake
|
132
|
+
- lib/stationed/generators/templates/gollum.rb
|
133
|
+
- lib/stationed/generators/templates/i18n_spec.rb
|
134
|
+
- lib/stationed/generators/templates/layout.scss
|
135
|
+
- lib/stationed/generators/templates/normalize.css
|
136
|
+
- lib/stationed/generators/templates/paginating_decorator.rb
|
137
|
+
- lib/stationed/generators/templates/pundit.rb
|
138
|
+
- lib/stationed/generators/templates/rubocop.rake
|
139
|
+
- lib/stationed/generators/templates/rubocop.yml
|
140
|
+
- lib/stationed/generators/templates/select2_input.rb
|
141
|
+
- lib/stationed/generators/templates/simple_form.rb
|
142
|
+
- lib/stationed/generators/templates/simplecov
|
143
|
+
- lib/stationed/generators/templates/spec_helper.rb
|
144
|
+
- lib/stationed/generators/templates/spring.rb
|
145
|
+
- lib/stationed/generators/templates/static_input.rb
|
146
|
+
- lib/stationed/generators/templates/webmock.rb
|
147
|
+
- lib/stationed/generators/templates/yardopts
|
148
|
+
- lib/stationed/version.rb
|
149
|
+
- lib/tasks/stationed_tasks.rake
|
150
|
+
- lib/templates/haml/scaffold/_form.html.haml
|
151
|
+
- lib/templates/haml/scaffold/edit.html.haml
|
152
|
+
- lib/templates/haml/scaffold/index.html.haml
|
153
|
+
- lib/templates/haml/scaffold/new.html.haml
|
154
|
+
- lib/templates/haml/scaffold/show.html.haml
|
155
|
+
- lib/templates/rails/scaffold_controller/controller.rb
|
156
|
+
- lib/templates/rspec/integration/request_spec.rb
|
157
|
+
- lib/templates/rspec/model/model_spec.rb
|
158
|
+
- lib/templates/rspec/scaffold/controller_spec.rb
|
159
|
+
- lib/templates/rspec/scaffold/edit_spec.rb
|
160
|
+
- lib/templates/rspec/scaffold/index_spec.rb
|
161
|
+
- lib/templates/rspec/scaffold/new_spec.rb
|
162
|
+
- lib/templates/rspec/scaffold/routing_spec.rb
|
163
|
+
- lib/templates/rspec/scaffold/show_spec.rb
|
164
|
+
- spec/dummy/README.rdoc
|
165
|
+
- spec/dummy/Rakefile
|
166
|
+
- spec/dummy/app/assets/javascripts/application.js
|
167
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
168
|
+
- spec/dummy/app/controllers/application_controller.rb
|
169
|
+
- spec/dummy/app/helpers/application_helper.rb
|
170
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
171
|
+
- spec/dummy/bin/bundle
|
172
|
+
- spec/dummy/bin/rails
|
173
|
+
- spec/dummy/bin/rake
|
174
|
+
- spec/dummy/config.ru
|
175
|
+
- spec/dummy/config/application.rb
|
176
|
+
- spec/dummy/config/boot.rb
|
177
|
+
- spec/dummy/config/database.yml
|
178
|
+
- spec/dummy/config/environment.rb
|
179
|
+
- spec/dummy/config/environments/development.rb
|
180
|
+
- spec/dummy/config/environments/production.rb
|
181
|
+
- spec/dummy/config/environments/test.rb
|
182
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
183
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
184
|
+
- spec/dummy/config/initializers/inflections.rb
|
185
|
+
- spec/dummy/config/initializers/mime_types.rb
|
186
|
+
- spec/dummy/config/initializers/secret_token.rb
|
187
|
+
- spec/dummy/config/initializers/session_store.rb
|
188
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
189
|
+
- spec/dummy/config/locales/en.yml
|
190
|
+
- spec/dummy/config/routes.rb
|
191
|
+
- spec/dummy/db/test.sqlite3
|
192
|
+
- spec/dummy/log/development.log
|
193
|
+
- spec/dummy/log/test.log
|
194
|
+
- spec/dummy/public/404.html
|
195
|
+
- spec/dummy/public/422.html
|
196
|
+
- spec/dummy/public/500.html
|
197
|
+
- spec/dummy/public/favicon.ico
|
198
|
+
- spec/helpers/crud_link_helper_spec.rb
|
199
|
+
- spec/helpers/page_title_helper_spec.rb
|
200
|
+
- spec/spec_helper.rb
|
201
|
+
homepage: http://avdgaag.github.io/stationed
|
202
|
+
licenses: []
|
203
|
+
metadata: {}
|
204
|
+
post_install_message:
|
205
|
+
rdoc_options: []
|
206
|
+
require_paths:
|
207
|
+
- lib
|
208
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
|
+
requirements:
|
215
|
+
- - ">="
|
216
|
+
- !ruby/object:Gem::Version
|
217
|
+
version: '0'
|
218
|
+
requirements: []
|
219
|
+
rubyforge_project:
|
220
|
+
rubygems_version: 2.2.2
|
221
|
+
signing_key:
|
222
|
+
specification_version: 4
|
223
|
+
summary: Rails application and scaffold generator.
|
224
|
+
test_files:
|
225
|
+
- spec/dummy/app/assets/javascripts/application.js
|
226
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
227
|
+
- spec/dummy/app/controllers/application_controller.rb
|
228
|
+
- spec/dummy/app/helpers/application_helper.rb
|
229
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
230
|
+
- spec/dummy/bin/bundle
|
231
|
+
- spec/dummy/bin/rails
|
232
|
+
- spec/dummy/bin/rake
|
233
|
+
- spec/dummy/config/application.rb
|
234
|
+
- spec/dummy/config/boot.rb
|
235
|
+
- spec/dummy/config/database.yml
|
236
|
+
- spec/dummy/config/environment.rb
|
237
|
+
- spec/dummy/config/environments/development.rb
|
238
|
+
- spec/dummy/config/environments/production.rb
|
239
|
+
- spec/dummy/config/environments/test.rb
|
240
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
241
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
242
|
+
- spec/dummy/config/initializers/inflections.rb
|
243
|
+
- spec/dummy/config/initializers/mime_types.rb
|
244
|
+
- spec/dummy/config/initializers/secret_token.rb
|
245
|
+
- spec/dummy/config/initializers/session_store.rb
|
246
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
247
|
+
- spec/dummy/config/locales/en.yml
|
248
|
+
- spec/dummy/config/routes.rb
|
249
|
+
- spec/dummy/config.ru
|
250
|
+
- spec/dummy/db/test.sqlite3
|
251
|
+
- spec/dummy/log/development.log
|
252
|
+
- spec/dummy/log/test.log
|
253
|
+
- spec/dummy/public/404.html
|
254
|
+
- spec/dummy/public/422.html
|
255
|
+
- spec/dummy/public/500.html
|
256
|
+
- spec/dummy/public/favicon.ico
|
257
|
+
- spec/dummy/Rakefile
|
258
|
+
- spec/dummy/README.rdoc
|
259
|
+
- spec/helpers/crud_link_helper_spec.rb
|
260
|
+
- spec/helpers/page_title_helper_spec.rb
|
261
|
+
- spec/spec_helper.rb
|