Depreciation 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. metadata +4 -120
  3. data/.gitignore +0 -23
  4. data/Gemfile +0 -54
  5. data/Gemfile.lock +0 -237
  6. data/README.md +0 -24
  7. data/Rakefile +0 -6
  8. data/app/assets/config/manifest.js +0 -3
  9. data/app/assets/images/.keep +0 -0
  10. data/app/assets/javascripts/application.js +0 -17
  11. data/app/assets/javascripts/brands.coffee +0 -3
  12. data/app/assets/javascripts/cable.js +0 -13
  13. data/app/assets/javascripts/channels/.keep +0 -0
  14. data/app/assets/stylesheets/application.css.scss +0 -17
  15. data/app/assets/stylesheets/brands.scss +0 -3
  16. data/app/channels/application_cable/channel.rb +0 -4
  17. data/app/channels/application_cable/connection.rb +0 -4
  18. data/app/controllers/application_controller.rb +0 -3
  19. data/app/controllers/brands_controller.rb +0 -43
  20. data/app/controllers/concerns/.keep +0 -0
  21. data/app/helpers/application_helper.rb +0 -2
  22. data/app/helpers/brands_helper.rb +0 -2
  23. data/app/jobs/application_job.rb +0 -2
  24. data/app/mailers/application_mailer.rb +0 -4
  25. data/app/models/application_record.rb +0 -3
  26. data/app/models/brand.rb +0 -5
  27. data/app/models/concerns/.keep +0 -0
  28. data/app/models/user.rb +0 -6
  29. data/app/models/variant.rb +0 -3
  30. data/app/views/brands/_form.html.erb +0 -4
  31. data/app/views/brands/edit.html.erb +0 -3
  32. data/app/views/brands/index.html.erb +0 -5
  33. data/app/views/brands/new.html.erb +0 -2
  34. data/app/views/brands/show.html.erb +0 -36
  35. data/app/views/devise/confirmations/new.html.erb +0 -16
  36. data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  37. data/app/views/devise/mailer/email_changed.html.erb +0 -7
  38. data/app/views/devise/mailer/password_change.html.erb +0 -3
  39. data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  40. data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  41. data/app/views/devise/passwords/edit.html.erb +0 -19
  42. data/app/views/devise/passwords/new.html.erb +0 -15
  43. data/app/views/devise/registrations/edit.html.erb +0 -27
  44. data/app/views/devise/registrations/new.html.erb +0 -78
  45. data/app/views/devise/sessions/new.html.erb +0 -36
  46. data/app/views/devise/shared/_links.html.erb +0 -25
  47. data/app/views/devise/unlocks/new.html.erb +0 -16
  48. data/app/views/layouts/application.html.erb +0 -34
  49. data/app/views/layouts/mailer.html.erb +0 -13
  50. data/app/views/layouts/mailer.text.erb +0 -1
  51. data/bin/bundle +0 -3
  52. data/bin/rails +0 -4
  53. data/bin/rake +0 -4
  54. data/bin/setup +0 -38
  55. data/bin/update +0 -29
  56. data/bin/yarn +0 -11
  57. data/config.ru +0 -5
  58. data/config/application.rb +0 -18
  59. data/config/boot.rb +0 -3
  60. data/config/cable.yml +0 -10
  61. data/config/database.yml +0 -25
  62. data/config/environment.rb +0 -5
  63. data/config/environments/development.rb +0 -56
  64. data/config/environments/production.rb +0 -91
  65. data/config/environments/test.rb +0 -42
  66. data/config/initializers/application_controller_renderer.rb +0 -8
  67. data/config/initializers/assets.rb +0 -14
  68. data/config/initializers/backtrace_silencers.rb +0 -7
  69. data/config/initializers/cookies_serializer.rb +0 -5
  70. data/config/initializers/devise.rb +0 -283
  71. data/config/initializers/filter_parameter_logging.rb +0 -4
  72. data/config/initializers/inflections.rb +0 -16
  73. data/config/initializers/mime_types.rb +0 -4
  74. data/config/initializers/simple_form.rb +0 -170
  75. data/config/initializers/simple_form_bootstrap.rb +0 -155
  76. data/config/initializers/wrap_parameters.rb +0 -14
  77. data/config/locales/devise.en.yml +0 -64
  78. data/config/locales/en.yml +0 -33
  79. data/config/locales/simple_form.en.yml +0 -31
  80. data/config/puma.rb +0 -56
  81. data/config/routes.rb +0 -8
  82. data/config/secrets.yml +0 -32
  83. data/db/migrate/20180405123506_create_brands.rb +0 -9
  84. data/db/migrate/20180405124007_create_variants.rb +0 -18
  85. data/db/migrate/20180405142003_devise_create_users.rb +0 -44
  86. data/db/schema.rb +0 -83
  87. data/db/seeds.rb +0 -22
  88. data/lib/assets/.keep +0 -0
  89. data/lib/tasks/.keep +0 -0
  90. data/lib/templates/erb/scaffold/_form.html.erb +0 -14
  91. data/log/.keep +0 -0
  92. data/package.json +0 -7
  93. data/public/404.html +0 -67
  94. data/public/422.html +0 -67
  95. data/public/500.html +0 -66
  96. data/public/apple-touch-icon-precomposed.png +0 -0
  97. data/public/apple-touch-icon.png +0 -0
  98. data/public/favicon.ico +0 -0
  99. data/public/robots.txt +0 -1
  100. data/test/application_system_test_case.rb +0 -5
  101. data/test/controllers/.keep +0 -0
  102. data/test/controllers/brands_controller_test.rb +0 -7
  103. data/test/fixtures/.keep +0 -0
  104. data/test/fixtures/brands.yml +0 -7
  105. data/test/fixtures/files/.keep +0 -0
  106. data/test/fixtures/users.yml +0 -11
  107. data/test/fixtures/variants.yml +0 -23
  108. data/test/helpers/.keep +0 -0
  109. data/test/integration/.keep +0 -0
  110. data/test/mailers/.keep +0 -0
  111. data/test/models/.keep +0 -0
  112. data/test/models/brand_test.rb +0 -7
  113. data/test/models/user_test.rb +0 -7
  114. data/test/models/variant_test.rb +0 -7
  115. data/test/system/.keep +0 -0
  116. data/test/test_helper.rb +0 -10
  117. data/tmp/.keep +0 -0
  118. 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
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,3 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../javascripts .js
3
- //= link_directory ../stylesheets .css
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,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -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,3 +0,0 @@
1
- // Place all the styles related to the Brands controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery with: :exception
3
- end
@@ -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
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module BrandsHelper
2
- end
@@ -1,2 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
@@ -1,5 +0,0 @@
1
- class Brand < ApplicationRecord
2
- has_many :variants
3
- class User < ActiveRecord::Base
4
- end
5
- end
File without changes
@@ -1,6 +0,0 @@
1
- class User < ApplicationRecord
2
- # Include default devise modules. Others available are:
3
- # :confirmable, :lockable, :timeoutable and :omniauthable
4
- devise :database_authenticatable, :registerable,
5
- :recoverable, :rememberable, :trackable, :validatable
6
- end
@@ -1,3 +0,0 @@
1
- class Variant < ApplicationRecord
2
- belongs_to :brands
3
- end
@@ -1,4 +0,0 @@
1
- <%= simple_form_for @brand do |f| %>
2
- <%= f.input :name, label: "Brand Name" %>
3
- <%= f.button :submit %>
4
- <% end %>
@@ -1,3 +0,0 @@
1
- <h1> Edit Brand </h1>
2
-
3
- <%= render 'form'%>
@@ -1,5 +0,0 @@
1
- <%= @brands.each do |brand| %>
2
- <h2><%= link_to brand.name, brand_path(brand)%></h2>
3
- <% end %>
4
- <br>
5
- <%= link_to "Add Brand", new_brand_path %>
@@ -1,2 +0,0 @@
1
- <h1> New Brand</h1>
2
- <%= render 'form' %>
@@ -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,5 +0,0 @@
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>
@@ -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,3 +0,0 @@
1
- <p>Hello <%= @resource.email %>!</p>
2
-
3
- <p>We're contacting you to notify you that your password has been changed.</p>
@@ -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>