adsf 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +19 -0
  4. data/NEWS.md +5 -0
  5. data/bin/adsf +13 -2
  6. data/lib/adsf.rb +1 -1
  7. metadata +18 -14
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NzgyMGNmMDE4YjQ5YWFmOWE1ZTBjOTYwMGU4ZTkzYWFjZWFmZjk3NA==
5
+ data.tar.gz: !binary |-
6
+ ZTE4YzBjMDg0MDM0ZjQ0MTYyMmM4N2QwY2Y2MTEwZjA3NDIwODgxZg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YmM5YmY4YWYxMmU2NGRiMzQxNzdmYzIxN2NlMGRiNTkwYWIwZTFjZTg0N2Yx
10
+ NWU5YmRiYTNmNGIyNDRhODFjM2ZlZmNjZjBjZmJjMDUzNzU5ZjNmMTBmNzRh
11
+ Njg1OWE1YWUwMTg2YWFhNTAyYThlMGI5OWM3MGYzNzNlNjVhNGY=
12
+ data.tar.gz: !binary |-
13
+ MzhjZDY3N2FhZWE1NGE5NzgyNDNiYjVkZjM1YzA5MWQ4YTMzY2ZiYjlhMGIz
14
+ Y2M0NDAzZmFhY2EzYmQzZDQzZDg1NmQ0ZjhhMzRkNWZhODllMWI2MmFlYWY3
15
+ YzAwMDRmMmE2YmVhOGE0NzBkZDViZGRhNzc5ZjkwMzUzZjZhNWI=
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rack'
4
+
5
+ group :development do
6
+ gem 'rake'
7
+ end
8
+
9
+ group :testing do
10
+ gem 'mocha'
11
+ gem 'rack-test'
12
+ end
@@ -0,0 +1,19 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ metaclass (0.0.1)
5
+ mocha (0.14.0)
6
+ metaclass (~> 0.0.1)
7
+ rack (1.5.2)
8
+ rack-test (0.6.2)
9
+ rack (>= 1.0)
10
+ rake (10.1.0)
11
+
12
+ PLATFORMS
13
+ ruby
14
+
15
+ DEPENDENCIES
16
+ mocha
17
+ rack
18
+ rack-test
19
+ rake
data/NEWS.md CHANGED
@@ -1,6 +1,11 @@
1
1
  adsf News
2
2
  =========
3
3
 
4
+ 1.2.0
5
+ -----
6
+
7
+ * Add '--local-only' and `--listen-address' options (#1) [Ed Brannin]
8
+
4
9
  1.1.1
5
10
  -----
6
11
 
data/bin/adsf CHANGED
@@ -11,7 +11,8 @@ options = {
11
11
  :handler => nil,
12
12
  :port => 3000,
13
13
  :index_filenames => %w( index.html ),
14
- :root => '.'
14
+ :root => '.',
15
+ :host => '0.0.0.0',
15
16
  }
16
17
  OptionParser.new do |opts|
17
18
  opts.banner = "Usage: adsf [options]"
@@ -44,6 +45,16 @@ OptionParser.new do |opts|
44
45
  opts.on('-r', '--root [root]', 'Specify the web root to use') do |o|
45
46
  options[:root] = o
46
47
  end
48
+
49
+ # host
50
+ opts.on('-l', '--local-only', 'Only listen to requests from localhost (short for "-a localhost")') do
51
+ options[:host] = 'localhost'
52
+ end
53
+
54
+ # host
55
+ opts.on('-a', '--listen-address [host]', 'Specify the address to listen to') do |o|
56
+ options[:host] = o
57
+ end
47
58
  end.parse!
48
59
 
49
60
  # Find handler
@@ -73,4 +84,4 @@ end.to_app
73
84
  end
74
85
 
75
86
  # Run
76
- handler.run(app, :Port => options[:port])
87
+ handler.run(app, :Port => options[:port], :Host => options[:host])
@@ -1,6 +1,6 @@
1
1
  module Adsf
2
2
 
3
- VERSION = '1.1.1'
3
+ VERSION = '1.2.0'
4
4
 
5
5
  end
6
6
 
metadata CHANGED
@@ -1,28 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adsf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Denis Defreyne
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-03-17 00:00:00.000000000 Z
11
+ date: 2013-11-29 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rack
16
- requirement: &70157238354860 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70157238354860
25
- description: a tiny static file server
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ description: A web server that can be spawned in any directory
26
28
  email: denis.defreyne@stoneship.org
27
29
  executables:
28
30
  - adsf
@@ -30,6 +32,8 @@ extensions: []
30
32
  extra_rdoc_files: []
31
33
  files:
32
34
  - ChangeLog
35
+ - Gemfile
36
+ - Gemfile.lock
33
37
  - LICENSE
34
38
  - NEWS.md
35
39
  - Rakefile
@@ -38,29 +42,29 @@ files:
38
42
  - lib/adsf/rack/index_file_finder.rb
39
43
  - lib/adsf/rack.rb
40
44
  - lib/adsf.rb
41
- homepage: http://stoneship.org/software/adsf/
42
- licenses: []
45
+ homepage: http://github.com/ddfreyne/adsf/
46
+ licenses:
47
+ - MIT
48
+ metadata: {}
43
49
  post_install_message:
44
50
  rdoc_options: []
45
51
  require_paths:
46
52
  - lib
47
53
  required_ruby_version: !ruby/object:Gem::Requirement
48
- none: false
49
54
  requirements:
50
55
  - - ! '>='
51
56
  - !ruby/object:Gem::Version
52
57
  version: 1.8.5
53
58
  required_rubygems_version: !ruby/object:Gem::Requirement
54
- none: false
55
59
  requirements:
56
60
  - - ! '>='
57
61
  - !ruby/object:Gem::Version
58
62
  version: '0'
59
63
  requirements: []
60
- rubyforge_project: adsf
61
- rubygems_version: 1.8.17
64
+ rubyforge_project:
65
+ rubygems_version: 2.1.11
62
66
  signing_key:
63
- specification_version: 3
67
+ specification_version: 4
64
68
  summary: a tiny static file server
65
69
  test_files: []
66
70
  has_rdoc: false