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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30c03fb955b0d8932f2dbd935bab422dfe0644f6
4
- data.tar.gz: 853129177a8045c693cbea03308b12ba161accf2
3
+ metadata.gz: 8cf5b11cb0f3097830c3ff2d1bca405d3ebcd57d
4
+ data.tar.gz: f6d90893dd4c286801b291b3a3d6bbafcaa5edd1
5
5
  SHA512:
6
- metadata.gz: 687909d318a7eee756e0b9030db9df7fb9f0e7476d43eec8c8d7af2af8fbab43ddc7885e75a527c3d033a1017514b2179ab01a39fb6adf5ace96befa0783f385
7
- data.tar.gz: d0129ed74fe4eb16174f0eeb496917f1a50c00b846c7163eb1b0f6bc7ce6b24d746748aa9c96212f0c419c74e13728040a17acb529a53b2df129aebe57ff34f7
6
+ metadata.gz: acf143525dd0842ef0c15adf2bc657921bfdd008279349c3ddcf86424acb6161cfdaaf96905ed2bd4dae6a6e9b8eb9d7e707d4c91b69f569443179f7f8b6cc43
7
+ data.tar.gz: 23728aa39cfa5ec716b78b6de521ad7d347ce60029d8bc4db8c9cba0e8a713c07ca428fa3becb6ead50c20d98fe6311fc42055fb5092ae8c1b9825b86c1887b5
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gem 'jquery-rails'
7
7
  gem 'codemirror-rails'
8
8
  gem 'terminal-table'
9
9
  gem 'simple_form'
10
- gem 'ransack'
10
+ gem 'ransack', '< 1.8.0'
11
11
  gem 'kaminari', '>= 0.17.0'
12
12
 
13
13
  group :assets do
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_db (1.3.1)
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
- mini_portile (0.6.2)
85
- minitest (5.8.2)
84
+ mini_portile2 (2.1.0)
85
+ minitest (5.9.0)
86
86
  mysql2 (0.3.20)
87
- nokogiri (1.6.6.2)
88
- mini_portile (~> 0.6.0)
87
+ nokogiri (1.6.8)
88
+ mini_portile2 (~> 2.1.0)
89
+ pkg-config (~> 1.1.7)
89
90
  pg (0.18.3)
90
- polyamorous (1.2.0)
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.2)
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
- execute("DELETE FROM #{table_name} WHERE #{pk_name} = #{pk_id};")
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)
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
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.1
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-08 00:00:00.000000000 Z
11
+ date: 2016-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails