arel_extensions 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -4
- data/.travis/oracle/download_ojdbc.js +116 -0
- data/.travis/setup_accounts.sh +9 -0
- data/README.md +15 -3
- data/arel_extensions.gemspec +1 -1
- data/gemfiles/rails4.gemfile +1 -2
- data/gemfiles/rails5.gemfile +3 -2
- data/init/postgresql.sql +10 -8
- data/lib/arel_extensions/date_duration.rb +9 -5
- data/lib/arel_extensions/math.rb +1 -1
- data/lib/arel_extensions/nodes.rb +1 -0
- data/lib/arel_extensions/nodes/abs.rb +2 -0
- data/lib/arel_extensions/nodes/date_diff.rb +17 -0
- data/lib/arel_extensions/nodes/find_in_set.rb +1 -9
- data/lib/arel_extensions/nodes/format.rb +12 -0
- data/lib/arel_extensions/nodes/function.rb +33 -2
- data/lib/arel_extensions/nodes/length.rb +2 -0
- data/lib/arel_extensions/nodes/rand.rb +2 -8
- data/lib/arel_extensions/version.rb +1 -1
- data/lib/arel_extensions/visitors/ibm_db.rb +1 -121
- data/lib/arel_extensions/visitors/mssql.rb +5 -85
- data/lib/arel_extensions/visitors/mysql.rb +9 -25
- data/lib/arel_extensions/visitors/oracle.rb +137 -122
- data/lib/arel_extensions/visitors/postgresql.rb +3 -12
- data/lib/arel_extensions/visitors/sqlite.rb +2 -11
- data/lib/arel_extensions/visitors/to_sql.rb +22 -0
- data/test/database.yml +4 -2
- data/test/support/alter_system_user_password.sql +2 -0
- data/test/support/create_oracle_enhanced_users.sql +29 -0
- data/test/visitors/test_to_sql.rb +2 -2
- data/test/with_ar/all_agnostic_test.rb +76 -63
- data/test/with_ar/insert_agnostic_test.rb +13 -7
- metadata +9 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arel_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yann Azoury
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-09-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: arel
|
@@ -83,7 +83,9 @@ files:
|
|
83
83
|
- ".travis.yml"
|
84
84
|
- ".travis/oracle/download.js"
|
85
85
|
- ".travis/oracle/download.sh"
|
86
|
+
- ".travis/oracle/download_ojdbc.js"
|
86
87
|
- ".travis/oracle/install.sh"
|
88
|
+
- ".travis/setup_accounts.sh"
|
87
89
|
- Gemfile
|
88
90
|
- MIT-LICENSE.txt
|
89
91
|
- README.md
|
@@ -114,6 +116,7 @@ files:
|
|
114
116
|
- lib/arel_extensions/nodes/duration.rb
|
115
117
|
- lib/arel_extensions/nodes/find_in_set.rb
|
116
118
|
- lib/arel_extensions/nodes/floor.rb
|
119
|
+
- lib/arel_extensions/nodes/format.rb
|
117
120
|
- lib/arel_extensions/nodes/function.rb
|
118
121
|
- lib/arel_extensions/nodes/is_null.rb
|
119
122
|
- lib/arel_extensions/nodes/length.rb
|
@@ -142,6 +145,8 @@ files:
|
|
142
145
|
- test/database.yml
|
143
146
|
- test/helper.rb
|
144
147
|
- test/real_db_test.rb
|
148
|
+
- test/support/alter_system_user_password.sql
|
149
|
+
- test/support/create_oracle_enhanced_users.sql
|
145
150
|
- test/support/fake_record.rb
|
146
151
|
- test/test_comparators.rb
|
147
152
|
- test/visitors/test_bulk_insert_oracle.rb
|
@@ -185,6 +190,8 @@ test_files:
|
|
185
190
|
- test/database.yml
|
186
191
|
- test/helper.rb
|
187
192
|
- test/real_db_test.rb
|
193
|
+
- test/support/alter_system_user_password.sql
|
194
|
+
- test/support/create_oracle_enhanced_users.sql
|
188
195
|
- test/support/fake_record.rb
|
189
196
|
- test/test_comparators.rb
|
190
197
|
- test/visitors/test_bulk_insert_oracle.rb
|