noticed 2.1.1 → 2.1.3

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: e64d58c0ef63c62be08a469e1ba9177d3a06641db4dadcaa0dbac3155cb0fee3
4
- data.tar.gz: 50b3cc355e8d1a1cb228f2b5950dac4be5e505b021810fab0b9076a21b1719bd
3
+ metadata.gz: 4481f215fcf7bde433f273ff7e3b7df9a0af5971eae6827e108f667fb21e57f4
4
+ data.tar.gz: 67360b14ce530e2ad2433ee8271c8c0e231220908d8c4014b817517eb3d9185a
5
5
  SHA512:
6
- metadata.gz: 92b9badbf82f4c5fb3cde41a88bae7cac8f0354e679f9c9b62b153d962de92e212207372264f87ce8f71289139cac462270e253e284fc1e1dfa1e1d2e34f58cd
7
- data.tar.gz: 419eef948c15ee9fd46664619de5ca5365e6adc0cdf0563155181bd09223279dfc4fb6a2e396bd162c0896448700abaa4de76e4c168658bbcbf3c32dc2ef5c34
6
+ metadata.gz: a9a5d6e6b500e8e4ce297951058f46abf4e3b5c23f42b5e904cfd3a2a7dce6b4f4d933e12731fbde524e70d2339d1a698375eabdd4ba6fd26898e0a0910d2ac8
7
+ data.tar.gz: 9b4b44dcb8d1fe3fc540e2cdea0ff039846ce56b3b0e1bf709b98f484ee58e7f4ab0ad6566fdbccf2eec1a28297ad511db00ed87b3825a5eaac0d1e532086173
data/README.md CHANGED
@@ -798,7 +798,7 @@ Running tests against multiple databases locally:
798
798
 
799
799
  ```
800
800
  DATABASE_URL=sqlite3:noticed_test rails test
801
- DATABASE_URL=mysql2://root:@127.0.0.1/noticed_test rails test
801
+ DATABASE_URL=trilogy://root:@127.0.0.1/noticed_test rails test
802
802
  DATABASE_URL=postgres://127.0.0.1/noticed_test rails test
803
803
  ```
804
804
 
@@ -1,4 +1,4 @@
1
- class AddNotificationsCountToNoticedEvent < ActiveRecord::Migration[7.1]
1
+ class AddNotificationsCountToNoticedEvent < ActiveRecord::Migration[6.1]
2
2
  def change
3
3
  add_column :noticed_events, :notifications_count, :integer
4
4
  end
@@ -2,7 +2,7 @@ module Noticed
2
2
  module DeliveryMethods
3
3
  class TwilioMessaging < DeliveryMethod
4
4
  def deliver
5
- post_request url, basic_auth: {user: account_sid, pass: auth_token}, form: json
5
+ post_request url, basic_auth: {user: account_sid, pass: auth_token}, form: json.stringify_keys
6
6
  end
7
7
 
8
8
  def json
@@ -20,7 +20,7 @@ module Noticed
20
20
  case current_adapter
21
21
  when "postgresql", "postgis"
22
22
  model.where("params @> ?", Noticed::Coder.dump(param_name.to_sym => self).to_json)
23
- when "mysql2"
23
+ when "mysql2", "trilogy"
24
24
  model.where("JSON_CONTAINS(params, ?)", Noticed::Coder.dump(param_name.to_sym => self).to_json)
25
25
  when "sqlite3"
26
26
  model.where("json_extract(params, ?) = ?", "$.#{param_name}", Noticed::Coder.dump(self).to_json)
@@ -1,3 +1,3 @@
1
1
  module Noticed
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noticed
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-30 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails