runeblog 0.0.78 → 0.0.79
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/VERSION +1 -1
- data/lib/repl.rb +4 -1
- data/lib/runeblog.rb +2 -0
- data/lib/version.rb +1 -1
- data/lib/view.rb +2 -2
- data/test/general.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a0dbefd6f685151cfb5b8a77685b8bb9eda100a
|
4
|
+
data.tar.gz: 98d21ed4489697c7d13fca57ec6d154c7e24ff3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8313fb5cc4a97fd44f2d4fd8786883dfe73a18babb801f7b0e9c6c91c3753b1f1cc64e6d4a3e46ffc833c93f0dce5e604604e873934ca8038b15fe66a42e17c
|
7
|
+
data.tar.gz: 600d8e3079c6d9a877da1a4f66445b9c99f862041f467b6f8efdf265a3864f5e1311d1c7ec3a0169275b358f8c4bfaab18b1be0c4cfecd80720b8b12a5928d50
|
data/data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
RuneBlog v 0.0.
|
1
|
+
RuneBlog v 0.0.79 2018-10-05
|
data/lib/repl.rb
CHANGED
@@ -142,7 +142,7 @@ module RuneBlog::REPL
|
|
142
142
|
return @out
|
143
143
|
else
|
144
144
|
if @blog.view?(arg)
|
145
|
-
@blog.view = arg
|
145
|
+
@blog.view = arg # reads config
|
146
146
|
output red("View: ") + bold(@blog.view)
|
147
147
|
end
|
148
148
|
end
|
@@ -154,6 +154,9 @@ module RuneBlog::REPL
|
|
154
154
|
def cmd_new_view(arg)
|
155
155
|
reset_output
|
156
156
|
@blog.create_view(arg)
|
157
|
+
resp = yesno("Add deployment info now? ")
|
158
|
+
@blog.view.deployer = ask_deployment_info
|
159
|
+
@blog.view.write_config # change this?
|
157
160
|
@blog.view.read_config # was: get_deployment_info
|
158
161
|
nil
|
159
162
|
rescue => err
|
data/lib/runeblog.rb
CHANGED
@@ -75,10 +75,12 @@ class RuneBlog
|
|
75
75
|
case arg
|
76
76
|
when RuneBlog::View
|
77
77
|
@view = arg
|
78
|
+
@view.read_config
|
78
79
|
when String
|
79
80
|
new_view = str2view(arg)
|
80
81
|
raise "Can't find view #{arg}" if new_view.nil?
|
81
82
|
@view = new_view
|
83
|
+
@view.read_config
|
82
84
|
else
|
83
85
|
raise "#{arg.inspect} was not a View or a String"
|
84
86
|
end
|
data/lib/version.rb
CHANGED
data/lib/view.rb
CHANGED
@@ -3,7 +3,7 @@ require 'runeblog'
|
|
3
3
|
|
4
4
|
class RuneBlog::View
|
5
5
|
attr_reader :name, :state
|
6
|
-
attr_accessor :
|
6
|
+
attr_accessor :deployer
|
7
7
|
|
8
8
|
def initialize(name)
|
9
9
|
raise "RuneBlog.blog is not set!" if RuneBlog.blog.nil?
|
@@ -57,7 +57,7 @@ class RuneBlog::View
|
|
57
57
|
|
58
58
|
def write_config
|
59
59
|
file = @blog.view.dir + "/deploy"
|
60
|
-
File.open(file) {|f| f.puts [@user, @server, @root, @path, @proto] }
|
60
|
+
File.open(file, "w") {|f| f.puts [@user, @server, @root, @path, @proto] }
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
data/test/general.rb
CHANGED
@@ -210,5 +210,9 @@ class TestREPL < Minitest::Test
|
|
210
210
|
assert result.nil?, "Expected to detect login error (bad server)"
|
211
211
|
end
|
212
212
|
|
213
|
+
# later tests...
|
214
|
+
# new view asks for deployment info and writes it
|
215
|
+
# (how to mimic user input? test some other way?)
|
216
|
+
|
213
217
|
end
|
214
218
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runeblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.79
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|