middleman-cli 4.0.0.rc.1 → 4.0.0.rc.2

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: ba499948656c85e505ff8b61ad72be6e15ef79d0
4
- data.tar.gz: a9b9e75b64e6cd94ee47a8d9792e510431854180
3
+ metadata.gz: 5bf49f6eec11d7222b32af3ccbf53c53830f2b2c
4
+ data.tar.gz: 06317eb7dc184e254f939a99f1830a472d120182
5
5
  SHA512:
6
- metadata.gz: 33e3fd9362e23e85fdcb1f4933671b439a5a1ed0aef56d14087e289c89a22b63b6cc809f949722c436ffea2ed9c5e241b76e1dd5d4f0f5433f551c21e2713550
7
- data.tar.gz: f7592cc9a187aead27e3a8c5cb455cd21d524a5b61f99063efbb66c5801af4556187c351f4242e75f43e673595beceea12790b548db053acbb92909e215d25e7
6
+ metadata.gz: 555ed296dc09dbc59b3db33a3fc163c61e6fc5f4460a53bd81dc3564f2b700c6c11c8ab459f198047008895c93eb55ecd4f7c9b95b5603bc9be9ec5755fff712
7
+ data.tar.gz: ce468e355723b7e20f06b3aa8c27da21ade3c92f633100198afa371153e63686a5c7e412b0d36b21c00ecef9ff14989e2b7583fff9f31cdd33d08b6804dced9b
@@ -8,13 +8,22 @@ module Middleman::Cli
8
8
  aliases: '-e',
9
9
  default: ENV['MM_ENV'] || ENV['RACK_ENV'] || 'development',
10
10
  desc: 'The environment Middleman will run under'
11
- class_option :host,
12
- type: :string,
13
- aliases: '-h',
14
- desc: 'Bind to HOST address'
15
11
  class_option :port,
16
12
  aliases: '-p',
17
13
  desc: 'The port Middleman will listen on'
14
+ class_option :server_name,
15
+ aliases: '-s',
16
+ desc: 'The server name Middleman will use'
17
+ class_option :bind_address,
18
+ aliases: '-b',
19
+ desc: 'The bind address Middleman will listen on'
20
+ class_option :https,
21
+ type: :boolean,
22
+ desc: 'Serve the preview server over SSL/TLS'
23
+ class_option :ssl_certificate,
24
+ desc: 'Path to an X.509 certificate to use for the preview server'
25
+ class_option :ssl_private_key,
26
+ desc: "Path to an RSA private key for the preview server's certificate"
18
27
  class_option :verbose,
19
28
  type: :boolean,
20
29
  default: false,
@@ -40,6 +49,11 @@ module Middleman::Cli
40
49
  aliases: '-l',
41
50
  default: 0.5,
42
51
  desc: 'Set file watcher latency, in seconds'
52
+ class_option :daemon,
53
+ type: :boolean,
54
+ aliases: '-d',
55
+ default: false,
56
+ desc: 'Daemonize preview server'
43
57
 
44
58
  # Start the server
45
59
  def server
@@ -53,14 +67,19 @@ module Middleman::Cli
53
67
 
54
68
  params = {
55
69
  port: options['port'],
56
- host: options['host'],
70
+ bind_address: options['bind_address'],
71
+ https: options['https'],
72
+ server_name: options['server_name'],
73
+ ssl_certificate: options['ssl_certificate'],
74
+ ssl_private_key: options['ssl_private_key'],
57
75
  environment: options['environment'],
58
76
  debug: options['verbose'],
59
77
  instrumenting: options['instrument'],
60
78
  disable_watcher: options['disable_watcher'],
61
79
  reload_paths: options['reload_paths'],
62
80
  force_polling: options['force_polling'],
63
- latency: options['latency']
81
+ latency: options['latency'],
82
+ daemon: options['daemon']
64
83
  }
65
84
 
66
85
  puts '== The Middleman is loading'
@@ -4,7 +4,7 @@ Bundler::GemHelper.install_tasks
4
4
  require 'cucumber/rake/task'
5
5
 
6
6
  Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
7
- t.cucumber_opts = "--color --tags ~@wip --strict"
7
+ t.cucumber_opts = '--color --tags ~@wip --strict'
8
8
  end
9
9
 
10
10
  require 'rake/clean'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.rc.1
4
+ version: 4.0.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-16 00:00:00.000000000 Z
12
+ date: 2015-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: 1.3.1
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.4.6
90
+ rubygems_version: 2.4.8
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Hand-crafted frontend development