activerecord-sqlserver-adapter 4.1.8 → 4.2.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +15 -0
  3. data/CHANGELOG.md +60 -0
  4. data/Gemfile +45 -0
  5. data/Guardfile +29 -0
  6. data/MIT-LICENSE +5 -5
  7. data/README.md +193 -0
  8. data/RUNNING_UNIT_TESTS.md +95 -0
  9. data/Rakefile +48 -0
  10. data/activerecord-sqlserver-adapter.gemspec +28 -0
  11. data/lib/active_record/connection_adapters/sqlserver/core_ext/active_record.rb +5 -15
  12. data/lib/active_record/connection_adapters/sqlserver/core_ext/attribute_methods.rb +25 -0
  13. data/lib/active_record/connection_adapters/sqlserver/core_ext/explain.rb +6 -4
  14. data/lib/active_record/connection_adapters/sqlserver/core_ext/odbc.rb +9 -3
  15. data/lib/active_record/connection_adapters/sqlserver/database_limits.rb +3 -1
  16. data/lib/active_record/connection_adapters/sqlserver/database_statements.rb +130 -151
  17. data/lib/active_record/connection_adapters/sqlserver/errors.rb +0 -25
  18. data/lib/active_record/connection_adapters/sqlserver/quoting.rb +39 -78
  19. data/lib/active_record/connection_adapters/sqlserver/schema_cache.rb +71 -47
  20. data/lib/active_record/connection_adapters/sqlserver/schema_creation.rb +14 -30
  21. data/lib/active_record/connection_adapters/sqlserver/schema_statements.rb +112 -108
  22. data/lib/active_record/connection_adapters/sqlserver/showplan.rb +4 -2
  23. data/lib/active_record/connection_adapters/sqlserver/showplan/printer_table.rb +1 -1
  24. data/lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb +1 -1
  25. data/lib/active_record/connection_adapters/sqlserver/table_definition.rb +52 -7
  26. data/lib/active_record/connection_adapters/sqlserver/transaction.rb +52 -0
  27. data/lib/active_record/connection_adapters/sqlserver/type.rb +46 -0
  28. data/lib/active_record/connection_adapters/sqlserver/type/big_integer.rb +15 -0
  29. data/lib/active_record/connection_adapters/sqlserver/type/binary.rb +15 -0
  30. data/lib/active_record/connection_adapters/sqlserver/type/boolean.rb +13 -0
  31. data/lib/active_record/connection_adapters/sqlserver/type/castable.rb +15 -0
  32. data/lib/active_record/connection_adapters/sqlserver/type/char.rb +15 -0
  33. data/lib/active_record/connection_adapters/sqlserver/type/core_ext/value.rb +39 -0
  34. data/lib/active_record/connection_adapters/sqlserver/type/date.rb +14 -0
  35. data/lib/active_record/connection_adapters/sqlserver/type/datetime.rb +37 -0
  36. data/lib/active_record/connection_adapters/sqlserver/type/decimal.rb +13 -0
  37. data/lib/active_record/connection_adapters/sqlserver/type/float.rb +17 -0
  38. data/lib/active_record/connection_adapters/sqlserver/type/integer.rb +13 -0
  39. data/lib/active_record/connection_adapters/sqlserver/type/money.rb +21 -0
  40. data/lib/active_record/connection_adapters/sqlserver/type/quoter.rb +32 -0
  41. data/lib/active_record/connection_adapters/sqlserver/type/real.rb +17 -0
  42. data/lib/active_record/connection_adapters/sqlserver/type/small_integer.rb +13 -0
  43. data/lib/active_record/connection_adapters/sqlserver/type/small_money.rb +21 -0
  44. data/lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb +24 -0
  45. data/lib/active_record/connection_adapters/sqlserver/type/string.rb +12 -0
  46. data/lib/active_record/connection_adapters/sqlserver/type/text.rb +15 -0
  47. data/lib/active_record/connection_adapters/sqlserver/type/time.rb +59 -0
  48. data/lib/active_record/connection_adapters/sqlserver/type/timestamp.rb +15 -0
  49. data/lib/active_record/connection_adapters/sqlserver/type/tiny_integer.rb +22 -0
  50. data/lib/active_record/connection_adapters/sqlserver/type/unicode_char.rb +15 -0
  51. data/lib/active_record/connection_adapters/sqlserver/type/unicode_string.rb +12 -0
  52. data/lib/active_record/connection_adapters/sqlserver/type/unicode_text.rb +15 -0
  53. data/lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb +20 -0
  54. data/lib/active_record/connection_adapters/sqlserver/type/unicode_varchar_max.rb +20 -0
  55. data/lib/active_record/connection_adapters/sqlserver/type/uuid.rb +23 -0
  56. data/lib/active_record/connection_adapters/sqlserver/type/varbinary.rb +20 -0
  57. data/lib/active_record/connection_adapters/sqlserver/type/varbinary_max.rb +20 -0
  58. data/lib/active_record/connection_adapters/sqlserver/type/varchar.rb +20 -0
  59. data/lib/active_record/connection_adapters/sqlserver/type/varchar_max.rb +20 -0
  60. data/lib/active_record/connection_adapters/sqlserver/utils.rb +118 -12
  61. data/lib/active_record/connection_adapters/sqlserver/version.rb +11 -0
  62. data/lib/active_record/connection_adapters/sqlserver_adapter.rb +133 -198
  63. data/lib/active_record/connection_adapters/sqlserver_column.rb +15 -86
  64. data/lib/active_record/sqlserver_base.rb +2 -0
  65. data/lib/arel/visitors/sqlserver.rb +120 -393
  66. data/lib/{arel/arel_sqlserver.rb → arel_sqlserver.rb} +1 -3
  67. data/test/cases/adapter_test_sqlserver.rb +420 -0
  68. data/test/cases/coerced_tests.rb +642 -0
  69. data/test/cases/column_test_sqlserver.rb +703 -0
  70. data/test/cases/connection_test_sqlserver.rb +216 -0
  71. data/test/cases/database_statements_test_sqlserver.rb +57 -0
  72. data/test/cases/execute_procedure_test_sqlserver.rb +38 -0
  73. data/test/cases/helper_sqlserver.rb +36 -0
  74. data/test/cases/migration_test_sqlserver.rb +66 -0
  75. data/test/cases/order_test_sqlserver.rb +147 -0
  76. data/test/cases/pessimistic_locking_test_sqlserver.rb +90 -0
  77. data/test/cases/schema_dumper_test_sqlserver.rb +175 -0
  78. data/test/cases/schema_test_sqlserver.rb +54 -0
  79. data/test/cases/scratchpad_test_sqlserver.rb +9 -0
  80. data/test/cases/showplan_test_sqlserver.rb +65 -0
  81. data/test/cases/specific_schema_test_sqlserver.rb +118 -0
  82. data/test/cases/transaction_test_sqlserver.rb +61 -0
  83. data/test/cases/utils_test_sqlserver.rb +91 -0
  84. data/test/cases/uuid_test_sqlserver.rb +41 -0
  85. data/test/config.yml +35 -0
  86. data/test/fixtures/1px.gif +0 -0
  87. data/test/migrations/transaction_table/1_table_will_never_be_created.rb +11 -0
  88. data/test/models/sqlserver/customers_view.rb +3 -0
  89. data/test/models/sqlserver/datatype.rb +3 -0
  90. data/test/models/sqlserver/datatype_migration.rb +3 -0
  91. data/test/models/sqlserver/dollar_table_name.rb +3 -0
  92. data/test/models/sqlserver/edge_schema.rb +13 -0
  93. data/test/models/sqlserver/fk_has_fk.rb +3 -0
  94. data/test/models/sqlserver/fk_has_pk.rb +3 -0
  95. data/test/models/sqlserver/natural_pk_data.rb +4 -0
  96. data/test/models/sqlserver/natural_pk_int_data.rb +3 -0
  97. data/test/models/sqlserver/no_pk_data.rb +3 -0
  98. data/test/models/sqlserver/quoted_table.rb +7 -0
  99. data/test/models/sqlserver/quoted_view_1.rb +3 -0
  100. data/test/models/sqlserver/quoted_view_2.rb +3 -0
  101. data/test/models/sqlserver/string_default.rb +3 -0
  102. data/test/models/sqlserver/string_defaults_big_view.rb +3 -0
  103. data/test/models/sqlserver/string_defaults_view.rb +3 -0
  104. data/test/models/sqlserver/tinyint_pk.rb +3 -0
  105. data/test/models/sqlserver/upper.rb +3 -0
  106. data/test/models/sqlserver/uppered.rb +3 -0
  107. data/test/models/sqlserver/uuid.rb +3 -0
  108. data/test/schema/datatypes/2012.sql +64 -0
  109. data/test/schema/sqlserver_specific_schema.rb +181 -0
  110. data/test/support/coerceable_test_sqlserver.rb +45 -0
  111. data/test/support/load_schema_sqlserver.rb +29 -0
  112. data/test/support/minitest_sqlserver.rb +1 -0
  113. data/test/support/paths_sqlserver.rb +48 -0
  114. data/test/support/rake_helpers.rb +41 -0
  115. data/test/support/sql_counter_sqlserver.rb +32 -0
  116. metadata +271 -21
  117. data/CHANGELOG +0 -39
  118. data/VERSION +0 -1
  119. data/lib/active_record/connection_adapters/sqlserver/core_ext/relation.rb +0 -17
  120. data/lib/active_record/sqlserver_test_case.rb +0 -17
  121. data/lib/arel/nodes_sqlserver.rb +0 -14
  122. data/lib/arel/select_manager_sqlserver.rb +0 -62
@@ -0,0 +1,45 @@
1
+ module ARTest
2
+ module SQLServer
3
+ module CoerceableTest
4
+
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ cattr_accessor :coerced_tests, instance_accessor: false
9
+ self.coerced_tests = []
10
+ end
11
+
12
+ module ClassMethods
13
+
14
+ def coerce_tests!(*methods)
15
+ methods.each do |method|
16
+ self.coerced_tests.push(method)
17
+ coerced_test_warning(method)
18
+ end
19
+ end
20
+
21
+ def coerce_all_tests!
22
+ once = false
23
+ instance_methods(false).each do |method|
24
+ next unless method.to_s =~ /\Atest/
25
+ undef_method(method)
26
+ once = true
27
+ end
28
+ STDOUT.puts "Info: Undefined all tests: #{self.name}"
29
+ end
30
+
31
+ private
32
+
33
+ def coerced_test_warning(method)
34
+ method = instance_methods(false).select { |m| m =~ method } if method.is_a?(Regexp)
35
+ Array(method).each do |m|
36
+ result = undef_method(m) if m && method_defined?(m)
37
+ STDOUT.puts "Info: Undefined coerced test: #{self.name}##{m}" unless result.blank?
38
+ end
39
+ end
40
+
41
+ end
42
+
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,29 @@
1
+ module ARTest
2
+ module SQLServer
3
+
4
+ extend self
5
+
6
+ def schema_root
7
+ File.join ARTest::SQLServer.test_root_sqlserver, 'schema'
8
+ end
9
+
10
+ def schema_file
11
+ File.join schema_root, 'sqlserver_specific_schema.rb'
12
+ end
13
+
14
+ def schema_datatypes_2012_file
15
+ File.join schema_root, 'datatypes', '2012.sql'
16
+ end
17
+
18
+ def load_schema
19
+ original_stdout = $stdout
20
+ $stdout = StringIO.new
21
+ load schema_file
22
+ ensure
23
+ $stdout = original_stdout
24
+ end
25
+
26
+ end
27
+ end
28
+
29
+ ARTest::SQLServer.load_schema
@@ -0,0 +1 @@
1
+ require 'minitest-spec-rails/init/active_support'
@@ -0,0 +1,48 @@
1
+ module ARTest
2
+ module SQLServer
3
+
4
+ extend self
5
+
6
+ def root_sqlserver
7
+ File.expand_path File.join(File.dirname(__FILE__), '..', '..')
8
+ end
9
+
10
+ def test_root_sqlserver
11
+ File.join root_sqlserver, 'test'
12
+ end
13
+
14
+ def root_activerecord
15
+ Gem.loaded_specs['activerecord'].full_gem_path
16
+ end
17
+
18
+ def test_root_activerecord
19
+ File.join root_activerecord, 'test'
20
+ end
21
+
22
+ def test_load_paths
23
+ ar_lib = File.join root_activerecord, 'lib'
24
+ ar_test = File.join root_activerecord, 'test'
25
+ ['lib', 'test', ar_lib, ar_test]
26
+ end
27
+
28
+ def add_to_load_paths!
29
+ test_load_paths.each { |p| $LOAD_PATH.unshift(p) unless $LOAD_PATH.include?(p) }
30
+ end
31
+
32
+ def migrations_root
33
+ File.join test_root_sqlserver, 'migrations'
34
+ end
35
+
36
+ def arconfig_file
37
+ File.join test_root_sqlserver, 'config.yml'
38
+ end
39
+
40
+ def arconfig_file_env!
41
+ ENV['ARCONFIG'] = arconfig_file
42
+ end
43
+
44
+ end
45
+ end
46
+
47
+ ARTest::SQLServer.add_to_load_paths!
48
+ ARTest::SQLServer.arconfig_file_env!
@@ -0,0 +1,41 @@
1
+
2
+ SQLSERVER_HELPER = 'test/cases/helper_sqlserver.rb'
3
+ SQLSERVER_COERCED = 'test/cases/coerced_tests.rb'
4
+
5
+ def env_ar_test_files
6
+ return unless ENV['TEST_FILES_AR'] && !ENV['TEST_FILES_AR'].empty?
7
+ @env_ar_test_files ||= begin
8
+ ENV['TEST_FILES_AR'].split(',').map { |file|
9
+ File.join ARTest::SQLServer.root_activerecord, file.strip
10
+ }.sort
11
+ end
12
+ end
13
+
14
+ def env_test_files
15
+ return unless ENV['TEST_FILES'] && !ENV['TEST_FILES'].empty?
16
+ @env_test_files ||= ENV['TEST_FILES'].split(',').map(&:strip)
17
+ end
18
+
19
+ def sqlserver_cases
20
+ @sqlserver_cases ||= Dir.glob('test/cases/*_test_sqlserver.rb')
21
+ end
22
+
23
+ def ar_cases
24
+ @ar_cases ||= begin
25
+ Dir.glob("#{ARTest::SQLServer.root_activerecord}/test/cases/**/*_test.rb").reject{ |x| x =~ /\/adapters\// }.sort
26
+ end
27
+ end
28
+
29
+ def test_files
30
+ if env_ar_test_files
31
+ [SQLSERVER_HELPER] + env_ar_test_files
32
+ elsif env_test_files
33
+ env_test_files
34
+ elsif ENV['ONLY_SQLSERVER']
35
+ sqlserver_cases
36
+ elsif ENV['ONLY_ACTIVERECORD']
37
+ [SQLSERVER_HELPER] + (ar_cases + [SQLSERVER_COERCED])
38
+ else
39
+ [SQLSERVER_HELPER] + (ar_cases + [SQLSERVER_COERCED] + sqlserver_cases)
40
+ end
41
+ end
@@ -0,0 +1,32 @@
1
+ module ARTest
2
+ module SQLServer
3
+
4
+ extend self
5
+
6
+ attr_accessor :sql_counter_listenter
7
+
8
+ def ignored_sql
9
+ [ /SELECT SCOPE_IDENTITY/,
10
+ /INFORMATION_SCHEMA\.(TABLES|VIEWS|COLUMNS)/,
11
+ /SELECT @@version/,
12
+ /SELECT @@TRANCOUNT/,
13
+ /(BEGIN|COMMIT|ROLLBACK|SAVE) TRANSACTION/,
14
+ /SELECT CAST\(.* AS .*\) AS value/ ]
15
+ end
16
+
17
+ def sql_counter_listenters
18
+ ActiveSupport::Notifications.notifier.listeners_for('sql.active_record').select do |listener|
19
+ listener.inspect =~ /ActiveRecord::SQLCounter/
20
+ end
21
+ end
22
+
23
+ def sql_counter_listenters_unsubscribe
24
+ sql_counter_listenters.each { |listener| ActiveSupport::Notifications.unsubscribe(listener) }
25
+ end
26
+
27
+ end
28
+ end
29
+
30
+ ActiveRecord::SQLCounter.ignored_sql.concat ARTest::SQLServer.ignored_sql
31
+ ARTest::SQLServer.sql_counter_listenters_unsubscribe
32
+ ARTest::SQLServer.sql_counter_listenter = ActiveSupport::Notifications.subscribe 'sql.active_record', ActiveRecord::SQLCounter.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sqlserver-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.8
4
+ version: 4.2.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-10-21 00:00:00.000000000 Z
17
+ date: 2015-01-26 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: activerecord
@@ -22,42 +22,162 @@ dependencies:
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 4.1.0
25
+ version: 4.2.0
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 4.1.0
32
+ version: 4.2.0
33
33
  - !ruby/object:Gem::Dependency
34
- name: arel
34
+ name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
- type: :runtime
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: guard-minitest
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: minitest
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "<"
66
+ - !ruby/object:Gem::Version
67
+ version: 5.3.4
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: 5.3.4
75
+ - !ruby/object:Gem::Dependency
76
+ name: minitest-focus
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: minitest-spec-rails
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
41
97
  prerelease: false
42
98
  version_requirements: !ruby/object:Gem::Requirement
43
99
  requirements:
44
100
  - - ">="
45
101
  - !ruby/object:Gem::Version
46
102
  version: '0'
47
- description: ActiveRecord SQL Server Adapter. For SQL Server 2005 And Higher.
48
- email: ken@metaskills.net
103
+ - !ruby/object:Gem::Dependency
104
+ name: mocha
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: nokogiri
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: pry
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: rake
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ description: ActiveRecord SQL Server Adapter.
160
+ email:
161
+ - ken@metaskills.net
162
+ - will@wbond.net
49
163
  executables: []
50
164
  extensions: []
51
165
  extra_rdoc_files: []
52
166
  files:
53
- - CHANGELOG
167
+ - ".gitignore"
168
+ - CHANGELOG.md
169
+ - Gemfile
170
+ - Guardfile
54
171
  - MIT-LICENSE
55
- - VERSION
172
+ - README.md
173
+ - RUNNING_UNIT_TESTS.md
174
+ - Rakefile
175
+ - activerecord-sqlserver-adapter.gemspec
56
176
  - lib/active_record/connection_adapters/sqlserver/core_ext/active_record.rb
177
+ - lib/active_record/connection_adapters/sqlserver/core_ext/attribute_methods.rb
57
178
  - lib/active_record/connection_adapters/sqlserver/core_ext/explain.rb
58
179
  - lib/active_record/connection_adapters/sqlserver/core_ext/explain_subscriber.rb
59
180
  - lib/active_record/connection_adapters/sqlserver/core_ext/odbc.rb
60
- - lib/active_record/connection_adapters/sqlserver/core_ext/relation.rb
61
181
  - lib/active_record/connection_adapters/sqlserver/database_limits.rb
62
182
  - lib/active_record/connection_adapters/sqlserver/database_statements.rb
63
183
  - lib/active_record/connection_adapters/sqlserver/errors.rb
@@ -69,16 +189,97 @@ files:
69
189
  - lib/active_record/connection_adapters/sqlserver/showplan/printer_table.rb
70
190
  - lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
71
191
  - lib/active_record/connection_adapters/sqlserver/table_definition.rb
192
+ - lib/active_record/connection_adapters/sqlserver/transaction.rb
193
+ - lib/active_record/connection_adapters/sqlserver/type.rb
194
+ - lib/active_record/connection_adapters/sqlserver/type/big_integer.rb
195
+ - lib/active_record/connection_adapters/sqlserver/type/binary.rb
196
+ - lib/active_record/connection_adapters/sqlserver/type/boolean.rb
197
+ - lib/active_record/connection_adapters/sqlserver/type/castable.rb
198
+ - lib/active_record/connection_adapters/sqlserver/type/char.rb
199
+ - lib/active_record/connection_adapters/sqlserver/type/core_ext/value.rb
200
+ - lib/active_record/connection_adapters/sqlserver/type/date.rb
201
+ - lib/active_record/connection_adapters/sqlserver/type/datetime.rb
202
+ - lib/active_record/connection_adapters/sqlserver/type/decimal.rb
203
+ - lib/active_record/connection_adapters/sqlserver/type/float.rb
204
+ - lib/active_record/connection_adapters/sqlserver/type/integer.rb
205
+ - lib/active_record/connection_adapters/sqlserver/type/money.rb
206
+ - lib/active_record/connection_adapters/sqlserver/type/quoter.rb
207
+ - lib/active_record/connection_adapters/sqlserver/type/real.rb
208
+ - lib/active_record/connection_adapters/sqlserver/type/small_integer.rb
209
+ - lib/active_record/connection_adapters/sqlserver/type/small_money.rb
210
+ - lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
211
+ - lib/active_record/connection_adapters/sqlserver/type/string.rb
212
+ - lib/active_record/connection_adapters/sqlserver/type/text.rb
213
+ - lib/active_record/connection_adapters/sqlserver/type/time.rb
214
+ - lib/active_record/connection_adapters/sqlserver/type/timestamp.rb
215
+ - lib/active_record/connection_adapters/sqlserver/type/tiny_integer.rb
216
+ - lib/active_record/connection_adapters/sqlserver/type/unicode_char.rb
217
+ - lib/active_record/connection_adapters/sqlserver/type/unicode_string.rb
218
+ - lib/active_record/connection_adapters/sqlserver/type/unicode_text.rb
219
+ - lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb
220
+ - lib/active_record/connection_adapters/sqlserver/type/unicode_varchar_max.rb
221
+ - lib/active_record/connection_adapters/sqlserver/type/uuid.rb
222
+ - lib/active_record/connection_adapters/sqlserver/type/varbinary.rb
223
+ - lib/active_record/connection_adapters/sqlserver/type/varbinary_max.rb
224
+ - lib/active_record/connection_adapters/sqlserver/type/varchar.rb
225
+ - lib/active_record/connection_adapters/sqlserver/type/varchar_max.rb
72
226
  - lib/active_record/connection_adapters/sqlserver/utils.rb
227
+ - lib/active_record/connection_adapters/sqlserver/version.rb
73
228
  - lib/active_record/connection_adapters/sqlserver_adapter.rb
74
229
  - lib/active_record/connection_adapters/sqlserver_column.rb
75
230
  - lib/active_record/sqlserver_base.rb
76
- - lib/active_record/sqlserver_test_case.rb
77
231
  - lib/activerecord-sqlserver-adapter.rb
78
- - lib/arel/arel_sqlserver.rb
79
- - lib/arel/nodes_sqlserver.rb
80
- - lib/arel/select_manager_sqlserver.rb
81
232
  - lib/arel/visitors/sqlserver.rb
233
+ - lib/arel_sqlserver.rb
234
+ - test/cases/adapter_test_sqlserver.rb
235
+ - test/cases/coerced_tests.rb
236
+ - test/cases/column_test_sqlserver.rb
237
+ - test/cases/connection_test_sqlserver.rb
238
+ - test/cases/database_statements_test_sqlserver.rb
239
+ - test/cases/execute_procedure_test_sqlserver.rb
240
+ - test/cases/helper_sqlserver.rb
241
+ - test/cases/migration_test_sqlserver.rb
242
+ - test/cases/order_test_sqlserver.rb
243
+ - test/cases/pessimistic_locking_test_sqlserver.rb
244
+ - test/cases/schema_dumper_test_sqlserver.rb
245
+ - test/cases/schema_test_sqlserver.rb
246
+ - test/cases/scratchpad_test_sqlserver.rb
247
+ - test/cases/showplan_test_sqlserver.rb
248
+ - test/cases/specific_schema_test_sqlserver.rb
249
+ - test/cases/transaction_test_sqlserver.rb
250
+ - test/cases/utils_test_sqlserver.rb
251
+ - test/cases/uuid_test_sqlserver.rb
252
+ - test/config.yml
253
+ - test/fixtures/1px.gif
254
+ - test/migrations/transaction_table/1_table_will_never_be_created.rb
255
+ - test/models/sqlserver/customers_view.rb
256
+ - test/models/sqlserver/datatype.rb
257
+ - test/models/sqlserver/datatype_migration.rb
258
+ - test/models/sqlserver/dollar_table_name.rb
259
+ - test/models/sqlserver/edge_schema.rb
260
+ - test/models/sqlserver/fk_has_fk.rb
261
+ - test/models/sqlserver/fk_has_pk.rb
262
+ - test/models/sqlserver/natural_pk_data.rb
263
+ - test/models/sqlserver/natural_pk_int_data.rb
264
+ - test/models/sqlserver/no_pk_data.rb
265
+ - test/models/sqlserver/quoted_table.rb
266
+ - test/models/sqlserver/quoted_view_1.rb
267
+ - test/models/sqlserver/quoted_view_2.rb
268
+ - test/models/sqlserver/string_default.rb
269
+ - test/models/sqlserver/string_defaults_big_view.rb
270
+ - test/models/sqlserver/string_defaults_view.rb
271
+ - test/models/sqlserver/tinyint_pk.rb
272
+ - test/models/sqlserver/upper.rb
273
+ - test/models/sqlserver/uppered.rb
274
+ - test/models/sqlserver/uuid.rb
275
+ - test/schema/datatypes/2012.sql
276
+ - test/schema/sqlserver_specific_schema.rb
277
+ - test/support/coerceable_test_sqlserver.rb
278
+ - test/support/load_schema_sqlserver.rb
279
+ - test/support/minitest_sqlserver.rb
280
+ - test/support/paths_sqlserver.rb
281
+ - test/support/rake_helpers.rb
282
+ - test/support/sql_counter_sqlserver.rb
82
283
  homepage: http://github.com/rails-sqlserver/activerecord-sqlserver-adapter
83
284
  licenses: []
84
285
  metadata: {}
@@ -93,13 +294,62 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
294
  version: '0'
94
295
  required_rubygems_version: !ruby/object:Gem::Requirement
95
296
  requirements:
96
- - - ">="
297
+ - - ">"
97
298
  - !ruby/object:Gem::Version
98
- version: '0'
299
+ version: 1.3.1
99
300
  requirements: []
100
- rubyforge_project: activerecord-sqlserver-adapter
101
- rubygems_version: 2.6.8
301
+ rubyforge_project:
302
+ rubygems_version: 2.4.2
102
303
  signing_key:
103
304
  specification_version: 4
104
- summary: ActiveRecord SQL Server Adapter. For SQL Server 2005 And Higher.
105
- test_files: []
305
+ summary: ActiveRecord SQL Server Adapter.
306
+ test_files:
307
+ - test/cases/adapter_test_sqlserver.rb
308
+ - test/cases/coerced_tests.rb
309
+ - test/cases/column_test_sqlserver.rb
310
+ - test/cases/connection_test_sqlserver.rb
311
+ - test/cases/database_statements_test_sqlserver.rb
312
+ - test/cases/execute_procedure_test_sqlserver.rb
313
+ - test/cases/helper_sqlserver.rb
314
+ - test/cases/migration_test_sqlserver.rb
315
+ - test/cases/order_test_sqlserver.rb
316
+ - test/cases/pessimistic_locking_test_sqlserver.rb
317
+ - test/cases/schema_dumper_test_sqlserver.rb
318
+ - test/cases/schema_test_sqlserver.rb
319
+ - test/cases/scratchpad_test_sqlserver.rb
320
+ - test/cases/showplan_test_sqlserver.rb
321
+ - test/cases/specific_schema_test_sqlserver.rb
322
+ - test/cases/transaction_test_sqlserver.rb
323
+ - test/cases/utils_test_sqlserver.rb
324
+ - test/cases/uuid_test_sqlserver.rb
325
+ - test/config.yml
326
+ - test/fixtures/1px.gif
327
+ - test/migrations/transaction_table/1_table_will_never_be_created.rb
328
+ - test/models/sqlserver/customers_view.rb
329
+ - test/models/sqlserver/datatype.rb
330
+ - test/models/sqlserver/datatype_migration.rb
331
+ - test/models/sqlserver/dollar_table_name.rb
332
+ - test/models/sqlserver/edge_schema.rb
333
+ - test/models/sqlserver/fk_has_fk.rb
334
+ - test/models/sqlserver/fk_has_pk.rb
335
+ - test/models/sqlserver/natural_pk_data.rb
336
+ - test/models/sqlserver/natural_pk_int_data.rb
337
+ - test/models/sqlserver/no_pk_data.rb
338
+ - test/models/sqlserver/quoted_table.rb
339
+ - test/models/sqlserver/quoted_view_1.rb
340
+ - test/models/sqlserver/quoted_view_2.rb
341
+ - test/models/sqlserver/string_default.rb
342
+ - test/models/sqlserver/string_defaults_big_view.rb
343
+ - test/models/sqlserver/string_defaults_view.rb
344
+ - test/models/sqlserver/tinyint_pk.rb
345
+ - test/models/sqlserver/upper.rb
346
+ - test/models/sqlserver/uppered.rb
347
+ - test/models/sqlserver/uuid.rb
348
+ - test/schema/datatypes/2012.sql
349
+ - test/schema/sqlserver_specific_schema.rb
350
+ - test/support/coerceable_test_sqlserver.rb
351
+ - test/support/load_schema_sqlserver.rb
352
+ - test/support/minitest_sqlserver.rb
353
+ - test/support/paths_sqlserver.rb
354
+ - test/support/rake_helpers.rb
355
+ - test/support/sql_counter_sqlserver.rb