raindeer 0.9.6 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8ec322c0eda2e6e576667daf952f4d8909fdfe7bf79d10c62f06aca30b04a9a
4
- data.tar.gz: 373dc23a3229948aeb0493254865a4aa90f7c4e6beb23a218e1b44c58651e282
3
+ metadata.gz: bc0cf4c0cb1e6a2a5f476c0d8f88af165cca10e883e9180ec259fdbbcb9b5aa1
4
+ data.tar.gz: 202faea00d4482c2b644f918a7509e42e73206f3a0353ac8c6fc086f078f3022
5
5
  SHA512:
6
- metadata.gz: 317142199c7f6fa8d6954ad70b85d39df3176b307de814c1379fdd8a35b58738a50896b7f72c6b91944b21b4b92e9a8c23c2322e2da771364e755054896bff84
7
- data.tar.gz: f516b951978079e5aed69ef108929fc50bb3d4b9fbe0f79ccfb38bd8941376e4c8031d3779ae65faac478bd5791a83b8ab88c254b6fba083e1092da53f04a713
6
+ metadata.gz: 637d7fd597584941fdb29d7f240005d86b66ffdfc2394e6e9bc83452db43d4a0c78d2ebea8f1c78c595f68701bc9dd00043e1c299db2bce74ccec2efaec87c66
7
+ data.tar.gz: 91be435036354dc36d0eb7b97ae27dcb80e730880778c5259bc7158c461818507d6da70df345b2bd652d80e9fbad7b6a8ea48aee69e3b40f4d4b5c242290507b
data/lib/cli/static.rb CHANGED
@@ -22,7 +22,7 @@ module Rain
22
22
 
23
23
  FileUtils.rm_rf(build_path)
24
24
  FileUtils.mkdir_p(build_path)
25
- FileUtils.cp_r(File.expand_path('public', application_path), File.expand_path('public', build_path))
25
+ FileUtils.cp_r("#{File.expand_path('public', application_path)}/.", build_path)
26
26
 
27
27
  Low::Events::RequestEvent.define do |observers|
28
28
  observers << Providers['rain.router']
data/lib/pages/pages.rb CHANGED
@@ -100,7 +100,9 @@ module Rain
100
100
  data_lines = []
101
101
  text_lines = []
102
102
 
103
- File.foreach(file_path, 'r:UTF-8') do |line|
103
+ File.foreach(file_path) do |line|
104
+ line.force_encoding('UTF-8')
105
+
104
106
  if line.strip == '---' && dash_lines.count < 2
105
107
  dash_lines << line
106
108
  next
@@ -114,7 +116,8 @@ module Rain
114
116
  text_lines << line
115
117
  end
116
118
 
117
- [YAML.safe_load(data_lines.join, symbolize_names: true), text_lines.join.strip]
119
+ metadata = YAML.safe_load(data_lines.join, symbolize_names: true) || []
120
+ [metadata, text_lines.join.strip]
118
121
  end
119
122
 
120
123
  class << self
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Raindeer
4
- VERSION = '0.9.6'
4
+ VERSION = '0.9.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raindeer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - maedi