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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03b80da907998c1501a017b67b3a77157ec8496a62d5a6d2942f588a414f6e20
4
- data.tar.gz: 474320909c63ff0c4dadd46a9ab4afeccf6f2af7e96dcc6983a5a640f30fb430
3
+ metadata.gz: e5a1c147a5ad2b1d1bd2e89045582f9877b6cf85702f1fb8a9b58d009a0ee534
4
+ data.tar.gz: edf43fff183f7f7841dbda369f3b4c9906af1ee064058b7b5e10f48599644fc8
5
5
  SHA512:
6
- metadata.gz: 8e254d86d9376ab2fe718df3d976f72592fcbdd5db26492116513fb38763068dbb1f8e635f618b08f646d5b1aa0e9bfc5a84fb6d4b21d4689f9fb273c431a228
7
- data.tar.gz: 7d42be8621df32db7c2a04f444e21edb43be8b044bf36522d17765cfe7c9e4d55bfc2efe60e7566cdbdfecec5a9c2fd3bd3401a987800e79a6496ddbad4a6a20
6
+ metadata.gz: 8a0c6e33341675b1f572be7bd4cf5f8cff13987d6fd442b7614a9d333b9260922c174e987af89a2476185f1adab009c2aed324775d213773cb7c85f6f647be71
7
+ data.tar.gz: ed4dee554603a9279e52540531bf4bf38c2bcc92b6c4794f27e330db747614892d5a7d839e64700a57a15181da7d1ffc4c74548e736ed0bc08acbe28bf382cd8
@@ -0,0 +1,7 @@
1
+ # Version 1.0.0 - September 30, 2019
2
+
3
+ * Strip invalid characters that are in the NTEE data set (thanks @rickychilcott!)
4
+
5
+ # Pre-release versions
6
+
7
+ Unfortunately, we weren't keeping a changelog at Gively when this gem was originally written. :(
@@ -2,12 +2,18 @@ require 'ntee/version'
2
2
 
3
3
  module NTEE
4
4
  class Category
5
- attr_accessor :name, :code, :subcategories, :parent
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
@@ -1,3 +1,3 @@
1
1
  module NTEE
2
- VERSION = "0.0.4"
2
+ VERSION = "1.0.0"
3
3
  end
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
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: 2018-09-20 00:00:00.000000000 Z
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
- rubyforge_project:
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