powser 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +16 -13
  2. data/bin/powser +14 -4
  3. data/lib/powser/version.rb +1 -1
  4. metadata +7 -7
data/README.md CHANGED
@@ -1,36 +1,39 @@
1
- ### Powser
1
+ ### Powder for your browser!
2
2
  A simple web server interface to powder CLI for pow! This gives you the ability to create a bookmark button in your browser that will restart your development app and redirect to the root url.
3
3
 
4
4
  ### Features
5
5
  * Application Restart
6
6
  * Restarts a linked application and redirects to it's root url
7
- * Browse to `http://prowser.dev/restart`
7
+ * Browse to `http://powser.dev/restart`
8
8
  * Redirect to a custom url by passing in the `redirect` parameter to the action
9
- * `http://prowser.dev/restart?redirect=www.appname.dev`
9
+ * `http://powser.dev/restart?redirect=www.appname.dev`
10
10
 
11
- ### How do I setup Prowser?
11
+ ### How do I setup Powser?
12
12
  From scratch:
13
13
 
14
14
  ```sh
15
15
  cd path/to/pow/app
16
- gem install prowser
17
- prowser start
16
+ gem install powser
17
+ powser start
18
18
  ```
19
19
 
20
- Link prowser to an app with a custom appname:
20
+ Link powser to an app with a custom appname:
21
21
 
22
22
  ```sh
23
- prowser start appname
23
+ powser start appname
24
24
  ```
25
25
 
26
- Stop the prowser server
26
+ Stop the powser server
27
27
 
28
28
  ```sh
29
- prowser stop
29
+ powser stop
30
30
  ```
31
31
 
32
- Restart the prowser server
32
+ Restart the powser server
33
33
 
34
34
  ```sh
35
- prowser restart
36
- ```
35
+ powser restart
36
+ ```
37
+
38
+ ### Troubleshooting
39
+ Sometimes you will get an error related to changing directory. If that happen just restart the powser server with `powser restart` and life will be good.
data/bin/powser CHANGED
@@ -4,9 +4,9 @@ require 'rubygems'
4
4
  require 'thor'
5
5
  require 'fileutils'
6
6
  require 'net/https'
7
- require 'powder/version'
7
+ require 'powser/version'
8
8
 
9
- module Powder
9
+ module Powser
10
10
  class CLI < Thor
11
11
  include Thor::Actions
12
12
  default_task :help
@@ -46,7 +46,7 @@ module Powder
46
46
 
47
47
  desc "version", "Shows the version."
48
48
  def version
49
- say "powser #{Powder::VERSION}"
49
+ say "powser #{Powser::VERSION}"
50
50
  end
51
51
 
52
52
  private
@@ -97,6 +97,16 @@ module Powder
97
97
  return false
98
98
  end
99
99
  end
100
+
101
+ def is_rails2_app?
102
+ File.exists?('config/environment.rb') &&
103
+ !`grep RAILS_GEM_VERSION config/environment.rb`.empty? ? 'Rails 2' : nil
104
+ end
105
+
106
+ def is_radiant_app?
107
+ File.exists?('config/environment.rb') &&
108
+ !`grep Radiant::Initializer config/environment.rb`.empty? ? 'Radiant' : nil
109
+ end
100
110
  end
101
111
  end
102
- Powder::CLI.start
112
+ Powser::CLI.start
@@ -1,3 +1,3 @@
1
1
  module Powser
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: powser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70148590837580 !ruby/object:Gem::Requirement
16
+ requirement: &70354531446060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.11.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70148590837580
24
+ version_requirements: *70354531446060
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sinatra
27
- requirement: &70148590836900 !ruby/object:Gem::Requirement
27
+ requirement: &70354531445480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.3.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70148590836900
35
+ version_requirements: *70354531445480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: powder
38
- requirement: &70148590836240 !ruby/object:Gem::Requirement
38
+ requirement: &70354531444900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 0.1.7
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70148590836240
46
+ version_requirements: *70354531444900
47
47
  description: A simple web server interface to Powder.
48
48
  email:
49
49
  - phil@philmonroe.com.com