bootstrap_devise_base 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data/Gemfile +54 -0
  2. data/Gemfile.lock +237 -0
  3. data/Rakefile +7 -0
  4. data/app/.svn/all-wcprops +5 -0
  5. data/app/.svn/entries +31 -0
  6. data/app/assets/images/rails.png +0 -0
  7. data/app/assets/javascripts/application.js +16 -0
  8. data/app/assets/javascripts/registrations.js.coffee +3 -0
  9. data/app/assets/stylesheets/application.css +23 -0
  10. data/app/assets/stylesheets/bootstrap.scss +29 -0
  11. data/app/assets/stylesheets/forms.scss +481 -0
  12. data/app/assets/stylesheets/mixins.scss +220 -0
  13. data/app/assets/stylesheets/patterns.scss +1061 -0
  14. data/app/assets/stylesheets/registrations.css.scss +3 -0
  15. data/app/assets/stylesheets/reset.scss +144 -0
  16. data/app/assets/stylesheets/scaffolding.scss +144 -0
  17. data/app/assets/stylesheets/tables.scss +226 -0
  18. data/app/assets/stylesheets/type.scss +190 -0
  19. data/app/assets/stylesheets/variables.scss +60 -0
  20. data/app/controllers/.svn/all-wcprops +11 -0
  21. data/app/controllers/.svn/entries +62 -0
  22. data/app/controllers/.svn/text-base/assets_offline_controller.rb.svn-base +85 -0
  23. data/app/controllers/application_controller.rb +6 -0
  24. data/app/controllers/authentications_controller.rb +34 -0
  25. data/app/controllers/home_controller.rb +83 -0
  26. data/app/controllers/registrations_controller.rb +18 -0
  27. data/app/helpers/application_helper.rb +2 -0
  28. data/app/helpers/authentications_helper.rb +2 -0
  29. data/app/helpers/devise_helper.rb +29 -0
  30. data/app/helpers/home_helper.rb +2 -0
  31. data/app/helpers/registrations_helper.rb +2 -0
  32. data/app/mailers/.gitkeep +0 -0
  33. data/app/models/.gitkeep +0 -0
  34. data/app/models/authentication.rb +3 -0
  35. data/app/models/user.rb +20 -0
  36. data/app/views/authentications/_form.html.erb +16 -0
  37. data/app/views/authentications/edit.html.erb +8 -0
  38. data/app/views/authentications/index.html.erb +22 -0
  39. data/app/views/authentications/new.html.erb +5 -0
  40. data/app/views/authentications/show.html.erb +20 -0
  41. data/app/views/devise/confirmations/new.html.erb +12 -0
  42. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  43. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  44. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  45. data/app/views/devise/passwords/edit.html.erb +16 -0
  46. data/app/views/devise/passwords/new.html.erb +12 -0
  47. data/app/views/devise/sessions/new.html.erb +58 -0
  48. data/app/views/devise/shared/_links.erb +25 -0
  49. data/app/views/devise/unlocks/new.html.erb +12 -0
  50. data/app/views/home/_form.html.erb +17 -0
  51. data/app/views/home/edit.html.erb +6 -0
  52. data/app/views/home/index.html.erb +21 -0
  53. data/app/views/home/new.html.erb +5 -0
  54. data/app/views/home/show.html.erb +5 -0
  55. data/app/views/layouts/application.html.erb +112 -0
  56. data/app/views/registrations/edit.html.erb +25 -0
  57. data/app/views/registrations/new.html.erb +47 -0
  58. data/bootstrap_devise_base.gemspec +20 -0
  59. data/config.ru +4 -0
  60. data/config/.svn/all-wcprops +11 -0
  61. data/config/.svn/entries +62 -0
  62. data/config/.svn/text-base/routes.rb.svn-base +3 -0
  63. data/config/application.rb +48 -0
  64. data/config/boot.rb +6 -0
  65. data/config/cucumber.yml +8 -0
  66. data/config/database.yml +45 -0
  67. data/config/environment.rb +5 -0
  68. data/config/environments/development.rb +30 -0
  69. data/config/environments/production.rb +60 -0
  70. data/config/environments/test.rb +39 -0
  71. data/config/initializers/backtrace_silencers.rb +7 -0
  72. data/config/initializers/devise.rb +208 -0
  73. data/config/initializers/inflections.rb +10 -0
  74. data/config/initializers/mime_types.rb +5 -0
  75. data/config/initializers/omniauth.rb +3 -0
  76. data/config/initializers/secret_token.rb +7 -0
  77. data/config/initializers/session_store.rb +8 -0
  78. data/config/initializers/wrap_parameters.rb +14 -0
  79. data/config/locales/devise.en.yml +58 -0
  80. data/config/locales/en.yml +13 -0
  81. data/config/routes.rb +64 -0
  82. data/db/migrate/20111121201415_create_users.rb +8 -0
  83. data/db/migrate/20111121201511_add_devise_to_users.rb +31 -0
  84. data/db/migrate/20111127100158_create_authentications.rb +14 -0
  85. data/db/schema.rb +42 -0
  86. data/db/seeds.rb +7 -0
  87. data/doc/README_FOR_APP +2 -0
  88. data/features/manage_sign_ups.feature +28 -0
  89. data/features/step_definitions/sign_up_steps.rb +27 -0
  90. data/features/step_definitions/web_steps.rb +254 -0
  91. data/features/support/env.rb +56 -0
  92. data/features/support/paths.rb +39 -0
  93. data/features/support/selectors.rb +39 -0
  94. data/init.rb +1 -0
  95. data/lib/.svn/all-wcprops +11 -0
  96. data/lib/.svn/entries +65 -0
  97. data/lib/.svn/text-base/assets_offline.rb.svn-base +6 -0
  98. data/lib/assets/.gitkeep +0 -0
  99. data/lib/bootstap_devise_base.rb~ +6 -0
  100. data/lib/bootstrap_devise_base.rb +6 -0
  101. data/lib/bootstrap_devise_base/.svn/all-wcprops +11 -0
  102. data/lib/bootstrap_devise_base/.svn/entries +62 -0
  103. data/lib/bootstrap_devise_base/.svn/text-base/version.rb.svn-base +3 -0
  104. data/lib/bootstrap_devise_base/version.rb +3 -0
  105. data/lib/tasks/.gitkeep +0 -0
  106. data/lib/tasks/cucumber.rake +65 -0
  107. data/log/.gitkeep +0 -0
  108. data/log/development.log +977 -0
  109. data/log/production.log +44 -0
  110. data/log/test.log +799 -0
  111. data/public/404.html +26 -0
  112. data/public/422.html +26 -0
  113. data/public/500.html +26 -0
  114. data/public/assets/application-902e25928a309d43246c45cd2facd7d3.js +19 -0
  115. data/public/assets/application-902e25928a309d43246c45cd2facd7d3.js.gz +0 -0
  116. data/public/assets/application-a5e3fc47c863d5a64c7380ed33b187b6.css +1 -0
  117. data/public/assets/application-a5e3fc47c863d5a64c7380ed33b187b6.css.gz +0 -0
  118. data/public/assets/application.css +1 -0
  119. data/public/assets/application.css.gz +0 -0
  120. data/public/assets/application.js +19 -0
  121. data/public/assets/application.js.gz +0 -0
  122. data/public/assets/manifest.yml +4 -0
  123. data/public/assets/rails-e4b51606cd77fda2615e7439907bfc92.png +0 -0
  124. data/public/assets/rails.png +0 -0
  125. data/public/favicon.ico +0 -0
  126. data/public/robots.txt +5 -0
  127. data/script/cucumber +10 -0
  128. data/script/rails +6 -0
  129. data/test/fixtures/.gitkeep +0 -0
  130. data/test/functional/.gitkeep +0 -0
  131. data/test/integration/.gitkeep +0 -0
  132. data/test/performance/browsing_test.rb +12 -0
  133. data/test/test_helper.rb +13 -0
  134. data/test/unit/.gitkeep +0 -0
  135. data/vendor/assets/stylesheets/.gitkeep +0 -0
  136. data/vendor/plugins/.gitkeep +0 -0
  137. metadata +181 -0
@@ -0,0 +1,6 @@
1
+ <h1>Editing welcome</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Show', @welcome %> |
6
+ <%= link_to 'Back', welcomes_path %>
@@ -0,0 +1,21 @@
1
+
2
+
3
+
4
+
5
+
6
+ <div class="page-header">
7
+ <h1>Page name <small>Supporting text or tagline</small></h1>
8
+ </div>
9
+ <div class="row">
10
+ <div class="span10">
11
+ <h2>Main content</h2>
12
+ </div>
13
+ <div class="span4">
14
+ <h3>Secondary content</h3>
15
+ </div>
16
+ </div>
17
+
18
+
19
+
20
+
21
+
@@ -0,0 +1,5 @@
1
+ <h1>New welcome</h1>
2
+
3
+ <%= render 'form' %>
4
+
5
+ <%= link_to 'Back', welcomes_path %>
@@ -0,0 +1,5 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+
4
+ <%= link_to 'Edit', edit_welcome_path(@welcome) %> |
5
+ <%= link_to 'Back', welcomes_path %>
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Template</title>
5
+ <%= stylesheet_link_tag "application" %>
6
+ <%= javascript_include_tag "application" %>
7
+ <%= csrf_meta_tags %>
8
+
9
+ <style type="text/css">
10
+ /* Override some defaults */
11
+ html, body {
12
+ background-color: #009069;
13
+ }
14
+ body {
15
+ padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */
16
+ }
17
+ .container > footer p {
18
+ text-align: center; /* center align it with the container */
19
+ }
20
+ .container {
21
+ width: 820px; /* downsize our container to make the content feel a bit tighter and more cohesive. NOTE: this removes two full columns from the grid, meaning you only go to 14 columns and not 16. */
22
+ }
23
+
24
+ /* The white background content wrapper */
25
+ .content {
26
+ background-color: #fff;
27
+ padding: 20px;
28
+ margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */
29
+ -webkit-border-radius: 0 0 6px 6px;
30
+ -moz-border-radius: 0 0 6px 6px;
31
+ border-radius: 0 0 6px 6px;
32
+ -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
33
+ -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
34
+ box-shadow: 0 1px 2px rgba(0,0,0,.15);
35
+ }
36
+
37
+ /* Page header tweaks */
38
+ .page-header {
39
+ background-color: #f5f5f5;
40
+ padding: 20px 20px 10px;
41
+ margin: -20px -20px 20px;
42
+ }
43
+
44
+ /* Styles you shouldn't keep as they are for displaying this base example only */
45
+ .content .span10,
46
+ .content .span4 {
47
+ min-height: 500px;
48
+ }
49
+ /* Give a quick and non-cross-browser friendly divider */
50
+ .content .span4 {
51
+ margin-left: 0;
52
+ padding-left: 19px;
53
+ border-left: 1px solid #eee;
54
+ }
55
+
56
+ .topbar .btn {
57
+ border: 0;
58
+ }
59
+
60
+ </style>
61
+
62
+ </head>
63
+ <body>
64
+
65
+
66
+ <div class="topbar">
67
+ <div class="fill">
68
+ <div class="container">
69
+ <a class="brand" href="#">Project name</a>
70
+ <ul class="nav">
71
+ <li class="active"><a href="#">Home</a></li>
72
+ <li><a href="#about">About</a></li>
73
+ <li><a href="#contact">Contact</a></li>
74
+ </ul>
75
+ <ul class="nav secondary-nav">
76
+ <% unless user_signed_in? %>
77
+ <li>
78
+ <%= link_to 'Sign in', new_user_session_path %>
79
+ </li>
80
+ <li class="active">
81
+ <%= link_to 'Sign up', new_user_registration_path %>
82
+ </li>
83
+ <% end %>
84
+ <% if user_signed_in? %>
85
+ <li class="active">
86
+ <%= link_to 'Sign out', destroy_user_session_path, :method => :delete %>
87
+ </li>
88
+ <li>
89
+ <p><%= current_user.email %></p>
90
+ </li>
91
+ <% end %>
92
+ </ul>
93
+ <!--form action="" class="pull-right">
94
+ <input class="input-small" type="text" placeholder="Username">
95
+ <input class="input-small" type="password" placeholder="Password">
96
+ <button class="btn" type="submit">Sign in</button>
97
+ </form-->
98
+ </div>
99
+ </div>
100
+ </div>
101
+
102
+ <div class="container">
103
+ <div class="content" >
104
+ <%= yield %>
105
+ </div>
106
+ <footer>
107
+ <p>© <%= t('company') %></p>
108
+ </footer>
109
+
110
+ </div>
111
+ </body>
112
+ </html>
@@ -0,0 +1,25 @@
1
+ <h2>Edit <%= resource_name.to_s.humanize %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div><%= f.label :email %><br />
7
+ <%= f.email_field :email %></div>
8
+
9
+ <div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
10
+ <%= f.password_field :password %></div>
11
+
12
+ <div><%= f.label :password_confirmation %><br />
13
+ <%= f.password_field :password_confirmation %></div>
14
+
15
+ <div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
16
+ <%= f.password_field :current_password %></div>
17
+
18
+ <div><%= f.submit "Update" %></div>
19
+ <% end %>
20
+
21
+ <h3>Cancel my account</h3>
22
+
23
+ <p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>
24
+
25
+ <%= link_to "Back", :back %>
@@ -0,0 +1,47 @@
1
+
2
+ <% if @user.password_required? %>
3
+ <div class="facebook-signin">
4
+ <p><a href="/auth/twitter" class="btn primary large">Sign in with your Twitter account</a></p>
5
+ <h3>OR</h3>
6
+ </div>
7
+ <% end %>
8
+ <br/>
9
+
10
+
11
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
12
+
13
+
14
+ <%= devise_error_messages! %>
15
+
16
+
17
+ <fieldset class="span9 offset-one-sixth">
18
+ <legend>Sign up</legend> <br/>
19
+ <div class="clearfix">
20
+ <%= f.label :email %>
21
+ <div class="input">
22
+ <%= f.email_field :email, :class => 'xlarge', :size => '30' %>
23
+ </div>
24
+ </div>
25
+
26
+ <% if @user.password_required? %>
27
+ <div class="clearfix">
28
+ <%= f.label :password %>
29
+ <div class="input">
30
+ <%= f.password_field :password, :class => 'xlarge', :size => '30' %>
31
+ </div>
32
+ </div>
33
+
34
+ <div class="clearfix">
35
+ <%= f.label :password_confirmation %>
36
+ <div class="input">
37
+ <%= f.password_field :password_confirmation, :class => 'xlarge', :size => '30' %>
38
+ </div>
39
+ </div>
40
+ <% end %>
41
+ <div class="actions">
42
+ <%= f.submit "Sign up", :class=> 'btn primary' %>
43
+ </div>
44
+ </fieldset>
45
+ <% end %>
46
+
47
+
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "bootstrap_devise_base/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "bootstrap_devise_base"
7
+ s.version = BootstrapDeviseBase::VERSION
8
+ s.authors = ["Broomyocymru"]
9
+ s.email = ["broomyocymru@hotmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Gem containing Bootstrap style for devise based projects}
12
+ s.description = %q{Gem containing Bootstrap style for devise based projects}
13
+
14
+ s.rubyforge_project = "bootstrap_devise_base"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Template::Application
@@ -0,0 +1,11 @@
1
+ K 25
2
+ svn:wc:ra_dav:version-url
3
+ V 59
4
+ /svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/config
5
+ END
6
+ routes.rb
7
+ K 25
8
+ svn:wc:ra_dav:version-url
9
+ V 69
10
+ /svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/config/routes.rb
11
+ END
@@ -0,0 +1,62 @@
1
+ 10
2
+
3
+ dir
4
+ 3734
5
+ https://svn.torex.com/svn/TorexNG/trunk/gems/assets_offline/config
6
+ https://svn.torex.com/svn/TorexNG
7
+
8
+
9
+
10
+ 2011-12-02T15:46:33.442319Z
11
+ 3734
12
+ Anthony.Broome
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ 45178cb0-7fed-444c-b58d-06e1424a9ccb
28
+
29
+ routes.rb
30
+ file
31
+
32
+
33
+
34
+
35
+ 2011-12-02T14:39:29.970397Z
36
+ 1b9a1db281aa1d112beb8340d29ead47
37
+ 2011-12-02T15:46:33.442319Z
38
+ 3734
39
+ Anthony.Broome
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ 66
62
+
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ resources :assets_offline
3
+ end
@@ -0,0 +1,48 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ if defined?(Bundler)
6
+ # If you precompile assets before deploying to production, use this line
7
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
8
+ # If you want your assets lazily compiled in production, use this line
9
+ # Bundler.require(:default, :assets, Rails.env)
10
+ end
11
+
12
+ module Template
13
+ class Application < Rails::Application
14
+ # Settings in config/environments/* take precedence over those specified here.
15
+ # Application configuration should go into files in config/initializers
16
+ # -- all .rb files in that directory are automatically loaded.
17
+
18
+ # Custom directories with classes and modules you want to be autoloadable.
19
+ # config.autoload_paths += %W(#{config.root}/extras)
20
+
21
+ # Only load the plugins named here, in the order given (default is alphabetical).
22
+ # :all can be used as a placeholder for all plugins not explicitly named.
23
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24
+
25
+ # Activate observers that should always be running.
26
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
27
+
28
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
+ # config.time_zone = 'Central Time (US & Canada)'
31
+
32
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
+ # config.i18n.default_locale = :de
35
+
36
+ # Configure the default encoding used in templates for Ruby 1.9.
37
+ config.encoding = "utf-8"
38
+
39
+ # Configure sensitive parameters which will be filtered from the log file.
40
+ config.filter_parameters += [:password]
41
+
42
+ # Enable the asset pipeline
43
+ config.assets.enabled = true
44
+
45
+ # Version of your assets, change this if you want to expire all your assets
46
+ config.assets.version = '1.0'
47
+ end
48
+ end
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1,8 @@
1
+ <%
2
+ rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
+ rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
+ std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
5
+ %>
6
+ default: <%= std_opts %> features
7
+ wip: --tags @wip:3 --wip features
8
+ rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
@@ -0,0 +1,45 @@
1
+ # MySQL. Versions 4.1 and 5.0 are recommended.
2
+ #
3
+ # Install the MYSQL driver
4
+ # gem install mysql2
5
+ #
6
+ # Ensure the MySQL gem is defined in your Gemfile
7
+ # gem 'mysql2'
8
+ #
9
+ # And be sure to use new-style password hashing:
10
+ # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
11
+ development:
12
+ adapter: mysql2
13
+ encoding: utf8
14
+ reconnect: false
15
+ database: template_development
16
+ pool: 5
17
+ username: root
18
+ password: t0rex
19
+ socket: /var/run/mysqld/mysqld.sock
20
+
21
+ # Warning: The database defined as "test" will be erased and
22
+ # re-generated from your development database when you run "rake".
23
+ # Do not set this db to the same as development or production.
24
+ test: &test
25
+ adapter: mysql2
26
+ encoding: utf8
27
+ reconnect: false
28
+ database: template_test
29
+ pool: 5
30
+ username: root
31
+ password: t0rex
32
+ socket: /var/run/mysqld/mysqld.sock
33
+
34
+ production:
35
+ adapter: mysql2
36
+ encoding: utf8
37
+ reconnect: false
38
+ database: template_production
39
+ pool: 5
40
+ username: root
41
+ password: t0rex
42
+ socket: /var/run/mysqld/mysqld.sock
43
+
44
+ cucumber:
45
+ <<: *test