morse_nameable 1.1.0 → 1.2.0

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
  SHA1:
3
- metadata.gz: 91d2493f4d1df390d783e4d210ecdba9bbcfae43
4
- data.tar.gz: d4ddaea2fad79ef46b73597cd816d558af6af016
3
+ metadata.gz: 51c92e64393ea7fa756f101c2e4301d365017922
4
+ data.tar.gz: 0a78e4f15fa93c47c83c408f4f40c6aab480cc7c
5
5
  SHA512:
6
- metadata.gz: f9688e21c0e4651e00a15c8c55ede511e2e82307e419209cbecf0353200d51c7177b2beef3c1e8cc47513afdcb00c706384ea56a36d4800753c6508d62751c35
7
- data.tar.gz: 98d51a9d88b4286c53d049f18b390a9135a93bde9ef0410e1af7c57f9788a5a4b5e647309c3dded45eb90959bf181835c3b64754232baf89f99124fdbc772e5c
6
+ metadata.gz: a05a242000e201069f925624a85f6696c3eaf5f7f5405431d152ca5e98a0012774f41c3be8b71d21df66334d34a9442044904f4a2b93e0cd71d5f020aebc4a4a
7
+ data.tar.gz: b077cc6622fb32ffe167eb5786b0490ec03a1b40dab522896ed868a11c2fc39e80068abf577d8093c79f80cc3468eac96cca16014247ba15131cfb8711665e6b
@@ -1,3 +1,3 @@
1
1
  module MorseNameable
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
data/lib/nameable.rb CHANGED
@@ -44,11 +44,15 @@ module Nameable
44
44
  lastname
45
45
  end
46
46
 
47
-
48
47
  def surname=(thing)
49
48
  self.lastname=thing
50
49
  end
51
50
 
51
+ def title
52
+ return super if defined?(super)
53
+ full_name
54
+ end
55
+
52
56
  private
53
57
 
54
58
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_nameable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-03 00:00:00.000000000 Z
12
+ date: 2015-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: morse_fields_validator