activerecord-jdbc-adapter 5.0.pre1 → 51.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -2
  3. data/.travis.yml +15 -416
  4. data/Gemfile +35 -37
  5. data/README.md +23 -118
  6. data/RUNNING_TESTS.md +31 -26
  7. data/Rakefile +2 -3
  8. data/activerecord-jdbc-adapter.gemspec +1 -2
  9. data/lib/arjdbc/abstract/connection_management.rb +21 -0
  10. data/lib/arjdbc/abstract/core.rb +62 -0
  11. data/lib/arjdbc/abstract/database_statements.rb +46 -0
  12. data/lib/arjdbc/abstract/statement_cache.rb +58 -0
  13. data/lib/arjdbc/abstract/transaction_support.rb +86 -0
  14. data/lib/arjdbc/derby/adapter.rb +6 -1
  15. data/lib/arjdbc/discover.rb +0 -7
  16. data/lib/arjdbc/firebird/adapter.rb +2 -2
  17. data/lib/arjdbc/jdbc/adapter.rb +10 -252
  18. data/lib/arjdbc/jdbc/adapter_java.jar +0 -0
  19. data/lib/arjdbc/jdbc/connection.rb +6 -0
  20. data/lib/arjdbc/jdbc.rb +2 -2
  21. data/lib/arjdbc/mysql/adapter.rb +87 -944
  22. data/lib/arjdbc/mysql/connection_methods.rb +4 -2
  23. data/lib/arjdbc/postgresql/adapter.rb +288 -1023
  24. data/lib/arjdbc/postgresql/base/array_decoder.rb +26 -0
  25. data/lib/arjdbc/postgresql/base/array_encoder.rb +25 -0
  26. data/lib/arjdbc/postgresql/base/pgconn.rb +8 -5
  27. data/lib/arjdbc/postgresql/column.rb +10 -599
  28. data/lib/arjdbc/postgresql/connection_methods.rb +9 -0
  29. data/lib/arjdbc/postgresql/name.rb +24 -0
  30. data/lib/arjdbc/postgresql/oid_types.rb +25 -110
  31. data/lib/arjdbc/sqlite3/adapter.rb +171 -170
  32. data/lib/arjdbc/tasks/database_tasks.rb +1 -3
  33. data/lib/arjdbc/tasks/db2_database_tasks.rb +2 -2
  34. data/lib/arjdbc/version.rb +1 -1
  35. data/pom.xml +3 -3
  36. data/rakelib/02-test.rake +0 -12
  37. data/rakelib/compile.rake +1 -1
  38. data/rakelib/db.rake +7 -5
  39. data/rakelib/rails.rake +63 -64
  40. data/src/java/arjdbc/firebird/FirebirdRubyJdbcConnection.java +1 -17
  41. data/src/java/arjdbc/jdbc/RubyJdbcConnection.java +518 -1260
  42. data/src/java/arjdbc/mysql/MySQLModule.java +3 -3
  43. data/src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java +53 -134
  44. data/src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java +214 -240
  45. data/src/java/arjdbc/sqlite3/SQLite3Module.java +0 -20
  46. data/src/java/arjdbc/sqlite3/SQLite3RubyJdbcConnection.java +85 -10
  47. metadata +20 -34
  48. data/Appraisals +0 -41
  49. data/lib/active_record/connection_adapters/oracle_adapter.rb +0 -1
  50. data/lib/arjdbc/common_jdbc_methods.rb +0 -89
  51. data/lib/arjdbc/mysql/bulk_change_table.rb +0 -150
  52. data/lib/arjdbc/mysql/column.rb +0 -162
  53. data/lib/arjdbc/mysql/explain_support.rb +0 -82
  54. data/lib/arjdbc/mysql/schema_creation.rb +0 -58
  55. data/lib/arjdbc/oracle/adapter.rb +0 -952
  56. data/lib/arjdbc/oracle/column.rb +0 -126
  57. data/lib/arjdbc/oracle/connection_methods.rb +0 -21
  58. data/lib/arjdbc/oracle.rb +0 -4
  59. data/lib/arjdbc/postgresql/_bc_time_cast_patch.rb +0 -21
  60. data/lib/arjdbc/postgresql/base/oid.rb +0 -412
  61. data/lib/arjdbc/postgresql/base/schema_definitions.rb +0 -131
  62. data/lib/arjdbc/postgresql/explain_support.rb +0 -53
  63. data/lib/arjdbc/postgresql/oid/bytea.rb +0 -2
  64. data/lib/arjdbc/postgresql/schema_creation.rb +0 -60
  65. data/lib/arjdbc/tasks/oracle/enhanced_structure_dump.rb +0 -297
  66. data/lib/arjdbc/tasks/oracle_database_tasks.rb +0 -65
  67. data/src/java/arjdbc/oracle/OracleModule.java +0 -75
  68. data/src/java/arjdbc/oracle/OracleRubyJdbcConnection.java +0 -465
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 16bdeec72b7b2db4b9593138ae56a56cb52fd7d7
4
- data.tar.gz: d3a6f0d4a0593326b598f9fda7ac77f0bb9266a2
2
+ SHA256:
3
+ metadata.gz: 97510cc5f1baed3cc0de5c78ab81ea255302d62a2513bcc0a10929840730c771
4
+ data.tar.gz: 4f56df620812db32ed4129d66dd37f15454c64b7c8eadaf7ca798f289d4b23b6
5
5
  SHA512:
6
- metadata.gz: 4e9df27017621984d70cc5a824a2d82775b8a6cd21b7307769557f7e154c1e1b95bead7c411aed5e16d9af85ab26a8ddba8cf58edce863ed5c0f1491b587101e
7
- data.tar.gz: 6b5449e2e4e0f126046a68811acb030a0032b3f7b1f91e5a2a7a7a96fb83cd1d01f1c686e1266311a60a629ad9634bcf70ce63ea30776709b1f2cb59b011e047
6
+ metadata.gz: 30e59e64b906d6442dcf91f5407fe2d5480b25ca14a76ab223752045c73b41734048be14e640e5980e5717b04b4be613a0b431329e5ed89d4a889fff4cb022b2
7
+ data.tar.gz: c88733fe5bdf5b6ba9e87a9fe468538c19ed8de22ad7e1de907600ade09be106a9e171ef6653442e62fd37d83130a8d48cb1e926e6f48095eb2bd86457515d4f
data/.gitignore CHANGED
@@ -24,10 +24,9 @@ test*.db
24
24
  *test_*.out
25
25
  test/jars/*.jar
26
26
  jndi_test/jdbc/.bindings
27
- .disable-appraisal-hint
28
27
  .yardoc
29
28
  .bundle/config
30
- gemfiles/.bundle/config
31
29
  Gemfile.lock
32
30
  .idea
33
31
  .settings
32
+ activerecord-jdbc.iml
data/.travis.yml CHANGED
@@ -1,438 +1,37 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  bundler_args: --without development
4
- script: bundle exec rake test_$DB
4
+ script:
5
+ - bundle exec rake test_$DB
5
6
  before_script:
6
7
  - export JRUBY_OPTS="--server $JRUBY_OPTS" # -Xcompile.invokedynamic=false
7
8
  - mysql --version # to see if we're using MySQL or MariaDB
8
- before_install:
9
- - ((jruby -v | grep 1.8.7) && jruby --1.9 -S gem update --system 2.1.11) || true
10
9
  rvm:
11
- - jruby-1.7.24
10
+ - jruby-9.1.14.0
12
11
  jdk:
13
- - openjdk7
14
- gemfile:
15
- - gemfiles/rails23.gemfile
16
- - gemfiles/rails30.gemfile
17
- - gemfiles/rails31.gemfile
18
- - gemfiles/rails32.gemfile
19
- - gemfiles/rails40.gemfile
20
- - gemfiles/rails41.gemfile
21
- - gemfiles/rails42.gemfile
12
+ - openjdk8
22
13
  env:
23
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
24
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=mysql PREPARED_STATEMENTS=false
25
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=mysql PREPARED_STATEMENTS=true
26
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
27
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=false INSERT_RETURNING=true
28
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=true
29
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=true INSERT_RETURNING=true
30
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
31
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=sqlite3
32
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
33
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=derby PREPARED_STATEMENTS=true
34
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
35
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=h2 PREPARED_STATEMENTS=true
36
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
37
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=hsqldb PREPARED_STATEMENTS=true
38
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
39
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=jndi PREPARED_STATEMENTS=true
40
- - JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
41
- - JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=jdbc PREPARED_STATEMENTS=true
14
+ - DB=mysql PREPARED_STATEMENTS=false
15
+ - DB=mysql PREPARED_STATEMENTS=true
16
+ - DB=postgresql PREPARED_STATEMENTS=false INSERT_RETURNING=false
17
+ - DB=postgresql PREPARED_STATEMENTS=false INSERT_RETURNING=true
18
+ - DB=postgresql PREPARED_STATEMENTS=true
19
+ - DB=postgresql PREPARED_STATEMENTS=true INSERT_RETURNING=true
20
+ - DB=sqlite3 PREPARED_STATEMENTS=false
21
+ - DB=sqlite3 PREPARED_STATEMENTS=true
22
+ #- DB=jndi PREPARED_STATEMENTS=false
23
+ #- DB=jndi PREPARED_STATEMENTS=true
42
24
  branches:
43
25
  only:
44
26
  - master
45
27
  - /.*-stable$/
46
28
  - /^test-.*/
47
29
  matrix:
48
- allow_failures:
49
- # yet another BC timestamp issue: <Wed, 31 Dec -0001 22:58:59 +0000> expected but was <Fri, 02 Jan 0000 22:58:59 +0000>
50
- - rvm: jruby-9.0.5.0
51
- gemfile: gemfiles/rails41.gemfile
52
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=postgresql
53
- jdk: oraclejdk7
54
- # ``/system call symlink regression (since JRuby 1.7.19)
55
- # + (postgres) database_tasks got updated on 4.2 : https://github.com/rails/rails/commit/07f8a96aa14b642a86
56
- - rvm: jruby-1.7.24
57
- gemfile: gemfiles/rails42.gemfile
58
- env: JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=false INSERT_RETURNING=true
59
- - rvm: jruby-1.7.24
60
- gemfile: gemfiles/rails42.gemfile
61
- env: JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=true
62
- - rvm: jruby-1.7.24
63
- gemfile: gemfiles/rails42.gemfile
64
- env: JRUBY_OPTS="--1.9 $JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=true INSERT_RETURNING=true
65
- - rvm: jruby-1.7.24
66
- gemfile: gemfiles/rails42.gemfile
67
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=postgresql
68
30
  include:
69
31
  # testing against MariaDB
70
- - addons:
71
- mariadb: '5.5'
72
- rvm: jruby-1.7.24
73
- gemfile: gemfiles/rails32.gemfile
74
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=mysql
75
- jdk: openjdk6
76
32
  - addons:
77
33
  mariadb: '10.0'
78
- rvm: jruby-1.7.24
79
- gemfile: gemfiles/rails40.gemfile
80
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=mariadb
81
- jdk: openjdk7
34
+ env: JRUBY_OPTS="$JRUBY_OPTS" DB=mariadb PREPARED_STATEMENTS=false
82
35
  - addons:
83
36
  mariadb: '10.0'
84
- rvm: jruby-1.7.24
85
- gemfile: gemfiles/rails41.gemfile
86
37
  env: JRUBY_OPTS="$JRUBY_OPTS" DB=mariadb PREPARED_STATEMENTS=true
87
- jdk: oraclejdk8
88
- # include some tests on JDK 6 :
89
- - rvm: jruby-1.7.24
90
- gemfile: gemfiles/rails42.gemfile
91
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=mysql
92
- jdk: openjdk6
93
- - rvm: jruby-1.7.24
94
- gemfile: gemfiles/rails42.gemfile
95
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=postgresql
96
- jdk: openjdk6
97
- - rvm: jruby-1.7.24
98
- gemfile: gemfiles/rails42.gemfile
99
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=sqlite3
100
- jdk: openjdk6
101
- - rvm: jruby-1.7.24
102
- gemfile: gemfiles/rails42.gemfile
103
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=derby
104
- jdk: openjdk6
105
- - rvm: jruby-1.7.24
106
- gemfile: gemfiles/rails42.gemfile
107
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=h2
108
- jdk: openjdk6
109
- - rvm: jruby-1.7.24
110
- gemfile: gemfiles/rails42.gemfile
111
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=hsqldb
112
- jdk: openjdk6
113
- # include testing with JRuby 9K (4.2) :
114
- - rvm: jruby-9.0.5.0
115
- gemfile: gemfiles/rails42.gemfile
116
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=mysql PREPARED_STATEMENTS=true
117
- jdk: oraclejdk7
118
- - rvm: jruby-9.0.5.0
119
- gemfile: gemfiles/rails42.gemfile
120
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=true
121
- jdk: oraclejdk7
122
- - rvm: jruby-9.0.5.0
123
- gemfile: gemfiles/rails42.gemfile
124
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=sqlite3
125
- jdk: oraclejdk7
126
- - rvm: jruby-9.0.5.0
127
- gemfile: gemfiles/rails42.gemfile
128
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=mysql
129
- jdk: oraclejdk8
130
- - rvm: jruby-9.0.5.0
131
- gemfile: gemfiles/rails42.gemfile
132
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=postgresql
133
- jdk: oraclejdk8
134
- - rvm: jruby-9.0.5.0
135
- gemfile: gemfiles/rails42.gemfile
136
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=sqlite3
137
- jdk: oraclejdk8
138
- - rvm: jruby-9.0.5.0
139
- gemfile: gemfiles/rails42.gemfile
140
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=derby
141
- jdk: oraclejdk8
142
- - rvm: jruby-9.0.5.0
143
- gemfile: gemfiles/rails42.gemfile
144
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=h2
145
- jdk: oraclejdk8
146
- - rvm: jruby-9.0.5.0
147
- gemfile: gemfiles/rails42.gemfile
148
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=hsqldb
149
- jdk: oraclejdk8
150
- # include testing with JRuby 9K (4.1) :
151
- - rvm: jruby-9.0.5.0
152
- gemfile: gemfiles/rails41.gemfile
153
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=mysql PREPARED_STATEMENTS=true
154
- jdk: oraclejdk8
155
- - rvm: jruby-9.0.5.0
156
- gemfile: gemfiles/rails41.gemfile
157
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=postgresql PREPARED_STATEMENTS=true
158
- jdk: oraclejdk8
159
- - rvm: jruby-9.0.5.0
160
- gemfile: gemfiles/rails41.gemfile
161
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=sqlite3
162
- jdk: oraclejdk8
163
- - rvm: jruby-9.0.5.0
164
- gemfile: gemfiles/rails41.gemfile
165
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=mysql
166
- jdk: oraclejdk7
167
- - rvm: jruby-9.0.5.0
168
- gemfile: gemfiles/rails41.gemfile
169
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=postgresql
170
- jdk: oraclejdk7
171
- - rvm: jruby-9.0.5.0
172
- gemfile: gemfiles/rails41.gemfile
173
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=sqlite3
174
- jdk: oraclejdk8
175
- - rvm: jruby-9.0.5.0
176
- gemfile: gemfiles/rails41.gemfile
177
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=derby
178
- jdk: oraclejdk7
179
- - rvm: jruby-9.0.5.0
180
- gemfile: gemfiles/rails41.gemfile
181
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=h2
182
- jdk: oraclejdk7
183
- - rvm: jruby-9.0.5.0
184
- gemfile: gemfiles/rails41.gemfile
185
- env: JRUBY_OPTS="$JRUBY_OPTS" DB=hsqldb
186
- jdk: oraclejdk8
187
- exclude:
188
- # Rails 4 prefers Ruby 2.0 (or at least >= 1.9.3) :
189
- - rvm: jruby-1.7.24
190
- gemfile: gemfiles/rails40.gemfile
191
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
192
- - rvm: jruby-1.7.24
193
- gemfile: gemfiles/rails40.gemfile
194
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
195
- - rvm: jruby-1.7.24
196
- gemfile: gemfiles/rails40.gemfile
197
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
198
- - rvm: jruby-1.7.24
199
- gemfile: gemfiles/rails40.gemfile
200
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
201
- - rvm: jruby-1.7.24
202
- gemfile: gemfiles/rails40.gemfile
203
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
204
- - rvm: jruby-1.7.24
205
- gemfile: gemfiles/rails40.gemfile
206
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
207
- - rvm: jruby-1.7.24
208
- gemfile: gemfiles/rails40.gemfile
209
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
210
- - rvm: jruby-1.7.24
211
- gemfile: gemfiles/rails40.gemfile
212
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
213
- # Rails 4.1 does not support Ruby 1.8 :
214
- - rvm: jruby-1.7.24
215
- gemfile: gemfiles/rails41.gemfile
216
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
217
- - rvm: jruby-1.7.24
218
- gemfile: gemfiles/rails41.gemfile
219
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
220
- - rvm: jruby-1.7.24
221
- gemfile: gemfiles/rails41.gemfile
222
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
223
- - rvm: jruby-1.7.24
224
- gemfile: gemfiles/rails41.gemfile
225
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
226
- - rvm: jruby-1.7.24
227
- gemfile: gemfiles/rails41.gemfile
228
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
229
- - rvm: jruby-1.7.24
230
- gemfile: gemfiles/rails41.gemfile
231
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
232
- - rvm: jruby-1.7.24
233
- gemfile: gemfiles/rails41.gemfile
234
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
235
- - rvm: jruby-1.7.24
236
- gemfile: gemfiles/rails41.gemfile
237
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
238
- # Rails 4.2 will not support Ruby 1.8 :
239
- - rvm: jruby-1.7.24
240
- gemfile: gemfiles/rails42.gemfile
241
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
242
- - rvm: jruby-1.7.24
243
- gemfile: gemfiles/rails42.gemfile
244
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
245
- - rvm: jruby-1.7.24
246
- gemfile: gemfiles/rails42.gemfile
247
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
248
- - rvm: jruby-1.7.24
249
- gemfile: gemfiles/rails42.gemfile
250
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
251
- - rvm: jruby-1.7.24
252
- gemfile: gemfiles/rails42.gemfile
253
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
254
- - rvm: jruby-1.7.24
255
- gemfile: gemfiles/rails42.gemfile
256
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
257
- - rvm: jruby-1.7.24
258
- gemfile: gemfiles/rails42.gemfile
259
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
260
- - rvm: jruby-1.7.24
261
- gemfile: gemfiles/rails42.gemfile
262
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
263
- ## JRuby 9K :
264
- # Rails 2.3 (JRuby 9K) NOTE we should exclude all :
265
- - rvm: jruby-head
266
- gemfile: gemfiles/rails23.gemfile
267
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
268
- - rvm: jruby-head
269
- gemfile: gemfiles/rails23.gemfile
270
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
271
- - rvm: jruby-head
272
- gemfile: gemfiles/rails23.gemfile
273
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
274
- - rvm: jruby-head
275
- gemfile: gemfiles/rails23.gemfile
276
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
277
- - rvm: jruby-head
278
- gemfile: gemfiles/rails23.gemfile
279
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
280
- - rvm: jruby-head
281
- gemfile: gemfiles/rails23.gemfile
282
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
283
- - rvm: jruby-head
284
- gemfile: gemfiles/rails23.gemfile
285
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
286
- - rvm: jruby-head
287
- gemfile: gemfiles/rails23.gemfile
288
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
289
- # Rails 3.0 (JRuby 9K) NOTE we should exclude all :
290
- - rvm: jruby-head
291
- gemfile: gemfiles/rails30.gemfile
292
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
293
- - rvm: jruby-head
294
- gemfile: gemfiles/rails30.gemfile
295
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
296
- - rvm: jruby-head
297
- gemfile: gemfiles/rails30.gemfile
298
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
299
- - rvm: jruby-head
300
- gemfile: gemfiles/rails30.gemfile
301
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
302
- - rvm: jruby-head
303
- gemfile: gemfiles/rails30.gemfile
304
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
305
- - rvm: jruby-head
306
- gemfile: gemfiles/rails30.gemfile
307
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
308
- - rvm: jruby-head
309
- gemfile: gemfiles/rails30.gemfile
310
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
311
- - rvm: jruby-head
312
- gemfile: gemfiles/rails30.gemfile
313
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
314
- # Rails 3.1 (JRuby 9K) NOTE we should exclude all :
315
- - rvm: jruby-head
316
- gemfile: gemfiles/rails31.gemfile
317
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
318
- - rvm: jruby-head
319
- gemfile: gemfiles/rails31.gemfile
320
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
321
- - rvm: jruby-head
322
- gemfile: gemfiles/rails31.gemfile
323
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
324
- - rvm: jruby-head
325
- gemfile: gemfiles/rails31.gemfile
326
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
327
- - rvm: jruby-head
328
- gemfile: gemfiles/rails31.gemfile
329
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
330
- - rvm: jruby-head
331
- gemfile: gemfiles/rails31.gemfile
332
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
333
- - rvm: jruby-head
334
- gemfile: gemfiles/rails31.gemfile
335
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
336
- - rvm: jruby-head
337
- gemfile: gemfiles/rails31.gemfile
338
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
339
- # Rails 3.2 (JRuby 9K) :
340
- - rvm: jruby-head
341
- gemfile: gemfiles/rails32.gemfile
342
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
343
- - rvm: jruby-head
344
- gemfile: gemfiles/rails32.gemfile
345
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
346
- - rvm: jruby-head
347
- gemfile: gemfiles/rails32.gemfile
348
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
349
- - rvm: jruby-head
350
- gemfile: gemfiles/rails32.gemfile
351
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
352
- - rvm: jruby-head
353
- gemfile: gemfiles/rails32.gemfile
354
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
355
- - rvm: jruby-head
356
- gemfile: gemfiles/rails32.gemfile
357
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
358
- - rvm: jruby-head
359
- gemfile: gemfiles/rails32.gemfile
360
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
361
- - rvm: jruby-head
362
- gemfile: gemfiles/rails32.gemfile
363
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
364
- # Rails 4.0 (JRuby 9K) :
365
- - rvm: jruby-head
366
- gemfile: gemfiles/rails40.gemfile
367
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
368
- - rvm: jruby-head
369
- gemfile: gemfiles/rails40.gemfile
370
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
371
- - rvm: jruby-head
372
- gemfile: gemfiles/rails40.gemfile
373
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
374
- - rvm: jruby-head
375
- gemfile: gemfiles/rails40.gemfile
376
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
377
- - rvm: jruby-head
378
- gemfile: gemfiles/rails40.gemfile
379
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
380
- - rvm: jruby-head
381
- gemfile: gemfiles/rails40.gemfile
382
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
383
- - rvm: jruby-head
384
- gemfile: gemfiles/rails40.gemfile
385
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
386
- - rvm: jruby-head
387
- gemfile: gemfiles/rails40.gemfile
388
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
389
- # Rails 4.1 (JRuby 9K) :
390
- - rvm: jruby-head
391
- gemfile: gemfiles/rails41.gemfile
392
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
393
- - rvm: jruby-head
394
- gemfile: gemfiles/rails41.gemfile
395
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
396
- - rvm: jruby-head
397
- gemfile: gemfiles/rails41.gemfile
398
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
399
- - rvm: jruby-1.7.24
400
- gemfile: gemfiles/rails41.gemfile
401
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
402
- - rvm: jruby-1.7.24
403
- gemfile: gemfiles/rails41.gemfile
404
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
405
- - rvm: jruby-1.7.24
406
- gemfile: gemfiles/rails41.gemfile
407
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
408
- - rvm: jruby-1.7.24
409
- gemfile: gemfiles/rails41.gemfile
410
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
411
- - rvm: jruby-1.7.24
412
- gemfile: gemfiles/rails41.gemfile
413
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
414
- # Rails 4.2 (JRuby 9K) :
415
- - rvm: jruby-head
416
- gemfile: gemfiles/rails42.gemfile
417
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=mysql
418
- - rvm: jruby-head
419
- gemfile: gemfiles/rails42.gemfile
420
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=postgresql
421
- - rvm: jruby-head
422
- gemfile: gemfiles/rails42.gemfile
423
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=sqlite3
424
- - rvm: jruby-head
425
- gemfile: gemfiles/rails42.gemfile
426
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=derby
427
- - rvm: jruby-head
428
- gemfile: gemfiles/rails42.gemfile
429
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=h2
430
- - rvm: jruby-head
431
- gemfile: gemfiles/rails42.gemfile
432
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=hsqldb
433
- - rvm: jruby-head
434
- gemfile: gemfiles/rails42.gemfile
435
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jndi
436
- - rvm: jruby-head
437
- gemfile: gemfiles/rails42.gemfile
438
- env: JRUBY_OPTS="--1.8 $JRUBY_OPTS" DB=jdbc
data/Gemfile CHANGED
@@ -2,60 +2,58 @@ source "https://rubygems.org"
2
2
 
3
3
  if version = ENV['AR_VERSION']
4
4
  if version.index('/') && ::File.exist?(version)
5
- gem 'activerecord', :path => version
5
+ gem 'activerecord', path: version
6
6
  elsif version =~ /^[0-9abcdef]+$/
7
- gem 'activerecord', :github => 'rails/rails', :ref => version
7
+ gem 'activerecord', github: 'rails/rails', ref: version
8
8
  elsif version.index('.').nil?
9
- gem 'activerecord', :github => 'rails/rails', :branch => version
9
+ gem 'activerecord', github: 'rails/rails', branch: version
10
10
  else
11
- gem 'activerecord', version, :require => nil
11
+ gem 'activerecord', version, require: nil
12
12
  end
13
13
  else
14
- gem 'activerecord', :require => nil
14
+ gem 'activerecord', '~> 5.1.4', require: false
15
15
  end
16
16
 
17
- gem 'thread_safe', :require => nil # "optional" - we can roll without it
17
+ #gem 'thread_safe', require: nil # "optional" - we can roll without it
18
+ gem 'rake', require: nil
18
19
 
19
- if defined?(JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
20
- gem 'jruby-openssl', :platform => :jruby
21
- end
22
-
23
- gem 'rake', :require => nil
24
- gem 'appraisal', '~> 0.5.2', :require => nil
25
-
26
- # appraisal ignores group block declarations :
27
-
28
- gem 'test-unit', '~> 2.5.4', :group => :test
29
- gem 'test-unit-context', '>= 0.4.0', :group => :test
30
- gem 'mocha', '~> 0.13.1', :require => nil, :group => :test
20
+ group :test do
21
+ gem 'minitest', '< 5.3.4'
22
+ gem 'test-unit', '~> 2.5.4'
23
+ gem 'test-unit-context', '>= 0.4.0'
24
+ gem 'mocha', '~> 1.2', require: nil
31
25
 
32
- gem 'simplecov', :require => nil, :group => :test
33
- gem 'bcrypt-ruby', '~> 3.0.0', :require => nil, :group => :test
34
- #gem 'trinidad_dbpool', :require => nil, :group => :test
26
+ gem 'simplecov', require: nil
27
+ gem 'bcrypt-ruby', '~> 3.0.0', require: nil
28
+ #gem 'trinidad_dbpool', require: nil
29
+ end
35
30
 
36
31
  group :development do
37
- gem 'ruby-debug', :require => nil # if ENV['DEBUG']
32
+ gem 'ruby-debug', require: nil # if ENV['DEBUG']
38
33
  group :doc do
39
- gem 'yard', :require => nil
40
- gem 'yard-method-overrides', :git => 'https://github.com/kares/yard-method-overrides.git', :require => nil
41
- gem 'kramdown', :require => nil
34
+ gem 'yard', require: nil
35
+ gem 'yard-method-overrides', git: 'https://github.com/kares/yard-method-overrides.git', require: nil
36
+ gem 'kramdown', require: nil
42
37
  end
43
38
  end
44
39
 
45
40
  group :rails do
46
- gem 'erubis', :require => nil
47
- # NOTE: due rails/activerecord/test/cases/session_store/session_test.rb
48
- gem 'actionpack', :require => nil
41
+ gem 'erubis', require: nil
42
+ # NOTE: due rails/activerecord/test/cases/connection_management_test.rb (AR 5.0)
43
+ gem 'actionpack', require: nil
49
44
  end
50
45
 
51
- if sqlite_version = ENV['JDBC_SQLITE_VERSION'] # for testing against different version(s)
52
- gem 'jdbc-sqlite3', sqlite_version, :require => nil, :platform => :jruby, :group => :test
53
- end
46
+ group :test do
47
+ # for testing against different version(s)
48
+ if sqlite_version = ENV['JDBC_SQLITE_VERSION']
49
+ gem 'jdbc-sqlite3', sqlite_version, require: nil, platform: :jruby
50
+ end
54
51
 
55
- gem 'mysql2', '< 0.4', :require => nil, :platform => :mri, :group => :test
56
- gem 'pg', :require => nil, :platform => :mri, :group => :test
57
- gem 'sqlite3', :require => nil, :platform => :mri, :group => :test
58
- group :mssql do
59
- gem 'tiny_tds', :require => nil, :platform => :mri, :group => :test
60
- gem 'activerecord-sqlserver-adapter', :require => nil, :platform => :mri, :group => :test
52
+ gem 'mysql2', '< 0.4', require: nil, platform: :mri
53
+ gem 'pg', require: nil, platform: :mri
54
+ gem 'sqlite3', require: nil, platform: :mri
55
+ group :mssql do
56
+ gem 'tiny_tds', require: nil, platform: :mri
57
+ gem 'activerecord-sqlserver-adapter', require: nil, platform: :mri
58
+ end
61
59
  end