dandelion_s1 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dandelion_s1.rb +4 -2
- metadata +12 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2105c6b8e02f7f1180674fea8454657162aaf888
|
4
|
+
data.tar.gz: 9ff921113fc421705aa957e21a4f762709ccfc89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de290b0fcda95e0ebaacab67c94ad829266c1aa3349a6f948bb9fd7c294fbaae265d8ac3ce9828b0a82b65551c148eaf4a1690ea3b233102b74c8db04737bfde
|
7
|
+
data.tar.gz: 4df2d40a26ee17eb0824e78f22fea92b33f72b9ced7f7f75e902d5cbe9c479bb47ec4cbe97e8a69670c5b2dfc0ff15d7676383c363d43999ab00bccae4bf6f2f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dandelion_s1.rb
CHANGED
@@ -16,6 +16,7 @@ class DandelionS1 < RackRscript
|
|
16
16
|
|
17
17
|
#@access_list = {'/do/r/hello3' => 'user'}
|
18
18
|
@access_list = raw_opts[:access]
|
19
|
+
puts 'inside initialize'
|
19
20
|
super(raw_opts)
|
20
21
|
end
|
21
22
|
|
@@ -49,7 +50,8 @@ class DandelionS1 < RackRscript
|
|
49
50
|
Redirect.new (path + '/')
|
50
51
|
elsif File.exists? filepath then
|
51
52
|
h = {xml: 'application/xml', html: 'text/html', png: 'image/png',
|
52
|
-
jpg: 'image/jpeg', txt: 'text/plain'
|
53
|
+
jpg: 'image/jpeg', txt: 'text/plain', css: 'text/css',
|
54
|
+
xsl: 'application/xml'}
|
53
55
|
content_type = h[filepath[/\w+$/].to_sym]
|
54
56
|
[File.read(filepath), content_type || 'text/plain']
|
55
57
|
else
|
@@ -70,4 +72,4 @@ class DandelionS1 < RackRscript
|
|
70
72
|
|
71
73
|
end
|
72
74
|
|
73
|
-
end
|
75
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dandelion_s1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,22 +31,28 @@ cert_chain:
|
|
31
31
|
ukFLlCiGPy/rhiYPJnnK4gwuTFQriTgPOjUumE1thCk9Du7ClqpYYyA/d55t7ZVw
|
32
32
|
t8IA+lum7pcVjg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-
|
34
|
+
date: 2014-10-19 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rack-rscript
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0.6'
|
40
43
|
- - ">="
|
41
44
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
45
|
+
version: 0.6.0
|
43
46
|
type: :runtime
|
44
47
|
prerelease: false
|
45
48
|
version_requirements: !ruby/object:Gem::Requirement
|
46
49
|
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.6'
|
47
53
|
- - ">="
|
48
54
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
55
|
+
version: 0.6.0
|
50
56
|
description:
|
51
57
|
email: james@r0bertson.co.uk
|
52
58
|
executables: []
|
@@ -66,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
72
|
requirements:
|
67
73
|
- - ">="
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
75
|
+
version: 2.1.2
|
70
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
78
|
- - ">="
|
@@ -74,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
80
|
version: '0'
|
75
81
|
requirements: []
|
76
82
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.2.2
|
78
84
|
signing_key:
|
79
85
|
specification_version: 4
|
80
86
|
summary: A kind of Rack-Rscript web server which facilitates static files, basic authentication,
|
metadata.gz.sig
CHANGED
Binary file
|