srv 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/bin/srv +0 -0
  3. data/lib/srv/version.rb +1 -1
  4. data/lib/srv.rb +5 -5
  5. data/srv.gemspec +1 -1
  6. metadata +37 -44
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2f76818bf891283220048a2006b7d1e30fb473e8
4
+ data.tar.gz: 44afe12c7da71eb310024453a354126b7a585ac1
5
+ SHA512:
6
+ metadata.gz: 0bf5ef4cf9e8b6a4640d3c74883d0be5e3ee5634e9ea22ff896329b6eef29ca4b98db2a3cd735f5563412d4567f0d8ae58d53664949a0385151381a85334dff7
7
+ data.tar.gz: 820a0374aa4327548f4c86cda42f7540e62559aa394d2b2f49db57fbbfdf6b55827f0f7896d6b6ae5242781bdab003c51ebecc320da98736da7ee543acdbceaf
data/bin/srv CHANGED
File without changes
data/lib/srv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Srv
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0"
3
3
  end
data/lib/srv.rb CHANGED
@@ -19,17 +19,17 @@ module Srv
19
19
  end
20
20
 
21
21
  class DirectoryWithIndex < Rack::Directory
22
- def list_directory
23
- index, = Dir.glob(File.join(@path, "index.htm*"))
22
+ def list_directory(path_info, path, script_name)
23
+ index, = Dir.glob(File.join(path, "index.htm*"))
24
24
  if index
25
- index_path_info = @path_info
26
- index_path_info += "/" unless @path_info[-1] == "/"
25
+ index_path_info = path_info
26
+ index_path_info += "/" unless path_info[-1] == "/"
27
27
  index_path_info += File.basename index
28
28
  altered_env = @env.dup
29
29
  altered_env["PATH_INFO"] = index_path_info
30
30
  @app.call(altered_env)
31
31
  else
32
- super
32
+ super(path_info, path, script_name)
33
33
  end
34
34
  end
35
35
  end
data/srv.gemspec CHANGED
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
- s.add_dependency 'rack', '>=1.3.0'
21
+ s.add_dependency 'rack', '2.0.1'
22
22
  end
metadata CHANGED
@@ -1,41 +1,40 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: srv
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Hubert Lepicki
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2011-05-31 00:00:00 +02:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
17
14
  name: rack
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 1.3.0
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.1
25
20
  type: :runtime
26
- version_requirements: *id001
27
- description: fire up with 'srv' to serve current directory on port 4000 (default), 'srv 5000' on port 5000
28
- email:
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.1
27
+ description: fire up with 'srv' to serve current directory on port 4000 (default),
28
+ 'srv 5000' on port 5000
29
+ email:
29
30
  - hubert.lepicki@gmail.com
30
31
  - hubert.lepicki@amberbit.com
31
- executables:
32
+ executables:
32
33
  - srv
33
34
  extensions: []
34
-
35
35
  extra_rdoc_files: []
36
-
37
- files:
38
- - .gitignore
36
+ files:
37
+ - ".gitignore"
39
38
  - Gemfile
40
39
  - README.rdoc
41
40
  - Rakefile
@@ -43,33 +42,27 @@ files:
43
42
  - lib/srv.rb
44
43
  - lib/srv/version.rb
45
44
  - srv.gemspec
46
- has_rdoc: true
47
- homepage: ""
45
+ homepage: ''
48
46
  licenses: []
49
-
47
+ metadata: {}
50
48
  post_install_message:
51
49
  rdoc_options: []
52
-
53
- require_paths:
50
+ require_paths:
54
51
  - lib
55
- required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
58
54
  - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
64
59
  - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
67
62
  requirements: []
68
-
69
63
  rubyforge_project: srv
70
- rubygems_version: 1.6.2
64
+ rubygems_version: 2.6.8
71
65
  signing_key:
72
- specification_version: 3
66
+ specification_version: 4
73
67
  summary: static files server
74
68
  test_files: []
75
-