strelka 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,10 +1,65 @@
1
+ 2012-10-17 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * .hgtags:
4
+ Added tag v0.0.2 for changeset f4507caebfb7
5
+ [e163f60cfa3d] [tip]
6
+
7
+ * .hgsigs:
8
+ Added signature for changeset 485638c9ec10
9
+ [f4507caebfb7] [v0.0.2]
10
+
11
+ * contrib/hoetemplate/lib/file_name.rb.erb:
12
+ Obfuscate the VERSION constant in the Hoe template
13
+ [485638c9ec10]
14
+
15
+ * Rakefile:
16
+ Depend on Ruby >= 1.9.3
17
+ [16f36e7a3e02]
18
+
19
+ * History.rdoc, lib/strelka.rb:
20
+ Bump the patch version, update history.
21
+ [4a75dc02587a]
22
+
23
+ * .rvm.gems, Rakefile:
24
+ Bump dependency on mongrel2
25
+ [c2c4dc90ab68]
26
+
27
+ * lib/strelka/httprequest.rb, spec/strelka/httprequest_spec.rb:
28
+ Handle versions of Mongrel2 that didn't set a url-scheme header.
29
+ [f650ce318441]
30
+
31
+ * .hgtags:
32
+ Added tag v0.0.1 for changeset d94fd9d65253
33
+ [50a0890beebb]
34
+
35
+ * .hgsigs:
36
+ Added signature for changeset c269a6bf5704
37
+ [d94fd9d65253] [v0.0.1]
38
+
39
+ * History.rdoc:
40
+ Fixing date in History.rdoc
41
+ [c269a6bf5704]
42
+
43
+ 2012-10-16 Michael Granger <ged@FaerieMUD.org>
44
+
45
+ * examples/gen-config.rb, lib/strelka/httprequest.rb,
46
+ spec/strelka/httprequest_spec.rb:
47
+ Fix Strelka::HTTPRequest#uri for HTTPS requests.
48
+ [4c080bf67d4f]
49
+
50
+ 2012-10-12 Michael Granger <ged@FaerieMUD.org>
51
+
52
+ * Manifest.txt, spec/strelka/paramvalidator_spec.rb:
53
+ Update the manifest, add specs for the multi-params issue (refs #1).
54
+ [01e7d80f9999]
55
+
1
56
  2012-10-11 Michael Granger <ged@FaerieMUD.org>
2
57
 
3
58
  * lib/strelka/app.rb, lib/strelka/app/templating.rb,
4
59
  spec/lib/helpers.rb, spec/strelka/app/templating_spec.rb,
5
60
  spec/strelka/app_spec.rb:
6
61
  Add template-directory discovery to the :templating plugin.
7
- [cde8aaae8b47] [tip]
62
+ [cde8aaae8b47]
8
63
 
9
64
  2012-10-03 Michael Granger <ged@FaerieMUD.org>
10
65
 
@@ -234,7 +289,7 @@
234
289
 
235
290
  Got most of the default plugins covered at least minimally. Split
236
291
  out the rest of the manual into RDoc pages.
237
- [41ef7a20e7cb] [github/master]
292
+ [41ef7a20e7cb]
238
293
 
239
294
  2012-08-24 Mahlon E. Smith <mahlon@martini.nu>
240
295
 
@@ -1241,7 +1296,7 @@
1241
1296
 
1242
1297
  * lib/strelka/app/errors.rb, spec/strelka/app/errors_spec.rb:
1243
1298
  Add documentation for the Errors plugin, improve test coverage.
1244
- [ff3ef6e5a7a1] [github/master@default]
1299
+ [ff3ef6e5a7a1]
1245
1300
 
1246
1301
  * Manifest.txt:
1247
1302
  Add session files to the manifest
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ == v0.0.3 [2012-10-23] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Fix the template-path auto-discovery for some configurations.
4
+
5
+
1
6
  == v0.0.2 [2012-10-17] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Fix a bug in HTTPRequest#uri when running under versions of Mongrel2
data/lib/strelka.rb CHANGED
@@ -24,10 +24,10 @@ module Strelka
24
24
  log_as :strelka
25
25
 
26
26
  # Library version constant
27
- VERSION = '0.0.2'
27
+ VERSION = '0.0.3'
28
28
 
29
29
  # Version-control revision constant
30
- REVISION = %q$Revision: 4a75dc02587a $
30
+ REVISION = %q$Revision: 4cb76b1531ef $
31
31
 
32
32
  require 'strelka/constants'
33
33
  require 'strelka/exceptions'
data/lib/strelka/app.rb CHANGED
@@ -86,15 +86,11 @@ class Strelka::App < Mongrel2::Handler
86
86
  ### to the 'app' section of the config that will be passed to you when the config
87
87
  ### is loaded.
88
88
  def self::configure( config=nil )
89
- if config
90
- self.devmode = true if config[:devmode]
91
- self.app_glob_pattern = config[:app_glob_pattern]
92
- self.local_data_dirs = config[:local_data_dirs]
93
- else
94
- self.devmode = $DEBUG ? true : false
95
- self.app_glob_pattern = APP_GLOB_PATTERN
96
- self.local_data_dirs = LOCAL_DATA_DIRS
97
- end
89
+ config = self.defaults.merge( config || {} )
90
+
91
+ self.devmode = config[:devmode] || $DEBUG
92
+ self.app_glob_pattern = config[:app_glob_pattern]
93
+ self.local_data_dirs = config[:local_data_dirs]
98
94
 
99
95
  self.log.info "Enabled developer mode." if self.devmode?
100
96
  end
@@ -366,6 +366,12 @@ describe Strelka::App do
366
366
  end
367
367
  end
368
368
 
369
+ it "uses the default local data directory if the config is present without that key" do
370
+ config = Configurability::Config.new( 'devmode: true' )
371
+ @app.configure( config )
372
+ @app.local_data_dirs.should == Strelka::App::CONFIG_DEFAULTS[:local_data_dirs]
373
+ end
374
+
369
375
  it "closes async uploads with a 413 Request Entity Too Large by default" do
370
376
  @req.headers.x_mongrel2_upload_start = 'an/uploaded/file/path'
371
377
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strelka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,7 +36,7 @@ cert_chain:
36
36
  YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
37
37
  Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
38
38
  cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
- date: 2012-10-18 00:00:00.000000000 Z
39
+ date: 2012-10-23 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: configurability
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ga��he63o�ɢ�ks�?�,OrV��+UGf;-mŧ������"BS^�l�в�!�g, �?��X�O���G& }G�S�y���2C�g�=; �e�8 �;v�����`0*���1k�/�gJ7]nh43�|�g��0͝Q��uq��8��u�����ڵ���#)"f&�O8N��0�+�K���^��c�\uOo6� H
2
- sѴ����vu} + J�=}ŧ�!��^�^�{�Ե����;u��c��=��VWm
1
+ {Q�������[/-�l>�8qQo���̓����תּ�|��$ŭ��bzR=p��a���c�9uK�^��~�Q�\�����ϡЧ_A��5���Ƀfd��X�ܤ�Θ]9�&vo,����G���� e��O��*�'gy#�b��kV��.�Q �䷂O�Ev޶����/4Lg+�H���kh� g�f
2
+ �9�����,k��ܚφw�!.�>���F�� C,c����ȩ�켋x�k�H,p#��+��