Commit bc3c4cb0 by Hoang Nam Nguyen

'add more bootstrap'

parent d0151290
......@@ -17,3 +17,6 @@
/yarn-error.log
.byebug_history
# Ignore application configuration
/config/application.yml
......@@ -41,9 +41,11 @@ GEM
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
arel (8.0.0)
bcrypt (3.1.11)
bindex (0.5.0)
bootstrap-will_paginate (1.0.0)
will_paginate
bootstrap4-kaminari-views (1.0.0)
kaminari (>= 0.13)
rails (>= 3.1)
builder (3.2.3)
byebug (9.1.0)
capybara (2.15.1)
......@@ -65,6 +67,13 @@ GEM
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
connection_pool (2.2.1)
devise (4.3.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 5.2)
responders
warden (~> 1.2.3)
erubi (1.6.1)
execjs (2.7.0)
faraday (0.13.1)
......@@ -78,6 +87,18 @@ GEM
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
kaminari (1.0.1)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.0.1)
kaminari-activerecord (= 1.0.1)
kaminari-core (= 1.0.1)
kaminari-actionview (1.0.1)
actionview
kaminari-core (= 1.0.1)
kaminari-activerecord (1.0.1)
activerecord
kaminari-core (= 1.0.1)
kaminari-core (1.0.1)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
......@@ -99,6 +120,7 @@ GEM
nio4r (2.1.0)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
orm_adapter (0.5.0)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
......@@ -109,6 +131,8 @@ GEM
public_suffix (3.0.0)
puma (3.10.0)
rack (2.0.3)
rack-protection (2.0.0)
rack
rack-test (0.6.3)
rack (>= 1.0)
rails (5.1.3)
......@@ -138,6 +162,10 @@ GEM
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
redis (3.3.3)
responders (2.4.0)
actionpack (>= 4.2.0, < 5.3)
railties (>= 4.2.0, < 5.3)
rsolr (2.0.2)
builder (>= 2.1.2)
faraday
......@@ -157,6 +185,11 @@ GEM
selenium-webdriver (3.5.1)
childprocess (~> 0.5)
rubyzip (~> 1.0)
sidekiq (5.0.4)
concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0)
rack-protection (>= 1.5.0)
redis (~> 3.3, >= 3.3.3)
slop (3.6.0)
spring (2.0.2)
activesupport (>= 4.2)
......@@ -180,6 +213,8 @@ GEM
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
warden (1.2.7)
rack (>= 1.0)
web-console (3.5.1)
actionview (>= 5.0)
activemodel (>= 5.0)
......@@ -190,7 +225,6 @@ GEM
websocket-extensions (0.1.2)
whenever (0.9.7)
chronic (>= 0.6.3)
will_paginate (3.1.5)
xpath (2.1.0)
nokogiri (~> 1.3)
zip-zip (0.3)
......@@ -200,12 +234,15 @@ PLATFORMS
ruby
DEPENDENCIES
bootstrap-will_paginate (= 1.0.0)
bcrypt (= 3.1.11)
bootstrap4-kaminari-views
byebug
capybara (~> 2.13)
coffee-rails (~> 4.2)
devise
figaro
jbuilder (~> 2.5)
kaminari
listen (>= 3.0.5, < 3.2)
mysql2 (>= 0.3.18, < 0.5)
nokogiri
......@@ -217,6 +254,7 @@ DEPENDENCIES
rubyzip (>= 1.0.0)
sass-rails (~> 5.0)
selenium-webdriver
sidekiq
spring
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
......@@ -224,7 +262,6 @@ DEPENDENCIES
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
whenever
will_paginate (= 3.1.5)
zip-zip
BUNDLED WITH
......
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
// Place all the styles related to the Users controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
# Logfile created on 2017-09-25 14:03:30 +0700 by logger.rb/56815
2017-09-25T07:03:30.654Z 19479 TID-gpugdrndc INFO: ==================================================================
2017-09-25T07:03:30.654Z 19479 TID-gpugdrndc INFO: Please point sidekiq to a Rails 3/4 application or a Ruby file
2017-09-25T07:03:30.654Z 19479 TID-gpugdrndc INFO: to load your worker classes with -r [DIR|FILE].
2017-09-25T07:03:30.654Z 19479 TID-gpugdrndc INFO: ==================================================================
2017-09-25T07:03:30.654Z 19479 TID-gpugdrndc INFO: sidekiq [options]
-c, --concurrency INT processor threads to use
-d, --daemon Daemonize process
-e, --environment ENV Application environment
-g, --tag TAG Process tag for procline
-i, --index INT unique process index on this machine
-q, --queue QUEUE[,WEIGHT] Queues to process with optional weights
-r, --require [PATH|DIR] Location of Rails application with workers or file to require
-t, --timeout NUM Shutdown timeout
-v, --verbose Print more verbose output
-C, --config PATH path to YAML config file
-L, --logfile PATH path to writable logfile
-P, --pidfile PATH path to pidfile
-V, --version Print version and exit
-h, --help Show help
2017-09-25T07:03:37.997Z 19499 TID-gohp5vz0w INFO: ==================================================================
2017-09-25T07:03:37.997Z 19499 TID-gohp5vz0w INFO: Please point sidekiq to a Rails 3/4 application or a Ruby file
2017-09-25T07:03:37.997Z 19499 TID-gohp5vz0w INFO: to load your worker classes with -r [DIR|FILE].
2017-09-25T07:03:37.997Z 19499 TID-gohp5vz0w INFO: ==================================================================
2017-09-25T07:03:37.997Z 19499 TID-gohp5vz0w INFO: sidekiq [options]
-c, --concurrency INT processor threads to use
-d, --daemon Daemonize process
-e, --environment ENV Application environment
-g, --tag TAG Process tag for procline
-i, --index INT unique process index on this machine
-q, --queue QUEUE[,WEIGHT] Queues to process with optional weights
-r, --require [PATH|DIR] Location of Rails application with workers or file to require
-t, --timeout NUM Shutdown timeout
-v, --verbose Print more verbose output
-C, --config PATH path to YAML config file
-L, --logfile PATH path to writable logfile
-P, --pidfile PATH path to pidfile
-V, --version Print version and exit
-h, --help Show help
......@@ -49,6 +49,6 @@ test:
#
production:
<<: *default
database: ven_job_production
username: ven_job
password: <%= ENV['VEN_JOB_DATABASE_PASSWORD'] %>
database: ven_job_development
username: root
password: 123456
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
en:
devise:
confirmations:
confirmed: "Your email address has been successfully confirmed."
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
failure:
already_authenticated: "You are already signed in."
inactive: "Your account is not activated yet."
invalid: "Invalid %{authentication_keys} or password."
locked: "Your account is locked."
last_attempt: "You have one more attempt before your account is locked."
not_found_in_database: "Invalid %{authentication_keys} or password."
timeout: "Your session expired. Please sign in again to continue."
unauthenticated: "You need to sign in or sign up before continuing."
unconfirmed: "You have to confirm your email address before continuing."
mailer:
confirmation_instructions:
subject: "Confirmation instructions"
reset_password_instructions:
subject: "Reset password instructions"
unlock_instructions:
subject: "Unlock instructions"
email_changed:
subject: "Email Changed"
password_change:
subject: "Password Changed"
omniauth_callbacks:
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
success: "Successfully authenticated from %{kind} account."
passwords:
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
updated: "Your password has been changed successfully. You are now signed in."
updated_not_active: "Your password has been changed successfully."
registrations:
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
signed_up: "Welcome! You have signed up successfully."
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
updated: "Your account has been updated successfully."
sessions:
signed_in: "Signed in successfully."
signed_out: "Signed out successfully."
already_signed_out: "Signed out successfully."
unlocks:
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
errors:
messages:
already_confirmed: "was already confirmed, please try signing in"
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
expired: "has expired, please request a new one"
not_found: "not found"
not_locked: "was not locked"
not_saved:
one: "1 error prohibited this %{resource} from being saved:"
other: "%{count} errors prohibited this %{resource} from being saved:"
......@@ -34,7 +34,7 @@ namespace :crawl do
p = page.css('.jobtitle h3.job a')
p.each do |detail|
begin
each_page = Nokogiri::HTML(open(Addressable::URI.parse(detail['href']).normalize.to_s).read)
each_page = Nokogiri::HTML(open(detail['href']).read)
#get name_company, address_company, descipton company save database
name_company = each_page.css('.tit_company').text
......@@ -73,7 +73,7 @@ namespace :crawl do
#show pages on console screen
puts "#{detail['href']} - Page #{i}/#{last_page}"
rescue => e
p "#{e} - Job URL: #{detail['href']} - Job ID: #{job.id} - Locations: #{location_works} -Industry: #{industry_name}"
p "#{e} - Job URL: #{detail['href']}"
end
end
i+=1
......
require 'test_helper'
class SearchControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class UsersControllerTest < ActionDispatch::IntegrationTest
test "should get new" do
get users_new_url
assert_response :success
end
end
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
job_id: 1
industry_id: 1
two:
job_id: 1
industry_id: 1
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
email: MyString
two:
email: MyString
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
email: MyString
two:
name: MyString
email: MyString
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer
class UserMailerPreview < ActionMailer::Preview
end
require 'test_helper'
class UserMailerTest < ActionMailer::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class JobIndustryTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class RegisterTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
require 'test_helper'
class UserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment