geordi 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/Rakefile +1 -1
- data/features/server.feature +11 -4
- data/lib/geordi/commands/server.rb +6 -2
- data/lib/geordi/version.rb +1 -1
- metadata +17 -11
- checksums.yaml +0 -7
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
data/features/server.feature
CHANGED
@@ -3,22 +3,29 @@ Feature: The server/devserver command
|
|
3
3
|
Scenario: Booting a development server
|
4
4
|
When I run `geordi server`
|
5
5
|
Then the output should contain "http://aruba.vcap.me:3000"
|
6
|
-
And the output should contain "Util.system! bundle exec rails server -p 3000
|
6
|
+
And the output should contain "Util.system! bundle exec rails server -p 3000"
|
7
7
|
|
8
8
|
|
9
9
|
Scenario: Passing a port as argument
|
10
10
|
When I run `geordi server 3001`
|
11
11
|
Then the output should contain "http://aruba.vcap.me:3001"
|
12
|
-
And the output should contain "Util.system! bundle exec rails server -p 3001
|
12
|
+
And the output should contain "Util.system! bundle exec rails server -p 3001"
|
13
13
|
|
14
14
|
|
15
15
|
Scenario: Passing a port as option
|
16
16
|
When I run `geordi server -p 3001`
|
17
17
|
Then the output should contain "http://aruba.vcap.me:3001"
|
18
|
-
And the output should contain "Util.system! bundle exec rails server -p 3001
|
18
|
+
And the output should contain "Util.system! bundle exec rails server -p 3001"
|
19
19
|
|
20
20
|
|
21
21
|
Scenario: The command is aliased for backwards compatibility
|
22
22
|
When I run `geordi devserver`
|
23
|
-
Then the output should contain "Util.system! bundle exec rails server
|
23
|
+
Then the output should contain "Util.system! bundle exec rails server"
|
24
24
|
|
25
|
+
|
26
|
+
Scenario: Starting the server as accessible from the local network
|
27
|
+
|
28
|
+
... so it can be accessed from a test iPad or so.
|
29
|
+
|
30
|
+
When I run `geordi server --public`
|
31
|
+
Then the output should contain "Util.system! bundle exec rails server -b 0.0.0.0"
|
@@ -2,6 +2,8 @@ desc 'server [PORT]', 'Start a development server'
|
|
2
2
|
|
3
3
|
option :port, :aliases => '-p', :default => '3000',
|
4
4
|
:desc => 'Choose a port'
|
5
|
+
option :public, :aliases => '-P', :type => :boolean,
|
6
|
+
:desc => 'Make the server accessible in the local network'
|
5
7
|
|
6
8
|
def server(port = nil)
|
7
9
|
invoke_cmd 'bundle_install'
|
@@ -12,8 +14,10 @@ def server(port = nil)
|
|
12
14
|
note "URL: http://#{ File.basename(Dir.pwd) }.vcap.me:#{port}"
|
13
15
|
puts
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
+
command = [Util.server_command]
|
18
|
+
command << '-b 0.0.0.0' if options.public
|
19
|
+
command << "-p #{ port }"
|
20
|
+
Util.system! *command
|
17
21
|
end
|
18
22
|
|
19
23
|
map 'devserver' => 'server'
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Henning Koch
|
@@ -13,15 +14,17 @@ dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: thor
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 0.18.0
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 0.18.0
|
27
30
|
description: Collection of command line tools we use in our daily work with Ruby,
|
@@ -50,8 +53,8 @@ executables:
|
|
50
53
|
extensions: []
|
51
54
|
extra_rdoc_files: []
|
52
55
|
files:
|
53
|
-
-
|
54
|
-
-
|
56
|
+
- .gitignore
|
57
|
+
- .ruby-version
|
55
58
|
- Gemfile
|
56
59
|
- Gemfile.lock
|
57
60
|
- LICENSE
|
@@ -129,26 +132,29 @@ files:
|
|
129
132
|
homepage: http://makandra.com
|
130
133
|
licenses:
|
131
134
|
- MIT
|
132
|
-
|
133
|
-
|
135
|
+
post_install_message: ! '* Binary `geordi` installed
|
136
|
+
|
137
|
+
'
|
134
138
|
rdoc_options: []
|
135
139
|
require_paths:
|
136
140
|
- lib
|
137
141
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
138
143
|
requirements:
|
139
|
-
- -
|
144
|
+
- - ! '>='
|
140
145
|
- !ruby/object:Gem::Version
|
141
146
|
version: '0'
|
142
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
143
149
|
requirements:
|
144
|
-
- -
|
150
|
+
- - ! '>='
|
145
151
|
- !ruby/object:Gem::Version
|
146
152
|
version: '0'
|
147
153
|
requirements: []
|
148
154
|
rubyforge_project: geordi
|
149
|
-
rubygems_version:
|
155
|
+
rubygems_version: 1.8.23.2
|
150
156
|
signing_key:
|
151
|
-
specification_version:
|
157
|
+
specification_version: 3
|
152
158
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails
|
153
159
|
and Linux at makandra.
|
154
160
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 353c82b4e3fed11c19b3cf347e50f18d14253ae4
|
4
|
-
data.tar.gz: da71d1156fb486d8fa27218573470c99948cb7de
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 31362eec0538ed4b3e99a875fe9ec98a6e5e9252a6cfbbc44bb3146fccecd5e7d7a3c47ad1fb46e09d725c37830c6b3a3a2efbb670bda4f566644c0206edb5cf
|
7
|
-
data.tar.gz: f14ae5d1b9fdd7f0e0fda47b4947ba6685ea2422e80d4b037aeae61eefa9b5cc12237475d5bb3449e2aeba294849e86669d0c04eaf34ea00670e1f16a6194695
|