pirj-sinatra-contrib 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +135 -0
  3. data/Rakefile +61 -0
  4. data/ideas.md +29 -0
  5. data/lib/sinatra/capture.rb +42 -0
  6. data/lib/sinatra/config_file.rb +151 -0
  7. data/lib/sinatra/content_for.rb +111 -0
  8. data/lib/sinatra/contrib.rb +39 -0
  9. data/lib/sinatra/contrib/all.rb +2 -0
  10. data/lib/sinatra/contrib/setup.rb +53 -0
  11. data/lib/sinatra/contrib/version.rb +45 -0
  12. data/lib/sinatra/decompile.rb +113 -0
  13. data/lib/sinatra/engine_tracking.rb +96 -0
  14. data/lib/sinatra/extension.rb +95 -0
  15. data/lib/sinatra/json.rb +134 -0
  16. data/lib/sinatra/link_header.rb +132 -0
  17. data/lib/sinatra/namespace.rb +282 -0
  18. data/lib/sinatra/reloader.rb +384 -0
  19. data/lib/sinatra/respond_with.rb +245 -0
  20. data/lib/sinatra/streaming.rb +267 -0
  21. data/lib/sinatra/test_helpers.rb +87 -0
  22. data/sinatra-contrib.gemspec +121 -0
  23. data/spec/capture_spec.rb +80 -0
  24. data/spec/config_file/key_value.yml +6 -0
  25. data/spec/config_file/missing_env.yml +4 -0
  26. data/spec/config_file/with_envs.yml +7 -0
  27. data/spec/config_file/with_nested_envs.yml +11 -0
  28. data/spec/config_file_spec.rb +44 -0
  29. data/spec/content_for/different_key.erb +1 -0
  30. data/spec/content_for/different_key.erubis +1 -0
  31. data/spec/content_for/different_key.haml +2 -0
  32. data/spec/content_for/different_key.slim +2 -0
  33. data/spec/content_for/layout.erb +1 -0
  34. data/spec/content_for/layout.erubis +1 -0
  35. data/spec/content_for/layout.haml +1 -0
  36. data/spec/content_for/layout.slim +1 -0
  37. data/spec/content_for/multiple_blocks.erb +4 -0
  38. data/spec/content_for/multiple_blocks.erubis +4 -0
  39. data/spec/content_for/multiple_blocks.haml +8 -0
  40. data/spec/content_for/multiple_blocks.slim +8 -0
  41. data/spec/content_for/multiple_yields.erb +3 -0
  42. data/spec/content_for/multiple_yields.erubis +3 -0
  43. data/spec/content_for/multiple_yields.haml +3 -0
  44. data/spec/content_for/multiple_yields.slim +3 -0
  45. data/spec/content_for/passes_values.erb +1 -0
  46. data/spec/content_for/passes_values.erubis +1 -0
  47. data/spec/content_for/passes_values.haml +1 -0
  48. data/spec/content_for/passes_values.slim +1 -0
  49. data/spec/content_for/same_key.erb +1 -0
  50. data/spec/content_for/same_key.erubis +1 -0
  51. data/spec/content_for/same_key.haml +2 -0
  52. data/spec/content_for/same_key.slim +2 -0
  53. data/spec/content_for/takes_values.erb +1 -0
  54. data/spec/content_for/takes_values.erubis +1 -0
  55. data/spec/content_for/takes_values.haml +3 -0
  56. data/spec/content_for/takes_values.slim +3 -0
  57. data/spec/content_for_spec.rb +201 -0
  58. data/spec/decompile_spec.rb +44 -0
  59. data/spec/extension_spec.rb +33 -0
  60. data/spec/json_spec.rb +115 -0
  61. data/spec/link_header_spec.rb +100 -0
  62. data/spec/namespace/foo.erb +1 -0
  63. data/spec/namespace/nested/foo.erb +1 -0
  64. data/spec/namespace_spec.rb +623 -0
  65. data/spec/okjson.rb +581 -0
  66. data/spec/reloader/app.rb.erb +40 -0
  67. data/spec/reloader_spec.rb +441 -0
  68. data/spec/respond_with/bar.erb +1 -0
  69. data/spec/respond_with/bar.json.erb +1 -0
  70. data/spec/respond_with/foo.html.erb +1 -0
  71. data/spec/respond_with/not_html.sass +2 -0
  72. data/spec/respond_with_spec.rb +289 -0
  73. data/spec/spec_helper.rb +6 -0
  74. data/spec/streaming_spec.rb +436 -0
  75. metadata +252 -0
metadata ADDED
@@ -0,0 +1,252 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pirj-sinatra-contrib
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Konstantin Haase
9
+ - Gabriel Andretta
10
+ - Nicolas Sanguinetti
11
+ - Eliot Shepard
12
+ - Andrew Crump
13
+ - Matt Lyon
14
+ - undr
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+ date: 2011-09-10 00:00:00.000000000Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: sinatra
22
+ requirement: &80252790 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: 1.3.0
28
+ type: :runtime
29
+ prerelease: false
30
+ version_requirements: *80252790
31
+ - !ruby/object:Gem::Dependency
32
+ name: backports
33
+ requirement: &80252540 !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '2.0'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: *80252540
42
+ - !ruby/object:Gem::Dependency
43
+ name: tilt
44
+ requirement: &80252290 !ruby/object:Gem::Requirement
45
+ none: false
46
+ requirements:
47
+ - - ~>
48
+ - !ruby/object:Gem::Version
49
+ version: '1.3'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: *80252290
53
+ - !ruby/object:Gem::Dependency
54
+ name: rack-test
55
+ requirement: &80252090 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: *80252090
64
+ - !ruby/object:Gem::Dependency
65
+ name: rack-protection
66
+ requirement: &80251850 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ type: :runtime
73
+ prerelease: false
74
+ version_requirements: *80251850
75
+ - !ruby/object:Gem::Dependency
76
+ name: eventmachine
77
+ requirement: &80251620 !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: *80251620
86
+ - !ruby/object:Gem::Dependency
87
+ name: rspec
88
+ requirement: &80251350 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '2.3'
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: *80251350
97
+ - !ruby/object:Gem::Dependency
98
+ name: haml
99
+ requirement: &80251120 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: *80251120
108
+ - !ruby/object:Gem::Dependency
109
+ name: erubis
110
+ requirement: &80250890 !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: *80250890
119
+ - !ruby/object:Gem::Dependency
120
+ name: slim
121
+ requirement: &80250650 !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: *80250650
130
+ - !ruby/object:Gem::Dependency
131
+ name: rake
132
+ requirement: &80250430 !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: *80250430
141
+ description: Collection of useful Sinatra extensions
142
+ email:
143
+ - konstantin.mailinglists@googlemail.com
144
+ - ohhgabriel@gmail.com
145
+ - contacto@nicolassanguinetti.info
146
+ - eshepard@slower.net
147
+ - andrew.crump@ieee.org
148
+ - matt@flowerpowered.com
149
+ - undr@yandex.ru
150
+ executables: []
151
+ extensions: []
152
+ extra_rdoc_files: []
153
+ files:
154
+ - LICENSE
155
+ - README.md
156
+ - Rakefile
157
+ - ideas.md
158
+ - lib/sinatra/capture.rb
159
+ - lib/sinatra/config_file.rb
160
+ - lib/sinatra/content_for.rb
161
+ - lib/sinatra/contrib.rb
162
+ - lib/sinatra/contrib/all.rb
163
+ - lib/sinatra/contrib/setup.rb
164
+ - lib/sinatra/contrib/version.rb
165
+ - lib/sinatra/decompile.rb
166
+ - lib/sinatra/engine_tracking.rb
167
+ - lib/sinatra/extension.rb
168
+ - lib/sinatra/json.rb
169
+ - lib/sinatra/link_header.rb
170
+ - lib/sinatra/namespace.rb
171
+ - lib/sinatra/reloader.rb
172
+ - lib/sinatra/respond_with.rb
173
+ - lib/sinatra/streaming.rb
174
+ - lib/sinatra/test_helpers.rb
175
+ - sinatra-contrib.gemspec
176
+ - spec/capture_spec.rb
177
+ - spec/config_file/key_value.yml
178
+ - spec/config_file/missing_env.yml
179
+ - spec/config_file/with_envs.yml
180
+ - spec/config_file/with_nested_envs.yml
181
+ - spec/config_file_spec.rb
182
+ - spec/content_for/different_key.erb
183
+ - spec/content_for/different_key.erubis
184
+ - spec/content_for/different_key.haml
185
+ - spec/content_for/different_key.slim
186
+ - spec/content_for/layout.erb
187
+ - spec/content_for/layout.erubis
188
+ - spec/content_for/layout.haml
189
+ - spec/content_for/layout.slim
190
+ - spec/content_for/multiple_blocks.erb
191
+ - spec/content_for/multiple_blocks.erubis
192
+ - spec/content_for/multiple_blocks.haml
193
+ - spec/content_for/multiple_blocks.slim
194
+ - spec/content_for/multiple_yields.erb
195
+ - spec/content_for/multiple_yields.erubis
196
+ - spec/content_for/multiple_yields.haml
197
+ - spec/content_for/multiple_yields.slim
198
+ - spec/content_for/passes_values.erb
199
+ - spec/content_for/passes_values.erubis
200
+ - spec/content_for/passes_values.haml
201
+ - spec/content_for/passes_values.slim
202
+ - spec/content_for/same_key.erb
203
+ - spec/content_for/same_key.erubis
204
+ - spec/content_for/same_key.haml
205
+ - spec/content_for/same_key.slim
206
+ - spec/content_for/takes_values.erb
207
+ - spec/content_for/takes_values.erubis
208
+ - spec/content_for/takes_values.haml
209
+ - spec/content_for/takes_values.slim
210
+ - spec/content_for_spec.rb
211
+ - spec/decompile_spec.rb
212
+ - spec/extension_spec.rb
213
+ - spec/json_spec.rb
214
+ - spec/link_header_spec.rb
215
+ - spec/namespace/foo.erb
216
+ - spec/namespace/nested/foo.erb
217
+ - spec/namespace_spec.rb
218
+ - spec/okjson.rb
219
+ - spec/reloader/app.rb.erb
220
+ - spec/reloader_spec.rb
221
+ - spec/respond_with/bar.erb
222
+ - spec/respond_with/bar.json.erb
223
+ - spec/respond_with/foo.html.erb
224
+ - spec/respond_with/not_html.sass
225
+ - spec/respond_with_spec.rb
226
+ - spec/spec_helper.rb
227
+ - spec/streaming_spec.rb
228
+ homepage: http://github.com/sinatra/sinatra-contrib
229
+ licenses: []
230
+ post_install_message:
231
+ rdoc_options: []
232
+ require_paths:
233
+ - lib
234
+ required_ruby_version: !ruby/object:Gem::Requirement
235
+ none: false
236
+ requirements:
237
+ - - ! '>='
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
240
+ required_rubygems_version: !ruby/object:Gem::Requirement
241
+ none: false
242
+ requirements:
243
+ - - ! '>='
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
246
+ requirements: []
247
+ rubyforge_project:
248
+ rubygems_version: 1.8.5
249
+ signing_key:
250
+ specification_version: 3
251
+ summary: Collection of useful Sinatra extensions
252
+ test_files: []