accounts_client 0.3.0 → 0.3.2

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: e5b2d20f2442d19622e12ebd2472bc3ab125bc5ce2766ee85c18404f1984361b
4
- data.tar.gz: 006a6c118b74801b94719311e04c8be19b04a54bb6b6c2cb280ea26b52d3b766
3
+ metadata.gz: 06c96248425c6d653ebf45b6bd375354c5beabdbd1af12e0bafde2dc32963dd4
4
+ data.tar.gz: d3200363e6b70501412cbfd634e2a71632eb51fc5c5e2172b3142ad38c7a4456
5
5
  SHA512:
6
- metadata.gz: 21024b41afd6f5fbefdb0722026e91e8c6082a2d25c4268a52b97092e501016404e5286493f34a1b8954b0d2c2e401727957c4854e52a99fce40b3dfeea213ef
7
- data.tar.gz: 1fd60fc3861a318a551a603b3509bd7addcf43f0c56f23ca717f8c9a3a09ad77d9f062bdb16d29c95b6b6fca8ba004e62ba670321f9219d92f04d6526b84659d
6
+ metadata.gz: 83361227acb208420c482d141782bbc2b945e639ab081c1c601fceb1410e351ae2ad6e193b47bf1b7a0b9a80c944a2d395e69b2126cafeb5b051872cd54a91c7
7
+ data.tar.gz: a46ae214fb50ec782fbd2ef6f5e310b7b5cd1947d8f43da2986ce5d926858cc5161f4e788715843711443576620fc9f099cb3ddcf4f943594602dc5258ffdcfa
@@ -22,6 +22,7 @@ class PadmaAccount < LogicalModel
22
22
  attribute :country
23
23
  attribute :coordenates
24
24
  attribute :enabled_petals
25
+ attribute :currency
25
26
 
26
27
  set_api_key 'token', Accounts::API_KEY
27
28
 
@@ -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.0
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-09-19 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