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 +8 -8
- data/bin/scms +4 -4
- data/bin/scms-server +4 -1
- data/lib/scms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzMwZjY1MzA5N2NhODYwMjIyY2MyZmYzNTE1NmFlZmUyMmE0YzI4MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTIyN2Q2MjI4ZjYzMTU1NDVmM2RkZjk0MDIyNzQ5MmQ0NTk1ZDgzNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzRkNDZlOWUwNWY1MTBjOGViMzFmY2ZmNjZiOWIzZTM5NmI5Y2FjMWEyOWVi
|
10
|
+
N2NjMjI4NDlmM2U1YmY3NjZjNTdkNTdmYTk4YTM5NTBiMDAyNzI4NDE4ODc3
|
11
|
+
MTFiMzk0MTAxMjRhNWMzYjZjMDY3OWNjOGY1MGZkNjNlNDYzYWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
112
|
-
|
113
|
-
|
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
|
|
data/bin/scms-server
CHANGED
@@ -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
|
58
|
+
server = HTTPServer.new(:Port=>port,:DocumentRoot=>options[:dir])
|
56
59
|
trap("INT"){ server.shutdown }
|
57
60
|
|
58
61
|
uri = "http://localhost:#{port}"
|
data/lib/scms/version.rb
CHANGED
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.
|
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.
|
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
|