gin 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +16 -0
- data/Manifest.txt +12 -2
- data/README.rdoc +33 -0
- data/Rakefile +5 -0
- data/TODO.rdoc +7 -0
- data/bin/gin +158 -0
- data/lib/gin.rb +19 -2
- data/lib/gin/app.rb +420 -173
- data/lib/gin/cache.rb +65 -0
- data/lib/gin/config.rb +174 -18
- data/lib/gin/constants.rb +4 -0
- data/lib/gin/controller.rb +219 -11
- data/lib/gin/core_ext/gin_class.rb +16 -0
- data/lib/gin/errorable.rb +16 -2
- data/lib/gin/filterable.rb +29 -19
- data/lib/gin/reloadable.rb +1 -1
- data/lib/gin/request.rb +11 -0
- data/lib/gin/router.rb +185 -61
- data/lib/gin/rw_lock.rb +109 -0
- data/lib/gin/test.rb +702 -0
- data/public/gin.css +15 -3
- data/test/app/layouts/bar.erb +9 -0
- data/test/app/layouts/foo.erb +9 -0
- data/test/app/views/bar.erb +1 -0
- data/test/mock_app.rb +94 -0
- data/test/mock_config/invalid.yml +2 -0
- data/test/test_app.rb +160 -45
- data/test/test_cache.rb +57 -0
- data/test/test_config.rb +108 -13
- data/test/test_controller.rb +201 -11
- data/test/test_errorable.rb +1 -1
- data/test/test_gin.rb +9 -0
- data/test/test_helper.rb +3 -1
- data/test/test_router.rb +33 -0
- data/test/test_rw_lock.rb +65 -0
- data/test/test_test.rb +627 -0
- metadata +86 -6
- data/.autotest +0 -23
- data/.gitignore +0 -7
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '1.0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: tilt
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.4'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.4'
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: rdoc
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,6 +75,54 @@ dependencies:
|
|
59
75
|
- - ~>
|
60
76
|
- !ruby/object:Gem::Version
|
61
77
|
version: '3.10'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: nokogiri
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.5.9
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.5.9
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: plist
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 3.1.0
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 3.1.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: bson
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.9.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.9.0
|
62
126
|
- !ruby/object:Gem::Dependency
|
63
127
|
name: hoe
|
64
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,21 +144,23 @@ description: ! 'Gin is a small Ruby web framework, built on Rack, which borrows
|
|
80
144
|
Sinatra expressiveness, and targets larger applications.'
|
81
145
|
email:
|
82
146
|
- yaksnrainbows@gmail.com
|
83
|
-
executables:
|
147
|
+
executables:
|
148
|
+
- gin
|
84
149
|
extensions: []
|
85
150
|
extra_rdoc_files:
|
86
151
|
- History.rdoc
|
87
152
|
- Manifest.txt
|
88
153
|
- README.rdoc
|
154
|
+
- TODO.rdoc
|
89
155
|
files:
|
90
|
-
- .autotest
|
91
|
-
- .gitignore
|
92
156
|
- History.rdoc
|
93
157
|
- Manifest.txt
|
94
158
|
- README.rdoc
|
95
159
|
- Rakefile
|
160
|
+
- bin/gin
|
96
161
|
- lib/gin.rb
|
97
162
|
- lib/gin/app.rb
|
163
|
+
- lib/gin/cache.rb
|
98
164
|
- lib/gin/config.rb
|
99
165
|
- lib/gin/constants.rb
|
100
166
|
- lib/gin/controller.rb
|
@@ -107,7 +173,9 @@ files:
|
|
107
173
|
- lib/gin/request.rb
|
108
174
|
- lib/gin/response.rb
|
109
175
|
- lib/gin/router.rb
|
176
|
+
- lib/gin/rw_lock.rb
|
110
177
|
- lib/gin/stream.rb
|
178
|
+
- lib/gin/test.rb
|
111
179
|
- public/400.html
|
112
180
|
- public/404.html
|
113
181
|
- public/500.html
|
@@ -118,10 +186,16 @@ files:
|
|
118
186
|
- test/app/app_foo.rb
|
119
187
|
- test/app/controllers/app_controller.rb
|
120
188
|
- test/app/controllers/foo_controller.rb
|
189
|
+
- test/app/layouts/bar.erb
|
190
|
+
- test/app/layouts/foo.erb
|
191
|
+
- test/app/views/bar.erb
|
121
192
|
- test/mock_config/backend.yml
|
193
|
+
- test/mock_config/invalid.yml
|
122
194
|
- test/mock_config/memcache.yml
|
123
195
|
- test/mock_config/not_a_config.txt
|
196
|
+
- test/mock_app.rb
|
124
197
|
- test/test_app.rb
|
198
|
+
- test/test_cache.rb
|
125
199
|
- test/test_config.rb
|
126
200
|
- test/test_controller.rb
|
127
201
|
- test/test_errorable.rb
|
@@ -131,6 +205,9 @@ files:
|
|
131
205
|
- test/test_request.rb
|
132
206
|
- test/test_response.rb
|
133
207
|
- test/test_router.rb
|
208
|
+
- test/test_rw_lock.rb
|
209
|
+
- test/test_test.rb
|
210
|
+
- TODO.rdoc
|
134
211
|
- .gemtest
|
135
212
|
homepage: http://yaks.me/gin
|
136
213
|
licenses: []
|
@@ -148,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
225
|
version: '0'
|
149
226
|
segments:
|
150
227
|
- 0
|
151
|
-
hash: -
|
228
|
+
hash: -1165683181263996333
|
152
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
230
|
none: false
|
154
231
|
requirements:
|
@@ -164,6 +241,7 @@ summary: Gin is a small Ruby web framework, built on Rack, which borrows from Si
|
|
164
241
|
expressiveness, and targets larger applications.
|
165
242
|
test_files:
|
166
243
|
- test/test_app.rb
|
244
|
+
- test/test_cache.rb
|
167
245
|
- test/test_config.rb
|
168
246
|
- test/test_controller.rb
|
169
247
|
- test/test_errorable.rb
|
@@ -173,3 +251,5 @@ test_files:
|
|
173
251
|
- test/test_request.rb
|
174
252
|
- test/test_response.rb
|
175
253
|
- test/test_router.rb
|
254
|
+
- test/test_rw_lock.rb
|
255
|
+
- test/test_test.rb
|
data/.autotest
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require 'autotest/restart'
|
4
|
-
|
5
|
-
Autotest.add_hook :initialize do |at|
|
6
|
-
# at.extra_files << "../some/external/dependency.rb"
|
7
|
-
#
|
8
|
-
# at.libs << ":../some/external"
|
9
|
-
#
|
10
|
-
at.add_exception 'test/app'
|
11
|
-
#
|
12
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
13
|
-
# at.files_matching(/test_.*rb$/)
|
14
|
-
# end
|
15
|
-
#
|
16
|
-
# %w(TestA TestB).each do |klass|
|
17
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
18
|
-
# end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Autotest.add_hook :run_command do |at|
|
22
|
-
# system "rake build"
|
23
|
-
# end
|