rails_db 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +10 -8
- data/lib/rails_db/adapters/base_adapter.rb +6 -1
- data/lib/rails_db/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cf5b11cb0f3097830c3ff2d1bca405d3ebcd57d
|
4
|
+
data.tar.gz: f6d90893dd4c286801b291b3a3d6bbafcaa5edd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf143525dd0842ef0c15adf2bc657921bfdd008279349c3ddcf86424acb6161cfdaaf96905ed2bd4dae6a6e9b8eb9d7e707d4c91b69f569443179f7f8b6cc43
|
7
|
+
data.tar.gz: 23728aa39cfa5ec716b78b6de521ad7d347ce60029d8bc4db8c9cba0e8a713c07ca428fa3becb6ead50c20d98fe6311fc42055fb5092ae8c1b9825b86c1887b5
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_db (1.3.
|
4
|
+
rails_db (1.3.2)
|
5
5
|
codemirror-rails
|
6
6
|
jquery-rails
|
7
7
|
kaminari
|
@@ -81,13 +81,15 @@ GEM
|
|
81
81
|
mail (2.6.3)
|
82
82
|
mime-types (>= 1.16, < 3)
|
83
83
|
mime-types (2.6.2)
|
84
|
-
|
85
|
-
minitest (5.
|
84
|
+
mini_portile2 (2.1.0)
|
85
|
+
minitest (5.9.0)
|
86
86
|
mysql2 (0.3.20)
|
87
|
-
nokogiri (1.6.
|
88
|
-
|
87
|
+
nokogiri (1.6.8)
|
88
|
+
mini_portile2 (~> 2.1.0)
|
89
|
+
pkg-config (~> 1.1.7)
|
89
90
|
pg (0.18.3)
|
90
|
-
|
91
|
+
pkg-config (1.1.7)
|
92
|
+
polyamorous (1.3.1)
|
91
93
|
activerecord (>= 3.0)
|
92
94
|
rack (1.6.4)
|
93
95
|
rack-test (0.6.3)
|
@@ -109,7 +111,7 @@ GEM
|
|
109
111
|
activesupport (>= 4.2.0.beta, < 5.0)
|
110
112
|
nokogiri (~> 1.6.0)
|
111
113
|
rails-deprecated_sanitizer (>= 1.0.1)
|
112
|
-
rails-html-sanitizer (1.0.
|
114
|
+
rails-html-sanitizer (1.0.3)
|
113
115
|
loofah (~> 2.0)
|
114
116
|
railties (4.2.4)
|
115
117
|
actionpack (= 4.2.4)
|
@@ -158,7 +160,7 @@ DEPENDENCIES
|
|
158
160
|
pg
|
159
161
|
rails
|
160
162
|
rails_db!
|
161
|
-
ransack
|
163
|
+
ransack (< 1.8.0)
|
162
164
|
simple_form
|
163
165
|
sqlite3
|
164
166
|
terminal-table
|
@@ -40,7 +40,12 @@ module RailsDb
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.delete(table_name, pk_name, pk_id)
|
43
|
-
|
43
|
+
case pk_id
|
44
|
+
when Fixnum, Bignum then
|
45
|
+
execute("DELETE FROM #{table_name} WHERE #{pk_name} = #{pk_id};")
|
46
|
+
else
|
47
|
+
execute("DELETE FROM #{table_name} WHERE #{pk_name} = '#{pk_id}';")
|
48
|
+
end
|
44
49
|
end
|
45
50
|
|
46
51
|
def self.count(table_name)
|
data/lib/rails_db/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|