surrounded-rails 0.2.1 → 0.3.0

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: 1771ec1d18ff450f5c270c7da2c8721ef312ed54
4
- data.tar.gz: 804fe021d6c6b36752ed25032f60902f8a8e0415
3
+ metadata.gz: 9d2bffa15fbb1f01d65d0cc36602c53fa6e0a9c2
4
+ data.tar.gz: d548da66ea1c46df32a2ae7c61032aa29208ce33
5
5
  SHA512:
6
- metadata.gz: 2b07f1373ab9f6933193ae1bbc8f660f881a12918d3b6ee976748dd2a8f19677abbebc8f322c27e50623166f970a53aaea7210a9868037592a2c723e55f60fcb
7
- data.tar.gz: 070380e44e4aa169b684fe443f8bb34fcad5d60614063af648142f3394ea5cfd1480f55356b639b55abb9268c94d4f208d0301647f80cb043fc31fbd9e283839
6
+ metadata.gz: 4bcb7fa120cab2a4b0b5251095632c73df7c0aaea0ef277d15b9c29fb08b167885612e7ff49a8a5fe2e6ede7619df949bee9ee4dc9465bd7bff37213089745b1
7
+ data.tar.gz: f99da3f93f29bb2ca08dace3b0d652deac075ba2aad4eb13dec72df13ef14c884cbd3d0faa8ec4934fabfedd9c685621653e8b08555642dce6c7f4a2450d96e0
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Surrounded::Rails
2
2
 
3
3
  This sets up your ActiveRecord and/or Mongoid models and ActionController controllers to use [Surrounded](http://github.com/saturnflyer/surrounded).
4
- Support for non-ActiveRecord will be added.
5
4
 
6
5
  ## Installation
7
6
 
@@ -0,0 +1 @@
1
+ require 'surrounded_rails/railtie' if defined?(::Rails)
@@ -1,21 +1,21 @@
1
- require "surrounded/rails/version"
1
+ require "surrounded_rails/version"
2
2
  require "surrounded"
3
3
  require "rails"
4
- module Surrounded
4
+ module SurroundedRails
5
5
  class Railtie < ::Rails::Railtie
6
6
  if defined?(ActiveRecord)
7
- initializer 'surrounded.active_record' do |app|
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 'surrounded.mongoid' do |app|
13
+ initializer 'surrounded_rails.mongoid' do |app|
14
14
  Mongoid::Document.send(:include, Surrounded)
15
15
  end
16
16
  end
17
17
 
18
- initializer 'surrounded.action_controller' do |app|
18
+ initializer 'surrounded_rails.action_controller' do |app|
19
19
  ActionController::Base.send(:include, Surrounded)
20
20
  end
21
21
  end
@@ -0,0 +1,3 @@
1
+ module SurroundedRails
2
+ VERSION = "0.3.0"
3
+ end
@@ -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 'surrounded/rails/version'
4
+ require 'surrounded_rails/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "surrounded-rails"
8
- spec.version = Surrounded::Rails::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.8.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.2.1
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: 2014-01-27 00:00:00.000000000 Z
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.8.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.8.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 use Surrounded
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/surrounded/rails.rb
68
- - lib/surrounded/rails/version.rb
69
- - lib/surrounded/railtie.rb
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.0
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 Surrounded
81
+ summary: This sets up your ActiveRecord/Mongoid and ActionController objects to use
82
+ Surrounded
95
83
  test_files: []
@@ -1 +0,0 @@
1
- require 'surrounded/railtie' if defined?(::Rails)
@@ -1,5 +0,0 @@
1
- module Surrounded
2
- module Rails
3
- VERSION = "0.2.1"
4
- end
5
- end