powder 0.0.2 → 0.0.3

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/pow +5 -3
  2. data/lib/powder/version.rb +1 -1
  3. metadata +3 -3
data/bin/pow CHANGED
@@ -30,7 +30,7 @@ class Pow < Thor
30
30
 
31
31
  desc "list", "list current pows"
32
32
  def list
33
- Dir[POWPATH + "/*"].map { |a| p File.basename(a) }
33
+ Dir[POWPATH + "/*"].map { |a| $stdout.puts File.basename(a) }
34
34
  end
35
35
 
36
36
  desc "remove", "remove a pow"
@@ -52,10 +52,12 @@ class Pow < Thor
52
52
  private
53
53
 
54
54
  def is_powable?
55
- if File.exists? 'config.ru'
55
+ if File.exists?('config.ru') || File.exists?('public/index.html')
56
56
  true
57
57
  else
58
- $stdout.puts "This does not appear to be a rack app, there is no config.ru."
58
+ $stdout.puts "This does not appear to be a rack app as there is no config.ru."
59
+ $stdout.puts "If you are in a Rails 2 application, try https://gist.github.com/909308"
60
+ $stdout.puts "Pow can also host static apps if there is an index.html in public/"
59
61
  false
60
62
  end
61
63
  end
@@ -1,3 +1,3 @@
1
1
  module Powder
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: powder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phil Nash