leather 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ Copyright 2014 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,32 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Leather'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+ Bundler::GemHelper.install_tasks
21
+
22
+ require 'rake/testtask'
23
+
24
+ Rake::TestTask.new(:test) do |t|
25
+ t.libs << 'lib'
26
+ t.libs << 'test'
27
+ t.pattern = 'test/**/*_test.rb'
28
+ t.verbose = false
29
+ end
30
+
31
+
32
+ task default: :test
@@ -0,0 +1,72 @@
1
+ // Remove the rounded corners by uncommenting this line:
2
+ // $border-radius-base: 0px;
3
+
4
+ @import 'bootstrap';
5
+
6
+ $white: #fff;
7
+ $devise-bg-gradient-start: #355069;
8
+ $devise-bg-gradient-end: #5E7A9B;
9
+ $devise-box-border-color: #6ED5E4;
10
+
11
+ html, body {
12
+ height: 100%;
13
+ }
14
+
15
+ .devise-gradient-bg {
16
+ @include gradient-vertical($devise-bg-gradient-start, $devise-bg-gradient-end);
17
+ }
18
+
19
+ .devise_sessions, .devise_registrations, .devise_passwords {
20
+ &.new, &.create {
21
+ @extend .devise-gradient-bg;
22
+ }
23
+ }
24
+ .devise_passwords.edit {
25
+ @extend .devise-gradient-bg;
26
+ }
27
+
28
+ .text-white { color: $white; }
29
+
30
+ .devise-welcome {
31
+ @extend .text-center;
32
+ @extend .text-white;
33
+ text-shadow: 1px 1px 3px $gray-dark;
34
+ padding: 50px 0 20px 0;
35
+ h2 {
36
+ margin-bottom: 50px;
37
+ }
38
+ h2, h3 {
39
+ font-weight: normal;
40
+ }
41
+ }
42
+
43
+ .devise-box {
44
+ @include border-top-radius($border-radius-base);
45
+ @include border-bottom-radius($border-radius-base);
46
+ border: 1px solid $white;
47
+ background: $white;
48
+ box-shadow: 1px 1px 3px $gray-dark;
49
+ padding: 40px 40px 20px;
50
+ border-top: 6px solid $devise-box-border-color;
51
+ #error_explanation {
52
+ @extend .alert;
53
+ @include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
54
+ h2 {
55
+ margin-top: 0;
56
+ font-size: 15px;
57
+ }
58
+ }
59
+ .actions {
60
+ padding-top: 30px;
61
+ }
62
+ }
63
+
64
+ .devise-links {
65
+ @extend .text-center;
66
+ @extend .text-white;
67
+ margin-top: 20px;
68
+ a {
69
+ text-decoration: underline;
70
+ color: $white;
71
+ }
72
+ }
@@ -0,0 +1,33 @@
1
+ <div class="container">
2
+ <div class="devise-welcome">
3
+ <h2>Leather</h2>
4
+ <h3>Change your password.</h3>
5
+ </div>
6
+ <div class="row">
7
+ <div class="col-md-6 col-md-offset-3">
8
+ <div class="devise-box">
9
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
10
+ <%= devise_error_messages! %>
11
+ <%= f.hidden_field :reset_password_token %>
12
+
13
+ <div class="form-group" >
14
+ <%= f.label :password, "New password" %>
15
+ <%= f.password_field :password, autofocus: true, autocomplete: "off", class: "form-control" %>
16
+ </div>
17
+
18
+ <div class="form-group" >
19
+ <%= f.label :password_confirmation, "Confirm new password" %>
20
+ <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
21
+ </div>
22
+
23
+ <div class="actions text-center">
24
+ <%= f.submit "Send instructions", class: "btn btn-default" %>
25
+ </div>
26
+ <% end %>
27
+ </div>
28
+ <p class="devise-links">
29
+ <%= render "devise/shared/links" %>
30
+ </p>
31
+ </div>
32
+ </div>
33
+ </div>
@@ -0,0 +1,27 @@
1
+ <div class="container">
2
+ <div class="devise-welcome">
3
+ <h2>Leather</h2>
4
+ <h3>Reset your password.</h3>
5
+ </div>
6
+ <div class="row">
7
+ <div class="col-md-6 col-md-offset-3">
8
+ <div class="devise-box">
9
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
10
+ <%= devise_error_messages! %>
11
+
12
+ <div class="form-group" >
13
+ <%= f.label :email, "Email address" %>
14
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
15
+ </div>
16
+
17
+ <div class="actions text-center">
18
+ <%= f.submit "Send instructions", class: "btn btn-default" %>
19
+ </div>
20
+ <% end %>
21
+ </div>
22
+ <p class="devise-links">
23
+ <%= render "devise/shared/links" %>
24
+ </p>
25
+ </div>
26
+ </div>
27
+ </div>
@@ -0,0 +1,37 @@
1
+ <div class="container">
2
+ <div class="devise-welcome">
3
+ <h2>Leather</h2>
4
+ <h3>Set up your new account today.</h3>
5
+ </div>
6
+ <div class="row">
7
+ <div class="col-md-6 col-md-offset-3">
8
+ <div class="devise-box">
9
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
10
+ <%= devise_error_messages! %>
11
+
12
+ <div class="form-group" >
13
+ <%= f.label :email, "Email address" %>
14
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
15
+ </div>
16
+
17
+ <div class="form-group">
18
+ <%= f.label :password %>
19
+ <%= f.password_field :password, autocomplete: "off", class: "form-control" %>
20
+ </div>
21
+
22
+ <div class="form-group">
23
+ <%= f.label :password_confirmation, "Confirm your password" %>
24
+ <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
25
+ </div>
26
+
27
+ <div class="actions text-center">
28
+ <%= f.submit "Create my account", class: "btn btn-default" %>
29
+ </div>
30
+ <% end %>
31
+ </div>
32
+ <p class="devise-links">
33
+ <%= render "devise/shared/links" %>
34
+ </p>
35
+ </div>
36
+ </div>
37
+ </div>
@@ -0,0 +1,37 @@
1
+ <div class="container">
2
+ <div class="devise-welcome">
3
+ <h2>Leather</h2>
4
+ <h3>Sign in to your account.</h3>
5
+ </div>
6
+ <div class="row">
7
+ <div class="col-md-6 col-md-offset-3">
8
+ <div class="devise-box">
9
+ <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
10
+ <div class="form-group" >
11
+ <%= f.label :email, "Email address" %>
12
+ <%= f.email_field :email, autofocus: true, class: "form-control" %>
13
+ </div>
14
+
15
+ <div class="form-group">
16
+ <%= f.label :password %>
17
+ <%= f.password_field :password, autocomplete: "off", class: "form-control" %>
18
+ </div>
19
+
20
+ <% if devise_mapping.rememberable? -%>
21
+ <div>
22
+ <%= f.check_box :remember_me %> <%= f.label :remember_me %>
23
+ <span class="pull-right"><%= link_to "Forgot your password?", new_password_path(resource_name) %></span>
24
+ </div>
25
+ <% end -%>
26
+
27
+ <div class="actions text-center">
28
+ <%= f.submit "Sign in", class: "btn btn-default" %>
29
+ </div>
30
+ <% end %>
31
+ </div>
32
+ <p class="devise-links">
33
+ <%= render "devise/shared/links" %>
34
+ </p>
35
+ </div>
36
+ </div>
37
+ </div>
@@ -0,0 +1,21 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ Already have an account? <%= link_to "Sign in here", new_session_path(resource_name) %><br />
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ Don't have an account? <%= link_to "Create one here", new_registration_path(resource_name) %><br />
7
+ <% end -%>
8
+
9
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
10
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
11
+ <% end -%>
12
+
13
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
14
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
15
+ <% end -%>
16
+
17
+ <%- if devise_mapping.omniauthable? %>
18
+ <%- resource_class.omniauth_providers.each do |provider| %>
19
+ <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
20
+ <% end -%>
21
+ <% end -%>
@@ -0,0 +1,9 @@
1
+ module Leather
2
+ class InstallGenerator < Rails::Generators::Base
3
+ source_root File.expand_path('../../../../../app/views', __FILE__)
4
+
5
+ def copy_views
6
+ directory("devise", Rails.root.join("app", "views", "devise"))
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ module Leather
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module Leather
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :leather do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,160 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: leather
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - David Van Der Beek
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-07-05 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.1.1
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.1.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: bootstrap-sass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
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
+ - !ruby/object:Gem::Dependency
47
+ name: devise
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: sqlite3
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rspec-rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: jquery-rails
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ description: Bootstrap tools - UI Kit, Devise Views, and Component Partials
111
+ email:
112
+ - earlynovrock@gmail.com
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - app/assets/stylesheets/devise.css.scss
118
+ - app/views/devise/passwords/edit.html.erb
119
+ - app/views/devise/passwords/new.html.erb
120
+ - app/views/devise/registrations/new.html.erb
121
+ - app/views/devise/sessions/new.html.erb
122
+ - app/views/devise/shared/_links.html.erb
123
+ - lib/generators/leather/install/install_generator.rb
124
+ - lib/leather/version.rb
125
+ - lib/leather.rb
126
+ - lib/tasks/leather_tasks.rake
127
+ - MIT-LICENSE
128
+ - Rakefile
129
+ homepage: ''
130
+ licenses:
131
+ - MIT
132
+ post_install_message:
133
+ rdoc_options: []
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ segments:
143
+ - 0
144
+ hash: -1137353040599178065
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ! '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ segments:
152
+ - 0
153
+ hash: -1137353040599178065
154
+ requirements: []
155
+ rubyforge_project:
156
+ rubygems_version: 1.8.24
157
+ signing_key:
158
+ specification_version: 3
159
+ summary: Bootstrap tools - UI Kit, Devise Views, and Component Partials
160
+ test_files: []