devise-semantified 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 474410db1ebc6237bc39c4a7d0e5f10de74dfbc6
4
+ data.tar.gz: ddf9930e728c828396eca7e1d7976ba398f414c3
5
+ SHA512:
6
+ metadata.gz: f81cd342d58961d0b4ef3ed4523dcf19ecf49e7bc5c2785e837ad7e79a2a14c235dd83e97762fb1dce0f0cad3fcf4ec391d636fc82134ef0020780dca74529e7
7
+ data.tar.gz: c36a9558ac27b6a2d46451238299c98f8a5d0b9eed10c8ad1d2d8fda126d6f000ad1f1e13cc9c2b0e2101897f49b454109c5a8df553925792d281bb42d550d2f
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.3
5
+ before_install: gem install bundler -v 1.14.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at ajex13@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in devise-semantified.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 ajex13
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,94 @@
1
+ # Devise::Semantified
2
+
3
+ Generate devise views styled with semantic-ui.
4
+
5
+ ## Installation
6
+
7
+ dependencies :
8
+
9
+ ```ruby
10
+ gem 'semantic-ui-sass', git: 'https://github.com/doabit/semantic-ui-sass.git'
11
+ ```
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'devise-semantified', git: 'https://github.com/ajex13/devise-semantified.git'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install devise-semantified
26
+
27
+ ## Usage
28
+
29
+
30
+ After installing devise run this generator to get semantic-ui styled views.
31
+
32
+
33
+ $ rails g devise:views:semantified
34
+
35
+ and also add this to 'app/assets/stylesheets/application.css.scss'
36
+
37
+
38
+ ```ruby
39
+ .field_with_errors {
40
+ @extend .field;
41
+ @extend .error;
42
+ }
43
+ ```
44
+
45
+ optional navbar for better navigation :
46
+
47
+
48
+ ```ruby
49
+ <div class="ui top inverted menu">
50
+ <a href="#" class="item"><strong>BrandName</strong></a>
51
+ <%= link_to "Home", root_path, class: "active blue item" %>
52
+ <a class="item">
53
+ About
54
+ </a>
55
+ <a class="item">
56
+ Contact
57
+ </a>
58
+ <div class="right menu">
59
+ <% unless user_signed_in? %>
60
+ <%= link_to new_user_registration_path ,class: "item" do%>
61
+ <i class="signup icon"></i> Sign Up
62
+ <% end %>
63
+ <%= link_to new_user_session_path, class: "item" do %>
64
+ <i class="sign in icon"></i> Login
65
+ <% end %>
66
+ <% else %>
67
+ <%= link_to edit_user_registration_path , class: "item" do %>
68
+ <i class="settings icon"></i> Settings
69
+ <% end %>
70
+
71
+ <%= link_to destroy_user_session_path ,method: :delete, data: {confirm: "Are you sure?"}, class: "item" do %>
72
+ <i class="sign out icon"></i> Logout
73
+ <% end %>
74
+
75
+ <% end %>
76
+ </div>
77
+ </div>
78
+ ```
79
+
80
+
81
+ ## Development
82
+
83
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
84
+
85
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
86
+
87
+ ## Contributing
88
+
89
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/devise-semantified. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
90
+
91
+
92
+ ## License
93
+
94
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,30 @@
1
+ <div class="ui relaxed equal width grid">
2
+ <div class="ui row">
3
+ <div class="ui four wide column"></div>
4
+ <div class="ui eight wide column segment">
5
+ <h2 class="ui center aligned dividing header"><i class="lock icon"></i>Resend confirmation instructions</h2>
6
+ <div class="ui form <%= "error" if resource.errors.any? %>">
7
+ <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
8
+ <div class="ui error message">
9
+ <%= devise_error_messages! %>
10
+ </div>
11
+
12
+
13
+ <div class="field">
14
+ <%= f.label :email %><br />
15
+ <%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) ,placeholder: "Enter your email" %>
16
+ </div>
17
+
18
+ <div class="actions">
19
+ <%= f.submit "Resend confirmation instructions" ,class: "ui submit button primary " %>
20
+ </div>
21
+ <% end %>
22
+
23
+ <div class="ui horizontal divider">or</div>
24
+ <div class="ui celled horizontal list">
25
+ <%= render "devise/shared/links" %>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </div>
@@ -0,0 +1,5 @@
1
+ <p>Welcome <%= @email %>!</p>
2
+
3
+ <p>You can confirm your account email through the link below:</p>
4
+
5
+ <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
@@ -0,0 +1,7 @@
1
+ <p>Hello <%= @email %>!</p>
2
+
3
+ <% if @resource.try(:unconfirmed_email?) %>
4
+ <p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
5
+ <% else %>
6
+ <p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
7
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>We're contacting you to notify you that your password has been changed.</p>
@@ -0,0 +1,8 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
4
+
5
+ <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
6
+
7
+ <p>If you didn't request this, please ignore this email.</p>
8
+ <p>Your password won't change until you access the link above and create a new one.</p>
@@ -0,0 +1,7 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
4
+
5
+ <p>Click the link below to unlock your account:</p>
6
+
7
+ <p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>
@@ -0,0 +1,40 @@
1
+ <div class="ui relaxed equal width grid">
2
+ <div class="ui row">
3
+ <div class="ui four wide column"></div>
4
+ <div class="ui eight wide column segment">
5
+ <h2 class="ui center aligned dividing header"><i class="unlock icon"></i>Change your password</h2>
6
+ <div class="ui form <%= "error" if resource.errors.any? %>">
7
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
8
+ <div class="ui error message">
9
+ <%= devise_error_messages! %>
10
+ </div>
11
+ <%= f.hidden_field :reset_password_token %>
12
+
13
+ <div class="field">
14
+ <%= f.label :password, "New password" %>
15
+ <% if @minimum_password_length %>
16
+ <div class="ui pointing below label">
17
+ <%= @minimum_password_length %> characters minimum
18
+ </div>
19
+ <% end %>
20
+ <%= f.password_field :password, autofocus: true, autocomplete: "off" , placeholder: "Enter new password" %>
21
+ </div>
22
+
23
+ <div class="field">
24
+ <%= f.label :password_confirmation, "Confirm new password" %>
25
+ <%= f.password_field :password_confirmation, autocomplete: "off" , placeholder: "Confirm new password" %>
26
+ </div>
27
+
28
+ <div class="actions">
29
+ <%= f.submit "Change my password",class: "ui submit button primary " %>
30
+ </div>
31
+ <% end %>
32
+
33
+ <div class="ui horizontal divider">or</div>
34
+ <div class="ui celled horizontal list">
35
+ <%= render "devise/shared/links" %>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </div>
@@ -0,0 +1,29 @@
1
+ <div class="ui relaxed equal width grid">
2
+ <div class="ui row">
3
+ <div class="ui four wide column"></div>
4
+ <div class="ui eight wide column segment">
5
+ <h2 class="ui center aligned dividing header"><i class="lock icon"></i>Forgot your password?</h2>
6
+ <div class="ui form <%= "error" if resource.errors.any? %>">
7
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
8
+ <div class="ui error message">
9
+ <%= devise_error_messages! %>
10
+ </div>
11
+
12
+ <div class="field">
13
+ <%= f.label :email %>
14
+ <%= f.email_field :email, autofocus: true ,placeholder: "Enter your registered email"%>
15
+ </div>
16
+ <br>
17
+ <div class="actions">
18
+ <%= f.submit "Send me reset password instructions",class: "ui submit button primary " %>
19
+ </div>
20
+ <% end %>
21
+
22
+
23
+ <div class="ui horizontal divider">or</div>
24
+ <div class="ui celled horizontal list">
25
+ <%= render "devise/shared/links" %>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ </div>
@@ -0,0 +1,56 @@
1
+ <div class="ui relaxed equal width grid">
2
+ <div class="ui row">
3
+ <div class="ui four wide column"></div>
4
+ <div class="ui eight wide column segment">
5
+ <h2 class="ui center aligned dividing header"><i class="signup icon"></i>Edit <%= resource_name.to_s.humanize %></h2>
6
+ <div class="ui form <%= "error" if resource.errors.any? %>">
7
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
8
+ <%= devise_error_messages! %>
9
+
10
+ <div class="field">
11
+ <%= f.label :email %>
12
+ <%= f.email_field :email, autofocus: true %>
13
+ </div>
14
+
15
+ <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
16
+ <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
17
+ <% end %>
18
+
19
+ <div class="field">
20
+ <%= f.label :password %>
21
+ <% if @minimum_password_length %>
22
+ <div class="ui pointing below label">
23
+ <%= @minimum_password_length %> characters minimum
24
+ </div>
25
+ <% end %>
26
+ <%= f.password_field :password, autocomplete: "off", placeholder: "Enter new password (leave blank if you don't want to change it)" %>
27
+
28
+ </div>
29
+
30
+ <div class="field">
31
+ <%= f.label :password_confirmation %>
32
+ <%= f.password_field :password_confirmation, autocomplete: "off" ,placeholder: "Confirm new password" %>
33
+ </div>
34
+
35
+ <div class="field">
36
+ <%= f.label :current_password %>
37
+ <%= f.password_field :current_password, autocomplete: "off",placeholder: "(we need your current password to confirm your changes)" %>
38
+ </div>
39
+
40
+ <div class="actions">
41
+ <%= f.submit "Update" ,class: "ui submit button primary " %>
42
+ </div>
43
+ <% end %>
44
+ <div class="ui horizontal divider">or</div>
45
+
46
+ <h4 class="ui light grey header">Cancel my account</h4>
47
+
48
+ <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete ,class: "ui submit button tiny "%></p>
49
+
50
+ <div class="ui celled horizontal list ">
51
+ <div class="item"><%= link_to "Back", :back %></div>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
@@ -0,0 +1,53 @@
1
+ <div class="ui relaxed equal width grid">
2
+ <div class="ui row">
3
+ <div class="ui four wide column"></div>
4
+ <div class="ui eight wide column segment">
5
+ <h2 class="ui center aligned dividing header"><i class="signup icon"></i>Sign up</h2>
6
+ <div class="ui form <%= "error" if resource.errors.any? %>">
7
+
8
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
9
+ <div class="ui error message">
10
+
11
+ <%= devise_error_messages! %>
12
+ </div>
13
+
14
+
15
+ <div class="field ">
16
+ <%= f.label :email %>
17
+ <%= f.email_field :email, autofocus: true ,placeholder: "john@example.com"%>
18
+ </div>
19
+
20
+ <div class="field ">
21
+ <%= f.label :password %>
22
+
23
+ <% if @minimum_password_length %>
24
+ <div class="ui pointing below label">
25
+ <%= @minimum_password_length %> characters minimum
26
+ </div>
27
+ <% end %>
28
+ <!-- <div data-tooltip = "Add users to your feed"> -->
29
+
30
+ <%= f.password_field :password, autocomplete: "off" ,placeholder: "Enter Password" ,data: {toggle: "tooltip", placement: "left" }%>
31
+ <!-- </div> -->
32
+
33
+
34
+ </div>
35
+
36
+ <div class="field">
37
+ <%= f.label :password_confirmation %>
38
+ <%= f.password_field :password_confirmation, autocomplete: "off" ,placeholder: "Confirm Password" %>
39
+ </div>
40
+
41
+ <div class="ui left icon input">
42
+ <%= f.submit "Sign up" ,class: "ui submit button primary " %>
43
+ <i class="users icon"></i>
44
+ </div>
45
+ <% end %>
46
+ <div class="ui horizontal divider">or</div>
47
+ <div class="ui celled horizontal list">
48
+ <%= render "devise/shared/links" %>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </div>
@@ -0,0 +1,45 @@
1
+ <div class="ui relaxed equal width grid">
2
+ <div class="ui row">
3
+ <div class="ui four wide column"></div>
4
+ <div class="ui eight wide column segment">
5
+
6
+ <h2 class="ui center aligned dividing header"><i class="sign in icon"></i>Log in</h2>
7
+ <div class="ui form ">
8
+ <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
9
+ <div class="field">
10
+ <%= f.label :email %>
11
+ <div class="ui left icon input">
12
+ <%= f.email_field :email, autofocus: true ,placeholder:"Email"%>
13
+ <i class="user icon"></i>
14
+ </div>
15
+ </div>
16
+
17
+ <div class="field">
18
+ <%= f.label :password %>
19
+ <div class="ui left icon input">
20
+ <%= f.password_field :password, autocomplete: "off" ,placeholder:"Password"%>
21
+ <i class="lock icon"></i>
22
+ </div>
23
+ </div>
24
+
25
+ <% if devise_mapping.rememberable? -%>
26
+ <div class="ui checkbox">
27
+ <%= f.check_box :remember_me %>
28
+ <%= f.label :remember_me %> <br>
29
+ </div>
30
+ <% end -%>
31
+
32
+
33
+ <div class="actions">
34
+ <%= f.submit "Log in" ,class: "ui submit button primary "%>
35
+ </div>
36
+ <% end %>
37
+ <div class="ui horizontal divider">or</div>
38
+ <div class="ui celled horizontal list">
39
+ <%= render "devise/shared/links" %>
40
+ </div>
41
+
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
@@ -0,0 +1,25 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ <div class="item"><%= link_to "Log in", new_session_path(resource_name) %></div>
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ <div class="item"><%= link_to "Sign up", new_registration_path(resource_name) %></div>
7
+ <% end -%>
8
+
9
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
10
+ <div class="item"><%= link_to "Forgot your password?", new_password_path(resource_name) %></div>
11
+ <% end -%>
12
+
13
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
+ <div class="item"><%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %></div>
15
+ <% end -%>
16
+
17
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
+ <div class="item"><%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %></div>
19
+ <% end -%>
20
+
21
+ <%- if devise_mapping.omniauthable? %>
22
+ <%- resource_class.omniauth_providers.each do |provider| %>
23
+ <div class="item"><%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %></div>
24
+ <% end -%>
25
+ <% end -%>
@@ -0,0 +1,29 @@
1
+ <div class="ui relaxed equal width grid">
2
+ <div class="ui row">
3
+ <div class="ui four wide column"></div>
4
+ <div class="ui eight wide column segment">
5
+ <h2 class="ui center aligned dividing header"><i class="lock icon"></i> Resend unlock instructions</h2>
6
+ <div class="ui form <%= "error" if resource.errors.any? %>">
7
+ <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
8
+ <div class="ui error message">
9
+ <%= devise_error_messages! %>
10
+ </div>
11
+
12
+ <div class="field">
13
+ <%= f.label :email %>
14
+ <%= f.email_field :email, autofocus: true ,placeholder: "Enter your registered email"%>
15
+ </div>
16
+
17
+ <div class="actions">
18
+ <%= f.submit "Resend unlock instructions" ,class: "ui submit button primary " %>
19
+ </div>
20
+ <% end %>
21
+
22
+ <div class="ui horizontal divider">or</div>
23
+ <div class="ui celled horizontal list">
24
+ <%= render "devise/shared/links" %>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ </div>
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "devise/semantified"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'devise/semantified/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "devise-semantified"
8
+ spec.version = Devise::Semantified::VERSION
9
+ spec.authors = ["ajex13"]
10
+ spec.email = ["ajex13@gmail.com"]
11
+
12
+ spec.summary = %q{Elegant devise views with Semantic-ui. }
13
+ spec.description = %q{Elegant devise views with Semantic-ui. }
14
+ spec.homepage = "https://github.com/ajex13/devise-semantified/"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
+ f.match(%r{^(test|spec|features)/})
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_development_dependency "bundler", "~> 1.14"
33
+ spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "rspec", "~> 3.0"
35
+ end
@@ -0,0 +1,15 @@
1
+ require 'rails/generators'
2
+
3
+ module Devise
4
+ module Views
5
+ class SemantifiedGenerator < Rails::Generators::Base
6
+ desc "Copies views styled for Semantic-ui"
7
+
8
+ source_root File.expand_path("../../../..", __FILE__)
9
+
10
+ def copy_views
11
+ directory "app/views/devise", "app/views/devise"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,9 @@
1
+ require "devise/semantified/version"
2
+ require "devise/generators/semantified_generator"
3
+
4
+ module Devise
5
+ module Semantified
6
+ class Engine < ::Rails::Engine
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module Devise
2
+ module Semantified
3
+ VERSION = "0.1.2"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devise-semantified
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - ajex13
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: 'Elegant devise views with Semantic-ui. '
56
+ email:
57
+ - ajex13@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - app/views/devise/confirmations/new.html.erb
71
+ - app/views/devise/mailer/confirmation_instructions.html.erb
72
+ - app/views/devise/mailer/email_changed.html.erb
73
+ - app/views/devise/mailer/password_change.html.erb
74
+ - app/views/devise/mailer/reset_password_instructions.html.erb
75
+ - app/views/devise/mailer/unlock_instructions.html.erb
76
+ - app/views/devise/passwords/edit.html.erb
77
+ - app/views/devise/passwords/new.html.erb
78
+ - app/views/devise/registrations/edit.html.erb
79
+ - app/views/devise/registrations/new.html.erb
80
+ - app/views/devise/sessions/new.html.erb
81
+ - app/views/devise/shared/_links.html.erb
82
+ - app/views/devise/unlocks/new.html.erb
83
+ - bin/console
84
+ - bin/setup
85
+ - devise-semantified.gemspec
86
+ - lib/devise/generators/semantified_generator.rb
87
+ - lib/devise/semantified.rb
88
+ - lib/devise/semantified/version.rb
89
+ homepage: https://github.com/ajex13/devise-semantified/
90
+ licenses:
91
+ - MIT
92
+ metadata:
93
+ allowed_push_host: https://rubygems.org
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 2.5.2
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: Elegant devise views with Semantic-ui.
114
+ test_files: []