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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 554b7da76f9eb5a1f98f0e7d0b47c59a271fa1980c6579454c6127a54e4ba02c
4
- data.tar.gz: da9fa509102f2f53fb7ec47b2e1b08e89f1835b098b7cc6bc30cbbf67e297525
3
+ metadata.gz: dcfdb93b7e151b307a4776601a4c171e5dba3a88a63b859d3c319bb796215981
4
+ data.tar.gz: fa8e91e0f9be6fd7e0111a3b584fec90ff397b0079eb48969d3c2de40467b73e
5
5
  SHA512:
6
- metadata.gz: b459c24a3c23fe20d4953aa341ac5857d40dc05c819776d0c6406ab58b7e1a51e4418d849c8a3842d8d13cad18b1543a5232e8fb814144b83b2a71d90e38dd3b
7
- data.tar.gz: 2976e3378fed756d0fd810354b7bbb855a46cb1cf3eec22a5f00388372ba3c81bbba7d13e2da76b652985dc165a32027630e2cf9ddbddea992cfcb9452890a57
6
+ metadata.gz: 4c40488f1169eef37e142b9550ec589737a345fcca6ceb669baebea94a2d651583cda37ee7d89f11ee83abac9f2ed29584ac3b41b0a6e87c50fff18bc54e13da
7
+ data.tar.gz: 0b389d93a294814f62de4dba5065ba5ac15805e7ac068408d867e83b05901fc6e3848d57e539fc445781d34e564bdb6bd367f8bf59cd39fcc7ff8ee175f54f4a
@@ -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] }
@@ -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)
@@ -2,7 +2,7 @@
2
2
  if ! (Object.constants.include?(:RuneBlog) && RuneBlog.constants.include?(:Path))
3
3
 
4
4
  class RuneBlog
5
- VERSION = "0.2.35"
5
+ VERSION = "0.2.36"
6
6
 
7
7
  path = Gem.find_files("runeblog").grep(/runeblog-/).first
8
8
  Path = File.dirname(path)
@@ -61,7 +61,7 @@ class RuneBlog::View
61
61
 
62
62
  def recent?(file)
63
63
  log!(enter: __method__, args: [file])
64
- File.mtime(file) > File.mtime("#{dir()}/last_published")
64
+ File.mtime(file) > File.mtime("#{self.dir()}/last_published")
65
65
  rescue
66
66
  true
67
67
  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.2.35
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