planning_client 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/app/models/planning_client/user.rb +23 -3
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NTgwNWUxN2U0ZjQ2YWRkMWRhNDNkNjA3ZTI1NWNmNmM1OGUxODI0Nw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0f2ae36951e7f8999e700843fb079ddd3c94d2ea
|
4
|
+
data.tar.gz: c0240b4b39814f0a4802edc7462b1178baa81220
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YWE2ZjY2ZTBjMjNiN2ViMDQyOGVlMDdhMTU1MDdiNmM2YWM5ZTBjYjk2Mzky
|
11
|
-
YjkzYThmYTk1OWFmMGE4MTNiNjBlYThhZDk2N2ZiNDhjYmExMDU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MTVhMzRhOWZlOGM3MWZiZmY0YmRjZGYzYjQ5NDdmY2EzZDFjNjA1MjRiOTQ3
|
14
|
-
ZDBlZDdhNzliZDMwNDJhM2IyMzM3OTk4N2IxOTlhMTY4YTU3OWQ2OGZlZjBl
|
15
|
-
YzVmMmFhM2Q1NWQ0NTAyNjM4MGI5NDBjMzI3YmJjOGE0MGFkZjU=
|
6
|
+
metadata.gz: 8a2e1b9e65216a42095ca86345c8d1fe2b68dac6c07aade834db7746b84523333f17f49522b84f2754296482b8d9f431503406937229b0785ae4a17b12505d1c
|
7
|
+
data.tar.gz: e3c53e01297c5ac626ecd9711d0a8089557e89ef2cc53da26faf8e82b906015a77573ad259ef1e1101eae063be6cecc258d3c9045927c742d6b1bdd8d3bedcd4
|
@@ -10,10 +10,30 @@ module PlanningClient
|
|
10
10
|
attribute :id
|
11
11
|
attribute :daily_email_reminder_enabled
|
12
12
|
attribute :username
|
13
|
+
attribute :email
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
# Updates User only if necessary to avoid
|
16
|
+
# requests with no effect.
|
17
|
+
#
|
18
|
+
# @params [Hash] params
|
19
|
+
# daily_email: Boolean
|
20
|
+
# email: String
|
21
|
+
def update_if_necessary(params)
|
22
|
+
update_needed = false
|
23
|
+
|
24
|
+
if !params[:daily_email].nil? &&
|
25
|
+
self.daily_email_reminder_enabled != params[:daily_email]
|
26
|
+
update_needed = true
|
27
|
+
self.daily_email_reminder_enabled = params[:daily_email]
|
28
|
+
end
|
29
|
+
|
30
|
+
if !params[:email].nil? &&
|
31
|
+
self.email != params[:email]
|
32
|
+
update_needed = true
|
33
|
+
self.email = params[:email]
|
34
|
+
end
|
35
|
+
|
36
|
+
if update_needed
|
17
37
|
self.save
|
18
38
|
end
|
19
39
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: planning_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: logical_model
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.5.12
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.5.12
|
41
41
|
description: Padma Planning client with LogicalModel
|
@@ -61,12 +61,12 @@ require_paths:
|
|
61
61
|
- lib
|
62
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
@@ -76,4 +76,3 @@ signing_key:
|
|
76
76
|
specification_version: 4
|
77
77
|
summary: Client library for padma-planning-ws
|
78
78
|
test_files: []
|
79
|
-
has_rdoc:
|