closure_tree 3.7.0 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -396,6 +396,11 @@ Parallelism is not tested with Rails 3.0.x nor 3.1.x due to this
396
396
 
397
397
  ## Change log
398
398
 
399
+ ### 3.7.1
400
+
401
+ * Moved requires into ActiveSupport.on_load
402
+ * Added ```require 'with_advisory_lock'```
403
+
399
404
  ### 3.7.0
400
405
 
401
406
  **Thread safety!**
data/lib/closure_tree.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'active_support'
2
- require 'closure_tree/acts_as_tree'
3
2
 
4
3
  ActiveSupport.on_load :active_record do
4
+ require 'closure_tree/acts_as_tree'
5
+ require 'with_advisory_lock'
6
+
5
7
  ActiveRecord::Base.send :extend, ClosureTree::ActsAsTree
6
8
  end
@@ -1,3 +1,3 @@
1
1
  module ClosureTree
2
- VERSION = "3.7.0" unless defined?(::ClosureTree::VERSION)
2
+ VERSION = "3.7.1" unless defined?(::ClosureTree::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closure_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  segments:
228
228
  - 0
229
- hash: 2666801847924685333
229
+ hash: -469383754744352322
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  none: false
232
232
  requirements:
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  segments:
237
237
  - 0
238
- hash: 2666801847924685333
238
+ hash: -469383754744352322
239
239
  requirements: []
240
240
  rubyforge_project:
241
241
  rubygems_version: 1.8.23