provider_taxonomy 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7aa24a84bc11e3ddd1420bbd05f2f268dbc0e5e9
4
- data.tar.gz: 780867722314029ccbaf64f4840caa09981f2690
3
+ metadata.gz: 5b0a7541767818581d2b1c1713ea142c209b5760
4
+ data.tar.gz: b0a3311519d30bf8ffe9a2c1bc32f0844f2c0252
5
5
  SHA512:
6
- metadata.gz: 985d7ed6421585a44eb1e9d9e47496c5e04f39698e283b6d3109877c26bb4143d420085bd8da3daae23587ca9b7e3d6197158e27363813f606e91c047bad50e1
7
- data.tar.gz: 33ebd9e61820d1ada8e66ace7df30fb6f84f02a031db8de8d45b6879aa5856cc34893e7a635b482e8fe77ef501cae426bf5da0a30342d4acaa0fb3c3645ab34c
6
+ metadata.gz: 6b5c6e7a8527d09b661c760e26d60d50ed3fe6e81dc7b219a0b6afc81c1fb74109e439cd9c83443ca81128a56663e0fd320f42428fb3646c2c2fcab2ac0b8baf
7
+ data.tar.gz: b7c6bfdfa2204a627d555f2745eb5d47d824ff7a40d0922fb7500b5b613b25312d0f992531d21b6d00b096f721c49108fcc6bd0f08e017a67ff1aff11abe53b6
data/README.md CHANGED
@@ -1,9 +1,6 @@
1
- # ProviderTaxonomy
1
+ # Provider Taxonomy
2
2
  A gem to add a database table containing the NUCC Health Care Provider Taxonomy.
3
3
 
4
- ## Usage
5
- Once installed, your Rails app will have a TaxonomyItem database table, from which you can access all healthcare provider specialties.
6
-
7
4
  ## Installation
8
5
  Add this line to your application's Gemfile:
9
6
 
@@ -24,5 +21,18 @@ $ rake db:migrate
24
21
  $ rake provider_taxonomy:import
25
22
  ```
26
23
 
24
+ ## Usage
25
+ Once installed, your Rails app will have a `taxonomy_items` database table and a `TaxonomyItem` model from which you can access all healthcare provider specialties.
26
+
27
+ If you would like to extend the model with your own, you can do the following
28
+
29
+ ```ruby
30
+ class Specialty < ActiveRecord::Base
31
+ self.table_name = "taxonomy_items"
32
+ belongs_to :parent, foreign_key: :parent_id, class_name: Specialty, required: false
33
+ # Your code goes here
34
+ end
35
+ ```
36
+
27
37
  ## License
28
38
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  class TaxonomyItem < ActiveRecord::Base
2
- belongs_to :parent, foreign_key: :parent_id, class_name: TaxonomyItem, optional: true
2
+ belongs_to :parent, foreign_key: :parent_id, class_name: TaxonomyItem, required: false
3
3
  end
@@ -1,4 +1,4 @@
1
- class CreateTaxonomyItems < ActiveRecord::Migration[5.0]
1
+ class CreateTaxonomyItems < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :taxonomy_items do |t|
4
4
  t.string :name, null: false
@@ -1,3 +1,3 @@
1
1
  module ProviderTaxonomy
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provider_taxonomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ClydeDroid
@@ -14,22 +14,16 @@ dependencies:
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 5.0.0
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 5.0.0.1
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: 5.0.0
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 5.0.0.1
26
+ version: '0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: pg
35
29
  requirement: !ruby/object:Gem::Requirement