powder 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Readme.md +3 -0
- data/bin/powder +4 -2
- data/lib/powder/version.rb +1 -1
- data/man/powder.1 +3 -0
- data/man/powder.1.html +4 -0
- data/man/powder.1.ronn +4 -0
- data/powder.gemspec +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c8da88c427b9df1097c5007fdb5e763a45b720e
|
4
|
+
data.tar.gz: c8e78b9d894aaa969a2e18e35011b3cd9e764c95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 310ec4119049f4c9d2739c89894a225fac8ee3eb773d175605cc5f1b1282ace33ca33fe4c4a1a16adc1ac88eb4a64276893fb6f9d971fc8b851c924b35ffe41c
|
7
|
+
data.tar.gz: 80a776a3880de8a71784728c03761ba4c2ea3d0dc0242fb234b7b9f398f157999d526803b321fe12f6f0760296953e0991b95abe9347af2c5b55ed34e0735c18
|
data/Readme.md
CHANGED
@@ -92,6 +92,9 @@ powder manages [pow](http://pow.cx/)
|
|
92
92
|
$ powder open --xip -b Firefox
|
93
93
|
$ powder -o -x -b 'Google Chrome'
|
94
94
|
|
95
|
+
$ powder open [--path|-p] home
|
96
|
+
=> Opens the pow link with a path appended, e.g. http://bacon.dev/home
|
97
|
+
|
95
98
|
$ powder restart
|
96
99
|
=> Restart the current app
|
97
100
|
# aliased as powder -r
|
data/bin/powder
CHANGED
@@ -183,8 +183,10 @@ module Powder
|
|
183
183
|
desc "open", "Open a pow in the browser"
|
184
184
|
method_option :browser, :type => :string, :default => nil, :aliases => '-b', :desc => 'browser to open with'
|
185
185
|
method_option :xip, :type => :boolean, :default => false, :aliases => '-x', :desc => "open xip.io instead of .domain"
|
186
|
+
method_option :path, :type => :string, :default => '', :aliases => '-p', :desc => 'path to open'
|
186
187
|
def open(name=nil)
|
187
188
|
browser = options.browser? ? "-a \'#{options.browser}\'" : nil
|
189
|
+
path = options.path.start_with?('/') ? options.path : '/' + options.path
|
188
190
|
if options.xip?
|
189
191
|
local_ip = '0.0.0.0'
|
190
192
|
begin
|
@@ -196,9 +198,9 @@ module Powder
|
|
196
198
|
ensure
|
197
199
|
Socket.do_not_reverse_lookup = orig
|
198
200
|
end
|
199
|
-
%x{open #{browser} http://#{name || get_pow_name}.#{local_ip}.xip.io}
|
201
|
+
%x{open #{browser} http://#{name || get_pow_name}.#{local_ip}.xip.io#{path}}
|
200
202
|
else
|
201
|
-
%x{open #{browser} http://#{name || get_pow_name}.#{domain}}
|
203
|
+
%x{open #{browser} http://#{name || get_pow_name}.#{domain}#{path}}
|
202
204
|
end
|
203
205
|
end
|
204
206
|
|
data/lib/powder/version.rb
CHANGED
data/man/powder.1
CHANGED
@@ -144,6 +144,9 @@ For both forms of link, if the current directory doesn\'t look like an app that
|
|
144
144
|
\fB$ powder open \-b \'Google Chrome\'\fR => Opens the pow link with browsers with more than one word
|
145
145
|
.
|
146
146
|
.P
|
147
|
+
\fB$ powder open \-\-path home\fR => Opens the pow link with a path appended (http://bacon.dev/home) # Also aliased as \-p
|
148
|
+
.
|
149
|
+
.P
|
147
150
|
# Should also works with all the other \'open\' options: \fB$ powder open bacon \-b Safari\fR \fB$ powder open \-\-xip \-b Firefox\fR \fB$ powder \-o \-x \-b \'Google Chrome\'\fR
|
148
151
|
.
|
149
152
|
.SS "Managing application restarts"
|
data/man/powder.1.html
CHANGED
@@ -164,6 +164,10 @@ a basic <strong>config.ru</strong> for Rails 2</p>
|
|
164
164
|
<p> <code>$ powder open -b 'Google Chrome'</code>
|
165
165
|
=> Opens the pow link with browsers with more than one word</p>
|
166
166
|
|
167
|
+
<p> <code>$ powder open --path home</code>
|
168
|
+
=> Opens the pow link with a path appended (http://bacon.dev/home)
|
169
|
+
# Also aliased as -p</p>
|
170
|
+
|
167
171
|
<p> # Should also works with all the other 'open' options:
|
168
172
|
<code>$ powder open bacon -b Safari</code>
|
169
173
|
<code>$ powder open --xip -b Firefox</code>
|
data/man/powder.1.ronn
CHANGED
@@ -93,6 +93,10 @@ a basic **config.ru** for Rails 2
|
|
93
93
|
`$ powder open -b 'Google Chrome'`
|
94
94
|
=> Opens the pow link with browsers with more than one word
|
95
95
|
|
96
|
+
`$ powder open --path home`
|
97
|
+
=> Opens the pow link with a path appended (http://bacon.dev/home)
|
98
|
+
# Also aliased as -p
|
99
|
+
|
96
100
|
# Should also works with all the other 'open' options:
|
97
101
|
`$ powder open bacon -b Safari`
|
98
102
|
`$ powder open --xip -b Firefox`
|
data/powder.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = "https://github.com/powder-rb/powder"
|
12
12
|
s.summary = %q{Makes Pow even easier}
|
13
13
|
s.description = %q{Makes Pow even easier. I mean really, really, ridiculously easy.}
|
14
|
+
s.license = 'MIT'
|
14
15
|
|
15
16
|
s.rubyforge_project = "powder"
|
16
17
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: powder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phil Nash
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-11-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -61,7 +61,8 @@ files:
|
|
61
61
|
- man/powder.1.ronn
|
62
62
|
- powder.gemspec
|
63
63
|
homepage: https://github.com/powder-rb/powder
|
64
|
-
licenses:
|
64
|
+
licenses:
|
65
|
+
- MIT
|
65
66
|
metadata: {}
|
66
67
|
post_install_message:
|
67
68
|
rdoc_options: []
|