objectify 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/objectify.rb CHANGED
@@ -1,4 +1,10 @@
1
1
  module Objectify
2
- module Rails
3
- end
2
+ autoload :Executor, "objectify/executor"
3
+ autoload :Injector, "objectify/injector"
4
+ autoload :Instantiator, "objectify/instantiator"
5
+ autoload :Instrumentation, "objectify/instrumentation"
6
+ autoload :PolicyChainExecutor, "objectify/policy_chain_executor"
7
+ autoload :Rails, "objectify/rails"
8
+ autoload :Route, "objectify/route"
9
+ autoload :Version, "objectify/version"
4
10
  end
@@ -0,0 +1,12 @@
1
+ module Objectify
2
+ module Rails
3
+ autoload :Application, "objectify/rails/application"
4
+ autoload :Controller, "objectify/rails/controller"
5
+ autoload :ControllerHelpers, "objectify/rails/controller"
6
+ autoload :Helpers, "objectify/rails/helpers"
7
+ autoload :LogSubscriber, "objectify/rails/log_subscriber"
8
+ autoload :Railtie, "objectify/rails/railtie"
9
+ autoload :Routes, "objectify/rails/routes"
10
+ autoload :Routing, "objectify/rails/routing"
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Objectify
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objectify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70262082543760 !ruby/object:Gem::Requirement
16
+ requirement: &70230408805980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.4.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70262082543760
24
+ version_requirements: *70230408805980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70262082559640 !ruby/object:Gem::Requirement
27
+ requirement: &70230408805480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70262082559640
35
+ version_requirements: *70230408805480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70262082559180 !ruby/object:Gem::Requirement
38
+ requirement: &70230408805020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70262082559180
46
+ version_requirements: *70230408805020
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bourne
49
- requirement: &70262082558700 !ruby/object:Gem::Requirement
49
+ requirement: &70230408804560 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70262082558700
57
+ version_requirements: *70230408804560
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mocha
60
- requirement: &70262082558160 !ruby/object:Gem::Requirement
60
+ requirement: &70230408804100 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - =
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.9.8
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70262082558160
68
+ version_requirements: *70230408804100
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rails
71
- requirement: &70262082557540 !ruby/object:Gem::Requirement
71
+ requirement: &70230408803640 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 3.0.0
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70262082557540
79
+ version_requirements: *70230408803640
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: i18n
82
- requirement: &70262082557000 !ruby/object:Gem::Requirement
82
+ requirement: &70230408803260 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70262082557000
90
+ version_requirements: *70230408803260
91
91
  description: Objects on rails.
92
92
  email:
93
93
  - jamesgolick@gmail.com
@@ -112,12 +112,12 @@ files:
112
112
  - lib/objectify/instantiator.rb
113
113
  - lib/objectify/instrumentation.rb
114
114
  - lib/objectify/policy_chain_executor.rb
115
+ - lib/objectify/rails.rb
115
116
  - lib/objectify/rails/application.rb
116
117
  - lib/objectify/rails/controller.rb
117
118
  - lib/objectify/rails/helpers.rb
118
119
  - lib/objectify/rails/log_subscriber.rb
119
120
  - lib/objectify/rails/railtie.rb
120
- - lib/objectify/rails/renderer.rb
121
121
  - lib/objectify/rails/routes.rb
122
122
  - lib/objectify/rails/routing.rb
123
123
  - lib/objectify/route.rb
@@ -1,47 +0,0 @@
1
- module Objectify
2
- module Rails
3
- class Renderer
4
- def initialize(controller)
5
- @controller = controller
6
- end
7
-
8
- def template(template, opts)
9
- @controller.render opts.merge(:template => template)
10
- end
11
-
12
- def action(action, opts)
13
- @controller.render opts.merge(:action => action)
14
- end
15
-
16
- def partial(partial, opts)
17
- @controller.render opts.merge(:partial => partial)
18
- end
19
-
20
- def file(file, opts)
21
- @controller.render opts.merge(:file => file)
22
- end
23
-
24
- def nothing(opts)
25
- @controller.render opts.merge(:nothing => true)
26
- end
27
-
28
- def render(opts)
29
- @controller.render opts
30
- end
31
-
32
- def respond_to
33
- @controller.respond_to do |format|
34
- yield(format)
35
- end
36
- end
37
-
38
- def redirect_to(*args)
39
- @controller.redirect_to(*args)
40
- end
41
-
42
- def data(data)
43
- @controller.instance_variable_set(:@objectify_data, data)
44
- end
45
- end
46
- end
47
- end