accounts_client 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/padma_user.rb +10 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83bba499569c8f2868225b180f93816b932aa77a9d6a95efdb0c217cb5e4ae9b
4
- data.tar.gz: d235d711105fe7dfd84cb1560c13f9d11645b1e012bd7ded5b9867b461e99ea0
3
+ metadata.gz: 06c96248425c6d653ebf45b6bd375354c5beabdbd1af12e0bafde2dc32963dd4
4
+ data.tar.gz: d3200363e6b70501412cbfd634e2a71632eb51fc5c5e2172b3142ad38c7a4456
5
5
  SHA512:
6
- metadata.gz: b7c9475bd594b3a60cd10279bf0d953f9e3a51aaa76267217271f42f0813beba3f20c994f5c218192f50500415875af9e3d5995a486d234b64f060dd200e9ca0
7
- data.tar.gz: 33aa86c83137ec979b2e7c0db639d9fe777f66a52ac71240e3bc827e97537a08a16c297ae60e0de2a5bdc514cbfe1fd60e8f1012280fcf150ea598d838d409e8
6
+ metadata.gz: 83361227acb208420c482d141782bbc2b945e639ab081c1c601fceb1410e351ae2ad6e193b47bf1b7a0b9a80c944a2d395e69b2126cafeb5b051872cd54a91c7
7
+ data.tar.gz: a46ae214fb50ec782fbd2ef6f5e310b7b5cd1947d8f43da2986ce5d926858cc5161f4e788715843711443576620fc9f099cb3ddcf4f943594602dc5258ffdcfa
@@ -31,6 +31,16 @@ class PadmaUser < LogicalModel
31
31
  TIMEOUT = 5500 # milisecons
32
32
  PER_PAGE = 9999
33
33
 
34
+ IGNORED_USERNAMES = %W(system gympass)
35
+
36
+ def self.find(id, params = {})
37
+ if id.in?(IGNORED_USERNAMES)
38
+ nil
39
+ else
40
+ super(id, params)
41
+ end
42
+ end
43
+
34
44
  def self.find_with_rails_cache(username,options = {})
35
45
  pu = Rails.cache.read([username,"padma_user"])
36
46
  if pu.nil? || options[:refresh]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accounts_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-30 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties