runeblog 0.1.17 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runeblog.rb +9 -9
- data/lib/{version.rb → runeblog_version.rb} +1 -1
- data/runeblog.gemspec +1 -1
- data/test/general.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cfda98e39e2073d4ac837038637b3a5954e7ce08592409ce82e61637bf5b49e
|
4
|
+
data.tar.gz: '01950aabe9559d19eb43c79f91190218d7a1da0577d9c7776f948b0704ee51fe'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c0e90bc188f88f99a2f7a1bd384906b6b05f95c1cfa4d59a2fc555425bea785a039b2baffea7c3747053f28c366a37438fa72f9cb76c7d9e0cc5cd43d004031
|
7
|
+
data.tar.gz: 5cbce7b5be8a6d95b923f5b60cb677a6bdeab76386b3068e241e59e94e875156ee93029e65205e5739874fbc1ac103722479fb7e6b14721521f5d20754b469af
|
data/lib/runeblog.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'find'
|
2
2
|
require 'livetext'
|
3
|
+
|
4
|
+
require 'version'
|
3
5
|
require 'global'
|
4
6
|
require 'helpers-blog'
|
5
7
|
require 'default'
|
6
8
|
require 'view'
|
7
9
|
require 'publish'
|
8
10
|
require 'post'
|
9
|
-
require 'version'
|
10
|
-
|
11
11
|
|
12
12
|
###
|
13
13
|
|
@@ -37,22 +37,22 @@ class RuneBlog
|
|
37
37
|
include Helpers
|
38
38
|
|
39
39
|
def self.create_new_blog(dir = ".blog/data")
|
40
|
-
puts "--- create_new_blog"
|
40
|
+
# puts "--- create_new_blog"
|
41
41
|
raise ArgumentError unless dir.is_a?(String) && ! dir.empty?
|
42
42
|
root_dir = Dir.pwd + "/" + dir
|
43
|
-
puts "--- create: dir = #{dir} pwd = #{Dir.pwd} DotDir = #{DotDir} root_dir = #{root_dir}"
|
43
|
+
# puts "--- create: dir = #{dir} pwd = #{Dir.pwd} DotDir = #{DotDir} root_dir = #{root_dir}"
|
44
44
|
raise BlogAlreadyExists if Dir.exist?(root_dir)
|
45
|
-
puts "--- new dotfile"
|
45
|
+
# puts "--- new dotfile"
|
46
46
|
new_dotfile(root: dir, current_view: "test_view")
|
47
|
-
puts "--- create #{dir}"
|
47
|
+
# puts "--- create #{dir}"
|
48
48
|
create_dir(dir)
|
49
49
|
Dir.chdir(dir) do
|
50
|
-
puts "--- in chdir: pwd = #{Dir.pwd}"
|
50
|
+
# puts "--- in chdir: pwd = #{Dir.pwd}"
|
51
51
|
create_dir("views")
|
52
52
|
create_dir("assets")
|
53
53
|
create_dir("src")
|
54
54
|
new_sequence
|
55
|
-
puts "==== CREATED BLOG ==="
|
55
|
+
# puts "==== CREATED BLOG ==="
|
56
56
|
end
|
57
57
|
blog = self.new
|
58
58
|
blog.create_view("test_view")
|
@@ -67,7 +67,7 @@ puts "==== CREATED BLOG ==="
|
|
67
67
|
self.class.blog = self # Weird. Like a singleton - dumbass circular dependency?
|
68
68
|
@root, @view_name, @editor =
|
69
69
|
read_config(ConfigFile, :root, :current_view, :editor)
|
70
|
-
puts "=== init root = #@root"
|
70
|
+
# puts "=== init root = #@root"
|
71
71
|
@views = get_views
|
72
72
|
@view = str2view(@view_name)
|
73
73
|
@sequence = get_sequence
|
data/runeblog.gemspec
CHANGED
data/test/general.rb
CHANGED
@@ -21,7 +21,7 @@ class TestREPL < Minitest::Test
|
|
21
21
|
def setup
|
22
22
|
# To be strictly correct in testing (though slower),
|
23
23
|
# run make_blog here.
|
24
|
-
|
24
|
+
# system("tar zcvf last-test.tgz .blog/ && rm -rf .blog")
|
25
25
|
system("ruby test/make_blog.rb") if ARGV.first == "new"
|
26
26
|
@blog = RuneBlog.new
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runeblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
@@ -69,7 +69,7 @@ files:
|
|
69
69
|
- lib/publish.rb
|
70
70
|
- lib/repl.rb
|
71
71
|
- lib/runeblog.rb
|
72
|
-
- lib/
|
72
|
+
- lib/runeblog_version.rb
|
73
73
|
- lib/view.rb
|
74
74
|
- test/general.rb
|
75
75
|
- test/make_blog.rb
|