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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87ae1a1fb08c91a7cdc93b26bf54e89275469a93
4
- data.tar.gz: faaf805b438ed561f5d192b0abfb80935da59596
3
+ metadata.gz: b3fa1279aad47da23ed6695f14c549bfb787413f
4
+ data.tar.gz: 9ab17b3864318489a1c3048ac6924a9b215d1b22
5
5
  SHA512:
6
- metadata.gz: f3eff8350dbddee8b339cafe7c875ca1679761fca70a16776f5c26fb6c9bb5de0119298bd15773e9790b456cde77dee4b992f59bb17c498e069379dbf054abe3
7
- data.tar.gz: 9ace5b12b6e308e650d8cf8a237a348beac4ba3c6b653b3d953132e5c7b50d36e5454c9fa1585dbafc2f5735aa789d3c0214e444c2a70eca304951ae6b1e7ad0
6
+ metadata.gz: 7ff9256f7f44685f8267022d9a5ec61077ac8ac9655a5dcc2a1e476fcd6f0679fd5f7043e4af5af9a2325a294c8b213d1eb3cb640f9d15df41e0eb48142ddca1
7
+ data.tar.gz: 3c8fc7f3aed0ff9adf45ad9fc367124e84ff8a496e884824434562963c4b354399072585f317ca8a24a429551b6b3724294fc4ae90dd4adfde0d5fcb449c48f0
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 1.0.17 May 30, 2014
4
+
5
+ * add styling for forms when either Devise or OmniAuth is present
6
+
3
7
  h3. 1.0.16 May 10, 2014
4
8
 
5
9
  * add missing Devise form for password reset
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
@@ -1,5 +1,5 @@
1
1
 
2
- // Styles for Devise views
2
+ // Styles for form views
3
3
  // using Bootstrap
4
4
  // generated by the rails_layout gem
5
5
  .authform {
@@ -1,5 +1,5 @@
1
1
 
2
- // Styles for Devise views
2
+ // Styles for form views
3
3
  // using Foundation
4
4
  // generated by the rails_layout gem
5
5
  .authform {
@@ -1,3 +1,3 @@
1
1
  module RailsLayout
2
- VERSION = "1.0.16"
2
+ VERSION = "1.0.17"
3
3
  end
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.16
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-10 00:00:00.000000000 Z
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