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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 803f8e5ff082b0e23819eb091c649075abb4d059
4
- data.tar.gz: 98b845e49a328067bb7add5080498c9308c3c26b
3
+ metadata.gz: 7a0dbefd6f685151cfb5b8a77685b8bb9eda100a
4
+ data.tar.gz: 98d21ed4489697c7d13fca57ec6d154c7e24ff3d
5
5
  SHA512:
6
- metadata.gz: 3f08ef8743d3426f0659b57e4fb7f008a00d80c43dd03b5e1acd387316025f1f23d1fd471ad82343905164ff218a3e4df60c572bcf3b9249faf0b43d2ba01469
7
- data.tar.gz: 111cde858002851bb9c1074b92ed85ac012e89b445199a18317cc8033da2520fb5cdd7be9dba060d887a3c4ffcb0500432eda0b7d616a9e4e67ea4ec5be711f8
6
+ metadata.gz: b8313fb5cc4a97fd44f2d4fd8786883dfe73a18babb801f7b0e9c6c91c3753b1f1cc64e6d4a3e46ffc833c93f0dce5e604604e873934ca8038b15fe66a42e17c
7
+ data.tar.gz: 600d8e3079c6d9a877da1a4f66445b9c99f862041f467b6f8efdf265a3864f5e1311d1c7ec3a0169275b358f8c4bfaab18b1be0c4cfecd80720b8b12a5928d50
data/data/VERSION CHANGED
@@ -1 +1 @@
1
- RuneBlog v 0.0.78 2018-10-04
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
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.0.78"
3
+ VERSION = "0.0.79"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
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 :deploy
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.78
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-04 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext