morse_nameable 1.0.3 → 1.1.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: a5133693badd106b8dd679264457ee8f7be8b74d
4
- data.tar.gz: 0ea6268c25aa1f8302e6a1925da2ee4049338871
3
+ metadata.gz: 91d2493f4d1df390d783e4d210ecdba9bbcfae43
4
+ data.tar.gz: d4ddaea2fad79ef46b73597cd816d558af6af016
5
5
  SHA512:
6
- metadata.gz: 11c519c8a9fc832d2464fba1ffe81fe7d748d475256f5a005cf392a9a9342f10810b811a47c25aaabcf441699dab2ff9ef528f3988a571c2eed85561a3d78b52
7
- data.tar.gz: 81307e0b9126b1156e28e6a88a07ebd9a55b5ffcaa9c730921b7f278a763706a0bec943e22132b2d9a0e0a6c5c5d02e2cdb1cbb6c3852151f1e47d03aa3825e0
6
+ metadata.gz: f9688e21c0e4651e00a15c8c55ede511e2e82307e419209cbecf0353200d51c7177b2beef3c1e8cc47513afdcb00c706384ea56a36d4800753c6508d62751c35
7
+ data.tar.gz: 98d51a9d88b4286c53d049f18b390a9135a93bde9ef0410e1af7c57f9788a5a4b5e647309c3dded45eb90959bf181835c3b64754232baf89f99124fdbc772e5c
@@ -1,3 +1,3 @@
1
1
  module MorseNameable
2
- VERSION = "1.0.3"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/nameable.rb CHANGED
@@ -24,6 +24,14 @@ module Nameable
24
24
 
25
25
  public
26
26
 
27
+ def first_name
28
+ firstname
29
+ end
30
+
31
+ def first_name=(thing)
32
+ self.firstname=thing
33
+ end
34
+
27
35
  def full_name
28
36
  "#{firstname} #{lastname}"
29
37
  end
@@ -32,6 +40,15 @@ module Nameable
32
40
  "#{lastname.upcase}, #{firstname}"
33
41
  end
34
42
 
43
+ def surname
44
+ lastname
45
+ end
46
+
47
+
48
+ def surname=(thing)
49
+ self.lastname=thing
50
+ end
51
+
35
52
  private
36
53
 
37
54
 
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.0.3
4
+ version: 1.1.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-07-31 00:00:00.000000000 Z
12
+ date: 2015-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: morse_fields_validator