tb_core 1.4.3.1 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -54
  3. data/app/assets/javascripts/admin/core/application.js +8 -4
  4. data/app/assets/javascripts/admin/core/dashboard.js +2 -3
  5. data/app/assets/javascripts/admin/core/date_picker.js +2 -2
  6. data/app/assets/javascripts/admin/core/editor.js +2 -2
  7. data/app/assets/javascripts/admin/core/modal.js +1 -1
  8. data/app/assets/javascripts/admin/core/users.js +5 -5
  9. data/app/assets/javascripts/tb_core.js +8 -0
  10. data/app/assets/libs/sortable/sortable.js +152 -91
  11. data/app/controllers/admin/application_controller.rb +1 -2
  12. data/app/controllers/admin/dashboard_controller.rb +2 -2
  13. data/app/controllers/admin/settings_controller.rb +2 -2
  14. data/app/controllers/admin/users_controller.rb +4 -7
  15. data/app/controllers/concerns/tb_core/error_handling.rb +16 -7
  16. data/app/controllers/concerns/tb_core/user_authentication.rb +5 -5
  17. data/app/controllers/tb_core/application_controller.rb +1 -1
  18. data/app/controllers/user_sessions_controller.rb +2 -2
  19. data/app/helpers/tb_core/application_helper.rb +4 -36
  20. data/app/mailers/tb_core_mailer.rb +3 -3
  21. data/app/models/concerns/tb_core/user_model.rb +131 -0
  22. data/app/models/spud/spud_user_model.rb +6 -138
  23. data/app/models/spud_permission.rb +4 -4
  24. data/app/models/spud_role.rb +1 -1
  25. data/app/models/spud_user.rb +2 -1
  26. data/app/views/admin/dashboard/index.html.erb +1 -1
  27. data/app/views/admin/settings/_form.html.erb +1 -1
  28. data/app/views/admin/settings/edit.html.erb +1 -1
  29. data/app/views/admin/setup/new.html.erb +1 -1
  30. data/app/views/admin/users/_form.html.erb +1 -1
  31. data/app/views/admin/users/index.html.erb +2 -2
  32. data/app/views/admin/users/show.html.erb +1 -1
  33. data/app/views/layouts/admin/application.html.erb +6 -6
  34. data/app/views/layouts/admin/login.html.erb +1 -1
  35. data/app/views/tb_core_mailer/forgot_password_notification.html.erb +2 -2
  36. data/app/views/tb_core_mailer/user_credentials.html.erb +2 -2
  37. data/app/views/user_sessions/_form.html.erb +1 -1
  38. data/app/views/user_sessions/new.html.erb +1 -1
  39. data/lib/generators/spud/module_generator.rb +7 -7
  40. data/lib/generators/spud/setup_generator.rb +6 -7
  41. data/lib/generators/spud/templates/assets/admin/application.js +1 -1
  42. data/lib/generators/spud/templates/assets/application.js +3 -4
  43. data/lib/generators/spud/templates/controller_spec.rb.erb +5 -5
  44. data/lib/generators/spud/templates/views/admin/_form.html.erb +1 -1
  45. data/lib/generators/spud/templates/views/admin/index.html.erb +1 -1
  46. data/lib/generators/spud/templates/views/admin/show.html.erb +1 -1
  47. data/lib/generators/spud/templates/views/frontend/index.html.erb +1 -1
  48. data/lib/generators/spud/templates/views/frontend/show.html.erb +1 -1
  49. data/lib/tb_core.rb +3 -5
  50. data/lib/tb_core/belongs_to_app.rb +47 -46
  51. data/lib/tb_core/catch_all_route.rb +3 -0
  52. data/lib/tb_core/configuration.rb +28 -0
  53. data/lib/tb_core/engine.rb +61 -0
  54. data/lib/tb_core/errors.rb +50 -0
  55. data/lib/tb_core/responder.rb +0 -26
  56. data/lib/{spud_core → tb_core}/searchable.rb +4 -1
  57. data/lib/tb_core/spud_core.rb +23 -0
  58. data/lib/{spud_core → tb_core}/test_files.rb +0 -0
  59. data/lib/tb_core/test_helper.rb +3 -3
  60. data/lib/tb_core/version.rb +3 -0
  61. data/spec/controllers/admin/application_controller_spec.rb +5 -5
  62. data/spec/controllers/admin/dashboard_controller_spec.rb +5 -5
  63. data/spec/controllers/admin/password_reset_controller_spec.rb +1 -1
  64. data/spec/controllers/admin/settings_controller_spec.rb +1 -1
  65. data/spec/controllers/admin/setup_controller_spec.rb +2 -2
  66. data/spec/controllers/admin/user_sessions_controller_spec.rb +2 -2
  67. data/spec/controllers/admin/users_controller_spec.rb +17 -17
  68. data/spec/dummy/app/assets/javascripts/admin/application.js +1 -1
  69. data/spec/dummy/app/assets/javascripts/application.js +1 -1
  70. data/spec/dummy/config/application.rb +1 -1
  71. data/spec/factories/spud_admin_permission_factories.rb +2 -2
  72. data/spec/factories/spud_role_factories.rb +2 -2
  73. data/spec/factories/spud_user_factories.rb +6 -6
  74. data/spec/helpers/spud/admin/application_helper_spec.rb +1 -1
  75. data/spec/helpers/tb_core/application_helper_spec.rb +0 -35
  76. data/spec/lib/spud_core/configuration_spec.rb +2 -2
  77. data/spec/lib/tb_core/belongs_to_app_spec.rb +4 -3
  78. data/spec/models/spud_role_spec.rb +2 -2
  79. data/spec/models/spud_user_spec.rb +13 -13
  80. data/spec/rails_helper.rb +1 -1
  81. metadata +59 -67
  82. data/app/assets/javascripts/tb_core.js.erb +0 -9
  83. data/app/assets/javascripts/tb_core/configuration.js.erb +0 -9
  84. data/app/assets/javascripts/tb_core/console.js +0 -12
  85. data/app/assets/javascripts/tb_core/remote.js +0 -237
  86. data/app/assets/javascripts/tb_core/utility.js +0 -55
  87. data/app/controllers/concerns/tb_core/sortable_params.rb +0 -80
  88. data/app/controllers/spud/application_controller.rb +0 -10
  89. data/lib/generators/spud/templates/assets/bootstrap.js +0 -14
  90. data/lib/spud_core/catch_all_route.rb +0 -3
  91. data/lib/spud_core/configuration.rb +0 -56
  92. data/lib/spud_core/engine.rb +0 -76
  93. data/lib/spud_core/errors.rb +0 -47
  94. data/lib/spud_core/version.rb +0 -5
  95. data/lib/tb_core/table_header.rb +0 -92
  96. data/spec/controllers/tb_core/sortable_params_spec.rb +0 -64
@@ -11,6 +11,6 @@ window.app = {
11
11
  }
12
12
  };
13
13
 
14
- $(document).ready(app.admin.init);
14
+ document.addEventListener('DOMContentLoaded', app.admin.init);
15
15
 
16
16
  })();
@@ -12,6 +12,6 @@ window.app = {
12
12
  }
13
13
  };
14
14
 
15
- $(document).ready(app.init);
15
+ document.addEventListener('DOMContentLoaded', app.init);
16
16
 
17
17
  })();
@@ -7,7 +7,7 @@ require 'tb_core'
7
7
 
8
8
  module Dummy
9
9
  class Application < Rails::Application
10
- Spud::Core.configure do |config|
10
+ TbCore.configure do |config|
11
11
  config.site_name = 'Dummy'
12
12
  config.from_address = 'no-reply@dummy.com'
13
13
  end
@@ -1,10 +1,10 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :permission_name do |n|
3
3
  "app#{n}"
4
4
  end
5
5
 
6
6
  factory :spud_admin_permission do
7
- name { FactoryGirl.generate(:permission_name) }
7
+ name { FactoryBot.generate(:permission_name) }
8
8
  access true
9
9
  end
10
10
  end
@@ -1,9 +1,9 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :name do |n|
3
3
  "SomeRole#{n}"
4
4
  end
5
5
 
6
6
  factory :spud_role do
7
- name { FactoryGirl.generate(:name) }
7
+ name { FactoryBot.generate(:name) }
8
8
  end
9
9
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  sequence :first_name do |n|
3
3
  "John#{n}"
4
4
  end
@@ -20,12 +20,12 @@ FactoryGirl.define do
20
20
  end
21
21
 
22
22
  factory :spud_user do
23
- first_name { FactoryGirl.generate(:first_name) }
24
- last_name { FactoryGirl.generate(:last_name) }
25
- login { FactoryGirl.generate(:login) }
26
- email { FactoryGirl.generate(:email) }
23
+ first_name { FactoryBot.generate(:first_name) }
24
+ last_name { FactoryBot.generate(:last_name) }
25
+ login { FactoryBot.generate(:login) }
26
+ email { FactoryBot.generate(:email) }
27
27
  password 'password'
28
28
  password_confirmation 'password'
29
- single_access_token { FactoryGirl.generate(:single_access_token) }
29
+ single_access_token { FactoryBot.generate(:single_access_token) }
30
30
  end
31
31
  end
@@ -26,7 +26,7 @@ describe Admin::ApplicationHelper, type: :helper do
26
26
 
27
27
  describe '#tb_form_errors' do
28
28
  before(:each) do
29
- @user = FactoryGirl.create(:spud_user)
29
+ @user = FactoryBot.create(:spud_user)
30
30
  end
31
31
 
32
32
  it 'should return blank when no errors exist' do
@@ -1,39 +1,4 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  describe TbCore::ApplicationHelper, type: :helper do
4
- describe '#tb_table_header' do
5
-
6
- it 'returns a table header with rows' do
7
- result = helper.tb_table_header(:admin_users_path)
8
- expect(result).to include('<thead class="tb-table-header"><tr></tr></thead>')
9
- expect(result).to include('</thead>')
10
- end
11
-
12
- it 'has some headers' do
13
- result = helper.tb_table_header(:admin_users_path, model: SpudUser) do |t|
14
- view.concat(t.header(:first_name))
15
- view.concat(t.header(:email))
16
- end
17
- expect(result).to include('<th>First name</th>')
18
- expect(result).to include('<th>Email</th>')
19
- end
20
-
21
- it 'generates links' do
22
- result = helper.tb_table_header(:admin_users_path, model: SpudUser) do |t|
23
- view.concat(t.sortable(:first_name))
24
- view.concat(t.sortable(:email))
25
- end
26
- expect(result).to include('<a href="/admin/users?dir=asc&amp;sort=first_name">First name</a>')
27
- expect(result).to include('<a href="/admin/users?dir=asc&amp;sort=email">Email</a>')
28
- end
29
-
30
- it 'sets the active class' do
31
- helper.params[:sort] = 'first_name'
32
- helper.params[:dir] = 'desc'
33
- result = helper.tb_table_header(:admin_users_path, model: SpudUser) do |t|
34
- view.concat(t.sortable(:first_name))
35
- end
36
- expect(result).to include('<th class="sortable sortable-active sortable-desc">')
37
- end
38
- end
39
4
  end
@@ -1,9 +1,9 @@
1
1
  require 'rails_helper'
2
2
 
3
- describe Spud::Core do
3
+ describe TbCore do
4
4
 
5
5
  before :each do
6
- Spud::Core.configure do |config|
6
+ TbCore.configure do |config|
7
7
  config.site_id = 0
8
8
  config.site_name = 'Default Site'
9
9
  config.short_name = 'default'
@@ -1,6 +1,7 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  class DummyController < ActionController::Base
4
+ include TbCore::BelongsToApp
4
5
  attr_accessor :current_user
5
6
  end
6
7
 
@@ -23,7 +24,7 @@ describe TbCore::BelongsToApp do
23
24
 
24
25
  describe '#acts_as_app' do
25
26
  it 'should configure the app' do
26
- controller.current_user = FactoryGirl.create(:spud_user, super_admin: true)
27
+ controller.current_user = FactoryBot.create(:spud_user, super_admin: true)
27
28
  controller.send(:act_as_app, :users)
28
29
  expect(controller.instance_variable_get('@page_application')).to be_a(Hash)
29
30
  end
@@ -35,10 +36,10 @@ describe TbCore::BelongsToApp do
35
36
  end
36
37
 
37
38
  it 'should raise an error if the user does not have access' do
38
- controller.current_user = FactoryGirl.create(:spud_user, super_admin: false)
39
+ controller.current_user = FactoryBot.create(:spud_user, super_admin: false)
39
40
  expect{
40
41
  controller.send(:act_as_app, :users)
41
- }.to raise_error(Spud::AccessDeniedError)
42
+ }.to raise_error(TbCore::AccessDeniedError)
42
43
  end
43
44
  end
44
45
 
@@ -3,10 +3,10 @@ require 'rails_helper'
3
3
  describe SpudRole, type: :model do
4
4
 
5
5
  before :each do
6
- @role = FactoryGirl.build(:spud_role)
6
+ @role = FactoryBot.build(:spud_role)
7
7
  @full_access = SpudPermission.new('Test Full Access', 'admin.test.full_access')
8
8
  @partial_access = SpudPermission.new('Test Partial Access', 'admin.test.partial_access')
9
- Spud::Core.permissions += [@full_access, @partial_access]
9
+ TbCore.permissions += [@full_access, @partial_access]
10
10
  @role.permissions = [@partial_access]
11
11
  @role.save()
12
12
  end
@@ -4,8 +4,8 @@ describe SpudUser, type: :model do
4
4
 
5
5
  describe '.where_name_like' do
6
6
  it 'matches on the concatenated first and last name' do
7
- 2.times { FactoryGirl.create(:spud_user) }
8
- user = FactoryGirl.create(:spud_user, first_name: 'Some', last_name: 'User')
7
+ 2.times { FactoryBot.create(:spud_user) }
8
+ user = FactoryBot.create(:spud_user, first_name: 'Some', last_name: 'User')
9
9
  result = SpudUser.where_name_like('Some User')
10
10
  expect(result.length).to eq(1)
11
11
  expect(result.first).to eq(user)
@@ -14,12 +14,12 @@ describe SpudUser, type: :model do
14
14
 
15
15
  describe '.with_permission' do
16
16
  before :each do
17
- role = FactoryGirl.create(:spud_role,
17
+ role = FactoryBot.create(:spud_role,
18
18
  permission_tags: ['hello']
19
19
  )
20
- @super_user = FactoryGirl.create(:spud_user, super_admin: true)
21
- @admin_user = FactoryGirl.create(:spud_user, super_admin: false, role: role)
22
- @normal_user = FactoryGirl.create(:spud_user, super_admin: false)
20
+ @super_user = FactoryBot.create(:spud_user, super_admin: true)
21
+ @admin_user = FactoryBot.create(:spud_user, super_admin: false, role: role)
22
+ @normal_user = FactoryBot.create(:spud_user, super_admin: false)
23
23
  end
24
24
 
25
25
  it 'should include the admin user' do
@@ -37,41 +37,41 @@ describe SpudUser, type: :model do
37
37
 
38
38
  describe '#full_name' do
39
39
  it 'should return the full name if the first and last name are not blank' do
40
- u = FactoryGirl.build(:spud_user)
40
+ u = FactoryBot.build(:spud_user)
41
41
  expect(u.full_name).to eq("#{u.first_name} #{u.last_name}")
42
42
  end
43
43
 
44
44
  it 'should return only the last name if the first name is blank' do
45
- u = FactoryGirl.build(:spud_user, first_name: nil)
45
+ u = FactoryBot.build(:spud_user, first_name: nil)
46
46
  expect(u.full_name).to eq(u.last_name)
47
47
  end
48
48
 
49
49
  it 'should return only the first name if the last name is blank' do
50
- u = FactoryGirl.build(:spud_user, last_name: nil)
50
+ u = FactoryBot.build(:spud_user, last_name: nil)
51
51
  expect(u.full_name).to eq(u.first_name)
52
52
  end
53
53
 
54
54
  it 'should return the login if the first and last name are blank' do
55
- u = FactoryGirl.build(:spud_user, first_name: nil, last_name: nil)
55
+ u = FactoryBot.build(:spud_user, first_name: nil, last_name: nil)
56
56
  expect(u.full_name).to eq(u.login)
57
57
  end
58
58
  end
59
59
 
60
60
  it 'must match password confirmation before saving a new user' do
61
- u = FactoryGirl.build(:spud_user, password_confirmation: '')
61
+ u = FactoryBot.build(:spud_user, password_confirmation: '')
62
62
  expect(u.save).to eq(false)
63
63
  end
64
64
 
65
65
  describe '#unset_requires_password_change' do
66
66
  it 'should not unset the requires_password_change flag' do
67
- u = FactoryGirl.create(:spud_user, requires_password_change: true)
67
+ u = FactoryBot.create(:spud_user, requires_password_change: true)
68
68
  expect{
69
69
  u.update_attributes(first_name: 'updated')
70
70
  }.to_not change(u, :requires_password_change)
71
71
  end
72
72
 
73
73
  it 'should unset the requires_password_change flag' do
74
- u = FactoryGirl.create(:spud_user, requires_password_change: true)
74
+ u = FactoryBot.create(:spud_user, requires_password_change: true)
75
75
  expect{
76
76
  u.update_attributes(password: 'new password', password_confirmation: 'new password')
77
77
  u.reload
@@ -10,7 +10,7 @@ require 'tb_core/test_helper'
10
10
  require 'rails-controller-testing'
11
11
  require 'rspec/rails'
12
12
  require 'database_cleaner'
13
- require 'factory_girl_rails'
13
+ require 'factory_bot_rails'
14
14
 
15
15
  # Add additional requires below this line. Rails is not loaded until this point!
16
16
 
metadata CHANGED
@@ -1,59 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3.1
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: authlogic
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: 3.4.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: 3.4.3
27
27
  - !ruby/object:Gem::Dependency
28
- name: responders
28
+ name: bootstrap-sass
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.2'
33
+ version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "<"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.2'
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: authlogic
42
+ name: breadcrumbs_on_rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 3.4.3
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 3.4.3
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: scrypt
56
+ name: jquery-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,19 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: jquery-rails
70
+ name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '5.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '5.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rails-ujs
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -95,105 +95,105 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: breadcrumbs_on_rails
98
+ name: responders
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '2.2'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '2.2'
111
111
  - !ruby/object:Gem::Dependency
112
- name: will_paginate
112
+ name: sass-rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '3.1'
117
+ version: '5.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '3.1'
124
+ version: '5.0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: will_paginate-bootstrap
126
+ name: scrypt
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 1.0.1
131
+ version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 1.0.1
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: bootstrap-sass
140
+ name: sortable_by
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "<"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '4.0'
145
+ version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "<"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: '4.0'
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: sass-rails
154
+ name: will_paginate
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: '5.0'
159
+ version: '3.1'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '5.0'
166
+ version: '3.1'
167
167
  - !ruby/object:Gem::Dependency
168
- name: autoprefixer-rails
168
+ name: will_paginate-bootstrap
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: 1.0.1
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
180
+ version: 1.0.1
181
181
  - !ruby/object:Gem::Dependency
182
- name: pg
182
+ name: database_cleaner
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: '0.15'
187
+ version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: '0.15'
194
+ version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: rspec-rails
196
+ name: factory_bot_rails
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
@@ -207,21 +207,21 @@ dependencies:
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
- name: rails-controller-testing
210
+ name: pg
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
214
214
  - !ruby/object:Gem::Version
215
- version: '0'
215
+ version: '0.15'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
- version: '0'
222
+ version: '0.15'
223
223
  - !ruby/object:Gem::Dependency
224
- name: factory_girl_rails
224
+ name: rails-controller-testing
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
@@ -235,7 +235,7 @@ dependencies:
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
- name: database_cleaner
238
+ name: rspec-rails
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - ">="
@@ -249,7 +249,7 @@ dependencies:
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
- name: simplecov
252
+ name: rubocop
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - ">="
@@ -263,7 +263,7 @@ dependencies:
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
- name: rubocop
266
+ name: simplecov
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
269
  - - ">="
@@ -299,11 +299,7 @@ files:
299
299
  - app/assets/javascripts/admin/core/preinit.js
300
300
  - app/assets/javascripts/admin/core/roles.js
301
301
  - app/assets/javascripts/admin/core/users.js
302
- - app/assets/javascripts/tb_core.js.erb
303
- - app/assets/javascripts/tb_core/configuration.js.erb
304
- - app/assets/javascripts/tb_core/console.js
305
- - app/assets/javascripts/tb_core/remote.js
306
- - app/assets/javascripts/tb_core/utility.js
302
+ - app/assets/javascripts/tb_core.js
307
303
  - app/assets/libs/datepicker/css/datepicker.css
308
304
  - app/assets/libs/datepicker/js/bootstrap-datepicker.js
309
305
  - app/assets/libs/datepicker/less/datepicker.less
@@ -322,16 +318,15 @@ files:
322
318
  - app/controllers/admin/users_controller.rb
323
319
  - app/controllers/concerns/tb_core/error_handling.rb
324
320
  - app/controllers/concerns/tb_core/redirection.rb
325
- - app/controllers/concerns/tb_core/sortable_params.rb
326
321
  - app/controllers/concerns/tb_core/user_authentication.rb
327
322
  - app/controllers/password_resets_controller.rb
328
- - app/controllers/spud/application_controller.rb
329
323
  - app/controllers/tb_core/application_controller.rb
330
324
  - app/controllers/user_sessions_controller.rb
331
325
  - app/helpers/admin/application_helper.rb
332
326
  - app/helpers/admin/roles_helper.rb
333
327
  - app/helpers/tb_core/application_helper.rb
334
328
  - app/mailers/tb_core_mailer.rb
329
+ - app/models/concerns/tb_core/user_model.rb
335
330
  - app/models/spud/spud_user_model.rb
336
331
  - app/models/spud_permission.rb
337
332
  - app/models/spud_role.rb
@@ -397,7 +392,6 @@ files:
397
392
  - lib/generators/spud/templates/assets/admin/module.js.erb
398
393
  - lib/generators/spud/templates/assets/application.js
399
394
  - lib/generators/spud/templates/assets/application.scss
400
- - lib/generators/spud/templates/assets/bootstrap.js
401
395
  - lib/generators/spud/templates/assets/module.js.erb
402
396
  - lib/generators/spud/templates/controller.rb.erb
403
397
  - lib/generators/spud/templates/controller_spec.rb.erb
@@ -410,20 +404,20 @@ files:
410
404
  - lib/generators/spud/templates/views/frontend/show.html.erb
411
405
  - lib/generators/spud/templates/views/layouts/application.html.erb
412
406
  - lib/generators/spud/templates/views/layouts/error_page.html.erb
413
- - lib/spud_core/catch_all_route.rb
414
- - lib/spud_core/configuration.rb
415
- - lib/spud_core/engine.rb
416
- - lib/spud_core/errors.rb
417
- - lib/spud_core/searchable.rb
418
- - lib/spud_core/test_files.rb
419
- - lib/spud_core/version.rb
420
407
  - lib/tasks/spud_core_tasks.rake
421
408
  - lib/tb_core.rb
422
409
  - lib/tb_core/belongs_to_app.rb
410
+ - lib/tb_core/catch_all_route.rb
411
+ - lib/tb_core/configuration.rb
412
+ - lib/tb_core/engine.rb
413
+ - lib/tb_core/errors.rb
423
414
  - lib/tb_core/form_builder.rb
424
415
  - lib/tb_core/responder.rb
425
- - lib/tb_core/table_header.rb
416
+ - lib/tb_core/searchable.rb
417
+ - lib/tb_core/spud_core.rb
418
+ - lib/tb_core/test_files.rb
426
419
  - lib/tb_core/test_helper.rb
420
+ - lib/tb_core/version.rb
427
421
  - spec/controllers/admin/application_controller_spec.rb
428
422
  - spec/controllers/admin/dashboard_controller_spec.rb
429
423
  - spec/controllers/admin/password_reset_controller_spec.rb
@@ -432,7 +426,6 @@ files:
432
426
  - spec/controllers/admin/user_sessions_controller_spec.rb
433
427
  - spec/controllers/admin/users_controller_spec.rb
434
428
  - spec/controllers/tb_core/application_controller_spec.rb
435
- - spec/controllers/tb_core/sortable_params_spec.rb
436
429
  - spec/dummy/README.rdoc
437
430
  - spec/dummy/Rakefile
438
431
  - spec/dummy/app/assets/javascripts/admin/application.js
@@ -494,7 +487,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
494
487
  version: '0'
495
488
  requirements: []
496
489
  rubyforge_project:
497
- rubygems_version: 2.6.12
490
+ rubygems_version: 2.5.1
498
491
  signing_key:
499
492
  specification_version: 4
500
493
  summary: Twice Baked Core Engine
@@ -545,7 +538,6 @@ test_files:
545
538
  - spec/controllers/admin/setup_controller_spec.rb
546
539
  - spec/controllers/admin/settings_controller_spec.rb
547
540
  - spec/controllers/admin/application_controller_spec.rb
548
- - spec/controllers/tb_core/sortable_params_spec.rb
549
541
  - spec/controllers/tb_core/application_controller_spec.rb
550
542
  - spec/rails_helper.rb
551
543
  - spec/helpers/tb_core/application_helper_spec.rb