br_tag_models 0.1.1 → 0.1.2
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 +4 -4
- data/VERSION +1 -1
- data/br_tag_models.gemspec +3 -3
- data/railties/tag_models_railtie.rb +12 -0
- metadata +2 -2
- data/railties/init.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 402130c5ebd0055f81b7bd3be72ae65244ae8e2e
|
4
|
+
data.tar.gz: f70d76209c4a583d82fdaf6fea2f1e24acb3680e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 974e6de4fe00c10dd64377da054dc1bbb3a3678dcc1438ed44a2a9e15233321e575d0dc8fe787c5f1ac3c32ea4f016355f52795fecbdd4826e57459c6975bea1
|
7
|
+
data.tar.gz: ca5d212ebb73030a6845a46ce43d84107fd80a7e93d2faae62e90a959769e3b53eab97cfe544d1edf1b4abbe417480f1053d003e9c12554238c1716a9354da49
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/br_tag_models.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: br_tag_models 0.1.
|
5
|
+
# stub: br_tag_models 0.1.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "br_tag_models"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Aaron Wallis"]
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
"lib/tag_models.rb",
|
30
30
|
"lib/tag_models/tag.rb",
|
31
31
|
"lib/tag_models/tag_info.rb",
|
32
|
-
"railties/
|
32
|
+
"railties/tag_models_railtie.rb",
|
33
33
|
"spec/Rakefile",
|
34
34
|
"spec/config/database.yml.example",
|
35
35
|
"spec/db/migrate/.gitignore",
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'awesome_nested_set/rails/init'
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + "/../lib/tag_models")
|
4
|
+
|
5
|
+
if defined?(Rails)
|
6
|
+
class TagModelsRailtie < Rails::Railtie
|
7
|
+
ActiveRecord::Base.send(:include, TagModels)
|
8
|
+
if Rails.env.develoment?
|
9
|
+
ActiveSupport::Dependencies.explicitly_unloadable_constants << 'TagModels'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: br_tag_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Wallis
|
@@ -155,7 +155,7 @@ files:
|
|
155
155
|
- lib/tag_models.rb
|
156
156
|
- lib/tag_models/tag.rb
|
157
157
|
- lib/tag_models/tag_info.rb
|
158
|
-
- railties/
|
158
|
+
- railties/tag_models_railtie.rb
|
159
159
|
- spec/Rakefile
|
160
160
|
- spec/config/database.yml.example
|
161
161
|
- spec/db/migrate/.gitignore
|
data/railties/init.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
$:.unshift vendor = "#{File.dirname(__FILE__)}/../vendor"
|
2
|
-
Dir["#{vendor}/*/lib"].each do |path|
|
3
|
-
$:.unshift path
|
4
|
-
end
|
5
|
-
|
6
|
-
require 'awesome_nested_set/rails/init'
|
7
|
-
require File.expand_path(File.dirname(__FILE__) + "/../lib/tag_models")
|
8
|
-
|
9
|
-
ActiveRecord::Base.send(:include, TagModels)
|
10
|
-
if defined?(RAILS_ENV) && RAILS_ENV == 'development'
|
11
|
-
ActiveSupport::Dependencies.explicitly_unloadable_constants << 'TagModels'
|
12
|
-
end
|