semian 0.18.0 → 0.18.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
  SHA256:
3
- metadata.gz: d24779fb714aedf9f83b9ea263d7a7bd0387bc487dbc2313fed0fa265be33b92
4
- data.tar.gz: a505d6861420fe42f5f366184b73bdeb6aa8f3b4c5ee2a95ceb224f4a6770286
3
+ metadata.gz: 8c0cecc8c8e42f223f2cde75e3818ad4bc33897107b6a99186beb48c413c6d30
4
+ data.tar.gz: 9202b9e1cf15ff54d68f8d3fe11800ace1624828d1aa840840b88180f65e5355
5
5
  SHA512:
6
- metadata.gz: 0e24a1414fb44190bde478cc02cf4c2f12dde3b73673446dee2225ee0155951be5121dbf077da05ce8d1746485f8ce2914b46a191ba09f05297f70177713d15f
7
- data.tar.gz: d7e41a294ec3819216b4e5762b0ea98ca545002c528e64c291e606c0e1901b847c3d6ee31a4b927c2402b0249fed38faa5b46ecdbb5a4ae9e2ef767fa34702f7
6
+ metadata.gz: 1bd71610d96984ada73fe625966f66ecc13cc921ac659a78c9010eec952f61e1ea56aa4c9f3e6de0572a2b2059e0cd919e1063907c4d39c9d630dd536bf4a89e
7
+ data.tar.gz: 20513585134a89dc3a33bcc2895728a64fa5e35e978dbcf83ac44fccc00ae9428e0f8bd8988fe3941e4236d4d18daed380014843b0ad071f945164e68eda68af
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
- ## Semian ![Build Status](https://github.com/Shopify/semian/actions/workflows/main.yml/badge.svg)
2
-
1
+ ## Semian ![Build Status](https://github.com/Shopify/semian/actions/workflows/test.yml/badge.svg)
3
2
 
4
3
  ![](http://i.imgur.com/7Vn2ibF.png)
5
4
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "semian/adapter"
4
- require "activerecord-trilogy-adapter"
4
+ require "active_record"
5
5
  require "active_record/connection_adapters/trilogy_adapter"
6
6
 
7
7
  module ActiveRecord
@@ -47,15 +47,16 @@ module Semian
47
47
  super
48
48
  end
49
49
 
50
- def execute(sql, name = nil, async: false, allow_retry: false)
50
+ def execute(sql, *)
51
51
  if query_allowlisted?(sql)
52
- super(sql, name, async: async, allow_retry: allow_retry)
52
+ super
53
53
  else
54
54
  acquire_semian_resource(adapter: :trilogy_adapter, scope: :execute) do
55
- super(sql, name, async: async, allow_retry: allow_retry)
55
+ super
56
56
  end
57
57
  end
58
58
  end
59
+ ruby2_keywords :execute
59
60
 
60
61
  def active?
61
62
  acquire_semian_resource(adapter: :trilogy_adapter, scope: :ping) do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Semian
4
- VERSION = "0.18.0"
4
+ VERSION = "0.18.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Francis
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-02-15 00:00:00.000000000 Z
13
+ date: 2023-05-02 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: |2
16
16
  A Ruby C extention that is used to control access to shared resources
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.3.3
82
+ rubygems_version: 3.4.12
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Bulkheading for Ruby with SysV semaphores