ancestree 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ pkg/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ancestree}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Rose", "Gabe Varela"]
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
16
16
  "README"
17
17
  ]
18
18
  s.files = [
19
- "Gemfile",
19
+ ".gitignore",
20
+ "Gemfile",
20
21
  "Gemfile.lock",
21
22
  "MIT-LICENSE",
22
23
  "README",
data/init.rb CHANGED
@@ -1,5 +1 @@
1
- require 'ancestree'
2
-
3
- class ActiveRecord::Base
4
- include InheritAncestorAttributes
5
- end
1
+ require 'ancestree'
@@ -1,4 +1,6 @@
1
- module InheritAncestorAttributes
1
+ require 'active_support/concern'
2
+
3
+ module Ancestree
2
4
  extend ActiveSupport::Concern
3
5
 
4
6
  def inherits_from_ancestor?(method)
@@ -40,4 +42,6 @@ module InheritAncestorAttributes
40
42
  end
41
43
 
42
44
  end
43
- end
45
+ end
46
+
47
+ ActiveRecord::Base.send :include, Ancestree
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ancestree
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Rose
@@ -80,6 +80,7 @@ extensions: []
80
80
  extra_rdoc_files:
81
81
  - README
82
82
  files:
83
+ - .gitignore
83
84
  - Gemfile
84
85
  - Gemfile.lock
85
86
  - MIT-LICENSE