civicrm 1.2.5 → 1.3.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: 4a770859b71bcf18bfff90a976e2dbbec6aa9af3
4
- data.tar.gz: c884fdf962c79286c4bfd40dc3a606cbcbea06b6
3
+ metadata.gz: 08213b07d9c509cce9fde6eb2cd6d172beae1e29
4
+ data.tar.gz: b950d8fa3aadcf8228d4eef6e62f577e7ff9834e
5
5
  SHA512:
6
- metadata.gz: 3ad4d02efbc556f3e8eb8bcad2709b1771ea838d596c98c0d5ccabc16647977e73d2219fd5805b879c55ce6bad9c87eeb4853d779618bcaed28b435898261bd9
7
- data.tar.gz: 28bd41a3ef1fa67487e6a46e86bed8604d730d157141c578f7457d5dff805477cecba12fcd604495358f629a469146b666d30e9701f38a6a81c105d32fe7ff40
6
+ metadata.gz: 0aa4ebfeba87a0981584b219e73f7edf2459d5974ff342d3b8b8f842e0b5064933b9f2c1c74537ad69437cfef5dbd903605b03f31462a0abda4ee41d30fac124
7
+ data.tar.gz: 6acbe76caea2a07a6294bdd7cccf402eac2868d04de16693a6640e22e6f4356a7dc779c3d1c2f1fc60bfa712c2e0895b26b522f22f4425ff62f399af7415e255
@@ -4,7 +4,7 @@ module CiviCrm
4
4
 
5
5
  @@_financial_type_cache = {}
6
6
 
7
- def self.get(name, cache: true, create: Rails.env.development?)
7
+ def self.[](name, cache: true, create: Rails.env.development?)
8
8
  cache_key = name
9
9
 
10
10
  if cache && @@_financial_type_cache.key?(cache_key)
@@ -4,7 +4,7 @@ module CiviCrm
4
4
 
5
5
  @@_option_value_cache = {}
6
6
 
7
- def self.get(group, name, cache: true, create: Rails.env.development?)
7
+ def self.[](group, name, cache: true, create: Rails.env.development?)
8
8
  cache_key = [group, name]
9
9
 
10
10
  if cache && @@_option_value_cache.key?(cache_key)
@@ -12,8 +12,8 @@ module CiviCrm
12
12
  end
13
13
 
14
14
  option = find_by(
15
- 'name' => name,
16
- 'option_group_id.title' => group
15
+ "name" => name,
16
+ "option_group_id.title" => group
17
17
  )
18
18
 
19
19
  if !option && create
@@ -1,3 +1,3 @@
1
1
  module CiviCrm
2
- VERSION = '1.2.5'
2
+ VERSION = '1.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civicrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Haziev