roda-bin 0.0.2 → 0.0.3

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: eaeba7fcb813ae4bcc4ac4678a5799018b334ace
4
- data.tar.gz: 6b94f456d6249646280950932b052a370e327c95
3
+ metadata.gz: ab5c4cb976e30a8bad4788a5ef64f721e239228a
4
+ data.tar.gz: d97c7a25e5b428f04f85f301b6e412114d738bf2
5
5
  SHA512:
6
- metadata.gz: 2d3848d06b28f60e108574d8b4d31d5016a8718d88bd24fb582ce3fdd113adc25ad0c8b9edb7bc542b3ae8fae9375694c7c24f7927569ffddc4d49f59dfaea37
7
- data.tar.gz: c237e0a4e129b2c647f8092955ae626687394c98abe6e01b69782d5b6377cd056de17827441473afb8636a09aec38bb8876d613fc99eddb2a1353dd630d1ab1d
6
+ metadata.gz: 9aab9100060589b7fc20817db298cd1a62df38620c1e5b97b40e800309e3459c59043a13800efd9ef15157fdc287ec2bee095f54579095410235681f33c5ddcf
7
+ data.tar.gz: 78469db259635d580e4ccfe6403213f84d90368fed51ae92f3015edebb3eefbaa1788b83a55d81f7d425d55d118f9b7bb090e2f958c4d3a49df81f790e818ca3
data/lib/roda/bin/cli.rb CHANGED
@@ -1,38 +1,40 @@
1
1
  require 'rerun'
2
2
 
3
- class BIN
4
- module CLI
5
- extend self
3
+ class Roda
4
+ module BIN
5
+ module CLI
6
+ extend self
6
7
 
7
- def server
8
- args = [
9
- 'thin', 'start', '--threaded', '--max-persistent-conns', '300',
10
- "--max-conns", "400", "-p", "8080"
11
- ].concat(argv)
8
+ def server
9
+ args = [
10
+ 'thin', 'start', '--threaded', '--max-persistent-conns', '300',
11
+ "--max-conns", "400", "-p", "8080"
12
+ ].concat(argv)
12
13
 
13
- options = {
14
- cmd: args.join(' '),
15
- signal: 'TERM',
16
- growl: true,
17
- name: 'BrowserIO',
18
- ignore: [],
19
- dir: ["."],
20
- pattern: "**/*.{rb,js,coffee,css,scss,sass,styl,erb,html,haml,ru,yml,slim,md}"
21
- }
14
+ options = {
15
+ cmd: args.join(' '),
16
+ signal: 'TERM',
17
+ growl: true,
18
+ name: 'BrowserIO',
19
+ ignore: [],
20
+ dir: ["."],
21
+ pattern: "**/*.{rb,js,coffee,css,scss,sass,styl,erb,html,haml,ru,yml,slim,md}"
22
+ }
22
23
 
23
- Rerun::Runner.keep_running(options[:cmd], options)
24
- end
24
+ Rerun::Runner.keep_running(options[:cmd], options)
25
+ end
25
26
 
26
- def envs
27
- @envs ||= {}
28
- end
27
+ def envs
28
+ @envs ||= {}
29
+ end
29
30
 
30
- private
31
+ private
31
32
 
32
- def argv
33
- @argv ||= begin
34
- ARGV.shift
35
- ARGV
33
+ def argv
34
+ @argv ||= begin
35
+ ARGV.shift
36
+ ARGV
37
+ end
36
38
  end
37
39
  end
38
40
  end
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  module BIN
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj