mac_generators 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README +3 -0
- data/Rakefile +32 -0
- data/lib/generators/authentication/USAGE +8 -0
- data/lib/generators/authentication/authentication_generator.rb +89 -0
- data/lib/generators/authentication/templates/create_identities.rb +11 -0
- data/lib/generators/authentication/templates/erb/identity_new.html.erb +24 -0
- data/lib/generators/authentication/templates/erb/session_new.html.erb +14 -0
- data/lib/generators/authentication/templates/haml/identity_new.html.haml +18 -0
- data/lib/generators/authentication/templates/haml/session_new.html.haml +14 -0
- data/lib/generators/authentication/templates/identities_controller.rb +23 -0
- data/lib/generators/authentication/templates/identity.rb +26 -0
- data/lib/generators/authentication/templates/sessions_controller.rb +21 -0
- data/lib/generators/bootstrap/USAGE +7 -0
- data/lib/generators/bootstrap/bootstrap_generator.rb +36 -0
- data/lib/generators/bootstrap/templates/_application.css.scss +3 -0
- data/lib/generators/bootstrap/templates/_variables.css.scss +4 -0
- data/lib/generators/bootstrap/templates/application.html.erb +16 -0
- data/lib/generators/bootstrap/templates/application.html.haml +10 -0
- data/lib/generators/bootstrap/templates/application.js +4 -0
- data/lib/generators/bootstrap/templates/application.scss +3 -0
- data/lib/mac_generators.rb +2 -0
- data/lib/mac_generators/version.rb +3 -0
- data/lib/tasks/mac_generators_tasks.rake +4 -0
- data/test/dummy/README.rdoc +259 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +16 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -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/config.ru +4 -0
- data/test/dummy/config/application.rb +32 -0
- data/test/dummy/config/boot.rb +9 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +34 -0
- data/test/dummy/config/environments/production.rb +85 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/locale.rb +7 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -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 +49 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/public/404.html +27 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/mac_generators_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +173 -0
File without changes
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
<p>If you are the application owner check the logs for more information.</p>
|
26
|
+
</body>
|
27
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mac_generators
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mario A Chavez
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 4.0.0.beta
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 4.0.0.beta
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
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: '0'
|
46
|
+
description: Includes 2 generators, the first one is to create a Rails authentication.
|
47
|
+
The second on is to add bootstrap to a rails application
|
48
|
+
email: mario.chavez@gmail.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- lib/generators/authentication/authentication_generator.rb
|
54
|
+
- lib/generators/authentication/templates/create_identities.rb
|
55
|
+
- lib/generators/authentication/templates/erb/identity_new.html.erb
|
56
|
+
- lib/generators/authentication/templates/erb/session_new.html.erb
|
57
|
+
- lib/generators/authentication/templates/haml/identity_new.html.haml
|
58
|
+
- lib/generators/authentication/templates/haml/session_new.html.haml
|
59
|
+
- lib/generators/authentication/templates/identities_controller.rb
|
60
|
+
- lib/generators/authentication/templates/identity.rb
|
61
|
+
- lib/generators/authentication/templates/sessions_controller.rb
|
62
|
+
- lib/generators/authentication/USAGE
|
63
|
+
- lib/generators/bootstrap/bootstrap_generator.rb
|
64
|
+
- lib/generators/bootstrap/templates/_application.css.scss
|
65
|
+
- lib/generators/bootstrap/templates/_variables.css.scss
|
66
|
+
- lib/generators/bootstrap/templates/application.html.erb
|
67
|
+
- lib/generators/bootstrap/templates/application.html.haml
|
68
|
+
- lib/generators/bootstrap/templates/application.js
|
69
|
+
- lib/generators/bootstrap/templates/application.scss
|
70
|
+
- lib/generators/bootstrap/USAGE
|
71
|
+
- lib/mac_generators/version.rb
|
72
|
+
- lib/mac_generators.rb
|
73
|
+
- lib/tasks/mac_generators_tasks.rake
|
74
|
+
- MIT-LICENSE
|
75
|
+
- Rakefile
|
76
|
+
- README
|
77
|
+
- test/dummy/app/assets/javascripts/application.js
|
78
|
+
- test/dummy/app/assets/stylesheets/application.css
|
79
|
+
- test/dummy/app/controllers/application_controller.rb
|
80
|
+
- test/dummy/app/helpers/application_helper.rb
|
81
|
+
- test/dummy/app/views/layouts/application.html.erb
|
82
|
+
- test/dummy/config/application.rb
|
83
|
+
- test/dummy/config/boot.rb
|
84
|
+
- test/dummy/config/database.yml
|
85
|
+
- test/dummy/config/environment.rb
|
86
|
+
- test/dummy/config/environments/development.rb
|
87
|
+
- test/dummy/config/environments/production.rb
|
88
|
+
- test/dummy/config/environments/test.rb
|
89
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
90
|
+
- test/dummy/config/initializers/inflections.rb
|
91
|
+
- test/dummy/config/initializers/locale.rb
|
92
|
+
- test/dummy/config/initializers/mime_types.rb
|
93
|
+
- test/dummy/config/initializers/secret_token.rb
|
94
|
+
- test/dummy/config/initializers/session_store.rb
|
95
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
96
|
+
- test/dummy/config/locales/en.yml
|
97
|
+
- test/dummy/config/routes.rb
|
98
|
+
- test/dummy/config.ru
|
99
|
+
- test/dummy/db/development.sqlite3
|
100
|
+
- test/dummy/log/development.log
|
101
|
+
- test/dummy/public/404.html
|
102
|
+
- test/dummy/public/422.html
|
103
|
+
- test/dummy/public/500.html
|
104
|
+
- test/dummy/public/favicon.ico
|
105
|
+
- test/dummy/Rakefile
|
106
|
+
- test/dummy/README.rdoc
|
107
|
+
- test/dummy/script/rails
|
108
|
+
- test/mac_generators_test.rb
|
109
|
+
- test/test_helper.rb
|
110
|
+
homepage: http://mario-chavez.decisionesinteligentes.com
|
111
|
+
licenses: []
|
112
|
+
post_install_message:
|
113
|
+
rdoc_options: []
|
114
|
+
require_paths:
|
115
|
+
- lib
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
segments:
|
123
|
+
- 0
|
124
|
+
hash: -303739505095055290
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
segments:
|
132
|
+
- 0
|
133
|
+
hash: -303739505095055290
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 1.8.24
|
137
|
+
signing_key:
|
138
|
+
specification_version: 3
|
139
|
+
summary: Custom generators.
|
140
|
+
test_files:
|
141
|
+
- test/dummy/app/assets/javascripts/application.js
|
142
|
+
- test/dummy/app/assets/stylesheets/application.css
|
143
|
+
- test/dummy/app/controllers/application_controller.rb
|
144
|
+
- test/dummy/app/helpers/application_helper.rb
|
145
|
+
- test/dummy/app/views/layouts/application.html.erb
|
146
|
+
- test/dummy/config/application.rb
|
147
|
+
- test/dummy/config/boot.rb
|
148
|
+
- test/dummy/config/database.yml
|
149
|
+
- test/dummy/config/environment.rb
|
150
|
+
- test/dummy/config/environments/development.rb
|
151
|
+
- test/dummy/config/environments/production.rb
|
152
|
+
- test/dummy/config/environments/test.rb
|
153
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
154
|
+
- test/dummy/config/initializers/inflections.rb
|
155
|
+
- test/dummy/config/initializers/locale.rb
|
156
|
+
- test/dummy/config/initializers/mime_types.rb
|
157
|
+
- test/dummy/config/initializers/secret_token.rb
|
158
|
+
- test/dummy/config/initializers/session_store.rb
|
159
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
160
|
+
- test/dummy/config/locales/en.yml
|
161
|
+
- test/dummy/config/routes.rb
|
162
|
+
- test/dummy/config.ru
|
163
|
+
- test/dummy/db/development.sqlite3
|
164
|
+
- test/dummy/log/development.log
|
165
|
+
- test/dummy/public/404.html
|
166
|
+
- test/dummy/public/422.html
|
167
|
+
- test/dummy/public/500.html
|
168
|
+
- test/dummy/public/favicon.ico
|
169
|
+
- test/dummy/Rakefile
|
170
|
+
- test/dummy/README.rdoc
|
171
|
+
- test/dummy/script/rails
|
172
|
+
- test/mac_generators_test.rb
|
173
|
+
- test/test_helper.rb
|