ntee 0.0.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/ntee.rb +7 -1
- data/lib/ntee/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5a1c147a5ad2b1d1bd2e89045582f9877b6cf85702f1fb8a9b58d009a0ee534
|
4
|
+
data.tar.gz: edf43fff183f7f7841dbda369f3b4c9906af1ee064058b7b5e10f48599644fc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a0c6e33341675b1f572be7bd4cf5f8cff13987d6fd442b7614a9d333b9260922c174e987af89a2476185f1adab009c2aed324775d213773cb7c85f6f647be71
|
7
|
+
data.tar.gz: ed4dee554603a9279e52540531bf4bf38c2bcc92b6c4794f27e330db747614892d5a7d839e64700a57a15181da7d1ffc4c74548e736ed0bc08acbe28bf382cd8
|
data/CHANGELOG.md
ADDED
data/lib/ntee.rb
CHANGED
@@ -2,12 +2,18 @@ require 'ntee/version'
|
|
2
2
|
|
3
3
|
module NTEE
|
4
4
|
class Category
|
5
|
-
attr_accessor :
|
5
|
+
attr_accessor :code, :subcategories, :parent
|
6
|
+
attr_writer :name
|
6
7
|
|
7
8
|
def initialize
|
8
9
|
self.subcategories ||= {}
|
9
10
|
end
|
10
11
|
|
12
|
+
def name
|
13
|
+
# strip non-ascii characters
|
14
|
+
@name.gsub(/[\u0080-\u00ff]/, "")
|
15
|
+
end
|
16
|
+
|
11
17
|
def to_s
|
12
18
|
"#{name} (#{code})"
|
13
19
|
end
|
data/lib/ntee/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ntee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Budin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -61,6 +61,7 @@ extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
63
|
- ".gitignore"
|
64
|
+
- CHANGELOG.md
|
64
65
|
- Gemfile
|
65
66
|
- LICENSE
|
66
67
|
- README.md
|
@@ -88,8 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
89
|
- !ruby/object:Gem::Version
|
89
90
|
version: '0'
|
90
91
|
requirements: []
|
91
|
-
|
92
|
-
rubygems_version: 2.7.3
|
92
|
+
rubygems_version: 3.0.3
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: NTEE utilities for US nonprofit entity categorization
|