activerecord-rdb-adapter 0.5.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93f60ce721782365089749c21271eee0ea9fee532ca54952b0cebc6f07e8e980
4
- data.tar.gz: 3e49ca60c171d759964f2ad4cc11efc7fb709b543d05a2db3d80310eb95c1920
3
+ metadata.gz: 746bb06a8424521bea46c6214bc759c5930ef6f52c2719bf3cd456e97d4bbd0b
4
+ data.tar.gz: 3b6781a2390935f32755fdf2d571941256e7147cd2908132c6f4c8c024119d81
5
5
  SHA512:
6
- metadata.gz: 5036b2be9ea51e5de77c1212f460a6fbeac1ba9741b89845ce9f0ad54da579f1552dfb5a32c759a41b11a3b80abf58d94fcd6ec190562fc1131bb30b59b8e83c
7
- data.tar.gz: c2c8340eaca31424bb34513910b62e07e06ab17be578f2e9035eb2ae7728f58a0b9b5866cc4f683b8f354fea34c02878bb937143ecfcf0739fcad13a44580806
6
+ metadata.gz: 3a63ca5729092be9e55ebfd9062b71a9089f56aafa90af9da2739eac1f0c2717637a311afa60d4f508f95f717e87b1b5be270168eba92de36d8daf5041b97152
7
+ data.tar.gz: dfb8b363e0f23cbc7368993cf2d64525634fd564c95693cafbc19841252cef00e59ba5cd9ef92307aed1f4a72f251ea3df4a882739fec354f3821b84be020389
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  ActiveRecord adapter that allows you to use ActiveRecord 5+(Rails 5.2 is recommended) with [RedDatabase 3+](http://reddatabase.ru/) and Firebird 3
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/activerecord-rdb-adapter.svg)](https://badge.fury.io/rb/activerecord-rdb-adapter)
4
+
3
5
  inspired by https://github.com/rowland/activerecord-fb-adapter and https://github.com/FabioMR/firebird_adapter
@@ -22,8 +22,8 @@ module ActiveRecord
22
22
 
23
23
  def quote_column_name(column_name) # :nodoc:
24
24
  column = column_name.dup.to_s
25
- column.gsub!(/(?<=[^\"\w]|^)position(?=[^\"\w]|$)/i, QUOTED_POSITION)
26
- column.gsub!(/(?<=[^\"\w]|^)value(?=[^\"\w]|$)/i, QUOTED_VALUE)
25
+ column.gsub!(/(?<=[^"\w]|^)position(?=[^"\w]|$)/i, QUOTED_POSITION)
26
+ column.gsub!(/(?<=[^"\w]|^)value(?=[^"\w]|$)/i, QUOTED_VALUE)
27
27
  column.delete!('"')
28
28
  column.upcase!
29
29
  @connection.dialect == 1 ? column.to_s : %("#{column}")
@@ -15,7 +15,7 @@ module ActiveRecord
15
15
  def add_column_options!(sql, options)
16
16
  sql << " DEFAULT #{quote_default_expression(options[:default], options[:column])}" if options_include_default?(options)
17
17
  # must explicitly check for :null to allow change_column to work on migrations
18
- unless options[:null]
18
+ if !options[:null]
19
19
  sql << " NOT NULL"
20
20
  end
21
21
  if options[:auto_increment]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-rdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Lobanov (RedSoft)
@@ -78,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements:
80
80
  - Firebird library fb
81
- rubyforge_project:
82
- rubygems_version: 2.7.6
81
+ rubygems_version: 3.0.1
83
82
  signing_key:
84
83
  specification_version: 4
85
84
  summary: ActiveRecord Firebird and RedDatabase Adapter