openagent 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module OpenAgent
2
- VERSION = '0.9.1' unless defined?(OpenAgent::VERSION)
2
+ VERSION = '0.9.2' unless defined?(OpenAgent::VERSION)
3
3
  end
@@ -38,6 +38,10 @@ module SIF
38
38
  def email_prefix
39
39
  first_email.split('@')[0] if first_email
40
40
  end
41
+
42
+ def other_id
43
+ other_ids && other_ids.map{ |other_id| other_id.value }.flatten.first
44
+ end
41
45
  end
42
46
  end
43
47
  end
@@ -15,13 +15,15 @@ module SIF
15
15
  attribute :credits_attempted, Common::CreditsAttempted
16
16
 
17
17
  def status
18
- if entry_date.past? && exit_date.future?
19
- 'active'
20
- else
21
- 'deleted'
18
+ status = 'active'
19
+ if entry_date && entry_date.past?
20
+ status = 'active'
22
21
  end
22
+ if exit_date && exit_date.past?
23
+ status = 'concluded'
24
+ end
25
+ return status
23
26
  end
24
-
25
27
  end
26
28
  end
27
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-02-06 00:00:00.000000000 Z
14
+ date: 2014-02-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake