surrounded-rails 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f3724bf22acc11e6b80927912c40cf13f592ece
4
- data.tar.gz: fe56bc93db0d3dbe258673a07f5dc9660f2882b3
3
+ metadata.gz: 7a28e1ccee3cef0388c7a82070111665810f079a
4
+ data.tar.gz: 32f47410e6ff0f091b8063f849e3494dad822758
5
5
  SHA512:
6
- metadata.gz: 80f24a5cddb1317eb6b6c6302cdb3cdb548a539d782183a10156d82a212f5a87b5e2757926465b15a255986df3955e79339eab6043900e90add2be0025d947b8
7
- data.tar.gz: 965785219ff75d9783f1abfa3a0753ce9425ba3799f73b9f2807dc82f99e63449abb967f9a0c9818ac0f944e054890bea19fdafdc1753739bd8b5687396a6c98
6
+ metadata.gz: 081b1daa40b863eaf72eadbc7ae29a1da2e1b743990feedba8ccb45b8291527b922a5309a8fdc5709d49cdab7af00ec0c43c161abbeffa6bafa319148e18afe4
7
+ data.tar.gz: af20f580c52d2c32626dc9aabeede1090e5a79502d746fbd5635a01c6799458fc727d2cbd85c87726403a24a8409b01902b2413af8295fbf68d37182be3c9f32
@@ -1,5 +1,5 @@
1
1
  module Surrounded
2
2
  module Rails
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -4,18 +4,7 @@ require "rails"
4
4
  module Surrounded
5
5
  class Railtie < ::Rails::Railtie
6
6
  initializer 'surrounded.active_record' do |app|
7
- ActiveRecord::Base.class_eval {
8
- include Surrounded
9
- # There is no earlier hook to set this variable.
10
- # The after_initialize callback occurs to late because
11
- # the initialize method has a procedure which calls
12
- # respond_to? and Surrounded adds respond_to_missing?
13
- # to get information from the context (which is the first
14
- # item in the @__surroundings__ collection).
15
- def surroundings
16
- @__surroundings__ ||= []
17
- end
18
- }
7
+ ActiveRecord::Base.send(:include, Surrounded)
19
8
  end
20
9
 
21
10
  initializer 'surrounded.action_controller' do |app|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "surrounded", "~> 0.7.0"
21
+ spec.add_dependency "surrounded", "~> 0.8.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surrounded-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Jim Gay'"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-21 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: surrounded
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
19
+ version: 0.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.0
26
+ version: 0.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement