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 +4 -4
- data/lib/surrounded/rails/version.rb +1 -1
- data/lib/surrounded/railtie.rb +1 -12
- data/surrounded-rails.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a28e1ccee3cef0388c7a82070111665810f079a
|
4
|
+
data.tar.gz: 32f47410e6ff0f091b8063f849e3494dad822758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 081b1daa40b863eaf72eadbc7ae29a1da2e1b743990feedba8ccb45b8291527b922a5309a8fdc5709d49cdab7af00ec0c43c161abbeffa6bafa319148e18afe4
|
7
|
+
data.tar.gz: af20f580c52d2c32626dc9aabeede1090e5a79502d746fbd5635a01c6799458fc727d2cbd85c87726403a24a8409b01902b2413af8295fbf68d37182be3c9f32
|
data/lib/surrounded/railtie.rb
CHANGED
@@ -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.
|
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|
|
data/surrounded-rails.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
26
|
+
version: 0.8.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|