dandelion_s1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4031ed23f316378896973babb48674efcd36cc01
4
- data.tar.gz: d12cf0462b0575d5b8762a793a41413088ade3eb
3
+ metadata.gz: 630d7be800e8428161f92ca2e0b252bcc6c05820
4
+ data.tar.gz: 540e833c14607308340906a98e7db4d7c8c81775
5
5
  SHA512:
6
- metadata.gz: 3694e43d28323cb649d61e9f540ee7e296a7d9dc17080fbb0838442f38fee78139c7af8ef0c03c0c67338909447e5bb1ff1f9052e726559107789b071ca81576
7
- data.tar.gz: 5f3690d88973de69dab025287c5396ceac7832121424b04fa050acf0fb189d97cc73aa0f9101951ac01d134b9244b6cb82038714b8c2d7820c7bdb702031e447
6
+ metadata.gz: 5ccc8893fa5deda61f686badf1941808137d7e97388f243b35b27cd5b8c0eece4c45b5b7b32be39df82f50a53d40e82b51ac43b91d488d03ec87f70e14a5f67d
7
+ data.tar.gz: 946a120d2e5c27023f30a2cfef5bfb4f9b7184b8e9ad44a3e897ec59ff5b95cffc68b04bbb2bdc69d1fefbabe8bec10e26bd944944b25764b1d2c0e76b2c55f9
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/dandelion_s1.rb CHANGED
@@ -50,8 +50,8 @@ class DandelionS1 < RackRscript
50
50
  elsif File.exists? filepath then
51
51
  h = {xml: 'application/xml', html: 'text/html', png: 'image/png',
52
52
  jpg: 'image/jpeg', txt: 'text/plain'}
53
-
54
- [File.read(filepath), h[filepath[/\w+$/].to_sym]]
53
+ content_type = h[filepath[/\w+$/].to_sym]
54
+ [File.read(filepath), content_type || 'text/plain']
55
55
  else
56
56
  'oops, file ' + filepath + ' not found'
57
57
  end
@@ -70,4 +70,4 @@ class DandelionS1 < RackRscript
70
70
 
71
71
  end
72
72
 
73
- end
73
+ 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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -37,14 +37,14 @@ dependencies:
37
37
  name: rack-rscript
38
38
  requirement: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  description:
@@ -64,17 +64,17 @@ require_paths:
64
64
  - lib
65
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.0.14
77
+ rubygems_version: 2.2.0.rc.1
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: A kind of Rack-Rscript web server which facilitates static files, basic authentication,
metadata.gz.sig CHANGED
Binary file