activerecord-pedantmysql2-adapter 1.1.0 → 1.1.1

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: 3edf754b2a2095a7149077c7307326fb63e58851
4
- data.tar.gz: e65305e4b6c3f8fb0c682cc890ee010b88405b93
3
+ metadata.gz: 4908d611c3be793a9b05bee55255aa2c26f95b90
4
+ data.tar.gz: df0b20724934de0da44e92950b340033e567f8d0
5
5
  SHA512:
6
- metadata.gz: 0788ea3fa24672a2b31723dab2fc19cb2b768008515be1d978d19cffa7562d8c988a693770219a64f1380b77a434d22650fda77bb5ec25f3ff9dc0caa1b6f9c2
7
- data.tar.gz: b2a18d31f2345eab76fc0f8373a721dd43b81b3c116ca120b9eb52c167330f674babd3d3820875b040fc814bb0f6af096401f4c2effc85a651186b2942406e16
6
+ metadata.gz: e693a9dc9997acbac0b6810a7eeb6a7102204765193f90cfb70497ab504bd57e079b2cba7dc717b87cf09cc227071ada40028248f620f444fbaaec02d7ff38cc
7
+ data.tar.gz: c729d4433b5f9810169eb2feb8665190f1a4043a345620df4df3edd97694dc9363d960fa2f0c6e4e403085d3ebdac8c9b19dcabb8634c4e27bb85a6e95d8a713
data/.travis.yml CHANGED
@@ -2,12 +2,24 @@ rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
4
  - 2.1.2
5
+ - 2.2.2
6
+ - 2.3.0
5
7
 
6
8
  gemfile:
7
9
  - Gemfile.activerecord32
8
10
  - Gemfile.activerecord40
9
11
  - Gemfile.activerecord41
10
12
  - Gemfile.activerecord42
13
+ - Gemfile.activerecord50
14
+
15
+ matrix:
16
+ exclude:
17
+ - rvm: 1.9.3
18
+ gemfile: Gemfile.activerecord50
19
+ - rvm: 2.0.0
20
+ gemfile: Gemfile.activerecord50
21
+ - rvm: 2.1.2
22
+ gemfile: Gemfile.activerecord50
11
23
 
12
24
  before_script:
13
25
  - mysql -e 'create database pedant_mysql2_test;'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'activerecord', '~> 5.0.0'
data/README.md CHANGED
@@ -26,6 +26,9 @@ Finally in your `database.yml`:
26
26
 
27
27
  adapter: pedant_mysql2
28
28
 
29
+ Or if you're using `DATABASE_URL` or the url key in `database.yml`, you can use the `pedant-mysql2` URL scheme:
30
+
31
+ url: pedant-mysql2://host/database
29
32
 
30
33
  ## Usage
31
34
 
@@ -37,8 +37,7 @@ class MysqlWarning < StandardError
37
37
  end
38
38
 
39
39
  class ActiveRecord::ConnectionAdapters::PedantMysql2Adapter < ActiveRecord::ConnectionAdapters::Mysql2Adapter
40
-
41
- alias_method :original_execute, :execute
40
+ alias_method :exec_delete_without_pedant, :exec_delete
42
41
 
43
42
  def execute(sql, name = nil)
44
43
  value = super
@@ -47,7 +46,7 @@ class ActiveRecord::ConnectionAdapters::PedantMysql2Adapter < ActiveRecord::Conn
47
46
  end
48
47
 
49
48
  def exec_delete(sql, name, binds)
50
- original_execute to_sql(sql, binds), name
49
+ exec_delete_without_pedant(to_sql(sql, binds), name, binds)
51
50
  affected_rows = @connection.affected_rows
52
51
  log_warnings(sql)
53
52
  affected_rows
@@ -1,3 +1,3 @@
1
1
  module PedantMysql2
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-pedantmysql2-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ8wDQYDVQQDDAZhZG1p
14
- bnMxFzAVBgoJkiaJk/IsZAEZFgdzaG9waWZ5MRMwEQYKCZImiZPyLGQBGRYDY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ayR9PPs64heamfn0fp
31
- TConQSX2BnZdhIEYW+cKzEC/bLc=
32
- -----END CERTIFICATE-----
33
- date: 2015-03-30 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2017-03-16 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: activerecord
@@ -146,6 +124,7 @@ files:
146
124
  - Gemfile.activerecord40
147
125
  - Gemfile.activerecord41
148
126
  - Gemfile.activerecord42
127
+ - Gemfile.activerecord50
149
128
  - LICENSE.txt
150
129
  - README.md
151
130
  - Rakefile
@@ -179,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
158
  version: '0'
180
159
  requirements: []
181
160
  rubyforge_project:
182
- rubygems_version: 2.2.2
161
+ rubygems_version: 2.6.10
183
162
  signing_key:
184
163
  specification_version: 4
185
164
  summary: ActiveRecord adapter for MySQL that report warnings.
checksums.yaml.gz.sig DELETED
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- ��9AB{ż��3�s΂a�\NC�DxHAh�8B������(��b��¢`���V�X�/AvD�3�������??��
2
- ��g�Xl��Ags�?w�֓�*�����uɥX��px`����c6�M�6���ƞ#N��\S֋��x����Û=:l��D����]m����$-�W<����t��.:hoX�JҠlGu r�c .�2_������qq D��b���"ЛSV��i �̜$��W�Cd�O�Y�K�.��M}�Nw�e