burstfm 0.1.0 → 0.2.0

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: 1be43e56ad1871b8816101d7651b7b5566633b32aec8f84e0d6e0ab0fef56b5b
4
- data.tar.gz: b30d9befa815bec3f57221079ebd965e3aba825a77632eb6a46a3c89c730fdc9
3
+ metadata.gz: 3562dd15dad453ae11f428a98f57a5665e0de9e4159b52131ac79979ef70fae4
4
+ data.tar.gz: 48f650233f651b53f3a5e15066e52cc6d7c6a47d4827f06c7e07509b3fb4f6d5
5
5
  SHA512:
6
- metadata.gz: 96704113fa11daf1e043dfb9cdad6918665b4b167dfb4447c56b7bb15a597ce5eb075844c63ddda71884699c3157dc453689b1278018f6c3cbcfda137713ad79
7
- data.tar.gz: 8c3f566f3a00e4a905cc58058d752dba4255c2b5d2e96c5a87537304e3604311f0765ac3c6ec71ca23ccef037ea3c290fb00c2dd4b00c8a716711cb83f3cfcd2
6
+ metadata.gz: c347eeb5f8481b26a8f4fd917c8cb7457c3634af381eeba744454c36bb0f6a8ce55ca137b434f58920e204ff682af4bd0cbf278dd0e4143a13ee304f919c2ece
7
+ data.tar.gz: bf47f4209ff8453ac866435fdfb32719ddbea57bdfcadc3ce91eb0a901e518ad85a8d736d974b89defa80d3bd1d2d5eff8c4c816b7fa638e4ed6c6a6ecf5eefd
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- burstfm (0.1.0)
5
- colorize (~> 0.8.1)
4
+ burstfm (0.2.0)
5
+ colorize
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
35
 
36
- spec.add_runtime_dependency "colorize", "~> 0.8.1"
36
+ spec.add_dependency "colorize"
37
37
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Burstfm
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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-03 00:00:00.000000000 Z
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.8.1
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.8.1
68
+ version: '0'
69
69
  description:
70
70
  email:
71
71
  - dottorblaster@gmail.com