Depreciation 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +4 -120
- data/.gitignore +0 -23
- data/Gemfile +0 -54
- data/Gemfile.lock +0 -237
- data/README.md +0 -24
- data/Rakefile +0 -6
- data/app/assets/config/manifest.js +0 -3
- data/app/assets/images/.keep +0 -0
- data/app/assets/javascripts/application.js +0 -17
- data/app/assets/javascripts/brands.coffee +0 -3
- data/app/assets/javascripts/cable.js +0 -13
- data/app/assets/javascripts/channels/.keep +0 -0
- data/app/assets/stylesheets/application.css.scss +0 -17
- data/app/assets/stylesheets/brands.scss +0 -3
- data/app/channels/application_cable/channel.rb +0 -4
- data/app/channels/application_cable/connection.rb +0 -4
- data/app/controllers/application_controller.rb +0 -3
- data/app/controllers/brands_controller.rb +0 -43
- data/app/controllers/concerns/.keep +0 -0
- data/app/helpers/application_helper.rb +0 -2
- data/app/helpers/brands_helper.rb +0 -2
- data/app/jobs/application_job.rb +0 -2
- data/app/mailers/application_mailer.rb +0 -4
- data/app/models/application_record.rb +0 -3
- data/app/models/brand.rb +0 -5
- data/app/models/concerns/.keep +0 -0
- data/app/models/user.rb +0 -6
- data/app/models/variant.rb +0 -3
- data/app/views/brands/_form.html.erb +0 -4
- data/app/views/brands/edit.html.erb +0 -3
- data/app/views/brands/index.html.erb +0 -5
- data/app/views/brands/new.html.erb +0 -2
- data/app/views/brands/show.html.erb +0 -36
- data/app/views/devise/confirmations/new.html.erb +0 -16
- data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
- data/app/views/devise/mailer/email_changed.html.erb +0 -7
- data/app/views/devise/mailer/password_change.html.erb +0 -3
- data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/devise/passwords/edit.html.erb +0 -19
- data/app/views/devise/passwords/new.html.erb +0 -15
- data/app/views/devise/registrations/edit.html.erb +0 -27
- data/app/views/devise/registrations/new.html.erb +0 -78
- data/app/views/devise/sessions/new.html.erb +0 -36
- data/app/views/devise/shared/_links.html.erb +0 -25
- data/app/views/devise/unlocks/new.html.erb +0 -16
- data/app/views/layouts/application.html.erb +0 -34
- data/app/views/layouts/mailer.html.erb +0 -13
- data/app/views/layouts/mailer.text.erb +0 -1
- data/bin/bundle +0 -3
- data/bin/rails +0 -4
- data/bin/rake +0 -4
- data/bin/setup +0 -38
- data/bin/update +0 -29
- data/bin/yarn +0 -11
- data/config.ru +0 -5
- data/config/application.rb +0 -18
- data/config/boot.rb +0 -3
- data/config/cable.yml +0 -10
- data/config/database.yml +0 -25
- data/config/environment.rb +0 -5
- data/config/environments/development.rb +0 -56
- data/config/environments/production.rb +0 -91
- data/config/environments/test.rb +0 -42
- data/config/initializers/application_controller_renderer.rb +0 -8
- data/config/initializers/assets.rb +0 -14
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/cookies_serializer.rb +0 -5
- data/config/initializers/devise.rb +0 -283
- data/config/initializers/filter_parameter_logging.rb +0 -4
- data/config/initializers/inflections.rb +0 -16
- data/config/initializers/mime_types.rb +0 -4
- data/config/initializers/simple_form.rb +0 -170
- data/config/initializers/simple_form_bootstrap.rb +0 -155
- data/config/initializers/wrap_parameters.rb +0 -14
- data/config/locales/devise.en.yml +0 -64
- data/config/locales/en.yml +0 -33
- data/config/locales/simple_form.en.yml +0 -31
- data/config/puma.rb +0 -56
- data/config/routes.rb +0 -8
- data/config/secrets.yml +0 -32
- data/db/migrate/20180405123506_create_brands.rb +0 -9
- data/db/migrate/20180405124007_create_variants.rb +0 -18
- data/db/migrate/20180405142003_devise_create_users.rb +0 -44
- data/db/schema.rb +0 -83
- data/db/seeds.rb +0 -22
- data/lib/assets/.keep +0 -0
- data/lib/tasks/.keep +0 -0
- data/lib/templates/erb/scaffold/_form.html.erb +0 -14
- data/log/.keep +0 -0
- data/package.json +0 -7
- data/public/404.html +0 -67
- data/public/422.html +0 -67
- data/public/500.html +0 -66
- data/public/apple-touch-icon-precomposed.png +0 -0
- data/public/apple-touch-icon.png +0 -0
- data/public/favicon.ico +0 -0
- data/public/robots.txt +0 -1
- data/test/application_system_test_case.rb +0 -5
- data/test/controllers/.keep +0 -0
- data/test/controllers/brands_controller_test.rb +0 -7
- data/test/fixtures/.keep +0 -0
- data/test/fixtures/brands.yml +0 -7
- data/test/fixtures/files/.keep +0 -0
- data/test/fixtures/users.yml +0 -11
- data/test/fixtures/variants.yml +0 -23
- data/test/helpers/.keep +0 -0
- data/test/integration/.keep +0 -0
- data/test/mailers/.keep +0 -0
- data/test/models/.keep +0 -0
- data/test/models/brand_test.rb +0 -7
- data/test/models/user_test.rb +0 -7
- data/test/models/variant_test.rb +0 -7
- data/test/system/.keep +0 -0
- data/test/test_helper.rb +0 -10
- data/tmp/.keep +0 -0
- data/vendor/.keep +0 -0
data/README.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
data/Rakefile
DELETED
data/app/assets/images/.keep
DELETED
File without changes
|
@@ -1,17 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
5
|
-
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require rails-ujs
|
14
|
-
//= require turbolinks
|
15
|
-
//= require jquery
|
16
|
-
//= require jquery_ujs
|
17
|
-
//= require bootstrap-sprockets
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
-
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
3
|
-
//
|
4
|
-
//= require action_cable
|
5
|
-
//= require_self
|
6
|
-
//= require_tree ./channels
|
7
|
-
|
8
|
-
(function() {
|
9
|
-
this.App || (this.App = {});
|
10
|
-
|
11
|
-
App.cable = ActionCable.createConsumer();
|
12
|
-
|
13
|
-
}).call(this);
|
File without changes
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
-
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
16
|
-
@import "bootstrap-sprockets";
|
17
|
-
@import "bootstrap";
|
@@ -1,43 +0,0 @@
|
|
1
|
-
class BrandsController < ApplicationController
|
2
|
-
before_action :find_brand, only: [:show, :edit, :update, :destroy]
|
3
|
-
def index
|
4
|
-
@brands = Brand.all.order("created_at DESC")
|
5
|
-
end
|
6
|
-
def show
|
7
|
-
end
|
8
|
-
def new
|
9
|
-
@brand = Brand.new
|
10
|
-
end
|
11
|
-
def create
|
12
|
-
@brand = Brand.new(brand_params)
|
13
|
-
if @brand.save
|
14
|
-
redirect_to root_path
|
15
|
-
else
|
16
|
-
render 'new'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
def edit
|
20
|
-
end
|
21
|
-
|
22
|
-
def update
|
23
|
-
if @brand.update(brand_params)
|
24
|
-
redirect_to brand_path(@brand)
|
25
|
-
else
|
26
|
-
render 'edit'
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def destroy
|
31
|
-
@brand.destroy
|
32
|
-
redirect_to root_path
|
33
|
-
end
|
34
|
-
|
35
|
-
private
|
36
|
-
def brand_params
|
37
|
-
params.require(:brand).permit(:name)
|
38
|
-
end
|
39
|
-
|
40
|
-
def find_brand
|
41
|
-
@brand = Brand.find(params[:id])
|
42
|
-
end
|
43
|
-
end
|
File without changes
|
data/app/jobs/application_job.rb
DELETED
data/app/models/brand.rb
DELETED
data/app/models/concerns/.keep
DELETED
File without changes
|
data/app/models/user.rb
DELETED
data/app/models/variant.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
<h2> <%= @brand.name%></h2>
|
2
|
-
<%= link_to "Back", root_path%>
|
3
|
-
<%= link_to "Edit", edit_brand_path(@brand) %>
|
4
|
-
<%= link_to "Delete", brand_path(@brand), method: :delete, data: {confirm: "Are you sure you want to delete?"} %>
|
5
|
-
<div class="container">
|
6
|
-
<div class="row">
|
7
|
-
<div class="col-md-12">
|
8
|
-
<a href="#">
|
9
|
-
<div class="clearfix">
|
10
|
-
<div class="col-md-3">
|
11
|
-
<div>
|
12
|
-
<img class="img-responsive" src="https://c0.carsie.ie/d43864c90df075c94489ddbe4ca5ffe96dca63bdd8aff2c9bd1be45cb398fc52.jpg">
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
<div class="col-md-7">
|
16
|
-
<div>
|
17
|
-
<div>
|
18
|
-
<h3>BMW 320 series</h3>
|
19
|
-
</div>
|
20
|
-
<div>
|
21
|
-
<ul class="list-inline">
|
22
|
-
<li>BMW 318 318CI AUTO</li>
|
23
|
-
</ul>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
<div class="col-md-2">
|
28
|
-
<div class="margin-t-50"></div>
|
29
|
-
<button type="button"class="btn btn-primary btn-block">Call Now</button>
|
30
|
-
<button type="button"class="btn btn-primary btn-block">Booking</button>
|
31
|
-
</div>
|
32
|
-
</div>
|
33
|
-
</a>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<h2>Resend confirmation instructions</h2>
|
2
|
-
|
3
|
-
<%= simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
|
4
|
-
<%= f.error_notification %>
|
5
|
-
<%= f.full_error :confirmation_token %>
|
6
|
-
|
7
|
-
<div class="form-inputs">
|
8
|
-
<%= f.input :email, required: true, autofocus: true %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="form-actions">
|
12
|
-
<%= f.button :submit, "Resend confirmation instructions" %>
|
13
|
-
</div>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<%= render "devise/shared/links" %>
|
@@ -1,7 +0,0 @@
|
|
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 %>
|
@@ -1,8 +0,0 @@
|
|
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>
|
@@ -1,7 +0,0 @@
|
|
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>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<h2>Change your password</h2>
|
2
|
-
|
3
|
-
<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
4
|
-
<%= f.error_notification %>
|
5
|
-
|
6
|
-
<%= f.input :reset_password_token, as: :hidden %>
|
7
|
-
<%= f.full_error :reset_password_token %>
|
8
|
-
|
9
|
-
<div class="form-inputs">
|
10
|
-
<%= f.input :password, label: "New password", required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
|
11
|
-
<%= f.input :password_confirmation, label: "Confirm your new password", required: true %>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="form-actions">
|
15
|
-
<%= f.button :submit, "Change my password" %>
|
16
|
-
</div>
|
17
|
-
<% end %>
|
18
|
-
|
19
|
-
<%= render "devise/shared/links" %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<h2>Forgot your password?</h2>
|
2
|
-
|
3
|
-
<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
4
|
-
<%= f.error_notification %>
|
5
|
-
|
6
|
-
<div class="form-inputs">
|
7
|
-
<%= f.input :email, required: true, autofocus: true %>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<div class="form-actions">
|
11
|
-
<%= f.button :submit, "Send me reset password instructions" %>
|
12
|
-
</div>
|
13
|
-
<% end %>
|
14
|
-
|
15
|
-
<%= render "devise/shared/links" %>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
2
|
-
|
3
|
-
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
4
|
-
<%= f.error_notification %>
|
5
|
-
|
6
|
-
<div class="form-inputs">
|
7
|
-
<%= f.input :email, required: true, autofocus: true %>
|
8
|
-
|
9
|
-
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
10
|
-
<p>Currently waiting confirmation for: <%= resource.unconfirmed_email %></p>
|
11
|
-
<% end %>
|
12
|
-
|
13
|
-
<%= f.input :password, autocomplete: "off", hint: "leave it blank if you don't want to change it", required: false %>
|
14
|
-
<%= f.input :password_confirmation, required: false %>
|
15
|
-
<%= f.input :current_password, hint: "we need your current password to confirm your changes", required: true %>
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<div class="form-actions">
|
19
|
-
<%= f.button :submit, "Update" %>
|
20
|
-
</div>
|
21
|
-
<% end %>
|
22
|
-
|
23
|
-
<h3>Cancel my account</h3>
|
24
|
-
|
25
|
-
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
|
26
|
-
|
27
|
-
<%= link_to "Back", :back %>
|
@@ -1,78 +0,0 @@
|
|
1
|
-
<div class="container col-xs-12 col-sm-offset-2 col-sm-8 col-md-offset-3 col-md-6 col-lg-offset-4 col-lg-4">
|
2
|
-
<br />
|
3
|
-
<div class="panel panel-default">
|
4
|
-
<div class="panel-heading">
|
5
|
-
<h2>Sign up</h2>
|
6
|
-
</div>
|
7
|
-
<div class="panel-body">
|
8
|
-
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
9
|
-
<%= f.error_notification %>
|
10
|
-
<div class="form-group">
|
11
|
-
<div class="input-group">
|
12
|
-
<span class="input-group-addon">
|
13
|
-
<i class="glyphicon glyphicon-user" style="width: auto"></i>
|
14
|
-
</span>
|
15
|
-
<%= f.email_field :email, class: "form-control", placeholder: 'Email Id' %>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="form-group">
|
19
|
-
<div class="input-group">
|
20
|
-
<span class="input-group-addon">
|
21
|
-
<i class="glyphicon glyphicon-lock" style="width: auto"></i>
|
22
|
-
</span>
|
23
|
-
<%= f.password_field :password, class: "form-control", autocomplete: "off" ,placeholder: 'Password',hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
<div class="form-group">
|
27
|
-
<div class="input-group">
|
28
|
-
<span class="input-group-addon">
|
29
|
-
<i class="glyphicon glyphicon-lock" style="width: auto"></i>
|
30
|
-
</span>
|
31
|
-
<%= f.password_field :password_confirmation, class: "form-control", autocomplete: "off" ,placeholder: 'Confirm Password',hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
<button id="btnLogin" runat="server" class="btn btn-default" style="width: 100%">
|
35
|
-
<i class="glyphicon glyphicon-log-in"></i>
|
36
|
-
<%= f.submit "Sign Up", class: "btn btn-default btn-orange" %>
|
37
|
-
</button>
|
38
|
-
</div>
|
39
|
-
<% end %>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
|
44
|
-
<%= render "devise/shared/links" %>
|
45
|
-
|
46
|
-
|
47
|
-
<div class="ccontainer col-lg-offset-4 col-lg-4">
|
48
|
-
<div class="panel panel-default">
|
49
|
-
<div class="panel-heading">
|
50
|
-
<h2 class="text-center" style="color: #f0ad4e;"> <strong> Login </strong></h2>
|
51
|
-
</div>
|
52
|
-
<div class="panel-body">
|
53
|
-
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
54
|
-
<div class="form-group">
|
55
|
-
<div class="input-group">
|
56
|
-
<span class="input-group-addon">
|
57
|
-
<i class="glyphicon glyphicon-user" style="width: auto"></i>
|
58
|
-
</span>
|
59
|
-
<%= f.email_field :email, class: "form-control", placeholder: 'Username or Email Id' %>
|
60
|
-
</div>
|
61
|
-
</div>
|
62
|
-
<div class="form-group">
|
63
|
-
<div class="input-group">
|
64
|
-
<span class="input-group-addon">
|
65
|
-
<i class="glyphicon glyphicon-lock" style="width: auto"></i>
|
66
|
-
</span>
|
67
|
-
<%= f.password_field :password, class: "form-control", autocomplete: "off" ,placeholder: 'Password' %>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
<div class="col-xs-12 col-sm-12 col-md-12">
|
71
|
-
<div class="form-group" style="width: auto">
|
72
|
-
<%= f.submit "Log In", class: "btn btn-lg btn-block btn-warning" %>
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
<% end %>
|
76
|
-
</div>
|
77
|
-
</div>
|
78
|
-
</div>
|