adsf 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NzgyMGNmMDE4YjQ5YWFmOWE1ZTBjOTYwMGU4ZTkzYWFjZWFmZjk3NA==
5
- data.tar.gz: !binary |-
6
- ZTE4YzBjMDg0MDM0ZjQ0MTYyMmM4N2QwY2Y2MTEwZjA3NDIwODgxZg==
2
+ SHA1:
3
+ metadata.gz: 30bf98446c4011646d9a41618ee9cb1f4da0b6a0
4
+ data.tar.gz: 7630399b32f0ac05c1e4108608bc8112fca81287
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YmM5YmY4YWYxMmU2NGRiMzQxNzdmYzIxN2NlMGRiNTkwYWIwZTFjZTg0N2Yx
10
- NWU5YmRiYTNmNGIyNDRhODFjM2ZlZmNjZjBjZmJjMDUzNzU5ZjNmMTBmNzRh
11
- Njg1OWE1YWUwMTg2YWFhNTAyYThlMGI5OWM3MGYzNzNlNjVhNGY=
12
- data.tar.gz: !binary |-
13
- MzhjZDY3N2FhZWE1NGE5NzgyNDNiYjVkZjM1YzA5MWQ4YTMzY2ZiYjlhMGIz
14
- Y2M0NDAzZmFhY2EzYmQzZDQzZDg1NmQ0ZjhhMzRkNWZhODllMWI2MmFlYWY3
15
- YzAwMDRmMmE2YmVhOGE0NzBkZDViZGRhNzc5ZjkwMzUzZjZhNWI=
6
+ metadata.gz: 42e186eb4bdb29a97675ba72c53d71eed7d7742dfa1e155b4ecdd7969101f73b089f809f91bd041181e7703d1fa8460c6a59892b5130241c6925e8fcb527c2f8
7
+ data.tar.gz: 160446420d76dd484ff674c95d8be0ca828f2a75edc103683828ea28528c4bb161c5608f9c096d5a8ff110f9711e9f352be099e624893caa92a3d920e482ca45
data/Gemfile CHANGED
@@ -9,4 +9,5 @@ end
9
9
  group :testing do
10
10
  gem 'mocha'
11
11
  gem 'rack-test'
12
+ gem 'minitest'
12
13
  end
@@ -1,19 +1,24 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- metaclass (0.0.1)
5
- mocha (0.14.0)
4
+ metaclass (0.0.4)
5
+ minitest (5.8.4)
6
+ mocha (1.1.0)
6
7
  metaclass (~> 0.0.1)
7
- rack (1.5.2)
8
- rack-test (0.6.2)
8
+ rack (1.6.4)
9
+ rack-test (0.6.3)
9
10
  rack (>= 1.0)
10
- rake (10.1.0)
11
+ rake (11.1.1)
11
12
 
12
13
  PLATFORMS
13
14
  ruby
14
15
 
15
16
  DEPENDENCIES
17
+ minitest
16
18
  mocha
17
19
  rack
18
20
  rack-test
19
21
  rake
22
+
23
+ BUNDLED WITH
24
+ 1.11.2
data/NEWS.md CHANGED
@@ -1,10 +1,15 @@
1
1
  adsf News
2
2
  =========
3
3
 
4
+ 1.2.1
5
+ -----
6
+
7
+ * Fixed compatibility with Ruby 2.3.0 (#3) [Vipul Amler]
8
+
4
9
  1.2.0
5
10
  -----
6
11
 
7
- * Add '--local-only' and `--listen-address' options (#1) [Ed Brannin]
12
+ * Add `--local-only` and `--listen-address` options (#1) [Ed Brannin]
8
13
 
9
14
  1.1.1
10
15
  -----
data/README.md CHANGED
@@ -11,7 +11,7 @@ adsf (A Dead Simple Fileserver) is a tiny static file server that you can launch
11
11
  drwxr-xr-x 2 ddfreyne staff 68 May 29 10:04 projects
12
12
 
13
13
  ▸ adsf
14
- 2009-05-29 10:04:44] INFO WEBrick 1.3.1
14
+ [2009-05-29 10:04:44] INFO WEBrick 1.3.1
15
15
  [2009-05-29 10:04:44] INFO ruby 1.8.7 (2008-08-11) [i686-darwin9.6.1]
16
16
  [2009-05-29 10:04:44] INFO WEBrick::HTTPServer#start: pid=2757 port=3000
17
17
 
@@ -40,10 +40,11 @@ You can also specify an `:index_filenames` option, containing the names of the i
40
40
  :index_filenames => %w( index.html index.xhtml index.xml )
41
41
  run Rack::File.new("public/")
42
42
 
43
- Authors
44
- -------
43
+ Contributors
44
+ ------------
45
45
 
46
- * Denis Defreyne
46
+ * Ed Brannin
47
+ * Larissa Reis
47
48
  * Mark Meves
48
49
 
49
50
  Contact
data/Rakefile CHANGED
@@ -6,8 +6,8 @@ desc 'Run all tests'
6
6
  task :test do
7
7
  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
8
8
 
9
- require 'minitest/unit'
10
- MiniTest::Unit.autorun
9
+ require 'minitest/autorun'
10
+ MiniTest.autorun
11
11
 
12
12
  test_files = Dir["test/**/test_*.rb"]
13
13
  test_files.each { |f| require f }
data/bin/adsf CHANGED
@@ -60,11 +60,7 @@ end.parse!
60
60
  # Find handler
61
61
  handler = Rack::Handler.get(options[:handler])
62
62
  if handler.nil?
63
- begin
64
- handler = Rack::Handler::Mongrel
65
- rescue LoadError
66
- handler = Rack::Handler::WEBrick
67
- end
63
+ handler = Rack::Handler::WEBrick
68
64
  end
69
65
 
70
66
  # Create app
@@ -1,6 +1,6 @@
1
1
  module Adsf
2
2
 
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
 
5
5
  end
6
6
 
@@ -15,7 +15,7 @@ module Adsf::Rack
15
15
 
16
16
  # Redirect if necessary
17
17
  if ::File.directory?(path) && path_info !~ /\/$/
18
- new_path_info = path_info + '/'
18
+ new_path_info = env['PATH_INFO'] + '/'
19
19
  return [
20
20
  302,
21
21
  { 'Location' => new_path_info, 'Content-Type' => 'text/html' },
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adsf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-29 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.0
27
27
  description: A web server that can be spawned in any directory
@@ -36,12 +36,12 @@ files:
36
36
  - Gemfile.lock
37
37
  - LICENSE
38
38
  - NEWS.md
39
- - Rakefile
40
39
  - README.md
40
+ - Rakefile
41
41
  - bin/adsf
42
- - lib/adsf/rack/index_file_finder.rb
43
- - lib/adsf/rack.rb
44
42
  - lib/adsf.rb
43
+ - lib/adsf/rack.rb
44
+ - lib/adsf/rack/index_file_finder.rb
45
45
  homepage: http://github.com/ddfreyne/adsf/
46
46
  licenses:
47
47
  - MIT
@@ -52,17 +52,17 @@ require_paths:
52
52
  - lib
53
53
  required_ruby_version: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ! '>='
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: 1.8.5
58
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 2.1.11
65
+ rubygems_version: 2.5.2
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: a tiny static file server