auth-lh 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bd2ad060985f7dc7738ca261d26bfe6a14e9167
4
- data.tar.gz: e92248fa8f10c9225a6f0fa12e5c242edf0cbdb5
3
+ metadata.gz: 0b92e7f0cab376f0fa9c571bd7150cdea380bebe
4
+ data.tar.gz: bdd6bc96cd5ccd2bb63e5aa3df683f3f4aa49b51
5
5
  SHA512:
6
- metadata.gz: 2a994dcd9eb6bfe1d57db12b6057ca9abce4a591fd9919f881fa72f6984852d9f56ebd198e61184d26fb50b015d46b997d8e2a65a33b759c0e294145c3187873
7
- data.tar.gz: fa4d3d4620427da8d865ef80069590d8431396430c5828f072da8057bf61eab0026ecaefc3f64947a94fc5d7dce9006a94fc49712034ac89c20d70782edab8a0
6
+ metadata.gz: 816b5304d116ff01cc0ac2fd282e5ffd3c33c1503e617bdc4a4c517e487b8b4f8c5d458eb44d7293c9290ca8f5026772cb43f976925bc3b47e7054a67cc9865d
7
+ data.tar.gz: a7a47543d94800a5d7c6ce26e05e53bfa05b548629d03de4e636cb0cbdec605e6a8df74fa965d51c367877a6bdd8214ed977c8d0a550eb8f520ff4d6920396e5
data/CHANGELOG.md CHANGED
@@ -173,3 +173,7 @@
173
173
  ## v0.13.1
174
174
 
175
175
  * Removed no longer used attributes
176
+
177
+ ## v0.14.0
178
+
179
+ * Added first_name and last_name to users, removed name attribute.
@@ -1,5 +1,5 @@
1
1
  module Auth
2
2
  module Lh
3
- VERSION = "0.13.1"
3
+ VERSION = "0.14.0"
4
4
  end
5
5
  end
data/lib/auth_lh/user.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  module AuthLh
2
2
  class User
3
- attr_accessor :email, :jabber, :name, :login, :shop_code,
4
- :shop_id, :shop_name, :enabled, :role_codes, :password_expired,
5
- :has_attendance_control, :has_remote_desktop, :fingerprint_from,
6
- :fingerprint_to, :external_apps
3
+ attr_accessor :email, :jabber, :first_name, :last_name, :login,
4
+ :shop_code, :shop_id, :shop_name, :enabled, :role_codes,
5
+ :password_expired, :has_attendance_control, :has_remote_desktop,
6
+ :fingerprint_from, :fingerprint_to, :external_apps
7
7
 
8
8
  def initialize(attributes={})
9
9
  attributes.each do |k,v|
@@ -15,6 +15,10 @@ module AuthLh
15
15
  end
16
16
  end
17
17
 
18
+ def name
19
+ "#{first_name} #{last_name}"
20
+ end
21
+
18
22
  def has_role?(role_code)
19
23
  role_codes.include?(role_code.to_s)
20
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-lh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-30 00:00:00.000000000 Z
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler