renee 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/renee.rb CHANGED
@@ -1,6 +1,5 @@
1
- require 'renee-core'
2
- require 'renee-render'
3
- require 'renee/version'
1
+ require 'renee_core'
2
+ require 'renee_render'
4
3
 
5
4
  # Method for creating new Renee applications.
6
5
  # @see http://reneerb.com
@@ -9,23 +8,14 @@ require 'renee/version'
9
8
  # halt "hello renee"
10
9
  # }
11
10
  def Renee(&blk)
12
- Renee::RichCore.new(&blk)
11
+ Class.new(Renee::Application).app(&blk)
13
12
  end
14
13
 
15
14
  # Top-level Renee constant.
16
- class Renee
17
- # Analogous to {Renee::Core}, but with all features enabled.
18
- # @see http://reneerb.com
19
- class RichCore < Renee::Core
20
- # Creates a new Renee application.
21
- # @yield The application definition.
22
- def initialize(&blk)
23
- super(Application, &blk)
24
- end
25
-
26
- # @private
27
- class Application < Renee::Core::Application
28
- include Renee::Render
29
- end
15
+ module Renee
16
+ # Main class for a Renee application. This class should be subclasses if you want to define your own Renee
17
+ # implementations.
18
+ class Application < Core
19
+ include Renee::Render
30
20
  end
31
21
  end
data/lib/renee/version.rb CHANGED
@@ -1,4 +1,6 @@
1
- class Renee
2
- # Current Renee version number.
3
- VERSION = "0.2.0"
1
+ require 'renee_core/version'
2
+
3
+ module Renee
4
+ # The current version of Renee
5
+ VERSION = Renee::Core::VERSION
4
6
  end
data/renee.gemspec CHANGED
@@ -1,5 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
+ $:.push File.expand_path("../../renee-core/lib", __FILE__)
3
4
  require "renee/version"
4
5
 
5
6
  Gem::Specification.new do |s|
@@ -29,4 +30,5 @@ Gem::Specification.new do |s|
29
30
  s.add_development_dependency "haml", ">= 2.2.0"
30
31
  s.add_development_dependency "json"
31
32
  s.add_development_dependency "yard"
33
+ s.add_development_dependency "shotgun"
32
34
  end
data/test/test_helper.rb CHANGED
@@ -3,8 +3,8 @@ gem 'minitest'
3
3
  require 'minitest/autorun'
4
4
  gem 'rack-test'
5
5
  require 'rack/test'
6
- $: << File.expand_path('../../../renee-core/lib', __FILE__)
7
- $: << File.expand_path('../../../renee-render/lib', __FILE__)
6
+ $: << File.expand_path('../../../renee_core/lib', __FILE__)
7
+ $: << File.expand_path('../../../renee_render/lib', __FILE__)
8
8
  $: << File.expand_path('../../lib', __FILE__)
9
9
  require 'renee'
10
10
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renee
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Hull
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-10-20 00:00:00 Z
20
+ date: 2011-10-25 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - "="
27
27
  - !ruby/object:Gem::Version
28
- hash: 23
28
+ hash: 19
29
29
  segments:
30
30
  - 0
31
- - 2
31
+ - 3
32
32
  - 0
33
- version: 0.2.0
33
+ version: 0.3.0
34
34
  requirement: *id001
35
35
  type: :runtime
36
36
  prerelease: false
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - "="
43
43
  - !ruby/object:Gem::Version
44
- hash: 23
44
+ hash: 19
45
45
  segments:
46
46
  - 0
47
- - 2
47
+ - 3
48
48
  - 0
49
- version: 0.2.0
49
+ version: 0.3.0
50
50
  requirement: *id002
51
51
  type: :runtime
52
52
  prerelease: false
@@ -157,6 +157,20 @@ dependencies:
157
157
  type: :development
158
158
  prerelease: false
159
159
  name: yard
160
+ - !ruby/object:Gem::Dependency
161
+ version_requirements: &id010 !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ hash: 3
167
+ segments:
168
+ - 0
169
+ version: "0"
170
+ requirement: *id010
171
+ type: :development
172
+ prerelease: false
173
+ name: shotgun
160
174
  description: The super-friendly web framework.
161
175
  email:
162
176
  - joshbuddy@gmail.com
@@ -181,7 +195,6 @@ files:
181
195
  - lib/renee/version.rb
182
196
  - renee.gemspec
183
197
  - test/blog_test.rb
184
- - test/rich_core_test.rb
185
198
  - test/test_helper.rb
186
199
  homepage: http://reneerb.com
187
200
  licenses: []
@@ -218,6 +231,5 @@ specification_version: 3
218
231
  summary: The super-friendly web framework
219
232
  test_files:
220
233
  - test/blog_test.rb
221
- - test/rich_core_test.rb
222
234
  - test/test_helper.rb
223
235
  has_rdoc:
@@ -1,11 +0,0 @@
1
- require File.expand_path('../test_helper', __FILE__)
2
-
3
- describe Renee::RichCore do
4
- it "should allow the inclusion of arbitrary modules" do
5
- r = Renee{
6
- respond_to?(:some_method) or raise
7
- }.setup { include Module.new { def some_method; end } }
8
- r.call(Rack::MockRequest.env_for('/'))
9
- assert true
10
- end
11
- end