focus-generator 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/LICENSE +20 -0
- data/README.rdoc +109 -0
- data/Rakefile +10 -0
- data/features/fcus_authentication.feature +80 -0
- data/features/fcus_config.feature +17 -0
- data/features/fcus_layout.feature +20 -0
- data/features/fcus_scaffold.feature +80 -0
- data/features/step_definitions/common_steps.rb +62 -0
- data/features/step_definitions/rails_setup_steps.rb +6 -0
- data/features/support/env.rb +6 -0
- data/features/support/matchers.rb +7 -0
- data/lib/generators/fcus.rb +28 -0
- data/lib/generators/fcus/authentication/USAGE +50 -0
- data/lib/generators/fcus/authentication/authentication_generator.rb +154 -0
- data/lib/generators/fcus/authentication/templates/authlogic_session.rb +2 -0
- data/lib/generators/fcus/authentication/templates/controller_authentication.rb +60 -0
- data/lib/generators/fcus/authentication/templates/fixtures.yml +24 -0
- data/lib/generators/fcus/authentication/templates/migration.rb +20 -0
- data/lib/generators/fcus/authentication/templates/sessions_controller.rb +41 -0
- data/lib/generators/fcus/authentication/templates/sessions_helper.rb +2 -0
- data/lib/generators/fcus/authentication/templates/tests/rspec/sessions_controller.rb +39 -0
- data/lib/generators/fcus/authentication/templates/tests/rspec/user.rb +83 -0
- data/lib/generators/fcus/authentication/templates/tests/rspec/users_controller.rb +56 -0
- data/lib/generators/fcus/authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
- data/lib/generators/fcus/authentication/templates/tests/shoulda/user.rb +85 -0
- data/lib/generators/fcus/authentication/templates/tests/shoulda/users_controller.rb +61 -0
- data/lib/generators/fcus/authentication/templates/tests/testunit/sessions_controller.rb +36 -0
- data/lib/generators/fcus/authentication/templates/tests/testunit/user.rb +88 -0
- data/lib/generators/fcus/authentication/templates/tests/testunit/users_controller.rb +53 -0
- data/lib/generators/fcus/authentication/templates/user.rb +38 -0
- data/lib/generators/fcus/authentication/templates/users_controller.rb +32 -0
- data/lib/generators/fcus/authentication/templates/users_helper.rb +2 -0
- data/lib/generators/fcus/authentication/templates/views/erb/_form.html.erb +20 -0
- data/lib/generators/fcus/authentication/templates/views/erb/edit.html.erb +3 -0
- data/lib/generators/fcus/authentication/templates/views/erb/login.html.erb +30 -0
- data/lib/generators/fcus/authentication/templates/views/erb/signup.html.erb +5 -0
- data/lib/generators/fcus/authentication/templates/views/haml/_form.html.haml +16 -0
- data/lib/generators/fcus/authentication/templates/views/haml/edit.html.haml +3 -0
- data/lib/generators/fcus/authentication/templates/views/haml/login.html.haml +26 -0
- data/lib/generators/fcus/authentication/templates/views/haml/signup.html.haml +5 -0
- data/lib/generators/fcus/config/USAGE +23 -0
- data/lib/generators/fcus/config/config_generator.rb +24 -0
- data/lib/generators/fcus/config/templates/config.yml +8 -0
- data/lib/generators/fcus/config/templates/load_config.rb +2 -0
- data/lib/generators/fcus/layout/USAGE +25 -0
- data/lib/generators/fcus/layout/layout_generator.rb +29 -0
- data/lib/generators/fcus/layout/templates/error_messages_helper.rb +23 -0
- data/lib/generators/fcus/layout/templates/layout.html.erb +19 -0
- data/lib/generators/fcus/layout/templates/layout.html.haml +21 -0
- data/lib/generators/fcus/layout/templates/layout_helper.rb +22 -0
- data/lib/generators/fcus/layout/templates/stylesheet.css +83 -0
- data/lib/generators/fcus/layout/templates/stylesheet.sass +73 -0
- data/lib/generators/fcus/scaffold/USAGE +51 -0
- data/lib/generators/fcus/scaffold/scaffold_generator.rb +318 -0
- data/lib/generators/fcus/scaffold/templates/actions/create.rb +8 -0
- data/lib/generators/fcus/scaffold/templates/actions/destroy.rb +5 -0
- data/lib/generators/fcus/scaffold/templates/actions/edit.rb +3 -0
- data/lib/generators/fcus/scaffold/templates/actions/index.rb +3 -0
- data/lib/generators/fcus/scaffold/templates/actions/new.rb +3 -0
- data/lib/generators/fcus/scaffold/templates/actions/show.rb +3 -0
- data/lib/generators/fcus/scaffold/templates/actions/update.rb +8 -0
- data/lib/generators/fcus/scaffold/templates/controller.rb +3 -0
- data/lib/generators/fcus/scaffold/templates/fixtures.yml +9 -0
- data/lib/generators/fcus/scaffold/templates/helper.rb +2 -0
- data/lib/generators/fcus/scaffold/templates/migration.rb +16 -0
- data/lib/generators/fcus/scaffold/templates/model.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/create.rb +11 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/index.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/new.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/show.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/update.rb +11 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/controller.rb +8 -0
- data/lib/generators/fcus/scaffold/templates/tests/rspec/model.rb +7 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/controller.rb +5 -0
- data/lib/generators/fcus/scaffold/templates/tests/shoulda/model.rb +7 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/create.rb +11 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/index.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/new.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/show.rb +4 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/update.rb +11 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/controller.rb +5 -0
- data/lib/generators/fcus/scaffold/templates/tests/testunit/model.rb +7 -0
- data/lib/generators/fcus/scaffold/templates/views/erb/_form.html.erb +10 -0
- data/lib/generators/fcus/scaffold/templates/views/erb/edit.html.erb +14 -0
- data/lib/generators/fcus/scaffold/templates/views/erb/index.html.erb +29 -0
- data/lib/generators/fcus/scaffold/templates/views/erb/new.html.erb +7 -0
- data/lib/generators/fcus/scaffold/templates/views/erb/show.html.erb +20 -0
- data/lib/generators/fcus/scaffold/templates/views/haml/_form.html.haml +9 -0
- data/lib/generators/fcus/scaffold/templates/views/haml/edit.html.haml +14 -0
- data/lib/generators/fcus/scaffold/templates/views/haml/index.html.haml +25 -0
- data/lib/generators/fcus/scaffold/templates/views/haml/new.html.haml +7 -0
- data/lib/generators/fcus/scaffold/templates/views/haml/show.html.haml +20 -0
- data/rails_generators/fcus_authentication/USAGE +50 -0
- data/rails_generators/fcus_authentication/fcus_authentication_generator.rb +128 -0
- data/rails_generators/fcus_authentication/lib/insert_commands.rb +74 -0
- data/rails_generators/fcus_authentication/templates/authentication.rb +61 -0
- data/rails_generators/fcus_authentication/templates/authlogic_session.rb +2 -0
- data/rails_generators/fcus_authentication/templates/fixtures.yml +24 -0
- data/rails_generators/fcus_authentication/templates/migration.rb +20 -0
- data/rails_generators/fcus_authentication/templates/sessions_controller.rb +45 -0
- data/rails_generators/fcus_authentication/templates/sessions_helper.rb +2 -0
- data/rails_generators/fcus_authentication/templates/tests/rspec/sessions_controller.rb +39 -0
- data/rails_generators/fcus_authentication/templates/tests/rspec/user.rb +83 -0
- data/rails_generators/fcus_authentication/templates/tests/rspec/users_controller.rb +26 -0
- data/rails_generators/fcus_authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
- data/rails_generators/fcus_authentication/templates/tests/shoulda/user.rb +85 -0
- data/rails_generators/fcus_authentication/templates/tests/shoulda/users_controller.rb +27 -0
- data/rails_generators/fcus_authentication/templates/tests/testunit/sessions_controller.rb +36 -0
- data/rails_generators/fcus_authentication/templates/tests/testunit/user.rb +88 -0
- data/rails_generators/fcus_authentication/templates/tests/testunit/users_controller.rb +23 -0
- data/rails_generators/fcus_authentication/templates/user.rb +42 -0
- data/rails_generators/fcus_authentication/templates/users_controller.rb +18 -0
- data/rails_generators/fcus_authentication/templates/users_helper.rb +2 -0
- data/rails_generators/fcus_authentication/templates/views/erb/login.html.erb +30 -0
- data/rails_generators/fcus_authentication/templates/views/erb/signup.html.erb +24 -0
- data/rails_generators/fcus_authentication/templates/views/haml/login.html.haml +30 -0
- data/rails_generators/fcus_authentication/templates/views/haml/signup.html.haml +24 -0
- data/rails_generators/fcus_config/USAGE +23 -0
- data/rails_generators/fcus_config/fcus_config_generator.rb +32 -0
- data/rails_generators/fcus_config/templates/config.yml +8 -0
- data/rails_generators/fcus_config/templates/load_config.rb +2 -0
- data/rails_generators/fcus_layout/USAGE +25 -0
- data/rails_generators/fcus_layout/fcus_layout_generator.rb +44 -0
- data/rails_generators/fcus_layout/templates/helper.rb +22 -0
- data/rails_generators/fcus_layout/templates/layout.html.erb +22 -0
- data/rails_generators/fcus_layout/templates/layout.html.haml +19 -0
- data/rails_generators/fcus_layout/templates/stylesheet.css +81 -0
- data/rails_generators/fcus_layout/templates/stylesheet.sass +67 -0
- data/rails_generators/fcus_scaffold/USAGE +51 -0
- data/rails_generators/fcus_scaffold/fcus_scaffold_generator.rb +232 -0
- data/rails_generators/fcus_scaffold/templates/actions/create.rb +9 -0
- data/rails_generators/fcus_scaffold/templates/actions/destroy.rb +6 -0
- data/rails_generators/fcus_scaffold/templates/actions/edit.rb +3 -0
- data/rails_generators/fcus_scaffold/templates/actions/index.rb +3 -0
- data/rails_generators/fcus_scaffold/templates/actions/new.rb +3 -0
- data/rails_generators/fcus_scaffold/templates/actions/show.rb +3 -0
- data/rails_generators/fcus_scaffold/templates/actions/update.rb +9 -0
- data/rails_generators/fcus_scaffold/templates/controller.rb +3 -0
- data/rails_generators/fcus_scaffold/templates/fixtures.yml +9 -0
- data/rails_generators/fcus_scaffold/templates/helper.rb +2 -0
- data/rails_generators/fcus_scaffold/templates/migration.rb +16 -0
- data/rails_generators/fcus_scaffold/templates/model.rb +3 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/create.rb +11 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/edit.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/index.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/new.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/show.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/update.rb +11 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/controller.rb +8 -0
- data/rails_generators/fcus_scaffold/templates/tests/rspec/model.rb +7 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/create.rb +13 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/index.rb +6 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/new.rb +6 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/show.rb +6 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/update.rb +13 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/controller.rb +5 -0
- data/rails_generators/fcus_scaffold/templates/tests/shoulda/model.rb +7 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/create.rb +11 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/edit.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/index.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/new.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/show.rb +4 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/update.rb +11 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/controller.rb +5 -0
- data/rails_generators/fcus_scaffold/templates/tests/testunit/model.rb +7 -0
- data/rails_generators/fcus_scaffold/templates/views/erb/_form.html.erb +10 -0
- data/rails_generators/fcus_scaffold/templates/views/erb/edit.html.erb +14 -0
- data/rails_generators/fcus_scaffold/templates/views/erb/index.html.erb +29 -0
- data/rails_generators/fcus_scaffold/templates/views/erb/new.html.erb +7 -0
- data/rails_generators/fcus_scaffold/templates/views/erb/show.html.erb +20 -0
- data/rails_generators/fcus_scaffold/templates/views/haml/_form.html.haml +10 -0
- data/rails_generators/fcus_scaffold/templates/views/haml/edit.html.haml +14 -0
- data/rails_generators/fcus_scaffold/templates/views/haml/index.html.haml +25 -0
- data/rails_generators/fcus_scaffold/templates/views/haml/new.html.haml +7 -0
- data/rails_generators/fcus_scaffold/templates/views/haml/show.html.haml +20 -0
- data/test/test_fcus_authentication_generator.rb +274 -0
- data/test/test_fcus_config_generator.rb +37 -0
- data/test/test_fcus_layout_generator.rb +42 -0
- data/test/test_fcus_scaffold_generator.rb +534 -0
- data/test/test_helper.rb +119 -0
- metadata +314 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
|
3
|
+
# Must set before requiring generator libs.
|
4
|
+
TMP_ROOT = File.dirname(__FILE__) + "/tmp" unless defined?(TMP_ROOT)
|
5
|
+
PROJECT_NAME = "myproject" unless defined?(PROJECT_NAME)
|
6
|
+
app_root = File.join(TMP_ROOT, PROJECT_NAME)
|
7
|
+
if defined?(APP_ROOT)
|
8
|
+
APP_ROOT.replace(app_root)
|
9
|
+
else
|
10
|
+
APP_ROOT = app_root
|
11
|
+
end
|
12
|
+
if defined?(RAILS_ROOT)
|
13
|
+
RAILS_ROOT.replace(app_root)
|
14
|
+
else
|
15
|
+
RAILS_ROOT = app_root
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'rubygems'
|
19
|
+
gem 'rails', '2.0.2' # getting a Rails.configuration error with 2.1
|
20
|
+
gem 'rubigen', '1.4'
|
21
|
+
gem 'shoulda', '2.0.6'
|
22
|
+
require 'rubigen' # gem install rubigen --version=1.4
|
23
|
+
require 'rubigen/helpers/generator_test_helper'
|
24
|
+
require 'rails_generator'
|
25
|
+
require 'shoulda' # gem install shoulda --version=2.0.6
|
26
|
+
require 'mocha'
|
27
|
+
|
28
|
+
module FcusGenerators
|
29
|
+
module TestHelper
|
30
|
+
include RubiGen::GeneratorTestHelper
|
31
|
+
|
32
|
+
def setup
|
33
|
+
bare_setup
|
34
|
+
end
|
35
|
+
|
36
|
+
def teardown
|
37
|
+
bare_teardown
|
38
|
+
end
|
39
|
+
|
40
|
+
protected
|
41
|
+
|
42
|
+
def run_rails_generator(generator, *args)
|
43
|
+
options = args.pop if args.last.kind_of? Hash
|
44
|
+
options ||= {}
|
45
|
+
run_generator(generator.to_s, args, generator_sources, options.reverse_merge(:quiet => true))
|
46
|
+
end
|
47
|
+
|
48
|
+
def generator_sources
|
49
|
+
[RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__), "..", "rails_generators"))]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
module ShouldaAdditions
|
54
|
+
def rails_generator(*args)
|
55
|
+
setup do
|
56
|
+
run_rails_generator(*args)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def should_generate_file(file, &block)
|
61
|
+
should "generate file #{file}" do
|
62
|
+
yield("foo") if block_given?
|
63
|
+
assert_generated_file(file)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def should_not_generate_file(file)
|
68
|
+
should "not generate file #{file}" do
|
69
|
+
assert !File.exists?("#{APP_ROOT}/#{file}"),"The file '#{file}' should not exist"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
class Thoughtbot::Shoulda::Context
|
76
|
+
include FcusGenerators::ShouldaAdditions
|
77
|
+
end
|
78
|
+
|
79
|
+
# Mock out what we need from AR::Base.
|
80
|
+
module ActiveRecord
|
81
|
+
class Base
|
82
|
+
class << self
|
83
|
+
attr_accessor :pluralize_table_names, :columns
|
84
|
+
|
85
|
+
def add_column(name, type = :string)
|
86
|
+
returning ActiveRecord::ConnectionAdapters::Column.new(name, nil) do |column|
|
87
|
+
column.type = type
|
88
|
+
@columns ||= []
|
89
|
+
@columns << column
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
self.pluralize_table_names = true
|
94
|
+
end
|
95
|
+
|
96
|
+
module ConnectionAdapters
|
97
|
+
class Column
|
98
|
+
attr_accessor :name, :default, :type, :limit, :null, :sql_type, :precision, :scale
|
99
|
+
|
100
|
+
def initialize(name, default, sql_type = nil)
|
101
|
+
@name = name
|
102
|
+
@default = default
|
103
|
+
@type = @sql_type = sql_type
|
104
|
+
end
|
105
|
+
|
106
|
+
def human_name
|
107
|
+
@name.humanize
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
# And what we need from ActionView
|
114
|
+
module ActionView
|
115
|
+
module Helpers
|
116
|
+
module ActiveRecordHelper; end
|
117
|
+
class InstanceTag; end
|
118
|
+
end
|
119
|
+
end
|
metadata
ADDED
@@ -0,0 +1,314 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: focus-generator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Albert Li
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2012-03-30 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec-rails
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.0.1
|
24
|
+
type: :development
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: cucumber
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.9.2
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rails
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.2.2
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: mocha
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.9.8
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: bcrypt-ruby
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 2.1.2
|
68
|
+
type: :development
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: sqlite3-ruby
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.3.1
|
79
|
+
type: :development
|
80
|
+
version_requirements: *id006
|
81
|
+
description: A collection of useful Rails generator scripts for scaffolding, layout files, authentication, and more.
|
82
|
+
email: ryan@railscasts.com
|
83
|
+
executables: []
|
84
|
+
|
85
|
+
extensions: []
|
86
|
+
|
87
|
+
extra_rdoc_files: []
|
88
|
+
|
89
|
+
files:
|
90
|
+
- lib/generators/fcus.rb
|
91
|
+
- lib/generators/fcus/scaffold/USAGE
|
92
|
+
- lib/generators/fcus/scaffold/templates/controller.rb
|
93
|
+
- lib/generators/fcus/scaffold/templates/helper.rb
|
94
|
+
- lib/generators/fcus/scaffold/templates/views/erb/index.html.erb
|
95
|
+
- lib/generators/fcus/scaffold/templates/views/erb/new.html.erb
|
96
|
+
- lib/generators/fcus/scaffold/templates/views/erb/edit.html.erb
|
97
|
+
- lib/generators/fcus/scaffold/templates/views/erb/show.html.erb
|
98
|
+
- lib/generators/fcus/scaffold/templates/views/erb/_form.html.erb
|
99
|
+
- lib/generators/fcus/scaffold/templates/views/haml/show.html.haml
|
100
|
+
- lib/generators/fcus/scaffold/templates/views/haml/new.html.haml
|
101
|
+
- lib/generators/fcus/scaffold/templates/views/haml/edit.html.haml
|
102
|
+
- lib/generators/fcus/scaffold/templates/views/haml/index.html.haml
|
103
|
+
- lib/generators/fcus/scaffold/templates/views/haml/_form.html.haml
|
104
|
+
- lib/generators/fcus/scaffold/templates/fixtures.yml
|
105
|
+
- lib/generators/fcus/scaffold/templates/actions/edit.rb
|
106
|
+
- lib/generators/fcus/scaffold/templates/actions/destroy.rb
|
107
|
+
- lib/generators/fcus/scaffold/templates/actions/index.rb
|
108
|
+
- lib/generators/fcus/scaffold/templates/actions/new.rb
|
109
|
+
- lib/generators/fcus/scaffold/templates/actions/create.rb
|
110
|
+
- lib/generators/fcus/scaffold/templates/actions/show.rb
|
111
|
+
- lib/generators/fcus/scaffold/templates/actions/update.rb
|
112
|
+
- lib/generators/fcus/scaffold/templates/model.rb
|
113
|
+
- lib/generators/fcus/scaffold/templates/migration.rb
|
114
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/controller.rb
|
115
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/actions/edit.rb
|
116
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/actions/destroy.rb
|
117
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/actions/index.rb
|
118
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/actions/new.rb
|
119
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/actions/create.rb
|
120
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/actions/show.rb
|
121
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/actions/update.rb
|
122
|
+
- lib/generators/fcus/scaffold/templates/tests/rspec/model.rb
|
123
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/controller.rb
|
124
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/actions/edit.rb
|
125
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/actions/destroy.rb
|
126
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/actions/index.rb
|
127
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/actions/new.rb
|
128
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/actions/create.rb
|
129
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/actions/show.rb
|
130
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/actions/update.rb
|
131
|
+
- lib/generators/fcus/scaffold/templates/tests/testunit/model.rb
|
132
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/controller.rb
|
133
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/actions/edit.rb
|
134
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/actions/destroy.rb
|
135
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/actions/index.rb
|
136
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/actions/new.rb
|
137
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/actions/create.rb
|
138
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/actions/show.rb
|
139
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/actions/update.rb
|
140
|
+
- lib/generators/fcus/scaffold/templates/tests/shoulda/model.rb
|
141
|
+
- lib/generators/fcus/scaffold/scaffold_generator.rb
|
142
|
+
- lib/generators/fcus/authentication/USAGE
|
143
|
+
- lib/generators/fcus/authentication/authentication_generator.rb
|
144
|
+
- lib/generators/fcus/authentication/templates/users_controller.rb
|
145
|
+
- lib/generators/fcus/authentication/templates/sessions_helper.rb
|
146
|
+
- lib/generators/fcus/authentication/templates/users_helper.rb
|
147
|
+
- lib/generators/fcus/authentication/templates/sessions_controller.rb
|
148
|
+
- lib/generators/fcus/authentication/templates/views/erb/signup.html.erb
|
149
|
+
- lib/generators/fcus/authentication/templates/views/erb/edit.html.erb
|
150
|
+
- lib/generators/fcus/authentication/templates/views/erb/login.html.erb
|
151
|
+
- lib/generators/fcus/authentication/templates/views/erb/_form.html.erb
|
152
|
+
- lib/generators/fcus/authentication/templates/views/haml/signup.html.haml
|
153
|
+
- lib/generators/fcus/authentication/templates/views/haml/login.html.haml
|
154
|
+
- lib/generators/fcus/authentication/templates/views/haml/edit.html.haml
|
155
|
+
- lib/generators/fcus/authentication/templates/views/haml/_form.html.haml
|
156
|
+
- lib/generators/fcus/authentication/templates/fixtures.yml
|
157
|
+
- lib/generators/fcus/authentication/templates/controller_authentication.rb
|
158
|
+
- lib/generators/fcus/authentication/templates/migration.rb
|
159
|
+
- lib/generators/fcus/authentication/templates/authlogic_session.rb
|
160
|
+
- lib/generators/fcus/authentication/templates/tests/rspec/users_controller.rb
|
161
|
+
- lib/generators/fcus/authentication/templates/tests/rspec/sessions_controller.rb
|
162
|
+
- lib/generators/fcus/authentication/templates/tests/rspec/user.rb
|
163
|
+
- lib/generators/fcus/authentication/templates/tests/testunit/users_controller.rb
|
164
|
+
- lib/generators/fcus/authentication/templates/tests/testunit/sessions_controller.rb
|
165
|
+
- lib/generators/fcus/authentication/templates/tests/testunit/user.rb
|
166
|
+
- lib/generators/fcus/authentication/templates/tests/shoulda/users_controller.rb
|
167
|
+
- lib/generators/fcus/authentication/templates/tests/shoulda/sessions_controller.rb
|
168
|
+
- lib/generators/fcus/authentication/templates/tests/shoulda/user.rb
|
169
|
+
- lib/generators/fcus/authentication/templates/user.rb
|
170
|
+
- lib/generators/fcus/layout/layout_generator.rb
|
171
|
+
- lib/generators/fcus/layout/USAGE
|
172
|
+
- lib/generators/fcus/layout/templates/stylesheet.sass
|
173
|
+
- lib/generators/fcus/layout/templates/layout_helper.rb
|
174
|
+
- lib/generators/fcus/layout/templates/stylesheet.css
|
175
|
+
- lib/generators/fcus/layout/templates/error_messages_helper.rb
|
176
|
+
- lib/generators/fcus/layout/templates/layout.html.erb
|
177
|
+
- lib/generators/fcus/layout/templates/layout.html.haml
|
178
|
+
- lib/generators/fcus/config/USAGE
|
179
|
+
- lib/generators/fcus/config/templates/load_config.rb
|
180
|
+
- lib/generators/fcus/config/templates/config.yml
|
181
|
+
- lib/generators/fcus/config/config_generator.rb
|
182
|
+
- test/test_fcus_config_generator.rb
|
183
|
+
- test/test_fcus_layout_generator.rb
|
184
|
+
- test/test_helper.rb
|
185
|
+
- test/test_fcus_authentication_generator.rb
|
186
|
+
- test/test_fcus_scaffold_generator.rb
|
187
|
+
- features/fcus_authentication.feature
|
188
|
+
- features/step_definitions/rails_setup_steps.rb
|
189
|
+
- features/step_definitions/common_steps.rb
|
190
|
+
- features/fcus_scaffold.feature
|
191
|
+
- features/fcus_layout.feature
|
192
|
+
- features/support/matchers.rb
|
193
|
+
- features/support/env.rb
|
194
|
+
- features/fcus_config.feature
|
195
|
+
- rails_generators/fcus_authentication/USAGE
|
196
|
+
- rails_generators/fcus_authentication/fcus_authentication_generator.rb
|
197
|
+
- rails_generators/fcus_authentication/templates/users_controller.rb
|
198
|
+
- rails_generators/fcus_authentication/templates/sessions_helper.rb
|
199
|
+
- rails_generators/fcus_authentication/templates/users_helper.rb
|
200
|
+
- rails_generators/fcus_authentication/templates/sessions_controller.rb
|
201
|
+
- rails_generators/fcus_authentication/templates/views/erb/signup.html.erb
|
202
|
+
- rails_generators/fcus_authentication/templates/views/erb/login.html.erb
|
203
|
+
- rails_generators/fcus_authentication/templates/views/haml/signup.html.haml
|
204
|
+
- rails_generators/fcus_authentication/templates/views/haml/login.html.haml
|
205
|
+
- rails_generators/fcus_authentication/templates/authentication.rb
|
206
|
+
- rails_generators/fcus_authentication/templates/fixtures.yml
|
207
|
+
- rails_generators/fcus_authentication/templates/migration.rb
|
208
|
+
- rails_generators/fcus_authentication/templates/authlogic_session.rb
|
209
|
+
- rails_generators/fcus_authentication/templates/tests/rspec/users_controller.rb
|
210
|
+
- rails_generators/fcus_authentication/templates/tests/rspec/sessions_controller.rb
|
211
|
+
- rails_generators/fcus_authentication/templates/tests/rspec/user.rb
|
212
|
+
- rails_generators/fcus_authentication/templates/tests/testunit/users_controller.rb
|
213
|
+
- rails_generators/fcus_authentication/templates/tests/testunit/sessions_controller.rb
|
214
|
+
- rails_generators/fcus_authentication/templates/tests/testunit/user.rb
|
215
|
+
- rails_generators/fcus_authentication/templates/tests/shoulda/users_controller.rb
|
216
|
+
- rails_generators/fcus_authentication/templates/tests/shoulda/sessions_controller.rb
|
217
|
+
- rails_generators/fcus_authentication/templates/tests/shoulda/user.rb
|
218
|
+
- rails_generators/fcus_authentication/templates/user.rb
|
219
|
+
- rails_generators/fcus_authentication/lib/insert_commands.rb
|
220
|
+
- rails_generators/fcus_scaffold/fcus_scaffold_generator.rb
|
221
|
+
- rails_generators/fcus_scaffold/USAGE
|
222
|
+
- rails_generators/fcus_scaffold/templates/controller.rb
|
223
|
+
- rails_generators/fcus_scaffold/templates/helper.rb
|
224
|
+
- rails_generators/fcus_scaffold/templates/views/erb/index.html.erb
|
225
|
+
- rails_generators/fcus_scaffold/templates/views/erb/new.html.erb
|
226
|
+
- rails_generators/fcus_scaffold/templates/views/erb/edit.html.erb
|
227
|
+
- rails_generators/fcus_scaffold/templates/views/erb/show.html.erb
|
228
|
+
- rails_generators/fcus_scaffold/templates/views/erb/_form.html.erb
|
229
|
+
- rails_generators/fcus_scaffold/templates/views/haml/show.html.haml
|
230
|
+
- rails_generators/fcus_scaffold/templates/views/haml/new.html.haml
|
231
|
+
- rails_generators/fcus_scaffold/templates/views/haml/edit.html.haml
|
232
|
+
- rails_generators/fcus_scaffold/templates/views/haml/index.html.haml
|
233
|
+
- rails_generators/fcus_scaffold/templates/views/haml/_form.html.haml
|
234
|
+
- rails_generators/fcus_scaffold/templates/fixtures.yml
|
235
|
+
- rails_generators/fcus_scaffold/templates/actions/edit.rb
|
236
|
+
- rails_generators/fcus_scaffold/templates/actions/destroy.rb
|
237
|
+
- rails_generators/fcus_scaffold/templates/actions/index.rb
|
238
|
+
- rails_generators/fcus_scaffold/templates/actions/new.rb
|
239
|
+
- rails_generators/fcus_scaffold/templates/actions/create.rb
|
240
|
+
- rails_generators/fcus_scaffold/templates/actions/show.rb
|
241
|
+
- rails_generators/fcus_scaffold/templates/actions/update.rb
|
242
|
+
- rails_generators/fcus_scaffold/templates/model.rb
|
243
|
+
- rails_generators/fcus_scaffold/templates/migration.rb
|
244
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/controller.rb
|
245
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/actions/edit.rb
|
246
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/actions/destroy.rb
|
247
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/actions/index.rb
|
248
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/actions/new.rb
|
249
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/actions/create.rb
|
250
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/actions/show.rb
|
251
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/actions/update.rb
|
252
|
+
- rails_generators/fcus_scaffold/templates/tests/rspec/model.rb
|
253
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/controller.rb
|
254
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/actions/edit.rb
|
255
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/actions/destroy.rb
|
256
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/actions/index.rb
|
257
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/actions/new.rb
|
258
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/actions/create.rb
|
259
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/actions/show.rb
|
260
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/actions/update.rb
|
261
|
+
- rails_generators/fcus_scaffold/templates/tests/testunit/model.rb
|
262
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/controller.rb
|
263
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/actions/edit.rb
|
264
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/actions/destroy.rb
|
265
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/actions/index.rb
|
266
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/actions/new.rb
|
267
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/actions/create.rb
|
268
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/actions/show.rb
|
269
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/actions/update.rb
|
270
|
+
- rails_generators/fcus_scaffold/templates/tests/shoulda/model.rb
|
271
|
+
- rails_generators/fcus_config/fcus_config_generator.rb
|
272
|
+
- rails_generators/fcus_config/USAGE
|
273
|
+
- rails_generators/fcus_config/templates/load_config.rb
|
274
|
+
- rails_generators/fcus_config/templates/config.yml
|
275
|
+
- rails_generators/fcus_layout/USAGE
|
276
|
+
- rails_generators/fcus_layout/fcus_layout_generator.rb
|
277
|
+
- rails_generators/fcus_layout/templates/helper.rb
|
278
|
+
- rails_generators/fcus_layout/templates/stylesheet.sass
|
279
|
+
- rails_generators/fcus_layout/templates/stylesheet.css
|
280
|
+
- rails_generators/fcus_layout/templates/layout.html.erb
|
281
|
+
- rails_generators/fcus_layout/templates/layout.html.haml
|
282
|
+
- LICENSE
|
283
|
+
- Gemfile
|
284
|
+
- README.rdoc
|
285
|
+
- Rakefile
|
286
|
+
homepage: http://github.com/lihaoalbert/focus-generator
|
287
|
+
licenses: []
|
288
|
+
|
289
|
+
post_install_message:
|
290
|
+
rdoc_options: []
|
291
|
+
|
292
|
+
require_paths:
|
293
|
+
- lib
|
294
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
295
|
+
none: false
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: "0"
|
300
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
301
|
+
none: false
|
302
|
+
requirements:
|
303
|
+
- - ">="
|
304
|
+
- !ruby/object:Gem::Version
|
305
|
+
version: 1.3.4
|
306
|
+
requirements: []
|
307
|
+
|
308
|
+
rubyforge_project: focus-generator
|
309
|
+
rubygems_version: 1.8.12
|
310
|
+
signing_key:
|
311
|
+
specification_version: 3
|
312
|
+
summary: A collection of useful Rails generator scripts.
|
313
|
+
test_files: []
|
314
|
+
|