renee 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +1 -1
- data/README.md +10 -0
- data/Rakefile +0 -1
- data/lib/renee.rb +17 -18
- data/lib/renee/version.rb +2 -1
- data/renee.gemspec +1 -1
- metadata +7 -6
data/.yardopts
CHANGED
data/README.md
ADDED
data/Rakefile
CHANGED
data/lib/renee.rb
CHANGED
@@ -2,31 +2,30 @@ require 'renee-core'
|
|
2
2
|
require 'renee-render'
|
3
3
|
require 'renee/version'
|
4
4
|
|
5
|
+
# Method for creating new Renee applications.
|
6
|
+
# @see http://reneerb.com
|
7
|
+
# @example
|
8
|
+
# run Renee {
|
9
|
+
# halt "hello renee"
|
10
|
+
# }
|
11
|
+
def Renee(&blk)
|
12
|
+
Renee::RichCore.new(&blk)
|
13
|
+
end
|
14
|
+
|
15
|
+
# Top-level Renee constant.
|
5
16
|
class Renee
|
17
|
+
# Analogous to {Renee::Core}, but with all features enabled.
|
18
|
+
# @see http://reneerb.com
|
6
19
|
class RichCore < Renee::Core
|
20
|
+
# Creates a new Renee application.
|
21
|
+
# @yield The application definition.
|
7
22
|
def initialize(&blk)
|
8
|
-
super
|
9
|
-
end
|
10
|
-
|
11
|
-
def call(env)
|
12
|
-
application_class.new(settings, &application_block).call(env)
|
13
|
-
end
|
14
|
-
alias_method :[], :call
|
15
|
-
|
16
|
-
def application_class
|
17
|
-
@application_class ||= begin
|
18
|
-
app_cls = Class.new(Application)
|
19
|
-
settings.includes.each { |inc| app_cls.send(:include, inc) }
|
20
|
-
app_cls
|
21
|
-
end
|
23
|
+
super(Application, &blk)
|
22
24
|
end
|
23
25
|
|
26
|
+
# @private
|
24
27
|
class Application < Renee::Core::Application
|
25
28
|
include Renee::Render
|
26
29
|
end
|
27
30
|
end
|
28
31
|
end
|
29
|
-
|
30
|
-
def Renee(&blk)
|
31
|
-
Renee::RichCore.new(&blk)
|
32
|
-
end
|
data/lib/renee/version.rb
CHANGED
data/renee.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Renee::VERSION
|
8
8
|
s.authors = ["Josh Hull", "Nathan Esquenazi", "Arthur Chiu"]
|
9
9
|
s.email = ["joshbuddy@gmail.com", "nesquena@gmail.com", "mr.arthur.chiu@gmail.com"]
|
10
|
-
s.homepage = ""
|
10
|
+
s.homepage = "http://reneerb.com"
|
11
11
|
s.summary = %q{The super-friendly web framework}
|
12
12
|
s.description = %q{The super-friendly web framework.}
|
13
13
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: renee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Josh Hull
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - "="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 0.1.
|
24
|
+
version: 0.1.1
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: *id001
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "="
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.1.
|
35
|
+
version: 0.1.1
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: *id002
|
@@ -126,6 +126,7 @@ extra_rdoc_files: []
|
|
126
126
|
|
127
127
|
files:
|
128
128
|
- .yardopts
|
129
|
+
- README.md
|
129
130
|
- Rakefile
|
130
131
|
- examples/blog/blog.rb
|
131
132
|
- examples/blog/config.ru
|
@@ -138,7 +139,7 @@ files:
|
|
138
139
|
- test/blog_test.rb
|
139
140
|
- test/rich_core_test.rb
|
140
141
|
- test/test_helper.rb
|
141
|
-
homepage:
|
142
|
+
homepage: http://reneerb.com
|
142
143
|
licenses: []
|
143
144
|
|
144
145
|
post_install_message:
|
@@ -151,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
152
|
requirements:
|
152
153
|
- - ">="
|
153
154
|
- !ruby/object:Gem::Version
|
154
|
-
hash:
|
155
|
+
hash: -134749120154782669
|
155
156
|
segments:
|
156
157
|
- 0
|
157
158
|
version: "0"
|
@@ -160,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
161
|
requirements:
|
161
162
|
- - ">="
|
162
163
|
- !ruby/object:Gem::Version
|
163
|
-
hash:
|
164
|
+
hash: -134749120154782669
|
164
165
|
segments:
|
165
166
|
- 0
|
166
167
|
version: "0"
|