runeblog 0.2.35 → 0.2.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/empty_view/remote/assets/GIT_IS_DUMB +1 -0
- data/empty_view/remote/etc/GIT_IS_DUMB +1 -0
- data/empty_view/remote/navbar/GIT_IS_DUMB +1 -0
- data/empty_view/remote/permalink/GIT_IS_DUMB +1 -0
- data/lib/publish.rb +0 -10
- data/lib/runeblog.rb +2 -3
- data/lib/runeblog_version.rb +1 -1
- data/lib/view.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcfdb93b7e151b307a4776601a4c171e5dba3a88a63b859d3c319bb796215981
|
4
|
+
data.tar.gz: fa8e91e0f9be6fd7e0111a3b584fec90ff397b0079eb48969d3c2de40467b73e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c40488f1169eef37e142b9550ec589737a345fcca6ceb669baebea94a2d651583cda37ee7d89f11ee83abac9f2ed29584ac3b41b0a6e87c50fff18bc54e13da
|
7
|
+
data.tar.gz: 0b389d93a294814f62de4dba5065ba5ac15805e7ac068408d867e83b05901fc6e3848d57e539fc445781d34e564bdb6bd367f8bf59cd39fcc7ff8ee175f54f4a
|
@@ -0,0 +1 @@
|
|
1
|
+
meh
|
@@ -0,0 +1 @@
|
|
1
|
+
meh
|
@@ -0,0 +1 @@
|
|
1
|
+
meh
|
@@ -0,0 +1 @@
|
|
1
|
+
meh
|
data/lib/publish.rb
CHANGED
@@ -10,16 +10,6 @@ class RuneBlog::Publishing
|
|
10
10
|
def initialize(view)
|
11
11
|
log!(enter: __method__, args: [view.to_s])
|
12
12
|
@blog = RuneBlog.blog
|
13
|
-
# # Clunky...
|
14
|
-
# if params.size == 1 && params[0].is_a?(OpenStruct)
|
15
|
-
# obj = params[0]
|
16
|
-
# array = obj.to_h.values_at(:user, :server, :docroot,
|
17
|
-
# :path, :proto)
|
18
|
-
# @user, @server, @docroot, @path, @proto = *array
|
19
|
-
# else
|
20
|
-
# @user, @server, @docroot, @path, @proto = *params
|
21
|
-
# end
|
22
|
-
# find a better way?
|
23
13
|
gfile = @blog.root/:views/view/"themes/standard/global.lt3"
|
24
14
|
data = File.readlines(gfile)
|
25
15
|
grab = ->(var) { data.grep(/^#{var} /).first.chomp.split(" ", 2)[1] }
|
data/lib/runeblog.rb
CHANGED
@@ -60,7 +60,6 @@ class RuneBlog
|
|
60
60
|
raise BlogRepoAlreadyExists if Dir.exist?(root)
|
61
61
|
create_dirs(root)
|
62
62
|
Dir.chdir(root) do
|
63
|
-
system!("cp #{RuneBlog::Path}/../empty_view.tgz .")
|
64
63
|
create_dirs(:drafts, :views, :posts)
|
65
64
|
new_sequence
|
66
65
|
end
|
@@ -218,7 +217,7 @@ class RuneBlog
|
|
218
217
|
|
219
218
|
def mark_last_published(str)
|
220
219
|
log!(enter: __method__, args: [str])
|
221
|
-
dump(str, "last_published")
|
220
|
+
dump(str, "#{self.view.dir}/last_published")
|
222
221
|
end
|
223
222
|
|
224
223
|
def add_view(view_name)
|
@@ -253,8 +252,8 @@ class RuneBlog
|
|
253
252
|
log!(enter: __method__, args: [view_name])
|
254
253
|
check_valid_new_view(view_name)
|
255
254
|
make_empty_view_tree(view_name)
|
256
|
-
mark_last_published("Initial creation")
|
257
255
|
add_view(view_name)
|
256
|
+
mark_last_published("Initial creation")
|
258
257
|
end
|
259
258
|
|
260
259
|
def delete_view(name, force = false)
|
data/lib/runeblog_version.rb
CHANGED
data/lib/view.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
@@ -62,6 +62,10 @@ files:
|
|
62
62
|
- "./runeblog.gemspec"
|
63
63
|
- bin/blog
|
64
64
|
- empty_view/assets/sky2.jpg
|
65
|
+
- empty_view/remote/assets/GIT_IS_DUMB
|
66
|
+
- empty_view/remote/etc/GIT_IS_DUMB
|
67
|
+
- empty_view/remote/navbar/GIT_IS_DUMB
|
68
|
+
- empty_view/remote/permalink/GIT_IS_DUMB
|
65
69
|
- empty_view/remote/widgets/links/list.data
|
66
70
|
- empty_view/remote/widgets/news/list.data
|
67
71
|
- empty_view/remote/widgets/pages/SUBFILES
|