burstfm 0.1.0 → 0.2.0
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 +4 -4
- data/Gemfile.lock +2 -2
- data/burstfm.gemspec +1 -1
- data/lib/burstfm.rb +4 -4
- data/lib/burstfm/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3562dd15dad453ae11f428a98f57a5665e0de9e4159b52131ac79979ef70fae4
|
|
4
|
+
data.tar.gz: 48f650233f651b53f3a5e15066e52cc6d7c6a47d4827f06c7e07509b3fb4f6d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c347eeb5f8481b26a8f4fd917c8cb7457c3634af381eeba744454c36bb0f6a8ce55ca137b434f58920e204ff682af4bd0cbf278dd0e4143a13ee304f919c2ece
|
|
7
|
+
data.tar.gz: bf47f4209ff8453ac866435fdfb32719ddbea57bdfcadc3ce91eb0a901e518ad85a8d736d974b89defa80d3bd1d2d5eff8c4c816b7fa638e4ed6c6a6ecf5eefd
|
data/Gemfile.lock
CHANGED
data/burstfm.gemspec
CHANGED
data/lib/burstfm.rb
CHANGED
|
@@ -3,12 +3,12 @@ require "colorize"
|
|
|
3
3
|
|
|
4
4
|
module Burstfm
|
|
5
5
|
class << self
|
|
6
|
-
def front_matter()
|
|
6
|
+
def front_matter(options = {})
|
|
7
7
|
return [
|
|
8
8
|
{label: "layout", content: "post"},
|
|
9
9
|
{label: "status", content: "publish"},
|
|
10
10
|
{label: "published", content: "true"},
|
|
11
|
-
{label: "title", content: ""},
|
|
11
|
+
{label: "title", content: options[:title] || "This is a title"},
|
|
12
12
|
{label: "date", content: Time.now.to_s},
|
|
13
13
|
{label: "categories", content: "\n- Category"},
|
|
14
14
|
{label: "tags", content: "\n- first_tag\n- second_tag"}
|
|
@@ -19,8 +19,8 @@ module Burstfm
|
|
|
19
19
|
puts("#{line[:label].yellow}: #{line[:content].cyan}")
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
def print()
|
|
23
|
-
front_matter().each do |line|
|
|
22
|
+
def print(options = {})
|
|
23
|
+
front_matter(options).each do |line|
|
|
24
24
|
print_line(line)
|
|
25
25
|
end
|
|
26
26
|
end
|
data/lib/burstfm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: burstfm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alessio Biancalana
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-05-
|
|
11
|
+
date: 2018-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -56,16 +56,16 @@ dependencies:
|
|
|
56
56
|
name: colorize
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0
|
|
61
|
+
version: '0'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0
|
|
68
|
+
version: '0'
|
|
69
69
|
description:
|
|
70
70
|
email:
|
|
71
71
|
- dottorblaster@gmail.com
|