dynamic-records-meritfront 3.1.29 → 3.1.33

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: 0e329f6fa51f14843549a6d3681870a99a5e1b9ff78af32281ca8a5433122922
4
- data.tar.gz: 5c14dc25ee35ea526f220d5b727032dcaf1be0f1bb744c080c9a12c4a70b15bb
3
+ metadata.gz: 5dfcf5de90cdcac42af2c68794fd94b2d97976edabebc30c7af030b03a4cc26f
4
+ data.tar.gz: 62d372644b0997607dc8cb73e4c95e0c29b4942b7519bea26cdfc3e960007899
5
5
  SHA512:
6
- metadata.gz: 19070cbac3c6442ba5ba82c28d370efe9a3cc6cfd0e6a05e5a74175982000484baa804baceb187b00badb865ba57e6f9059bf878670c518830c97ea904157779
7
- data.tar.gz: 85892bfa3f8708bbb683297513ffb0f10650ad389084a219203241918e52208041c29a477e478027e3f841e0235b983fd1948f1ff65389b34efcbe18c531b805
6
+ metadata.gz: 2eb9f39a73f585d769ac0e65f123f995a19d0129659e18b2d3978eb85668a32754ef859b3bef162d063c2cd720b4684e85247979ab3422485a179314566a2128
7
+ data.tar.gz: d70133876b5a852d6e3e6d73d9a4d76818e078ef5b46b0dc530a36801a48caa73764f9cc275794c75d6409a96dc4a5a67ad201d72f0741111dbc0f895b93463c
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dynamic-records-meritfront (3.1.29)
4
+ dynamic-records-meritfront (3.1.33)
5
5
  hashid-rails
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.1.1)
11
- activesupport (= 7.1.1)
12
- activerecord (7.1.1)
13
- activemodel (= 7.1.1)
14
- activesupport (= 7.1.1)
10
+ activemodel (7.1.3.2)
11
+ activesupport (= 7.1.3.2)
12
+ activerecord (7.1.3.2)
13
+ activemodel (= 7.1.3.2)
14
+ activesupport (= 7.1.3.2)
15
15
  timeout (>= 0.4.0)
16
- activesupport (7.1.1)
16
+ activesupport (7.1.3.2)
17
17
  base64
18
18
  bigdecimal
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -23,23 +23,23 @@ GEM
23
23
  minitest (>= 5.1)
24
24
  mutex_m
25
25
  tzinfo (~> 2.0)
26
- base64 (0.1.1)
27
- bigdecimal (3.1.4)
28
- concurrent-ruby (1.2.2)
26
+ base64 (0.2.0)
27
+ bigdecimal (3.1.6)
28
+ concurrent-ruby (1.2.3)
29
29
  connection_pool (2.4.1)
30
- drb (2.1.1)
31
- ruby2_keywords
30
+ drb (2.2.1)
32
31
  hashid-rails (1.4.1)
33
32
  activerecord (>= 4.0)
34
33
  hashids (~> 1.0)
35
34
  hashids (1.0.6)
36
- i18n (1.14.1)
35
+ i18n (1.14.3)
37
36
  concurrent-ruby (~> 1.0)
38
- minitest (5.20.0)
39
- mutex_m (0.1.2)
37
+ racc (~> 1.7)
38
+ minitest (5.22.2)
39
+ mutex_m (0.2.0)
40
+ racc (1.7.3)
40
41
  rake (12.3.3)
41
- ruby2_keywords (0.0.5)
42
- timeout (0.4.0)
42
+ timeout (0.4.1)
43
43
  tzinfo (2.0.6)
44
44
  concurrent-ruby (~> 1.0)
45
45
 
data/README.md CHANGED
@@ -536,7 +536,9 @@ v3.0.6
536
536
  - warning messages for dynamic_attach. to_s'd any provided table_names for ease-of-use.
537
537
  - logging info for dynamic_attach outside of instaload.
538
538
  - fixed an error where instaload only worked with ApplicationRecord abstract_class. Now works on anything thats a subclass of ActiveRecord::Base
539
- - wow
539
+
540
+ 3.2
541
+ - Updates so the latest version of the pg gem and rails works with the latest version of postgresql
540
542
 
541
543
 
542
544
  ## Questions
@@ -545,7 +547,7 @@ v3.0.6
545
547
  - Q: The default name of my sql statements looks like a stack trace? Whats going on?
546
548
  - A: We set the location of where you called the function as the default name for easy debugging. Its not an error, we just take some info from the stacktrace. It also includes the method name which can provide some insite into what the query is doing. Makes logs alot nicer to look at.
547
549
  - Q: Whats MeritFront?
548
- - A: I am making a social media platform. See meritfront.com, Its soft launched.
550
+ - A: I am making a social media platform. Its called midflip now. See midflip.io
549
551
  - Q: Inspect on user records doesn't seem to work properly
550
552
  - A: inspect is overwritten by many diffrent libraries, in terms of devise for example, they override our override of active record's inspect. The best way to deal with this is to look at the source location of these methods and bring them together (user.method(:inspect).source_location). In my case with devise, i ended up with this in the user record:
551
553
  ```ruby
@@ -1,5 +1,5 @@
1
1
 
2
2
  module DynamicRecordsMeritfront
3
- VERSION = '3.1.29'
3
+ VERSION = '3.1.33'
4
4
  end
5
5
  #this file gets overwritten automatically on minor updates, major ones need to be manually changed
@@ -477,7 +477,6 @@ module DynamicRecordsMeritfront
477
477
  # - multi_query allows more than one query (you can seperate an insert and an update with ';' I dont know how else to say it.)
478
478
  # this disables other options (except name_modifiers). Not sure how it effects prepared statements. Its a fairly useless
479
479
  # command as you can do multiple queries anyway with 'WITH' statements and also gain the other options.
480
- # - async does what it says but I haven't used it yet so. Probabably doesn't work
481
480
  # - raw switches between using a Hash or a ActiveRecord::Response object when used on a abstract class
482
481
  args << {} unless args[-1].kind_of? Hash
483
482
  if args.length == 3
@@ -501,7 +500,6 @@ module DynamicRecordsMeritfront
501
500
  name_modifiers ||= []
502
501
  prepare = opts.delete(:prepare) != false
503
502
  multi_query = opts.delete(:multi_query) == true
504
- async = opts.delete(:async) == true
505
503
  params = opts
506
504
 
507
505
  #unique value hash cuts down on the number of repeated arguments like in an update or insert statement
@@ -557,7 +555,7 @@ module DynamicRecordsMeritfront
557
555
  end
558
556
  end
559
557
  sql_vals = var_track.get_array_for_exec_query
560
- ret = ActiveRecord::Base.connection.exec_query sql, name, sql_vals, prepare: prepare, async: async
558
+ ret = ActiveRecord::Base.connection.exec_query sql, name, sql_vals, prepare: prepare
561
559
  else
562
560
  ret = ActiveRecord::Base.connection.execute sql, name
563
561
  end
@@ -567,14 +565,12 @@ module DynamicRecordsMeritfront
567
565
  sql ||= ''
568
566
  sql_vals ||= ''
569
567
  prepare ||= ''
570
- async ||= ''
571
568
  Rails.logger.error(%Q{
572
569
  DynamicRecords#dynamic_sql debug info.
573
570
  name: #{name.to_s}
574
571
  sql: #{sql.to_s}
575
572
  sql_vals: #{sql_vals.to_s}
576
573
  prepare: #{prepare.to_s}
577
- async: #{async.to_s}
578
574
  })
579
575
  raise e
580
576
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic-records-meritfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.29
4
+ version: 3.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Clancy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-27 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashid-rails