cyborg 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cyborg +7 -1
- data/lib/cyborg/command.rb +2 -1
- data/lib/cyborg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d17ea0b9163cfd854a3eab3e00eafa2df338fdd1
|
4
|
+
data.tar.gz: 2279e5043187f10a658777ab7ac87ee7915f8565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2062237528c072c10060e1bfc5fcaa6725a277776fa8a2e639a962318bf62ff2036a09ebc7d0699b40333e5fd9ef875fafb4a11e8614d01f517234bb4229f7ea
|
7
|
+
data.tar.gz: 89bd43e4cefcf62e66562b6c37f86e6d81bb9889cd67b08f93b923cdd271b47a59fdf2a890590df59bb738483f15892351fc6aad9800c25ebe8b7b395adf5e7c
|
data/bin/cyborg
CHANGED
@@ -56,7 +56,7 @@ OptionParser.new do |opts|
|
|
56
56
|
options[:select_assets] = true
|
57
57
|
options[:svg] = true
|
58
58
|
end
|
59
|
-
opts.on("-
|
59
|
+
opts.on("-P", "--production", "Build assets as with production mode.") do |val|
|
60
60
|
options[:production] = true
|
61
61
|
end
|
62
62
|
opts.on("-C", "--clean", "Remove cache files before build.") do |val|
|
@@ -64,6 +64,12 @@ OptionParser.new do |opts|
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
if %w(s server).include? options[:command]
|
68
|
+
opts.on("-p", "--port PORT", String, "serve site at port") do |val|
|
69
|
+
options[:port] = val
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
67
73
|
opts.on("-v", "--version", "Print version") do |version|
|
68
74
|
options[:command] = 'version'
|
69
75
|
end
|
data/lib/cyborg/command.rb
CHANGED
@@ -99,7 +99,8 @@ module Cyborg
|
|
99
99
|
|
100
100
|
# Run rails server and watch assets
|
101
101
|
def server(options={})
|
102
|
-
|
102
|
+
options[:port] ||= 3000
|
103
|
+
@threads << Thread.new { system "#{Cyborg.rails_path('bin/rails')} server -p #{options[:port]}" }
|
103
104
|
watch(options) if options[:watch]
|
104
105
|
end
|
105
106
|
|
data/lib/cyborg/version.rb
CHANGED