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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77e33d6b7cf449a60dc374cc33863611c7580758
4
- data.tar.gz: 03a05d26aa1ae5a81f6b81a73cb45cd43ba47ff5
3
+ metadata.gz: 402130c5ebd0055f81b7bd3be72ae65244ae8e2e
4
+ data.tar.gz: f70d76209c4a583d82fdaf6fea2f1e24acb3680e
5
5
  SHA512:
6
- metadata.gz: 401dc92d727d1b6d5782d3f495289f33f8838502d0770c9c44d0d75ab51c159dc5b0f5e9308903a92c8656d19d79a164e2a58f06eee9d86600fa0dbc75a29b40
7
- data.tar.gz: b9fcb7a76db0f0603942cd28ec32dc72d840e14409efcabb3b9ac113e3baffbc19254c2a252f06eebef11678e14c1afd32c2b6b0c82a7790cdba4bc40703bbc1
6
+ metadata.gz: 974e6de4fe00c10dd64377da054dc1bbb3a3678dcc1438ed44a2a9e15233321e575d0dc8fe787c5f1ac3c32ea4f016355f52795fecbdd4826e57459c6975bea1
7
+ data.tar.gz: ca5d212ebb73030a6845a46ce43d84107fd80a7e93d2faae62e90a959769e3b53eab97cfe544d1edf1b4abbe417480f1053d003e9c12554238c1716a9354da49
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -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.1 ruby lib
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.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/init.rb",
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.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/init.rb
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