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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15b1e69b2f48aa26c349519d512fbc703919dbac
4
- data.tar.gz: db576e4c73d168d9133ebdf034b03a25fb00b39d
3
+ metadata.gz: d17ea0b9163cfd854a3eab3e00eafa2df338fdd1
4
+ data.tar.gz: 2279e5043187f10a658777ab7ac87ee7915f8565
5
5
  SHA512:
6
- metadata.gz: 415bd67ee012398b3d5afb991a2ed181a785914f7923877658ddedbf71f5c4279cdcfdc5136b46a671f4b09d2914a966beea324177e3a2be32d5473691c729ab
7
- data.tar.gz: 7e49206ca4209cbb2a6338ce790357e439c1128fd9b41bbce17437047b87d338fa81de9f870b146ddbf8c2363cad7af4b151f525e8961163690748ef89f12abe
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("-p", "--production", "Build assets as with production mode.") do |val|
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
@@ -99,7 +99,8 @@ module Cyborg
99
99
 
100
100
  # Run rails server and watch assets
101
101
  def server(options={})
102
- @threads << Thread.new { system "#{Cyborg.rails_path('bin/rails')} server" }
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
 
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyborg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis