silmarails 0.1.1
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 +7 -0
- data/LICENSE +22 -0
- data/README.md +188 -0
- data/Rakefile +57 -0
- data/app/assets/javascripts/magic_view.coffee +4 -0
- data/app/assets/javascripts/magic_view/init.coffee +25 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/config/routes.rb +2 -0
- data/lib/generators/silmarails/install/USAGE +8 -0
- data/lib/generators/silmarails/install/files/spec/support/silmarails.rb +33 -0
- data/lib/generators/silmarails/install/files/templates/active_record/model/model.rb +22 -0
- data/lib/generators/silmarails/install/files/templates/coffee/assets/javascript.coffee +11 -0
- data/lib/generators/silmarails/install/files/templates/erb/scaffold/_form.html.erb +23 -0
- data/lib/generators/silmarails/install/files/templates/erb/scaffold/edit.html.erb +11 -0
- data/lib/generators/silmarails/install/files/templates/erb/scaffold/index.html.erb +44 -0
- data/lib/generators/silmarails/install/files/templates/erb/scaffold/new.html.erb +9 -0
- data/lib/generators/silmarails/install/files/templates/erb/scaffold/show.html.erb +25 -0
- data/lib/generators/silmarails/install/files/templates/rails/responders_controller/controller.rb +59 -0
- data/lib/generators/silmarails/install/files/templates/rspec/scaffold/controller_spec.rb +163 -0
- data/lib/generators/silmarails/install/files/templates/rspec/scaffold/edit_spec.rb +19 -0
- data/lib/generators/silmarails/install/files/templates/rspec/scaffold/index_spec.rb +17 -0
- data/lib/generators/silmarails/install/files/templates/rspec/scaffold/new_spec.rb +19 -0
- data/lib/generators/silmarails/install/files/templates/rspec/scaffold/routing_spec.rb +45 -0
- data/lib/generators/silmarails/install/files/templates/rspec/scaffold/show_spec.rb +15 -0
- data/lib/generators/silmarails/install/install_generator.rb +22 -0
- data/lib/silmarails.rb +6 -0
- data/lib/silmarails/auto_include_magic_view.rb +52 -0
- data/lib/silmarails/engine.rb +4 -0
- data/lib/silmarails/railtie.rb +12 -0
- data/lib/silmarails/version.rb +3 -0
- data/lib/tasks/silmarails_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/lib/templates/rspec/controller/controller_spec.rb +16 -0
- data/test/dummy/lib/templates/rspec/controller/view_spec.rb +5 -0
- data/test/dummy/lib/templates/rspec/helper/helper_spec.rb +17 -0
- data/test/dummy/lib/templates/rspec/integration/request_spec.rb +10 -0
- data/test/dummy/lib/templates/rspec/mailer/fixture +3 -0
- data/test/dummy/lib/templates/rspec/mailer/mailer_spec.rb +25 -0
- data/test/dummy/lib/templates/rspec/mailer/preview.rb +13 -0
- data/test/dummy/lib/templates/rspec/model/fixtures.yml +19 -0
- data/test/dummy/lib/templates/rspec/model/model_spec.rb +7 -0
- data/test/dummy/lib/templates/rspec/observer/observer_spec.rb +7 -0
- data/test/dummy/lib/templates/rspec/scaffold/controller_spec.rb +163 -0
- data/test/dummy/lib/templates/rspec/scaffold/edit_spec.rb +23 -0
- data/test/dummy/lib/templates/rspec/scaffold/index_spec.rb +25 -0
- data/test/dummy/lib/templates/rspec/scaffold/new_spec.rb +22 -0
- data/test/dummy/lib/templates/rspec/scaffold/routing_spec.rb +45 -0
- data/test/dummy/lib/templates/rspec/scaffold/show_spec.rb +21 -0
- data/test/dummy/lib/templates/rspec/view/view_spec.rb +5 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/silmarails_test.rb +7 -0
- data/test/test_helper.rb +20 -0
- metadata +227 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
+
RSpec.describe "<%= ns_table_name %>/edit", <%= type_metatag(:view) %> do
|
5
|
+
before(:each) do
|
6
|
+
@<%= ns_file_name %> = assign(:<%= ns_file_name %>, <%= class_name %>.create!(<%= '))' if output_attributes.empty? %>
|
7
|
+
<% output_attributes.each_with_index do |attribute, attribute_index| -%>
|
8
|
+
:<%= attribute.name %> => <%= attribute.default.inspect %><%= attribute_index == output_attributes.length - 1 ? '' : ','%>
|
9
|
+
<% end -%>
|
10
|
+
<%= output_attributes.empty? ? "" : " ))\n" -%>
|
11
|
+
end
|
12
|
+
|
13
|
+
it "renders the edit <%= ns_file_name %> form" do
|
14
|
+
render
|
15
|
+
|
16
|
+
assert_select "form[action=?][method=?]", <%= ns_file_name %>_path(@<%= ns_file_name %>), "post" do
|
17
|
+
<% for attribute in output_attributes -%>
|
18
|
+
<%- name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name %>
|
19
|
+
assert_select "<%= attribute.input_type -%>#<%= ns_file_name %>_<%= name %>[name=?]", "<%= ns_file_name %>[<%= name %>]"
|
20
|
+
<% end -%>
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
+
RSpec.describe "<%= ns_table_name %>/index", <%= type_metatag(:view) %> do
|
5
|
+
before(:each) do
|
6
|
+
assign(:<%= table_name %>, [
|
7
|
+
<% [1,2].each_with_index do |id, model_index| -%>
|
8
|
+
<%= class_name %>.create!(<%= output_attributes.empty? ? (model_index == 1 ? ')' : '),') : '' %>
|
9
|
+
<% output_attributes.each_with_index do |attribute, attribute_index| -%>
|
10
|
+
:<%= attribute.name %> => <%= value_for(attribute) %><%= attribute_index == output_attributes.length - 1 ? '' : ','%>
|
11
|
+
<% end -%>
|
12
|
+
<% if !output_attributes.empty? -%>
|
13
|
+
<%= model_index == 1 ? ')' : '),' %>
|
14
|
+
<% end -%>
|
15
|
+
<% end -%>
|
16
|
+
])
|
17
|
+
end
|
18
|
+
|
19
|
+
it "renders a list of <%= ns_table_name %>" do
|
20
|
+
render
|
21
|
+
<% for attribute in output_attributes -%>
|
22
|
+
assert_select "tr>td", :text => <%= value_for(attribute) %>.to_s, :count => 2
|
23
|
+
<% end -%>
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
+
RSpec.describe "<%= ns_table_name %>/new", <%= type_metatag(:view) %> do
|
5
|
+
before(:each) do
|
6
|
+
assign(:<%= ns_file_name %>, <%= class_name %>.new(<%= '))' if output_attributes.empty? %>
|
7
|
+
<% output_attributes.each_with_index do |attribute, attribute_index| -%>
|
8
|
+
:<%= attribute.name %> => <%= attribute.default.inspect %><%= attribute_index == output_attributes.length - 1 ? '' : ','%>
|
9
|
+
<% end -%>
|
10
|
+
<%= !output_attributes.empty? ? " ))\n end" : " end" %>
|
11
|
+
|
12
|
+
it "renders new <%= ns_file_name %> form" do
|
13
|
+
render
|
14
|
+
|
15
|
+
assert_select "form[action=?][method=?]", <%= index_helper %>_path, "post" do
|
16
|
+
<% for attribute in output_attributes -%>
|
17
|
+
<%- name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name %>
|
18
|
+
assert_select "<%= attribute.input_type -%>#<%= ns_file_name %>_<%= name %>[name=?]", "<%= ns_file_name %>[<%= name %>]"
|
19
|
+
<% end -%>
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
<% module_namespacing do -%>
|
4
|
+
RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:routing) %> do
|
5
|
+
describe "routing" do
|
6
|
+
|
7
|
+
<% unless options[:singleton] -%>
|
8
|
+
it "routes to #index" do
|
9
|
+
expect(:get => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#index")
|
10
|
+
end
|
11
|
+
|
12
|
+
<% end -%>
|
13
|
+
it "routes to #new" do
|
14
|
+
expect(:get => "/<%= ns_table_name %>/new").to route_to("<%= ns_table_name %>#new")
|
15
|
+
end
|
16
|
+
|
17
|
+
it "routes to #show" do
|
18
|
+
expect(:get => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#show", :id => "1")
|
19
|
+
end
|
20
|
+
|
21
|
+
it "routes to #edit" do
|
22
|
+
expect(:get => "/<%= ns_table_name %>/1/edit").to route_to("<%= ns_table_name %>#edit", :id => "1")
|
23
|
+
end
|
24
|
+
|
25
|
+
it "routes to #create" do
|
26
|
+
expect(:post => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#create")
|
27
|
+
end
|
28
|
+
|
29
|
+
it "routes to #update via PUT" do
|
30
|
+
expect(:put => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#update", :id => "1")
|
31
|
+
end
|
32
|
+
|
33
|
+
<% if Rails::VERSION::STRING > '4' -%>
|
34
|
+
it "routes to #update via PATCH" do
|
35
|
+
expect(:patch => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#update", :id => "1")
|
36
|
+
end
|
37
|
+
|
38
|
+
<% end -%>
|
39
|
+
it "routes to #destroy" do
|
40
|
+
expect(:delete => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#destroy", :id => "1")
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
45
|
+
<% end -%>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
4
|
+
RSpec.describe "<%= ns_table_name %>/show", <%= type_metatag(:view) %> do
|
5
|
+
before(:each) do
|
6
|
+
@<%= ns_file_name %> = assign(:<%= ns_file_name %>, <%= class_name %>.create!(<%= '))' if output_attributes.empty? %>
|
7
|
+
<% output_attributes.each_with_index do |attribute, attribute_index| -%>
|
8
|
+
:<%= attribute.name %> => <%= value_for(attribute) %><%= attribute_index == output_attributes.length - 1 ? '' : ','%>
|
9
|
+
<% end -%>
|
10
|
+
<% if !output_attributes.empty? -%>
|
11
|
+
))
|
12
|
+
<% end -%>
|
13
|
+
end
|
14
|
+
|
15
|
+
it "renders attributes in <p>" do
|
16
|
+
render
|
17
|
+
<% for attribute in output_attributes -%>
|
18
|
+
expect(rendered).to match(/<%= raw_value_for(attribute) %>/)
|
19
|
+
<% end -%>
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
+
require "rails/test_help"
|
7
|
+
|
8
|
+
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
9
|
+
# to be shown.
|
10
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
11
|
+
|
12
|
+
# Load support files
|
13
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
+
|
15
|
+
# Load fixtures from the engine
|
16
|
+
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
17
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
18
|
+
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
19
|
+
ActiveSupport::TestCase.fixtures :all
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: silmarails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kelvinst
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-27 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.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
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
|
+
This gem is a set of generators, templates and helpers to
|
57
|
+
start a brand new rails project without too many code to
|
58
|
+
write. If you need more details, check the project README.
|
59
|
+
email:
|
60
|
+
- kelvin.stinghen@gmail.com
|
61
|
+
executables: []
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- LICENSE
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- app/assets/javascripts/magic_view.coffee
|
69
|
+
- app/assets/javascripts/magic_view/init.coffee
|
70
|
+
- app/assets/stylesheets/scaffold.css
|
71
|
+
- config/routes.rb
|
72
|
+
- lib/generators/silmarails/install/USAGE
|
73
|
+
- lib/generators/silmarails/install/files/spec/support/silmarails.rb
|
74
|
+
- lib/generators/silmarails/install/files/templates/active_record/model/model.rb
|
75
|
+
- lib/generators/silmarails/install/files/templates/coffee/assets/javascript.coffee
|
76
|
+
- lib/generators/silmarails/install/files/templates/erb/scaffold/_form.html.erb
|
77
|
+
- lib/generators/silmarails/install/files/templates/erb/scaffold/edit.html.erb
|
78
|
+
- lib/generators/silmarails/install/files/templates/erb/scaffold/index.html.erb
|
79
|
+
- lib/generators/silmarails/install/files/templates/erb/scaffold/new.html.erb
|
80
|
+
- lib/generators/silmarails/install/files/templates/erb/scaffold/show.html.erb
|
81
|
+
- lib/generators/silmarails/install/files/templates/rails/responders_controller/controller.rb
|
82
|
+
- lib/generators/silmarails/install/files/templates/rspec/scaffold/controller_spec.rb
|
83
|
+
- lib/generators/silmarails/install/files/templates/rspec/scaffold/edit_spec.rb
|
84
|
+
- lib/generators/silmarails/install/files/templates/rspec/scaffold/index_spec.rb
|
85
|
+
- lib/generators/silmarails/install/files/templates/rspec/scaffold/new_spec.rb
|
86
|
+
- lib/generators/silmarails/install/files/templates/rspec/scaffold/routing_spec.rb
|
87
|
+
- lib/generators/silmarails/install/files/templates/rspec/scaffold/show_spec.rb
|
88
|
+
- lib/generators/silmarails/install/install_generator.rb
|
89
|
+
- lib/silmarails.rb
|
90
|
+
- lib/silmarails/auto_include_magic_view.rb
|
91
|
+
- lib/silmarails/engine.rb
|
92
|
+
- lib/silmarails/railtie.rb
|
93
|
+
- lib/silmarails/version.rb
|
94
|
+
- lib/tasks/silmarails_tasks.rake
|
95
|
+
- test/dummy/README.rdoc
|
96
|
+
- test/dummy/Rakefile
|
97
|
+
- test/dummy/app/assets/javascripts/application.js
|
98
|
+
- test/dummy/app/assets/stylesheets/application.css
|
99
|
+
- test/dummy/app/controllers/application_controller.rb
|
100
|
+
- test/dummy/app/helpers/application_helper.rb
|
101
|
+
- test/dummy/app/views/layouts/application.html.erb
|
102
|
+
- test/dummy/bin/bundle
|
103
|
+
- test/dummy/bin/rails
|
104
|
+
- test/dummy/bin/rake
|
105
|
+
- test/dummy/bin/setup
|
106
|
+
- test/dummy/config.ru
|
107
|
+
- test/dummy/config/application.rb
|
108
|
+
- test/dummy/config/boot.rb
|
109
|
+
- test/dummy/config/database.yml
|
110
|
+
- test/dummy/config/environment.rb
|
111
|
+
- test/dummy/config/environments/development.rb
|
112
|
+
- test/dummy/config/environments/production.rb
|
113
|
+
- test/dummy/config/environments/test.rb
|
114
|
+
- test/dummy/config/initializers/assets.rb
|
115
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
116
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
117
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
118
|
+
- test/dummy/config/initializers/inflections.rb
|
119
|
+
- test/dummy/config/initializers/mime_types.rb
|
120
|
+
- test/dummy/config/initializers/session_store.rb
|
121
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
122
|
+
- test/dummy/config/locales/en.yml
|
123
|
+
- test/dummy/config/routes.rb
|
124
|
+
- test/dummy/config/secrets.yml
|
125
|
+
- test/dummy/lib/templates/rspec/controller/controller_spec.rb
|
126
|
+
- test/dummy/lib/templates/rspec/controller/view_spec.rb
|
127
|
+
- test/dummy/lib/templates/rspec/helper/helper_spec.rb
|
128
|
+
- test/dummy/lib/templates/rspec/integration/request_spec.rb
|
129
|
+
- test/dummy/lib/templates/rspec/mailer/fixture
|
130
|
+
- test/dummy/lib/templates/rspec/mailer/mailer_spec.rb
|
131
|
+
- test/dummy/lib/templates/rspec/mailer/preview.rb
|
132
|
+
- test/dummy/lib/templates/rspec/model/fixtures.yml
|
133
|
+
- test/dummy/lib/templates/rspec/model/model_spec.rb
|
134
|
+
- test/dummy/lib/templates/rspec/observer/observer_spec.rb
|
135
|
+
- test/dummy/lib/templates/rspec/scaffold/controller_spec.rb
|
136
|
+
- test/dummy/lib/templates/rspec/scaffold/edit_spec.rb
|
137
|
+
- test/dummy/lib/templates/rspec/scaffold/index_spec.rb
|
138
|
+
- test/dummy/lib/templates/rspec/scaffold/new_spec.rb
|
139
|
+
- test/dummy/lib/templates/rspec/scaffold/routing_spec.rb
|
140
|
+
- test/dummy/lib/templates/rspec/scaffold/show_spec.rb
|
141
|
+
- test/dummy/lib/templates/rspec/view/view_spec.rb
|
142
|
+
- test/dummy/public/404.html
|
143
|
+
- test/dummy/public/422.html
|
144
|
+
- test/dummy/public/500.html
|
145
|
+
- test/dummy/public/favicon.ico
|
146
|
+
- test/integration/navigation_test.rb
|
147
|
+
- test/silmarails_test.rb
|
148
|
+
- test/test_helper.rb
|
149
|
+
homepage: https://github.com/kelvinst/silmarails
|
150
|
+
licenses:
|
151
|
+
- MIT
|
152
|
+
metadata: {}
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options: []
|
155
|
+
require_paths:
|
156
|
+
- lib
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
requirements: []
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 2.5.1
|
170
|
+
signing_key:
|
171
|
+
specification_version: 4
|
172
|
+
summary: A complete set of tools for building rails applications
|
173
|
+
test_files:
|
174
|
+
- test/dummy/app/assets/javascripts/application.js
|
175
|
+
- test/dummy/app/assets/stylesheets/application.css
|
176
|
+
- test/dummy/app/controllers/application_controller.rb
|
177
|
+
- test/dummy/app/helpers/application_helper.rb
|
178
|
+
- test/dummy/app/views/layouts/application.html.erb
|
179
|
+
- test/dummy/bin/bundle
|
180
|
+
- test/dummy/bin/rails
|
181
|
+
- test/dummy/bin/rake
|
182
|
+
- test/dummy/bin/setup
|
183
|
+
- test/dummy/config/application.rb
|
184
|
+
- test/dummy/config/boot.rb
|
185
|
+
- test/dummy/config/database.yml
|
186
|
+
- test/dummy/config/environment.rb
|
187
|
+
- test/dummy/config/environments/development.rb
|
188
|
+
- test/dummy/config/environments/production.rb
|
189
|
+
- test/dummy/config/environments/test.rb
|
190
|
+
- test/dummy/config/initializers/assets.rb
|
191
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
192
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
193
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
194
|
+
- test/dummy/config/initializers/inflections.rb
|
195
|
+
- test/dummy/config/initializers/mime_types.rb
|
196
|
+
- test/dummy/config/initializers/session_store.rb
|
197
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
198
|
+
- test/dummy/config/locales/en.yml
|
199
|
+
- test/dummy/config/routes.rb
|
200
|
+
- test/dummy/config/secrets.yml
|
201
|
+
- test/dummy/config.ru
|
202
|
+
- test/dummy/lib/templates/rspec/controller/controller_spec.rb
|
203
|
+
- test/dummy/lib/templates/rspec/controller/view_spec.rb
|
204
|
+
- test/dummy/lib/templates/rspec/helper/helper_spec.rb
|
205
|
+
- test/dummy/lib/templates/rspec/integration/request_spec.rb
|
206
|
+
- test/dummy/lib/templates/rspec/mailer/fixture
|
207
|
+
- test/dummy/lib/templates/rspec/mailer/mailer_spec.rb
|
208
|
+
- test/dummy/lib/templates/rspec/mailer/preview.rb
|
209
|
+
- test/dummy/lib/templates/rspec/model/fixtures.yml
|
210
|
+
- test/dummy/lib/templates/rspec/model/model_spec.rb
|
211
|
+
- test/dummy/lib/templates/rspec/observer/observer_spec.rb
|
212
|
+
- test/dummy/lib/templates/rspec/scaffold/controller_spec.rb
|
213
|
+
- test/dummy/lib/templates/rspec/scaffold/edit_spec.rb
|
214
|
+
- test/dummy/lib/templates/rspec/scaffold/index_spec.rb
|
215
|
+
- test/dummy/lib/templates/rspec/scaffold/new_spec.rb
|
216
|
+
- test/dummy/lib/templates/rspec/scaffold/routing_spec.rb
|
217
|
+
- test/dummy/lib/templates/rspec/scaffold/show_spec.rb
|
218
|
+
- test/dummy/lib/templates/rspec/view/view_spec.rb
|
219
|
+
- test/dummy/public/404.html
|
220
|
+
- test/dummy/public/422.html
|
221
|
+
- test/dummy/public/500.html
|
222
|
+
- test/dummy/public/favicon.ico
|
223
|
+
- test/dummy/Rakefile
|
224
|
+
- test/dummy/README.rdoc
|
225
|
+
- test/integration/navigation_test.rb
|
226
|
+
- test/silmarails_test.rb
|
227
|
+
- test/test_helper.rb
|