retter 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # RETTER (レッター) Lightweight diary workflow.
2
+
3
+ コマンドラインで簡単に起動してブラウザですぐに確認できてデプロイがちょう楽そうな日記作成支援コマンドをつくる予定。
4
+
5
+ ## Installation
6
+
7
+ *ruby-1.9.2* or later is required.
8
+
9
+ ~~~~
10
+ gem install retter
11
+ ~~~~
12
+
13
+ ## Usage
14
+
15
+ To create new site, use `new` subcommand.
16
+
17
+ ~~~~
18
+ $ retter new my_sweet_diary
19
+ ~~~~
20
+
21
+ You can use `retter` command anywhere, If you set `$RETTER_HOME` variable.
22
+
23
+ ~~~~
24
+ $ echo "export RETTER_HOME=/path/to/my_sweet_diary" >> ~/.bash_profile
25
+ $ . ~/.bash_profile
26
+ ~~~~
27
+
28
+ `retter` command open `$EDITOR`. You can write an article with Markdown.
29
+ The article will be draft.
30
+
31
+ ~~~~
32
+ $ cd /path/to/my_sweet_diary # You can skip this step if you already set $RETTER_HOME.
33
+ $ retter
34
+ ~~~~
35
+
36
+ `preview` sub-command open the draft article by your default browser.
37
+
38
+ ~~~~
39
+ $ retter preview
40
+ ~~~~
41
+
42
+ `bind` and `rebind` sub-command save the draft article.
43
+ And generate actual web pages.
44
+
45
+ ~~~~
46
+ $ retter bind
47
+ ~~~~
48
+
49
+ `open` sub-command open your web site by your default browser.
50
+
51
+ ~~~~
52
+ $ retter open
53
+ ~~~~
54
+
55
+ You can use rack, if you needed.
56
+
57
+ ~~~~
58
+ $ cd /path/to/my_sweet_diary
59
+ $ bundle exec rackup
60
+ ~~~~
61
+
62
+
@@ -2,4 +2,5 @@ source :rubygems
2
2
 
3
3
  gem 'rack'
4
4
  gem 'thin' # for heroku
5
+ gem 'retter'
5
6
 
@@ -12,7 +12,7 @@ class Retter::Command < Thor
12
12
  desc 'preview', 'Preview current entry'
13
13
  method_options date: :string
14
14
  def preview
15
- preview = Retter::Stationery.previewer(detected_date, config)
15
+ preview = Retter::Stationery.previewer(config, detected_date)
16
16
 
17
17
  preview.print
18
18
  Launchy.open preview.file_path.to_s
@@ -42,9 +42,9 @@ class Retter::Command < Thor
42
42
 
43
43
  def detected_retter_file
44
44
  if options[:date]
45
- config.retter_file(Date.parse(options[:date]), '.md')
45
+ config.retter_file(Date.parse(options[:date]))
46
46
  else
47
- todays_file = config.retter_file(Date.today, '.md')
47
+ todays_file = config.retter_file(Date.today)
48
48
  todays_file.exist? ? todays_file : config.wip_file
49
49
  end
50
50
  end
data/lib/retter/config.rb CHANGED
@@ -1,7 +1,28 @@
1
1
  # coding: utf-8
2
2
 
3
3
  class Retter::Config
4
- [:editor, :retter_home, :title, :description, :url, :author].each do |att|
4
+ ATTRIBUTES = [
5
+ :editor,
6
+ :title,
7
+ :description,
8
+ :url,
9
+ :author,
10
+ :retters_dir,
11
+ :wip_file,
12
+ :layouts_dir,
13
+ :layout_file,
14
+ :profile_layout_file,
15
+ :entry_layout_file,
16
+ :entries_layout_file,
17
+ :index_layout_file,
18
+ :entries_dir,
19
+ :profile_file,
20
+ :index_file,
21
+ :entries_file,
22
+ :feed_file
23
+ ]
24
+
25
+ ATTRIBUTES.each do |att|
5
26
  class_eval <<-EOM
6
27
  def #{att}(val = nil)
7
28
  val ? @options[:#{att}] = val : @options[:#{att}]
@@ -9,81 +30,53 @@ class Retter::Config
9
30
  EOM
10
31
  end
11
32
 
33
+ attr_reader :retter_home
34
+
12
35
  def initialize(env)
13
36
  @env, @options = env, {}
14
37
 
15
38
  detect_retter_home
16
39
  raise Retter::EnvError unless env.values_at('EDITOR', 'RETTER_HOME').all?
17
40
 
18
- editor env['EDITOR']
19
- retter_home Pathname.new(env['RETTER_HOME'])
20
- url 'http://example.com'
41
+ @retter_home = Pathname.new(@env['RETTER_HOME'])
42
+ load_defaults
21
43
 
22
44
  retterfile = retter_home.join('Retterfile')
23
45
  instance_eval retterfile.read if retterfile.exist?
24
46
  end
25
47
 
26
- def detect_retter_home
27
- @env['RETTER_HOME'] = Dir.pwd if File.exist? 'Retterfile'
28
- end
29
-
30
- def retters_dir
31
- retter_home.join 'retters/'
32
- end
33
-
34
- def wip_file
35
- retters_dir.join 'today.md'
48
+ def load_defaults
49
+ editor @env['EDITOR']
50
+ url 'http://example.com'
51
+ retters_dir retter_home.join('retters/')
52
+ wip_file retters_dir.join('today.md')
53
+ layouts_dir retter_home.join('layouts/')
54
+ layout_file layouts_dir.join('retter.html.haml')
55
+ profile_layout_file layouts_dir.join('profile.html.haml')
56
+ entry_layout_file layouts_dir.join('entry.html.haml')
57
+ entries_layout_file layouts_dir.join('entries.html.haml')
58
+ index_layout_file layouts_dir.join('index.html.haml')
59
+ entries_dir retter_home.join('entries/')
60
+ profile_file retter_home.join('profile.html')
61
+ index_file retter_home.join('index.html')
62
+ entries_file retter_home.join('entries.html')
63
+ feed_file retter_home.join('entries.rss')
36
64
  end
37
65
 
38
- def retter_file(date, suf)
39
- retters_dir.join(date ? date.strftime("%Y%m%d#{suf}") : "today#{suf}")
40
- end
41
-
42
- def layouts_dir
43
- retter_home.join 'layouts/'
44
- end
45
-
46
- def layout_file
47
- layouts_dir.join 'retter.html.haml'
48
- end
49
-
50
- def profile_layout_file
51
- layouts_dir.join 'profile.html.haml'
52
- end
53
-
54
- def entry_layout_file
55
- layouts_dir.join 'entry.html.haml'
56
- end
57
-
58
- def entries_layout_file
59
- layouts_dir.join 'entries.html.haml'
60
- end
61
-
62
- def index_layout_file
63
- layouts_dir.join 'index.html.haml'
66
+ def detect_retter_home
67
+ # TODO こういうの上のディレクトリも見て判断するのを何か参考にして書く
68
+ @env['RETTER_HOME'] = Dir.pwd if File.exist? 'Retterfile'
64
69
  end
65
70
 
66
- def entries_dir
67
- retter_home.join 'entries/'
71
+ def retter_file(date)
72
+ retters_dir.join(date ? date.strftime("%Y%m%d.md") : "today.md")
68
73
  end
69
74
 
70
75
  def entry_file(date)
71
76
  entries_dir.join date.strftime('%Y%m%d.html')
72
77
  end
73
78
 
74
- def profile_file
75
- retter_home.join 'profile.html'
76
- end
77
-
78
- def index_file
79
- retter_home.join 'index.html'
80
- end
81
-
82
- def entries_file
83
- retter_home.join 'entries.html'
84
- end
85
-
86
- def feed_file
87
- retter_home.join 'entries.rss'
79
+ def self.delegatables
80
+ ATTRIBUTES + [:retter_file, :entry_file]
88
81
  end
89
82
  end
@@ -4,6 +4,10 @@ module Retter::Stationery
4
4
  class Binder
5
5
  attr_reader :config, :entries
6
6
 
7
+ extend Forwardable
8
+
9
+ def_delegators :@config, *Retter::Config.delegatables
10
+
7
11
  def initialize(config)
8
12
  @config = config
9
13
  end
@@ -12,30 +16,18 @@ module Retter::Stationery
12
16
  @view_scope ||= View::Scope.new(config, entries: entries)
13
17
  end
14
18
 
15
- def renderer
16
- Haml::Engine.new(config.layout_file.read, ugly: true)
17
- end
18
-
19
- def entries_renderer
20
- Haml::Engine.new(config.entries_layout_file.read, ugly: true)
19
+ def layout_renderer
20
+ @layout_renderer ||= Haml::Engine.new(layout_file.read, ugly: true)
21
21
  end
22
22
 
23
23
  def entry_renderer
24
- Haml::Engine.new(config.entry_layout_file.read, ugly: true)
25
- end
26
-
27
- def index_renderer
28
- Haml::Engine.new(config.index_layout_file.read, ugly: true)
29
- end
30
-
31
- def profile_renderer
32
- Haml::Engine.new(config.profile_layout_file.read, ugly: true)
24
+ @entry_renderer ||= Haml::Engine.new(entry_layout_file.read, ugly: true)
33
25
  end
34
26
 
35
27
  def rebind!
36
28
  commit_wip_file
37
29
 
38
- @entries = Retter::Stationery.scan(config.retters_dir)
30
+ @entries = Retter::Stationery.scan(retters_dir)
39
31
 
40
32
  bind_entries
41
33
  print_index
@@ -44,10 +36,10 @@ module Retter::Stationery
44
36
  end
45
37
 
46
38
  def commit_wip_file
47
- if config.wip_file.exist?
48
- html = config.wip_file.read
49
- config.retter_file(Date.today, '.md').open('a') {|f| f.puts html }
50
- config.wip_file.unlink
39
+ if wip_file.exist?
40
+ html = wip_file.read
41
+ retter_file(Date.today).open('a') {|f| f.puts html }
42
+ wip_file.unlink
51
43
  end
52
44
  end
53
45
 
@@ -58,42 +50,42 @@ module Retter::Stationery
58
50
 
59
51
  def print_entry(entry)
60
52
  part = entry_renderer.render(view_scope, entry: entry)
61
- html = renderer.render(view_scope, content: part)
53
+ html = layout_renderer.render(view_scope, content: part)
62
54
 
63
- config.entry_file(entry.date).open('w') do |f|
55
+ entry_file(entry.date).open('w') do |f|
64
56
  f.puts View::Helper.fix_path(html, '../')
65
57
  end
66
58
  end
67
59
 
68
60
  def print_index
69
- part = index_renderer.render(view_scope)
70
- html = renderer.render(view_scope, content: part)
61
+ part = Haml::Engine.new(index_layout_file.read, ugly: true).render(view_scope)
62
+ html = layout_renderer.render(view_scope, content: part)
71
63
 
72
- config.index_file.open('w') do |f|
64
+ index_file.open('w') do |f|
73
65
  f.puts View::Helper.fix_path(html, './')
74
66
  end
75
67
  end
76
68
 
77
69
  def print_profile
78
- part = profile_renderer.render(view_scope)
79
- html = renderer.render(view_scope, content: part)
70
+ part = Haml::Engine.new(profile_layout_file.read, ugly: true).render(view_scope)
71
+ html = layout_renderer.render(view_scope, content: part)
80
72
 
81
- config.profile_file.open('w') do |f|
73
+ profile_file.open('w') do |f|
82
74
  f.puts View::Helper.fix_path(html, './')
83
75
  end
84
76
  end
85
77
 
86
78
  def print_toc
87
- part = entries_renderer.render(view_scope)
88
- html = renderer.render(view_scope, content: part)
79
+ part = Haml::Engine.new(entries_layout_file.read, ugly: true).render(view_scope)
80
+ html = layout_renderer.render(view_scope, content: part)
89
81
 
90
- config.entries_file.open('w') do |f|
82
+ entries_file.open('w') do |f|
91
83
  f.puts View::Helper.fix_path(html, './')
92
84
  end
93
85
  end
94
86
 
95
87
  def print_rss
96
- config.feed_file.open('w') {|f| f.puts rss }
88
+ feed_file.open('w') {|f| f.puts rss }
97
89
  end
98
90
 
99
91
  def rss
@@ -103,11 +95,11 @@ module Retter::Stationery
103
95
  :'xmlns:rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
104
96
  :'xmlns:dc' => 'http://purl.org/dc/elements/1.1/',
105
97
  :'xml:lang' => 'ja' do
106
- xml.channel :'rdf:about' => config.url do
107
- xml.title config.title
108
- xml.link config.url
98
+ xml.channel :'rdf:about' => url do
99
+ xml.title title
100
+ xml.link url
109
101
  xml.dc:date, entries.first.date
110
- xml.description config.description
102
+ xml.description description
111
103
  xml.items { xml.rdf(:Seq) { entries.each {|e| xml.rdf:li, :'rdf:resource' => entry_url(e.date) } } }
112
104
  end
113
105
 
@@ -117,14 +109,14 @@ module Retter::Stationery
117
109
  xml.description { xml.cdata! entry.body }
118
110
  xml.dc:date, entry.date
119
111
  xml.link entry_url(entry.date)
120
- xml.author config.author
112
+ xml.author author
121
113
  end
122
114
  end
123
115
  end
124
116
  end
125
117
 
126
118
  def entry_url(date, id = nil)
127
- (URI.parse(config.url) + date.strftime('/entries/%Y%m%d.html')).to_s
119
+ (URI.parse(url) + date.strftime('/entries/%Y%m%d.html')).to_s
128
120
  end
129
121
  end
130
122
  end
@@ -4,7 +4,11 @@ module Retter::Stationery
4
4
  class Previewer
5
5
  attr_reader :config
6
6
 
7
- def initialize(date, config)
7
+ extend Forwardable
8
+
9
+ def_delegators :@config, *Retter::Config.delegatables
10
+
11
+ def initialize(config, date)
8
12
  @config, @date = config, date
9
13
  @body, @entry = *nil
10
14
 
@@ -17,11 +21,11 @@ module Retter::Stationery
17
21
  end
18
22
 
19
23
  def renderer
20
- Haml::Engine.new(config.layout_file.read, ugly: true)
24
+ Haml::Engine.new(layout_file.read, ugly: true)
21
25
  end
22
26
 
23
27
  def entry_renderer
24
- Haml::Engine.new(config.entry_layout_file.read, ugly: true)
28
+ Haml::Engine.new(entry_layout_file.read, ugly: true)
25
29
  end
26
30
 
27
31
  def print
@@ -42,17 +46,17 @@ module Retter::Stationery
42
46
  end
43
47
 
44
48
  def build_entry
45
- @entry = Retter::Entry.new(date: @date, body: Retter::Stationery.parser.render(@body))
49
+ @entry = Retter::Entry.new(date: @date, body: Retter::Stationery.markupper.render(@body))
46
50
  end
47
51
 
48
52
  def load_retter_file
49
- retter_file = config.retter_file(@date, '.md')
53
+ retter_file = retter_file(@date)
50
54
  @body = retter_file.exist? ? retter_file.read : ''
51
55
  end
52
56
 
53
57
  def load_wip_entry_if_needed
54
- if @date == Date.today && config.wip_file.exist?
55
- @body = [@body, config.wip_file.read].join("\n")
58
+ if @date == Date.today && wip_file.exist?
59
+ @body = [@body, wip_file.read].join("\n")
56
60
  end
57
61
  end
58
62
  end
@@ -38,6 +38,9 @@ module Retter::Stationery::View
38
38
  attr_accessor :assigns
39
39
 
40
40
  include Helper
41
+ extend Forwardable
42
+
43
+ def_delegators :@config, *Retter::Config.delegatables
41
44
 
42
45
  [:entries].each do |meth|
43
46
  define_method meth do
@@ -6,7 +6,7 @@ module Retter::Stationery
6
6
  entries = find_markup_files(path).map {|file|
7
7
  date = file.basename('.*').to_s
8
8
  mkup = File.open(file, &:read)
9
- Retter::Entry.new date: Date.parse(date), body: parser.render(mkup)
9
+ Retter::Entry.new date: Date.parse(date), body: markupper.render(mkup)
10
10
  }
11
11
 
12
12
  entries.sort_by(&:date).reverse
@@ -17,8 +17,8 @@ module Retter::Stationery
17
17
  Dir.open(path, &:to_a).grep(/^\d{4}(?:0[1-9]|1[012])(?:0[1-9]|[12][0-9]|3[01])\.(md)$/).map {|f| path.join f }
18
18
  end
19
19
 
20
- def parser
21
- @parser ||= ::Redcarpet::Markdown.new(
20
+ def markupper
21
+ @markupper ||= ::Redcarpet::Markdown.new(
22
22
  Renderer,
23
23
  autolink: true,
24
24
  space_after_headers: true,
@@ -30,8 +30,8 @@ module Retter::Stationery
30
30
  )
31
31
  end
32
32
 
33
- def previewer(date, config)
34
- Previewer.new date, config
33
+ def previewer(config, date)
34
+ Previewer.new config, date
35
35
  end
36
36
 
37
37
  def binder(config)
@@ -1,3 +1,3 @@
1
1
  module Retter
2
- VERSION = '0.0.0'
2
+ VERSION = '0.0.1'
3
3
  end
data/lib/retter.rb CHANGED
@@ -18,8 +18,9 @@ require 'nokogiri'
18
18
  require 'launchy'
19
19
  require 'haml'
20
20
  require 'uri'
21
+ require 'forwardable'
21
22
  require 'retter/version'
22
23
  require 'retter/entry'
23
- require 'retter/stationery'
24
24
  require 'retter/config'
25
+ require 'retter/stationery'
25
26
  require 'retter/command'
@@ -6,7 +6,7 @@ describe 'Retter::Command#preview', clean: :all do
6
6
  let(:command) { Retter::Command.new }
7
7
  let(:preview) { retter_config.retter_home.join('.preview.html').read }
8
8
  let(:wip_file) { retter_config.wip_file }
9
- let(:date_file) { retter_config.retter_file(Date.parse(date), '.md') }
9
+ let(:date_file) { retter_config.retter_file(Date.parse(date)) }
10
10
 
11
11
  before do
12
12
  command.stub!(:config) { retter_config }
@@ -5,7 +5,7 @@ require File.dirname(__FILE__) + '/../spec_helper'
5
5
  describe 'Retter::Command#rebind', clean: :all do
6
6
  let(:command) { Retter::Command.new }
7
7
  let(:wip_file) { retter_config.wip_file }
8
- let(:date_file) { retter_config.retter_file(Date.parse(date), '.md') }
8
+ let(:date_file) { retter_config.retter_file(Date.parse(date)) }
9
9
  let(:date_html) { retter_config.retter_home.join('entries', "#{date}.html") }
10
10
 
11
11
  before do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-08 00:00:00.000000000Z
12
+ date: 2011-09-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70260599810340 !ruby/object:Gem::Requirement
16
+ requirement: &70276239686360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70260599810340
24
+ version_requirements: *70276239686360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: builder
27
- requirement: &70260599899920 !ruby/object:Gem::Requirement
27
+ requirement: &70276239685920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70260599899920
35
+ version_requirements: *70276239685920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: redcarpet
38
- requirement: &70260599902380 !ruby/object:Gem::Requirement
38
+ requirement: &70276239685400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.0b3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70260599902380
46
+ version_requirements: *70276239685400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: coderay
49
- requirement: &70260599904040 !ruby/object:Gem::Requirement
49
+ requirement: &70276239684980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70260599904040
57
+ version_requirements: *70276239684980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &70260599913220 !ruby/object:Gem::Requirement
60
+ requirement: &70276239684520 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70260599913220
68
+ version_requirements: *70276239684520
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: launchy
71
- requirement: &70260599914340 !ruby/object:Gem::Requirement
71
+ requirement: &70276239684100 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70260599914340
79
+ version_requirements: *70276239684100
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: haml
82
- requirement: &70260599913880 !ruby/object:Gem::Requirement
82
+ requirement: &70276239683680 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70260599913880
90
+ version_requirements: *70276239683680
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: bundler
93
- requirement: &70260599913440 !ruby/object:Gem::Requirement
93
+ requirement: &70276239683260 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70260599913440
101
+ version_requirements: *70276239683260
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: grit
104
- requirement: &70260599912660 !ruby/object:Gem::Requirement
104
+ requirement: &70276239682820 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70260599912660
112
+ version_requirements: *70276239682820
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: ir_b
115
- requirement: &70260599910020 !ruby/object:Gem::Requirement
115
+ requirement: &70276239675480 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70260599910020
123
+ version_requirements: *70276239675480
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: tapp
126
- requirement: &70260599907780 !ruby/object:Gem::Requirement
126
+ requirement: &70276239674960 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70260599907780
134
+ version_requirements: *70276239674960
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rspec
137
- requirement: &70260599907300 !ruby/object:Gem::Requirement
137
+ requirement: &70276239674540 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,7 +142,7 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70260599907300
145
+ version_requirements: *70276239674540
146
146
  description: Lightweight diary workflow
147
147
  email:
148
148
  - celluloid.key@gmail.com
@@ -153,6 +153,7 @@ extra_rdoc_files: []
153
153
  files:
154
154
  - .gitignore
155
155
  - Gemfile
156
+ - README.md
156
157
  - Rakefile
157
158
  - bin/retter
158
159
  - lib/generator/newretter.rb