httpit 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/httpit +2 -1
  2. data/httpit.gemspec +1 -1
  3. metadata +4 -4
data/bin/httpit CHANGED
@@ -45,7 +45,7 @@ get '/' do
45
45
  elsif File.file?('./index.haml')
46
46
  haml :index
47
47
  else
48
- @folder = ''
48
+ @path = ''
49
49
  @files = get_content.select {|f| f[0] != '.' && f[0] != '..' }
50
50
  haml :listing
51
51
  end
@@ -117,6 +117,7 @@ __END__
117
117
  :margin-left 20px
118
118
  </style>
119
119
  #wrap
120
+ = @path
120
121
  %h1
121
122
  %span Folder:
122
123
  = @path == '' ? '/' : @path
data/httpit.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "httpit"
3
- s.version = "0.3.3"
3
+ s.version = "0.3.4"
4
4
  s.summary = "Web server for static files"
5
5
  s.description = "Just go to folder and run `httpit`"
6
6
  s.author = "Pavel Evstigneev"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pavel Evstigneev
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-12 00:00:00 +03:00
18
+ date: 2010-11-27 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency