scms 2.1.6 → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWY0MWZjZGU0MmJjYWZmZDE1ZTc3MGI3MDQ4MjRjZGMwMmVlMDhkNg==
4
+ MzMwZjY1MzA5N2NhODYwMjIyY2MyZmYzNTE1NmFlZmUyMmE0YzI4MA==
5
5
  data.tar.gz: !binary |-
6
- N2YwMDFmMzE0NDM1NDRmNjI3YjBiMTlmNTM2MWU3OTY1MjZhYTIxNA==
6
+ OTIyN2Q2MjI4ZjYzMTU1NDVmM2RkZjk0MDIyNzQ5MmQ0NTk1ZDgzNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjYyMGJiNzQ0NDRmNGVjODg0MjgwYjAyNGU4ZDIwOTBlNjQwNjUwNTAxMDgw
10
- ZmEyMjAwZjlhNWUyMjI2YzVmYTAyZTZmMWJlZDEzOWViNTdiZDg2YWEyZDg0
11
- Yzk1MTRiZmI5YzJiNGI1NTI4ZWM1MmUwMjE2YTM0ODRmNGYyNjU=
9
+ NzRkNDZlOWUwNWY1MTBjOGViMzFmY2ZmNjZiOWIzZTM5NmI5Y2FjMWEyOWVi
10
+ N2NjMjI4NDlmM2U1YmY3NjZjNTdkNTdmYTk4YTM5NTBiMDAyNzI4NDE4ODc3
11
+ MTFiMzk0MTAxMjRhNWMzYjZjMDY3OWNjOGY1MGZkNjNlNDYzYWI=
12
12
  data.tar.gz: !binary |-
13
- YmIzZTdkNzBhMWRmZDdkZTlmNTMwODRlYTA1NDdjN2Y4OTRiYjAxZTkzNjJm
14
- MjkyMDNjZTgzMTNkNzQ2ZDdiZTFmYTA3MmU4ZWQ0NDE1MGYxNTJhNjI5NGI4
15
- NTkzODU0ZDcwNWY0YjRhM2YxMGZjZWU4ODZkZGYzNWU0NDU4M2E=
13
+ NWE5ODA5YWEzNzlkM2FkYmIxNGQzNzc1MWYyMmFmZDgxNzYwYjk0YjhhY2Q0
14
+ ODlhZDg2MTM5ZGZlNTc5YmZhZWY2MjFkZDA5MzljZDQ1MzhhNWE2YjIxYWVh
15
+ MmMwMmUyYTE4NDE2ODljZDg1ZjA1YTA4NGRiMjBhMjkxYmE3ZDg=
data/bin/scms CHANGED
@@ -108,10 +108,10 @@ Scms.build(Folders[:website], Folders[:config], options[:mode])
108
108
  Scms.copywebsite(Folders[:website], Folders[:pub]) if Folders[:pub] != nil
109
109
 
110
110
  if options[:server]
111
- Dir.chdir(Folders[:website]) do
112
- Thread.new {
113
- %x("scms-server")
114
- }
111
+ if system('scms-server --dir "#{Folders[:website]}"')
112
+ puts "Launched scms-server"
113
+ else
114
+ puts "Close scms-server?"
115
115
  end
116
116
  end
117
117
 
@@ -14,6 +14,8 @@ require "scms/version"
14
14
  require 'webrick'
15
15
  require 'launchy'
16
16
 
17
+ puts "Working dir: #{Dir::pwd}"
18
+
17
19
  options = {}
18
20
  optparse = OptionParser.new do|opts|
19
21
  # Set a banner, displayed at the top of the help screen.
@@ -46,13 +48,14 @@ optparse = OptionParser.new do|opts|
46
48
  end
47
49
  end
48
50
  optparse.parse!
51
+ puts "Doc root: #{options[:dir]}"
49
52
 
50
53
  include WEBrick
51
54
 
52
55
  port = options[:port]
53
56
  puts "Starting server: http://#{Socket.gethostname}:#{port}"
54
57
  #:BindAddress
55
- server = HTTPServer.new(:Port => port, :DocumentRoot => options[:dir])
58
+ server = HTTPServer.new(:Port=>port,:DocumentRoot=>options[:dir])
56
59
  trap("INT"){ server.shutdown }
57
60
 
58
61
  uri = "http://localhost:#{port}"
@@ -1,3 +1,3 @@
1
1
  module Scms
2
- VERSION = "2.1.6"
2
+ VERSION = "2.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courtenay Probert
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.1.5
188
+ rubygems_version: 2.1.6
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Create simple static websites, in a jiffy