rails_db 1.4.0 → 1.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d69068ac0940f8b57d7f83facac4403ba63968e6
4
- data.tar.gz: 66c4b58c74345f425dc3e26044ad139ff3610e96
3
+ metadata.gz: ff34b55cfe0e4c05c484f798d5316a515f85b0e2
4
+ data.tar.gz: f13ecb2575d9c568bebc7948d508c2e5c4cdd193
5
5
  SHA512:
6
- metadata.gz: 9966cabe5e612fd78340c354589dc39de13a72eb9c71b7a8185450e086f768e634f70eb2a0f9973c96e7f37f98d536643ce8691c643e7fcfaadc2a551cb9c143
7
- data.tar.gz: a02209e3b2afdfd858d4101c12f46af31f86e10e8c78fc177dc107d263f47c79d67efcb6cb61160d0524e7b2e40b5ba37c795fe7981450430e1f22c660f0acdd
6
+ metadata.gz: bb3257a27ae20fd285b9eeb0bb064a6406841dae107b3378126f16485d23ec9783d62a77ab63edcad21ac6bec7be199623aa4031b7c26acd12d0f3bf34d5f169
7
+ data.tar.gz: 715ec7c95f75f06a942a0a9f71bab57e09a10ce2e8ad2bce708cc2429b45ae9b1655c3d6deac698d437675b6a130f326be07396d19c6f1ea6eeae4b2154e5426
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_db (1.3.4)
4
+ rails_db (1.4.1)
5
5
  codemirror-rails
6
6
  jquery-rails
7
7
  kaminari
@@ -47,22 +47,25 @@ module RailsDb
47
47
  end
48
48
 
49
49
  def create_model(table_name, &block)
50
- klass = Class.new(ActiveRecord::Base) do
51
- def self.model_name
52
- ActiveModel::Name.new(self, nil, table_name)
50
+ begin
51
+ klass = Class.new(ActiveRecord::Base) do
52
+ def self.model_name
53
+ ActiveModel::Name.new(self, nil, table_name)
54
+ end
55
+ self.table_name = table_name
56
+ self.inheritance_column = nil
53
57
  end
54
- self.table_name = table_name
58
+ temp = klass.count # verify that it works, if not load other
59
+ rescue
60
+ klass = ActiveRecord::Base.descendants.detect { |c| c.table_name == table_name }
55
61
  end
62
+
56
63
  klass.class_eval(&block) if block_given?
57
64
  klass
58
65
  end
59
66
 
60
67
  def as_model
61
- begin
62
- @model ||= name.classify.constantize
63
- rescue
64
- @model ||= create_model(name)
65
- end
68
+ @model ||= create_model(name)
66
69
  end
67
70
 
68
71
  end # module
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -6,9 +6,11 @@ class DashboardControllerTest < ActionDispatch::IntegrationTest
6
6
  test "should get index" do
7
7
  User.delete_all
8
8
  Account.delete_all
9
+ Customer.delete_all
9
10
 
10
- user = User.create(name: 'Igor')
11
+ user = User.create(name: 'Igor')
11
12
  edit_user = User.create(name: 'Edit')
13
+ customer = Customer.create(name: 'Customer 1', bio: 'this is bio text')
12
14
 
13
15
  get '/rails/db'
14
16
  assert_equal 200, status
@@ -39,10 +41,10 @@ class DashboardControllerTest < ActionDispatch::IntegrationTest
39
41
  get '/rails/db/tables/users/data?sort_column=id&sort_order=desc'
40
42
  assert_equal 200, status
41
43
 
42
- assert_equal 2, User.count
44
+ assert_equal 3, User.count
43
45
  get "/rails/db/tables/users/destroy?pk_id=#{user.id}"
44
46
  assert_equal 302, status
45
- assert_equal 1, User.count
47
+ assert_equal 2, User.count
46
48
 
47
49
  get '/rails/db/tables/users/csv'
48
50
  assert_equal 200, status
@@ -73,10 +75,18 @@ class DashboardControllerTest < ActionDispatch::IntegrationTest
73
75
  xhr :get, '/rails/db/tables/users/new'
74
76
  assert_equal 200, status
75
77
 
76
- assert_equal 1, User.count
78
+ assert_equal 2, User.count
77
79
  xhr :post, '/rails/db/tables/users/create', {record: { name: 'XXX' }}
78
80
  assert_equal 200, status
79
- assert_equal 2, User.count
81
+ assert_equal 3, User.count
82
+
83
+ xhr :get, '/rails/db/tables/users/edit?pk_id=' + customer.id.to_s
84
+ assert_equal 200, status
85
+
86
+ xhr :put, '/rails/db/tables/users/update?pk_id=' + customer.id.to_s, {record: { name: 'STI' }}
87
+ assert_equal 200, status
88
+ customer.reload
89
+ assert_equal 'STI', customer.name
80
90
  end
81
91
 
82
- end
92
+ end
@@ -6,14 +6,18 @@ class DatabaseTest < ActiveSupport::TestCase
6
6
  end
7
7
 
8
8
  test "tables" do
9
- assert_equal RailsDb::Database.tables, ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", "users"]
9
+ ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", "users"].each do |t|
10
+ assert RailsDb::Database.tables.include?(t)
11
+ end
10
12
  end
11
13
 
12
14
  test "accessible tables" do
13
- assert_equal RailsDb::Database.accessible_tables, ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", "users"]
15
+ ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", "users"].each do |t|
16
+ assert RailsDb::Database.accessible_tables.include?(t)
17
+ end
14
18
  end
15
19
 
16
20
  test 'adapter' do
17
21
  assert_not_equal RailsDb::Database.adapter.to_s, ""
18
22
  end
19
- end
23
+ end
@@ -0,0 +1,3 @@
1
+ class Customer < User
2
+ validates :bio, presence: true
3
+ end
@@ -15,4 +15,6 @@
15
15
 
16
16
  class User < ActiveRecord::Base
17
17
  has_many :comments
18
+
19
+ validates :name, presence: true
18
20
  end
@@ -17,4 +17,10 @@
17
17
 
18
18
  <%= rails_db_data_table_sql 'select id, name, age from users order by age desc limit 10',
19
19
  footer: false,
20
- header: true %>
20
+ header: true %>
21
+
22
+ <h3>Stats</h3>
23
+
24
+ <p>Users: <%= User.count %></p>
25
+ <p>Customer: <%= Customer.count %></p>
26
+ <p>Account: <%= Account.count %></p>
@@ -0,0 +1,5 @@
1
+ class AddStiModel < ActiveRecord::Migration
2
+ def change
3
+ add_column :users, :type, :string
4
+ end
5
+ end
Binary file
Binary file
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20151121125538) do
14
+ ActiveRecord::Schema.define(version: 20170126124628) do
15
15
 
16
16
  create_table "accounts", force: :cascade do |t|
17
17
  t.string "name"
@@ -52,46 +52,46 @@ ActiveRecord::Schema.define(version: 20151121125538) do
52
52
 
53
53
  create_table "projects", force: :cascade do |t|
54
54
  t.string "name"
55
- t.string "description_911132"
56
- t.string "description_782996"
57
- t.string "description_824956"
58
- t.string "description_241581"
59
- t.string "description_725539"
60
- t.string "description_340145"
61
- t.string "description_243765"
62
- t.string "description_430455"
63
- t.string "description_163298"
64
- t.string "description_670015"
65
- t.string "description_64256"
66
- t.string "description_825795"
67
- t.string "description_130920"
68
- t.string "description_546951"
69
- t.string "description_678246"
70
- t.string "description_372493"
71
- t.string "description_413167"
72
- t.string "description_399716"
73
- t.string "description_605912"
74
- t.string "description_179385"
75
- t.integer "amount_346083"
76
- t.integer "amount_295343"
77
- t.integer "amount_478538"
78
- t.integer "amount_356409"
79
- t.integer "amount_798898"
80
- t.integer "amount_300244"
81
- t.integer "amount_963504"
82
- t.integer "amount_83801"
83
- t.integer "amount_272106"
84
- t.integer "amount_852037"
85
- t.integer "amount_35283"
86
- t.integer "amount_803382"
87
- t.integer "amount_218786"
88
- t.integer "amount_230333"
89
- t.integer "amount_357044"
90
- t.integer "amount_984738"
91
- t.integer "amount_172195"
92
- t.integer "amount_249998"
93
- t.integer "amount_349304"
94
- t.integer "amount_792944"
55
+ t.string "description_579223"
56
+ t.string "description_345401"
57
+ t.string "description_422932"
58
+ t.string "description_70065"
59
+ t.string "description_482605"
60
+ t.string "description_940447"
61
+ t.string "description_740033"
62
+ t.string "description_671952"
63
+ t.string "description_596531"
64
+ t.string "description_86379"
65
+ t.string "description_677943"
66
+ t.string "description_811919"
67
+ t.string "description_46326"
68
+ t.string "description_871123"
69
+ t.string "description_308496"
70
+ t.string "description_725688"
71
+ t.string "description_630564"
72
+ t.string "description_529706"
73
+ t.string "description_580432"
74
+ t.string "description_135352"
75
+ t.integer "amount_148947"
76
+ t.integer "amount_389744"
77
+ t.integer "amount_957940"
78
+ t.integer "amount_236149"
79
+ t.integer "amount_507850"
80
+ t.integer "amount_892431"
81
+ t.integer "amount_362618"
82
+ t.integer "amount_275585"
83
+ t.integer "amount_577887"
84
+ t.integer "amount_125612"
85
+ t.integer "amount_510527"
86
+ t.integer "amount_302316"
87
+ t.integer "amount_505272"
88
+ t.integer "amount_339402"
89
+ t.integer "amount_23870"
90
+ t.integer "amount_730520"
91
+ t.integer "amount_770590"
92
+ t.integer "amount_242937"
93
+ t.integer "amount_825518"
94
+ t.integer "amount_490791"
95
95
  t.datetime "created_at", null: false
96
96
  t.datetime "updated_at", null: false
97
97
  end
@@ -114,6 +114,7 @@ ActiveRecord::Schema.define(version: 20151121125538) do
114
114
  t.integer "account_id"
115
115
  t.date "dob"
116
116
  t.boolean "active", default: true
117
+ t.string "type"
117
118
  end
118
119
 
119
120
  add_index "users", ["account_id"], name: "index_users_on_account_id"
@@ -7,12 +7,14 @@ class SqlImportTest < ActiveSupport::TestCase
7
7
  end
8
8
 
9
9
  test "import" do
10
- assert_equal RailsDb::Database.tables, ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", "users"]
10
+ ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", "users"].each do |t|
11
+ assert RailsDb::Database.tables.include?(t)
12
+ end
11
13
  file = File.open("#{Rails.root}/../test_sql_#{RailsDb::Database.adapter.adapter_name}.sql")
12
14
  importer = RailsDb::SqlImport.new(file)
13
15
  importer.import
14
16
  assert importer.result.ok?, "Import successfull?"
15
- assert_equal RailsDb::Database.tables, ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", 't', "users"]
17
+ assert RailsDb::Database.tables.include?('t')
16
18
  end
17
19
 
18
20
  end
data/test/table_test.rb CHANGED
@@ -8,7 +8,7 @@ class TableTest < ActiveSupport::TestCase
8
8
  end
9
9
 
10
10
  test 'columns' do
11
- assert_equal @users_table.column_names, ["id", "name", "age", "salary", "bio", "created_at", "updated_at", "account_id", "dob", "active"]
11
+ assert_equal @users_table.column_names, ["id", "name", "age", "salary", "bio", "created_at", "updated_at", "account_id", "dob", "active", "type"]
12
12
  end
13
13
 
14
14
  test 'to_csv' do
@@ -49,4 +49,4 @@ class TableTest < ActiveSupport::TestCase
49
49
  assert_equal 'igor', klass.first.name
50
50
  end
51
51
 
52
- end
52
+ end
data/test/test_helper.rb CHANGED
@@ -11,6 +11,7 @@ require "rails/test_help"
11
11
  ActiveSupport::TestCase.use_transactional_fixtures = false
12
12
 
13
13
  puts "USING DB: #{RailsDb::Database.adapter.adapter_name}"
14
+ puts "USING Rails: #{Gem.loaded_specs['rails'].version}"
14
15
 
15
16
  # Filter out Minitest backtrace while allowing backtrace from other libraries
16
17
  # to be shown.
@@ -24,4 +25,4 @@ def clean_db
24
25
  ActiveRecord::Base.connection.drop_table :t
25
26
  end
26
27
  ActiveRecord::Base.connection.tables.map(&:classify).map{|name| name.constantize if Object.const_defined?(name)}.compact.each(&:delete_all)
27
- end
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -388,6 +388,7 @@ files:
388
388
  - test/dummy/app/models/account.rb
389
389
  - test/dummy/app/models/comment.rb
390
390
  - test/dummy/app/models/contact.rb
391
+ - test/dummy/app/models/customer.rb
391
392
  - test/dummy/app/models/legacy_account.rb
392
393
  - test/dummy/app/models/payment.rb
393
394
  - test/dummy/app/models/populate.rb
@@ -419,7 +420,6 @@ files:
419
420
  - test/dummy/config/locales/en.yml
420
421
  - test/dummy/config/routes.rb
421
422
  - test/dummy/config/secrets.yml
422
- - test/dummy/db/development.sqlite3
423
423
  - test/dummy/db/migrate/20151013203739_create_users.rb
424
424
  - test/dummy/db/migrate/20151013203757_create_comments.rb
425
425
  - test/dummy/db/migrate/20151013204027_populate_data.rb
@@ -433,6 +433,7 @@ files:
433
433
  - test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
434
434
  - test/dummy/db/migrate/20151028191429_create_legacy_accounts.rb
435
435
  - test/dummy/db/migrate/20151121125538_add_boolean_field_to_user.rb
436
+ - test/dummy/db/migrate/20170126124628_add_sti_model.rb
436
437
  - test/dummy/db/rails_db.sqlite3
437
438
  - test/dummy/db/rails_db_dev.sqlite3
438
439
  - test/dummy/db/schema.rb
@@ -535,143 +536,144 @@ specification_version: 4
535
536
  summary: Inspect your Rails DB (table content viewer, execute sql queries, export
536
537
  & import data
537
538
  test_files:
538
- - test/dashboard_controller_test.rb
539
- - test/database_test.rb
539
+ - test/sql_import_test.rb
540
+ - test/table_test.rb
541
+ - test/test_sql_mysql.sql
542
+ - test/dummy/db/schema.rb
543
+ - test/dummy/db/rails_db_dev.sqlite3
544
+ - test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
545
+ - test/dummy/db/migrate/20151014074655_create_contacts.rb
546
+ - test/dummy/db/migrate/20151027192250_create_payments.rb
547
+ - test/dummy/db/migrate/20151014074454_create_accounts.rb
548
+ - test/dummy/db/migrate/20151015145740_populate_db.rb
549
+ - test/dummy/db/migrate/20151014152932_add_bd.rb
550
+ - test/dummy/db/migrate/20151028191429_create_legacy_accounts.rb
551
+ - test/dummy/db/migrate/20151013204027_populate_data.rb
552
+ - test/dummy/db/migrate/20151013203757_create_comments.rb
553
+ - test/dummy/db/migrate/20151121125538_add_boolean_field_to_user.rb
554
+ - test/dummy/db/migrate/20151014183823_create_projects.rb
555
+ - test/dummy/db/migrate/20170126124628_add_sti_model.rb
556
+ - test/dummy/db/migrate/20151013203739_create_users.rb
557
+ - test/dummy/db/migrate/20151014184243_add_long_text.rb
558
+ - test/dummy/db/rails_db.sqlite3
559
+ - test/dummy/README.rdoc
560
+ - test/dummy/Rakefile
561
+ - test/dummy/test/fixtures/legacy_accounts.yml
562
+ - test/dummy/test/fixtures/users.yml
563
+ - test/dummy/test/fixtures/contacts.yml
564
+ - test/dummy/test/fixtures/projects.yml
565
+ - test/dummy/test/fixtures/comments.yml
566
+ - test/dummy/test/fixtures/accounts.yml
567
+ - test/dummy/test/models/project_test.rb
568
+ - test/dummy/test/models/user_test.rb
569
+ - test/dummy/test/models/comment_test.rb
570
+ - test/dummy/test/models/legacy_account_test.rb
571
+ - test/dummy/test/models/contact_test.rb
572
+ - test/dummy/test/models/account_test.rb
573
+ - test/dummy/app/assets/javascripts/application.js
574
+ - test/dummy/app/assets/stylesheets/bootstrap-theme.min.css
575
+ - test/dummy/app/assets/stylesheets/bootstrap.min.css
576
+ - test/dummy/app/assets/stylesheets/application.css
540
577
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.eot
541
578
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.svg
579
+ - test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2
542
580
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf
543
581
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff
544
- - test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2
545
- - test/dummy/app/assets/javascripts/application.js
546
- - test/dummy/app/assets/stylesheets/application.css
547
- - test/dummy/app/assets/stylesheets/bootstrap-theme.min.css
548
- - test/dummy/app/assets/stylesheets/bootstrap.min.css
549
- - test/dummy/app/controllers/application_controller.rb
550
- - test/dummy/app/controllers/home_controller.rb
551
582
  - test/dummy/app/helpers/application_helper.rb
552
- - test/dummy/app/models/account.rb
583
+ - test/dummy/app/views/home/index.html.erb
584
+ - test/dummy/app/views/layouts/application.html.erb
585
+ - test/dummy/app/models/project.rb
586
+ - test/dummy/app/models/customer.rb
553
587
  - test/dummy/app/models/comment.rb
588
+ - test/dummy/app/models/account.rb
554
589
  - test/dummy/app/models/contact.rb
590
+ - test/dummy/app/models/populate.rb
555
591
  - test/dummy/app/models/legacy_account.rb
556
592
  - test/dummy/app/models/payment.rb
557
- - test/dummy/app/models/populate.rb
558
- - test/dummy/app/models/project.rb
559
593
  - test/dummy/app/models/user.rb
560
- - test/dummy/app/views/home/index.html.erb
561
- - test/dummy/app/views/layouts/application.html.erb
562
- - test/dummy/bin/bundle
563
- - test/dummy/bin/rails
594
+ - test/dummy/app/controllers/application_controller.rb
595
+ - test/dummy/app/controllers/home_controller.rb
564
596
  - test/dummy/bin/rake
565
597
  - test/dummy/bin/setup
566
- - test/dummy/config/application.rb
598
+ - test/dummy/bin/bundle
599
+ - test/dummy/bin/rails
567
600
  - test/dummy/config/boot.rb
601
+ - test/dummy/config/application.rb
568
602
  - test/dummy/config/database.yml
569
- - test/dummy/config/environment.rb
570
- - test/dummy/config/environments/development.rb
571
603
  - test/dummy/config/environments/production.rb
572
604
  - test/dummy/config/environments/test.rb
573
- - test/dummy/config/initializers/assets.rb
574
- - test/dummy/config/initializers/backtrace_silencers.rb
575
- - test/dummy/config/initializers/cookies_serializer.rb
576
- - test/dummy/config/initializers/filter_parameter_logging.rb
605
+ - test/dummy/config/environments/development.rb
606
+ - test/dummy/config/routes.rb
607
+ - test/dummy/config/locales/en.yml
608
+ - test/dummy/config/secrets.yml
609
+ - test/dummy/config/initializers/session_store.rb
577
610
  - test/dummy/config/initializers/inflections.rb
578
- - test/dummy/config/initializers/mime_types.rb
579
611
  - test/dummy/config/initializers/rails_db.rb
580
- - test/dummy/config/initializers/session_store.rb
612
+ - test/dummy/config/initializers/mime_types.rb
581
613
  - test/dummy/config/initializers/wrap_parameters.rb
582
- - test/dummy/config/locales/en.yml
583
- - test/dummy/config/routes.rb
584
- - test/dummy/config/secrets.yml
614
+ - test/dummy/config/initializers/backtrace_silencers.rb
615
+ - test/dummy/config/initializers/filter_parameter_logging.rb
616
+ - test/dummy/config/initializers/assets.rb
617
+ - test/dummy/config/initializers/cookies_serializer.rb
618
+ - test/dummy/config/environment.rb
585
619
  - test/dummy/config.ru
586
- - test/dummy/db/development.sqlite3
587
- - test/dummy/db/migrate/20151013203739_create_users.rb
588
- - test/dummy/db/migrate/20151013203757_create_comments.rb
589
- - test/dummy/db/migrate/20151013204027_populate_data.rb
590
- - test/dummy/db/migrate/20151014074454_create_accounts.rb
591
- - test/dummy/db/migrate/20151014074655_create_contacts.rb
592
- - test/dummy/db/migrate/20151014152932_add_bd.rb
593
- - test/dummy/db/migrate/20151014183823_create_projects.rb
594
- - test/dummy/db/migrate/20151014184243_add_long_text.rb
595
- - test/dummy/db/migrate/20151015145740_populate_db.rb
596
- - test/dummy/db/migrate/20151027192250_create_payments.rb
597
- - test/dummy/db/migrate/20151027223149_add_non_pk_table.rb
598
- - test/dummy/db/migrate/20151028191429_create_legacy_accounts.rb
599
- - test/dummy/db/migrate/20151121125538_add_boolean_field_to_user.rb
600
- - test/dummy/db/rails_db.sqlite3
601
- - test/dummy/db/rails_db_dev.sqlite3
602
- - test/dummy/db/schema.rb
603
- - test/dummy/public/404.html
604
- - test/dummy/public/422.html
605
620
  - test/dummy/public/500.html
606
621
  - test/dummy/public/favicon.ico
607
- - test/dummy/Rakefile
608
- - test/dummy/README.rdoc
609
- - test/dummy/test/fixtures/accounts.yml
610
- - test/dummy/test/fixtures/comments.yml
611
- - test/dummy/test/fixtures/contacts.yml
612
- - test/dummy/test/fixtures/legacy_accounts.yml
613
- - test/dummy/test/fixtures/projects.yml
614
- - test/dummy/test/fixtures/users.yml
615
- - test/dummy/test/models/account_test.rb
616
- - test/dummy/test/models/comment_test.rb
617
- - test/dummy/test/models/contact_test.rb
618
- - test/dummy/test/models/legacy_account_test.rb
619
- - test/dummy/test/models/project_test.rb
620
- - test/dummy/test/models/user_test.rb
622
+ - test/dummy/public/404.html
623
+ - test/dummy/public/422.html
624
+ - test/dashboard_controller_test.rb
621
625
  - test/rails_db_data_table_helper_test.rb
626
+ - test/database_test.rb
627
+ - test/test_sql_sqlite.sql
628
+ - test/test_sql_postgres.sql
622
629
  - test/rails_db_test.rb
623
- - test/sql_import_test.rb
624
- - test/sql_query_test.rb
630
+ - test/standalone/Gemfile.lock
631
+ - test/standalone/README.rdoc
632
+ - test/standalone/Rakefile
633
+ - test/standalone/app/assets/javascripts/application.js
634
+ - test/standalone/app/assets/stylesheets/bootstrap-theme.min.css
635
+ - test/standalone/app/assets/stylesheets/bootstrap.min.css
636
+ - test/standalone/app/assets/stylesheets/application.css
625
637
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.eot
626
638
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.svg
639
+ - test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff2
627
640
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.ttf
628
641
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff
629
- - test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff2
630
- - test/standalone/app/assets/javascripts/application.js
631
- - test/standalone/app/assets/stylesheets/application.css
632
- - test/standalone/app/assets/stylesheets/bootstrap-theme.min.css
633
- - test/standalone/app/assets/stylesheets/bootstrap.min.css
634
- - test/standalone/app/controllers/application_controller.rb
635
- - test/standalone/app/controllers/home_controller.rb
636
642
  - test/standalone/app/helpers/application_helper.rb
637
643
  - test/standalone/app/views/home/index.html.erb
638
644
  - test/standalone/app/views/layouts/application.html.erb
639
- - test/standalone/bin/bundle
640
- - test/standalone/bin/rails
645
+ - test/standalone/app/controllers/application_controller.rb
646
+ - test/standalone/app/controllers/home_controller.rb
641
647
  - test/standalone/bin/rake
642
648
  - test/standalone/bin/setup
643
- - test/standalone/config/application.rb
649
+ - test/standalone/bin/bundle
650
+ - test/standalone/bin/rails
644
651
  - test/standalone/config/boot.rb
652
+ - test/standalone/config/application.rb
645
653
  - test/standalone/config/database.yml
646
- - test/standalone/config/environment.rb
647
- - test/standalone/config/environments/development.rb
648
654
  - test/standalone/config/environments/production.rb
649
655
  - test/standalone/config/environments/test.rb
650
- - test/standalone/config/initializers/assets.rb
651
- - test/standalone/config/initializers/backtrace_silencers.rb
652
- - test/standalone/config/initializers/cookies_serializer.rb
653
- - test/standalone/config/initializers/filter_parameter_logging.rb
656
+ - test/standalone/config/environments/development.rb
657
+ - test/standalone/config/routes.rb
658
+ - test/standalone/config/locales/en.yml
659
+ - test/standalone/config/secrets.yml
660
+ - test/standalone/config/initializers/session_store.rb
654
661
  - test/standalone/config/initializers/inflections.rb
662
+ - test/standalone/config/initializers/rails_db.rb
655
663
  - test/standalone/config/initializers/mime_types.rb
656
664
  - test/standalone/config/initializers/quiet_assets.rb
657
- - test/standalone/config/initializers/rails_db.rb
658
- - test/standalone/config/initializers/session_store.rb
659
665
  - test/standalone/config/initializers/wrap_parameters.rb
660
- - test/standalone/config/locales/en.yml
661
- - test/standalone/config/routes.rb
662
- - test/standalone/config/secrets.yml
666
+ - test/standalone/config/initializers/backtrace_silencers.rb
667
+ - test/standalone/config/initializers/filter_parameter_logging.rb
668
+ - test/standalone/config/initializers/assets.rb
669
+ - test/standalone/config/initializers/cookies_serializer.rb
670
+ - test/standalone/config/environment.rb
663
671
  - test/standalone/config.ru
664
- - test/standalone/Gemfile
665
- - test/standalone/Gemfile.lock
666
- - test/standalone/public/404.html
667
- - test/standalone/public/422.html
668
672
  - test/standalone/public/500.html
669
673
  - test/standalone/public/favicon.ico
670
- - test/standalone/Rakefile
671
- - test/standalone/README.rdoc
672
- - test/table_test.rb
674
+ - test/standalone/public/404.html
675
+ - test/standalone/public/422.html
676
+ - test/standalone/Gemfile
673
677
  - test/tables_helper_test.rb
674
678
  - test/test_helper.rb
675
- - test/test_sql_mysql.sql
676
- - test/test_sql_postgres.sql
677
- - test/test_sql_sqlite.sql
679
+ - test/sql_query_test.rb
Binary file