rails_layout 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.textile +4 -0
- data/README.textile +17 -0
- data/lib/generators/layout/devise/devise_generator.rb +0 -18
- data/lib/generators/layout/install/install_generator.rb +19 -0
- data/lib/generators/layout/{devise/templates/bootstrap3.css.scss → install/templates/bootstrap3-forms.css.scss} +1 -1
- data/lib/generators/layout/{devise/templates/foundation5.css.scss → install/templates/foundation5-forms.css.scss} +1 -1
- data/lib/rails_layout/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3fa1279aad47da23ed6695f14c549bfb787413f
|
4
|
+
data.tar.gz: 9ab17b3864318489a1c3048ac6924a9b215d1b22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ff9256f7f44685f8267022d9a5ec61077ac8ac9655a5dcc2a1e476fcd6f0679fd5f7043e4af5af9a2325a294c8b213d1eb3cb640f9d15df41e0eb48142ddca1
|
7
|
+
data.tar.gz: 3c8fc7f3aed0ff9adf45ad9fc367124e84ff8a496e884824434562963c4b354399072585f317ca8a24a429551b6b3724294fc4ae90dd4adfde0d5fcb449c48f0
|
data/CHANGELOG.textile
CHANGED
data/README.textile
CHANGED
@@ -446,4 +446,21 @@ h2. MIT License
|
|
446
446
|
|
447
447
|
Copyright © 2013-2014 Daniel Kehoe
|
448
448
|
|
449
|
+
h2. Useful Links
|
450
|
+
|
451
|
+
|_. Getting Started |_. Articles |_. Tutorials |
|
452
|
+
| "Ruby on Rails":http://railsapps.github.io/ruby-and-rails.html | "Analytics for Rails":http://railsapps.github.io/rails-google-analytics.html | "Rails Bootstrap":http://railsapps.github.io/twitter-bootstrap-rails.html |
|
453
|
+
| "What is Ruby on Rails?":http://railsapps.github.io/what-is-ruby-rails.html | "Heroku and Rails":http://railsapps.github.io/rails-heroku-tutorial.html | "Rails Foundation":http://railsapps.github.io/rails-foundation.html |
|
454
|
+
| "Learn Ruby on Rails":http://learn-rails.com/learn-ruby-on-rails.html | "JavaScript and Rails":http://railsapps.github.io/rails-javascript-include-external.html | "RSpec Tutorial":http://railsapps.github.io/rspec.html |
|
455
|
+
| "Rails Tutorial":https://tutorials.railsapps.org/rails-tutorial | "Rails Environment Variables":http://railsapps.github.io/rails-environment-variables.html | "Rails Devise Tutorial":http://railsapps.github.io/tutorial-rails-devise.html |
|
456
|
+
| "Ruby on Rails Tutorial for Beginners":http://learn-rails.com/ruby-on-rails-tutorial-for-beginners | "Git and GitHub with Rails":http://railsapps.github.io/rails-git.html | "Devise RSpec":http://railsapps.github.io/tutorial-rails-devise-rspec-cucumber.html |
|
457
|
+
| "Install Ruby on Rails":http://railsapps.github.io/installing-rails.html | "Send Email with Rails":http://railsapps.github.io/rails-send-email.html | "Devise Bootstrap":http://railsapps.github.io/tutorial-rails-bootstrap-devise-cancan.html |
|
458
|
+
| "Install Ruby on Rails - Mac OS X":http://railsapps.github.io/installrubyonrails-mac.html | "Haml and Rails":http://railsapps.github.io/rails-haml.html | "Rails Membership Site with Stripe":https://tutorials.railsapps.org/rails-stripe-membership-saas |
|
459
|
+
| "Install Ruby on Rails - Ubuntu":http://railsapps.github.io/installrubyonrails-ubuntu.html | "Rails Application Layout":http://railsapps.github.io/rails-default-application-layout.html | "Rails Subscription Site with Recurly":https://tutorials.railsapps.org/rails-recurly-subscription-saas |
|
460
|
+
| "Ruby on Rails - Nitrous.io":http://railsapps.github.io/rubyonrails-nitrous-io.html | "HTML5 Boilerplate for Rails":http://railsapps.github.io/rails-html5-boilerplate.html | "Startup Prelaunch Signup Application":https://tutorials.railsapps.org/rails-prelaunch-signup |
|
461
|
+
| "Update Rails":http://railsapps.github.io/updating-rails.html | "Example Gemfiles for Rails":http://railsapps.github.io/rails-3-2-example-gemfile.html |
|
462
|
+
| "Rails Composer":http://railsapps.github.io/rails-composer/ | "Rails Application Templates":http://railsapps.github.io/rails-application-templates.html |
|
463
|
+
| "Rails Examples":http://railsapps.github.io/ | "Rails Product Planning":http://railsapps.github.io/rails-product-planning.html |
|
464
|
+
| "Rails Starter Apps":http://railsapps.github.io/rails-examples-tutorials.html | "Rails Project Management":http://railsapps.github.io/rails-project-management.html |
|
465
|
+
|
449
466
|
!https://cruel-carlota.pagodabox.com/b096716fb733287d5c3d5eec65aaa26b(githalytics.com alpha)!
|
@@ -8,24 +8,6 @@ module Layout
|
|
8
8
|
|
9
9
|
desc "Copies Devise views to your application, with styling for a front-end framework."
|
10
10
|
|
11
|
-
def add_devise_stylesheet
|
12
|
-
dir = File.expand_path("../templates", __FILE__)
|
13
|
-
case framework_name
|
14
|
-
when 'none'
|
15
|
-
# TODO
|
16
|
-
when 'simple'
|
17
|
-
# TODO
|
18
|
-
when 'bootstrap2'
|
19
|
-
# TODO
|
20
|
-
when 'bootstrap3'
|
21
|
-
append_file 'app/assets/stylesheets/framework_and_overrides.css.scss', File.read("#{dir}/bootstrap3.css.scss")
|
22
|
-
when 'foundation4'
|
23
|
-
# TODO
|
24
|
-
when 'foundation5'
|
25
|
-
append_file 'app/assets/stylesheets/framework_and_overrides.css.scss', File.read("#{dir}/foundation5.css.scss")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
11
|
def add_devise_views
|
30
12
|
copy_file 'sessions/new.html.erb', 'app/views/devise/sessions/new.html.erb'
|
31
13
|
copy_file 'passwords/new.html.erb', 'app/views/devise/passwords/new.html.erb'
|
@@ -54,6 +54,25 @@ module Layout
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
def add_forms_stylesheet
|
58
|
+
return unless (File.exists?('config/initializers/devise.rb') or File.exists?('config/initializers/omniauth.rb'))
|
59
|
+
dir = File.expand_path("../templates", __FILE__)
|
60
|
+
case framework_name
|
61
|
+
when 'none'
|
62
|
+
# TODO
|
63
|
+
when 'simple'
|
64
|
+
# TODO
|
65
|
+
when 'bootstrap2'
|
66
|
+
# TODO
|
67
|
+
when 'bootstrap3'
|
68
|
+
append_file 'app/assets/stylesheets/framework_and_overrides.css.scss', File.read("#{dir}/bootstrap3-forms.css.scss")
|
69
|
+
when 'foundation4'
|
70
|
+
# TODO
|
71
|
+
when 'foundation5'
|
72
|
+
append_file 'app/assets/stylesheets/framework_and_overrides.css.scss', File.read("#{dir}/foundation5-forms.css.scss")
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
57
76
|
# Create an application layout file with partials for messages and navigation
|
58
77
|
def generate_layout
|
59
78
|
app = ::Rails.application
|
data/lib/rails_layout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -53,8 +53,6 @@ files:
|
|
53
53
|
- README.textile
|
54
54
|
- Rakefile
|
55
55
|
- lib/generators/layout/devise/devise_generator.rb
|
56
|
-
- lib/generators/layout/devise/templates/bootstrap3.css.scss
|
57
|
-
- lib/generators/layout/devise/templates/foundation5.css.scss
|
58
56
|
- lib/generators/layout/devise/templates/passwords/edit.html.erb
|
59
57
|
- lib/generators/layout/devise/templates/passwords/new.html.erb
|
60
58
|
- lib/generators/layout/devise/templates/registrations/edit.html.erb
|
@@ -77,6 +75,7 @@ files:
|
|
77
75
|
- lib/generators/layout/install/templates/bootstrap3-application.html.erb
|
78
76
|
- lib/generators/layout/install/templates/bootstrap3-application.html.haml
|
79
77
|
- lib/generators/layout/install/templates/bootstrap3-application.html.slim
|
78
|
+
- lib/generators/layout/install/templates/bootstrap3-forms.css.scss
|
80
79
|
- lib/generators/layout/install/templates/bootstrap3-messages.html.erb
|
81
80
|
- lib/generators/layout/install/templates/bootstrap3-messages.html.haml
|
82
81
|
- lib/generators/layout/install/templates/bootstrap3-messages.html.slim
|
@@ -99,6 +98,7 @@ files:
|
|
99
98
|
- lib/generators/layout/install/templates/foundation5-application.html.haml
|
100
99
|
- lib/generators/layout/install/templates/foundation5-application.html.slim
|
101
100
|
- lib/generators/layout/install/templates/foundation5-application.js
|
101
|
+
- lib/generators/layout/install/templates/foundation5-forms.css.scss
|
102
102
|
- lib/generators/layout/install/templates/foundation5-messages.html.erb
|
103
103
|
- lib/generators/layout/install/templates/foundation5-messages.html.haml
|
104
104
|
- lib/generators/layout/install/templates/foundation5-messages.html.slim
|