namie 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +19 -0
- data/README.md +6 -6
- data/lib/namie/name.rb +5 -0
- data/lib/namie/version.rb +1 -1
- data/namie.gemspec +3 -2
- data/spec/namie/name_spec.rb +8 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a77a801aae009ad5c340686babf894415de8cbc0
|
4
|
+
data.tar.gz: 3b4dfa08f18a6be4d5e2e9c6e0343255fb918b42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc3d08f07c06320adfade6e236406b8e38cf94299b9b56a3befff3509cf1a81ad15d9617aeb1850cbdef7b0a01fd05528a33424bdb4500b4cb181824ecb5f62
|
7
|
+
data.tar.gz: c45f00f9a5c312fe2e09354a615f499c5ad3478d27fbcefc03d42dc511c4d34edafb50c6e128be037c5e2efb16adedd10ad1ad39a41987fcffbe7c5451d36efe
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2014-2015 Hooray Authors
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
4
|
+
copy of this software and associated documentation files (the "Software"),
|
5
|
+
to deal in the Software without restriction, including without limitation
|
6
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
7
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
8
|
+
Software is furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be
|
11
|
+
included in all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
14
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
15
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
17
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
18
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
19
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
.-.
|
3
|
+
; : .-.
|
4
|
+
.;: : .-. . ,';.,';. `-' .-.
|
5
|
+
.;' \ : ; : ;; ;; ;; ;' .;.-'
|
6
|
+
.:'.; \: `:::'-' '; ;; '; _.;:._. `:::'
|
7
|
+
(__.' `. _; `-'
|
8
8
|
|
9
9
|
|
10
10
|
|
data/lib/namie/name.rb
CHANGED
data/lib/namie/version.rb
CHANGED
data/namie.gemspec
CHANGED
@@ -9,8 +9,9 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ['Marcos Piccinini']
|
10
10
|
s.email = ['nofxx@github.com']
|
11
11
|
s.homepage = 'http://github.com/nofxx/namie'
|
12
|
-
s.summary = '
|
13
|
-
s.description = '
|
12
|
+
s.summary = 'Names as first class citizens'
|
13
|
+
s.description = 'Names as first class citizens'
|
14
|
+
s.license = 'MIT'
|
14
15
|
|
15
16
|
s.files = `git ls-files`.split("\n")
|
16
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/spec/namie/name_spec.rb
CHANGED
@@ -21,6 +21,14 @@ describe Namie::Name do
|
|
21
21
|
Namie::Name.new('George S. Patton').lastname.must_equal('Patton')
|
22
22
|
end
|
23
23
|
|
24
|
+
it 'should calculate an alias' do
|
25
|
+
Namie::Name.new('Ian "Lenny" Kilmister').aka.must_equal('Lenny')
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'should calculate an alias' do
|
29
|
+
Namie::Name.new('S. Dumont').aka.must_be_nil
|
30
|
+
end
|
31
|
+
|
24
32
|
describe 'Simple name' do
|
25
33
|
let(:nam) { Namie::Name.new('Jules Verne') } # Jules Gabriel Verne
|
26
34
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: namie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos Piccinini
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
55
|
+
description: Names as first class citizens
|
56
56
|
email:
|
57
57
|
- nofxx@github.com
|
58
58
|
executables: []
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- ".gitignore"
|
63
63
|
- Gemfile
|
64
64
|
- Guardfile
|
65
|
+
- MIT-LICENSE
|
65
66
|
- README.md
|
66
67
|
- Rakefile
|
67
68
|
- lib/namie.rb
|
@@ -75,7 +76,8 @@ files:
|
|
75
76
|
- spec/namie/parser_spec.rb
|
76
77
|
- spec/spec_helper.rb
|
77
78
|
homepage: http://github.com/nofxx/namie
|
78
|
-
licenses:
|
79
|
+
licenses:
|
80
|
+
- MIT
|
79
81
|
metadata: {}
|
80
82
|
post_install_message:
|
81
83
|
rdoc_options: []
|
@@ -96,7 +98,7 @@ rubyforge_project:
|
|
96
98
|
rubygems_version: 2.4.3
|
97
99
|
signing_key:
|
98
100
|
specification_version: 4
|
99
|
-
summary:
|
101
|
+
summary: Names as first class citizens
|
100
102
|
test_files:
|
101
103
|
- spec/namie/formatter_spec.rb
|
102
104
|
- spec/namie/name_spec.rb
|