accounts_client 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: faf4a0867fe309dad591c62f80bd461185f030f1
4
+ data.tar.gz: d7350d7d1f0742fda214b909ca4c3f1a0be71776
5
+ SHA512:
6
+ metadata.gz: e1989989fdc76b76e30ad4d596f907a7899be4c7830b0858c9479035c8f7559965fc19893952ed07488a3749d0c61d669b0d114e611a5c830b2c9f72a8d9eacd
7
+ data.tar.gz: 8a1ab67da0b13b69953db98296d0a3f8003eee27f64752bc1f45110e1cecd0bdc3e1f08f08bad7cceb8dcd8c5808fc92f6e435dc60726f6f642add360ca8d07f
@@ -14,6 +14,8 @@ class PadmaUser < LogicalModel
14
14
  attribute :drc_login
15
15
  attribute :email
16
16
  attribute :locale
17
+ attribute :encoding
18
+ attribute :separator
17
19
  attribute :accounts
18
20
  attribute :current_account_name
19
21
  attribute :roles
@@ -19,12 +19,12 @@ module Accounts
19
19
  # @option options [TrueClass] force_service_call - forces call to users-ws
20
20
  # @return [PadmaUser / PadmaUserDecorator]
21
21
  def user(options={})
22
- padma_user ||= Rails.cache.read([username,"btu_padma_user"])
22
+ padma_user ||= Rails.cache.read([username,"padma_user"])
23
23
 
24
24
  if padma_user.nil? || options[:force_service_call]
25
25
  padma_user = PadmaUser.find(username)
26
26
  if padma_user
27
- Rails.cache.write([username,"btu_padma_user"], padma_user, :expires_in => 5.minutes)
27
+ Rails.cache.write([self,"padma"], padma_user, :expires_in => 5.minutes)
28
28
  end
29
29
  end
30
30
 
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accounts_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
5
- prerelease:
4
+ version: 0.2.11
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dwayne Macgowan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.1'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.1'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: gravtastic
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: logical_model
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.5.8
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.5.8
62
55
  description: This is client library for padma-Accounts-ws
@@ -66,38 +59,36 @@ executables: []
66
59
  extensions: []
67
60
  extra_rdoc_files: []
68
61
  files:
69
- - app/models/padma_user.rb
70
62
  - app/models/padma_account.rb
63
+ - app/models/padma_user.rb
64
+ - config/initializers/accounts_client.rb
71
65
  - lib/accounts/belongs_to_account.rb
72
- - lib/accounts/shared_examples.rb
73
66
  - lib/accounts/belongs_to_user.rb
74
67
  - lib/accounts/is_a_user.rb
75
68
  - lib/accounts/railties.rb
69
+ - lib/accounts/shared_examples.rb
76
70
  - lib/accounts_client.rb
77
- - config/initializers/accounts_client.rb
78
71
  homepage: ''
79
72
  licenses: []
73
+ metadata: {}
80
74
  post_install_message:
81
75
  rdoc_options: []
82
76
  require_paths:
83
77
  - lib
84
78
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
79
  requirements:
87
- - - ! '>='
80
+ - - ">="
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
90
83
  required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
84
  requirements:
93
- - - ! '>='
85
+ - - ">="
94
86
  - !ruby/object:Gem::Version
95
87
  version: '0'
96
88
  requirements: []
97
89
  rubyforge_project:
98
- rubygems_version: 1.8.25
90
+ rubygems_version: 2.4.6
99
91
  signing_key:
100
- specification_version: 3
92
+ specification_version: 4
101
93
  summary: Client library for padma-Accounts-ws
102
94
  test_files: []
103
- has_rdoc: