custom-template 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/custom-template.gemspec +67 -0
- data/lib/generators/custom/template/custom-template.rb +16 -0
- data/lib/generators/custom/template/templates/erb/controller/view.html.erb +2 -0
- data/lib/generators/custom/template/templates/erb/mailer/view.text.erb +3 -0
- data/lib/generators/custom/template/templates/erb/scaffold/_form.html.erb +25 -0
- data/lib/generators/custom/template/templates/erb/scaffold/edit.html.erb +7 -0
- data/lib/generators/custom/template/templates/erb/scaffold/index.html.erb +33 -0
- data/lib/generators/custom/template/templates/erb/scaffold/new.html.erb +6 -0
- data/lib/generators/custom/template/templates/erb/scaffold/show.html.erb +11 -0
- data/lib/generators/custom/template/templates/rails/controller/controller.rb +12 -0
- data/lib/generators/custom/template/templates/rails/helper/helper.rb +2 -0
- data/lib/generators/custom/template/templates/rails/scaffold_controller/controller.rb +73 -0
- data/lib/generators/custom/template/templates/rails/stylesheets/scaffold.css +56 -0
- data/spec/custom-template_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- metadata +120 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.8.0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
# gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.8.3"
|
13
|
+
# gem "rcov", ">= 0"
|
14
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Shun Matsumoto
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= custom-template
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to custom-template
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2012 Shun Matsumoto. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "custom-template"
|
18
|
+
gem.homepage = "http://github.com/shu0115/custom-template"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = "Custom Scaffold Template"
|
21
|
+
gem.description = "Custom Template for Scaffold."
|
22
|
+
gem.email = "s.matsumoto0115@gmail.com"
|
23
|
+
gem.authors = ["Shun Matsumoto"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rdoc/task'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "custom-template #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "custom-template"
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Shun Matsumoto"]
|
12
|
+
s.date = "2012-04-26"
|
13
|
+
s.description = "Custom Template for Scaffold."
|
14
|
+
s.email = "s.matsumoto0115@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"custom-template.gemspec",
|
28
|
+
"lib/generators/custom/template/custom-template.rb",
|
29
|
+
"lib/generators/custom/template/templates/erb/controller/view.html.erb",
|
30
|
+
"lib/generators/custom/template/templates/erb/mailer/view.text.erb",
|
31
|
+
"lib/generators/custom/template/templates/erb/scaffold/_form.html.erb",
|
32
|
+
"lib/generators/custom/template/templates/erb/scaffold/edit.html.erb",
|
33
|
+
"lib/generators/custom/template/templates/erb/scaffold/index.html.erb",
|
34
|
+
"lib/generators/custom/template/templates/erb/scaffold/new.html.erb",
|
35
|
+
"lib/generators/custom/template/templates/erb/scaffold/show.html.erb",
|
36
|
+
"lib/generators/custom/template/templates/rails/controller/controller.rb",
|
37
|
+
"lib/generators/custom/template/templates/rails/helper/helper.rb",
|
38
|
+
"lib/generators/custom/template/templates/rails/scaffold_controller/controller.rb",
|
39
|
+
"lib/generators/custom/template/templates/rails/stylesheets/scaffold.css",
|
40
|
+
"spec/custom-template_spec.rb",
|
41
|
+
"spec/spec_helper.rb"
|
42
|
+
]
|
43
|
+
s.homepage = "http://github.com/shu0115/custom-template"
|
44
|
+
s.licenses = ["MIT"]
|
45
|
+
s.require_paths = ["lib"]
|
46
|
+
s.rubygems_version = "1.8.23"
|
47
|
+
s.summary = "Custom Scaffold Template"
|
48
|
+
|
49
|
+
if s.respond_to? :specification_version then
|
50
|
+
s.specification_version = 3
|
51
|
+
|
52
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
53
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
54
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
55
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
58
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
59
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
60
|
+
end
|
61
|
+
else
|
62
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
63
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Custom
|
4
|
+
module Generators
|
5
|
+
class TemplateGenerator < ::Rails::Generators::Base
|
6
|
+
|
7
|
+
source_root File.expand_path("../templates", __FILE__)
|
8
|
+
desc "This generator custom template for scaffold"
|
9
|
+
|
10
|
+
def generate_template
|
11
|
+
directory "erb", "templates/erb", recursive: true
|
12
|
+
directory "rails", "templates/rails", recursive: true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
<%%= form_for :<%= singular_table_name %>, url: { action: @submit, id: @<%= singular_table_name %>.try(:id) } do |f| %>
|
3
|
+
<%% if @<%= singular_table_name %>.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
|
6
|
+
|
7
|
+
<ul>
|
8
|
+
<%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %>
|
9
|
+
<li><%%= msg %></li>
|
10
|
+
<%% end %>
|
11
|
+
</ul>
|
12
|
+
</div>
|
13
|
+
<%% end %>
|
14
|
+
|
15
|
+
<% attributes.each do |attribute| -%>
|
16
|
+
<div class="field">
|
17
|
+
<%%= f.label :<%= attribute.name %> %><br />
|
18
|
+
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<% end -%>
|
22
|
+
<div class="actions">
|
23
|
+
<%%= f.submit t( "menu.#{@submit}", default: @submit ), disable_with: t( "menu.#{@submit}", default: @submit ) %>
|
24
|
+
</div>
|
25
|
+
<%% end %>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
<h1>Listing <%= plural_table_name %></h1>
|
3
|
+
|
4
|
+
<table>
|
5
|
+
<tr>
|
6
|
+
<% attributes.each do |attribute| -%>
|
7
|
+
<th><%= attribute.human_name %></th>
|
8
|
+
<% end -%>
|
9
|
+
<th></th>
|
10
|
+
<th></th>
|
11
|
+
<th></th>
|
12
|
+
</tr>
|
13
|
+
|
14
|
+
<%% @<%= plural_table_name %>.each{ |<%= singular_table_name %>| %>
|
15
|
+
<tr>
|
16
|
+
<% attributes.each do |attribute| -%>
|
17
|
+
<td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
|
18
|
+
<% end -%>
|
19
|
+
<td><%%= link_to t( "menu.show", default: "Show" ), action: "show", id: <%= singular_table_name %>.id %></td>
|
20
|
+
<td><%%= link_to t( "menu.edit", default: "Edit" ), action: "edit", id: <%= singular_table_name %>.id %></td>
|
21
|
+
<td><%%= link_to t( "menu.destroy", default: "Delete" ), { action: "destroy", id: <%= singular_table_name %>.id }, onclick: "return confirm('本当に削除してよろしいですか?');" %></td>
|
22
|
+
</tr>
|
23
|
+
<%% } %>
|
24
|
+
</table>
|
25
|
+
|
26
|
+
<br />
|
27
|
+
|
28
|
+
<%%= link_to t( "menu.new", default: "New" ), action: "new" %>
|
29
|
+
|
30
|
+
<br />
|
31
|
+
<br />
|
32
|
+
|
33
|
+
<%%= link_to t( "menu.top", default: "Top" ), :root %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
|
2
|
+
<% attributes.each{ |attribute| -%>
|
3
|
+
<p>
|
4
|
+
<b><%= attribute.human_name %>:</b>
|
5
|
+
<%%= @<%= singular_table_name %>.<%= attribute.name %> %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<% } %>
|
9
|
+
|
10
|
+
<%%= link_to t( "menu.edit", default: "Edit" ), action: "edit", id: @<%= singular_table_name %>.id %>
|
11
|
+
| <%%= link_to t( "menu.list", default: "List" ), action: "index" %>
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
class <%= controller_class_name %>Controller < ApplicationController
|
3
|
+
|
4
|
+
#-------#
|
5
|
+
# index #
|
6
|
+
#-------#
|
7
|
+
def index
|
8
|
+
@<%= plural_table_name %> = <%= "#{class_name}.where( user_id: session[:user_id] ).all" %>
|
9
|
+
end
|
10
|
+
|
11
|
+
#------#
|
12
|
+
# show #
|
13
|
+
#------#
|
14
|
+
def show
|
15
|
+
@<%= singular_table_name %> = <%= "#{class_name}.where( id: params[:id], user_id: session[:user_id] ).first" %>
|
16
|
+
end
|
17
|
+
|
18
|
+
#-----#
|
19
|
+
# new #
|
20
|
+
#-----#
|
21
|
+
def new
|
22
|
+
@<%= singular_table_name %> = <%= orm_class.build( class_name ) %>
|
23
|
+
|
24
|
+
@submit = "create"
|
25
|
+
end
|
26
|
+
|
27
|
+
#------#
|
28
|
+
# edit #
|
29
|
+
#------#
|
30
|
+
def edit
|
31
|
+
@<%= singular_table_name %> = <%= "#{class_name}.where( id: params[:id], user_id: session[:user_id] ).first" %>
|
32
|
+
|
33
|
+
@submit = "update"
|
34
|
+
end
|
35
|
+
|
36
|
+
#--------#
|
37
|
+
# create #
|
38
|
+
#--------#
|
39
|
+
def create
|
40
|
+
@<%= singular_table_name %> = <%= orm_class.build( class_name, " params[:#{singular_table_name}] " ) %>
|
41
|
+
@<%= "#{singular_table_name}.user_id" %> = <%= "session[:user_id]" %>
|
42
|
+
|
43
|
+
if @<%= orm_instance.save %>
|
44
|
+
redirect_to( { action: "index" }, notice: <%= "\"#{human_name} was successfully created.\"" %> )
|
45
|
+
else
|
46
|
+
render action: "new"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
#--------#
|
51
|
+
# update #
|
52
|
+
#--------#
|
53
|
+
def update
|
54
|
+
@<%= singular_table_name %> = <%= "#{class_name}.where( id: params[:id], user_id: session[:user_id] ).first" %>
|
55
|
+
|
56
|
+
if @<%= orm_instance.update_attributes(" params[:#{singular_table_name}] ") %>
|
57
|
+
redirect_to( { action: "show", id: <%= "params[:id]" %> }, notice: <%= "\"#{human_name} was successfully updated.\"" %> )
|
58
|
+
else
|
59
|
+
render action: "edit", id: <%= "params[:id]" %>
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
#---------#
|
64
|
+
# destroy #
|
65
|
+
#---------#
|
66
|
+
def destroy
|
67
|
+
@<%= singular_table_name %> = <%= "#{class_name}.where( id: params[:id], user_id: session[:user_id] ).first" %>
|
68
|
+
@<%= orm_instance.destroy %>
|
69
|
+
|
70
|
+
redirect_to action: "index"
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
body { background-color: #fff; color: #333; }
|
2
|
+
|
3
|
+
body, p, ol, ul, td {
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px;
|
7
|
+
}
|
8
|
+
|
9
|
+
pre {
|
10
|
+
background-color: #eee;
|
11
|
+
padding: 10px;
|
12
|
+
font-size: 11px;
|
13
|
+
}
|
14
|
+
|
15
|
+
a { color: #000; }
|
16
|
+
a:visited { color: #666; }
|
17
|
+
a:hover { color: #fff; background-color:#000; }
|
18
|
+
|
19
|
+
div.field, div.actions {
|
20
|
+
margin-bottom: 10px;
|
21
|
+
}
|
22
|
+
|
23
|
+
#notice {
|
24
|
+
color: green;
|
25
|
+
}
|
26
|
+
|
27
|
+
.field_with_errors {
|
28
|
+
padding: 2px;
|
29
|
+
background-color: red;
|
30
|
+
display: table;
|
31
|
+
}
|
32
|
+
|
33
|
+
#error_explanation {
|
34
|
+
width: 450px;
|
35
|
+
border: 2px solid red;
|
36
|
+
padding: 7px;
|
37
|
+
padding-bottom: 0;
|
38
|
+
margin-bottom: 20px;
|
39
|
+
background-color: #f0f0f0;
|
40
|
+
}
|
41
|
+
|
42
|
+
#error_explanation h2 {
|
43
|
+
text-align: left;
|
44
|
+
font-weight: bold;
|
45
|
+
padding: 5px 5px 5px 15px;
|
46
|
+
font-size: 12px;
|
47
|
+
margin: -7px;
|
48
|
+
margin-bottom: 0px;
|
49
|
+
background-color: #c00;
|
50
|
+
color: #fff;
|
51
|
+
}
|
52
|
+
|
53
|
+
#error_explanation ul li {
|
54
|
+
font-size: 12px;
|
55
|
+
list-style: square;
|
56
|
+
}
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'custom-template'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: custom-template
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Shun Matsumoto
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-04-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.8.0
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.8.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rdoc
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.12'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.12'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: jeweler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.8.3
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.8.3
|
62
|
+
description: Custom Template for Scaffold.
|
63
|
+
email: s.matsumoto0115@gmail.com
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files:
|
67
|
+
- LICENSE.txt
|
68
|
+
- README.rdoc
|
69
|
+
files:
|
70
|
+
- .document
|
71
|
+
- .rspec
|
72
|
+
- Gemfile
|
73
|
+
- LICENSE.txt
|
74
|
+
- README.rdoc
|
75
|
+
- Rakefile
|
76
|
+
- VERSION
|
77
|
+
- custom-template.gemspec
|
78
|
+
- lib/generators/custom/template/custom-template.rb
|
79
|
+
- lib/generators/custom/template/templates/erb/controller/view.html.erb
|
80
|
+
- lib/generators/custom/template/templates/erb/mailer/view.text.erb
|
81
|
+
- lib/generators/custom/template/templates/erb/scaffold/_form.html.erb
|
82
|
+
- lib/generators/custom/template/templates/erb/scaffold/edit.html.erb
|
83
|
+
- lib/generators/custom/template/templates/erb/scaffold/index.html.erb
|
84
|
+
- lib/generators/custom/template/templates/erb/scaffold/new.html.erb
|
85
|
+
- lib/generators/custom/template/templates/erb/scaffold/show.html.erb
|
86
|
+
- lib/generators/custom/template/templates/rails/controller/controller.rb
|
87
|
+
- lib/generators/custom/template/templates/rails/helper/helper.rb
|
88
|
+
- lib/generators/custom/template/templates/rails/scaffold_controller/controller.rb
|
89
|
+
- lib/generators/custom/template/templates/rails/stylesheets/scaffold.css
|
90
|
+
- spec/custom-template_spec.rb
|
91
|
+
- spec/spec_helper.rb
|
92
|
+
homepage: http://github.com/shu0115/custom-template
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ! '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
hash: 2916924440435521683
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ! '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
requirements: []
|
115
|
+
rubyforge_project:
|
116
|
+
rubygems_version: 1.8.23
|
117
|
+
signing_key:
|
118
|
+
specification_version: 3
|
119
|
+
summary: Custom Scaffold Template
|
120
|
+
test_files: []
|