surrounded-rails 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/surrounded_rails/rails.rb +1 -0
- data/lib/{surrounded → surrounded_rails}/railtie.rb +5 -5
- data/lib/surrounded_rails/version.rb +3 -0
- data/surrounded-rails.gemspec +5 -6
- metadata +12 -24
- data/lib/surrounded/rails.rb +0 -1
- data/lib/surrounded/rails/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d2bffa15fbb1f01d65d0cc36602c53fa6e0a9c2
|
4
|
+
data.tar.gz: d548da66ea1c46df32a2ae7c61032aa29208ce33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bcb7fa120cab2a4b0b5251095632c73df7c0aaea0ef277d15b9c29fb08b167885612e7ff49a8a5fe2e6ede7619df949bee9ee4dc9465bd7bff37213089745b1
|
7
|
+
data.tar.gz: f99da3f93f29bb2ca08dace3b0d652deac075ba2aad4eb13dec72df13ef14c884cbd3d0faa8ec4934fabfedd9c685621653e8b08555642dce6c7f4a2450d96e0
|
data/README.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
require 'surrounded_rails/railtie' if defined?(::Rails)
|
@@ -1,21 +1,21 @@
|
|
1
|
-
require "
|
1
|
+
require "surrounded_rails/version"
|
2
2
|
require "surrounded"
|
3
3
|
require "rails"
|
4
|
-
module
|
4
|
+
module SurroundedRails
|
5
5
|
class Railtie < ::Rails::Railtie
|
6
6
|
if defined?(ActiveRecord)
|
7
|
-
initializer '
|
7
|
+
initializer 'surrounded_rails.active_record' do |app|
|
8
8
|
ActiveRecord::Base.send(:include, Surrounded)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
if defined?(Mongoid)
|
13
|
-
initializer '
|
13
|
+
initializer 'surrounded_rails.mongoid' do |app|
|
14
14
|
Mongoid::Document.send(:include, Surrounded)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
initializer '
|
18
|
+
initializer 'surrounded_rails.action_controller' do |app|
|
19
19
|
ActionController::Base.send(:include, Surrounded)
|
20
20
|
end
|
21
21
|
end
|
data/surrounded-rails.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'surrounded_rails/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "surrounded-rails"
|
8
|
-
spec.version =
|
8
|
+
spec.version = SurroundedRails::VERSION
|
9
9
|
spec.authors = ["'Jim Gay'"]
|
10
10
|
spec.email = ["jim@saturnflyer.com"]
|
11
|
-
spec.description = %q{This sets up your ActiveRecord and ActionController objects to use Surrounded}
|
12
|
-
spec.summary = %q{This sets up your ActiveRecord and ActionController objects to use Surrounded}
|
11
|
+
spec.description = %q{This sets up your ActiveRecord/Mongoid and ActionController objects to use Surrounded}
|
12
|
+
spec.summary = %q{This sets up your ActiveRecord/Mongoid and ActionController objects to use Surrounded}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -18,8 +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.9.0"
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
24
23
|
spec.add_development_dependency "rake"
|
25
24
|
end
|
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.3.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:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: surrounded
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.9.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.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.3'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.3'
|
26
|
+
version: 0.9.0
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +38,8 @@ dependencies:
|
|
52
38
|
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '0'
|
55
|
-
description: This sets up your ActiveRecord and ActionController objects to
|
41
|
+
description: This sets up your ActiveRecord/Mongoid and ActionController objects to
|
42
|
+
use Surrounded
|
56
43
|
email:
|
57
44
|
- jim@saturnflyer.com
|
58
45
|
executables: []
|
@@ -64,9 +51,9 @@ files:
|
|
64
51
|
- LICENSE.txt
|
65
52
|
- README.md
|
66
53
|
- Rakefile
|
67
|
-
- lib/
|
68
|
-
- lib/
|
69
|
-
- lib/
|
54
|
+
- lib/surrounded_rails/rails.rb
|
55
|
+
- lib/surrounded_rails/railtie.rb
|
56
|
+
- lib/surrounded_rails/version.rb
|
70
57
|
- surrounded-rails.gemspec
|
71
58
|
homepage: ''
|
72
59
|
licenses:
|
@@ -88,8 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
75
|
version: '0'
|
89
76
|
requirements: []
|
90
77
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.2.
|
78
|
+
rubygems_version: 2.2.2
|
92
79
|
signing_key:
|
93
80
|
specification_version: 4
|
94
|
-
summary: This sets up your ActiveRecord and ActionController objects to use
|
81
|
+
summary: This sets up your ActiveRecord/Mongoid and ActionController objects to use
|
82
|
+
Surrounded
|
95
83
|
test_files: []
|
data/lib/surrounded/rails.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'surrounded/railtie' if defined?(::Rails)
|