sitefs 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +7 -0
- data/.gitignore +13 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +101 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/TODO.md +8 -0
- data/bin/sitefs +96 -0
- data/inline-site/_layout.html.erb +30 -0
- data/inline-site/_layout.md.html.erb +3 -0
- data/inline-site/advanced-md.page.md +18 -0
- data/inline-site/dir/_layout.md.html.erb +3 -0
- data/inline-site/dir/sub1/_layout.html.erb +7 -0
- data/inline-site/dir/sub1/sub2/deep-page.page.md +8 -0
- data/inline-site/ears.png +0 -0
- data/inline-site/gallery/IMG_4371.jpg +0 -0
- data/inline-site/gallery/Screen Shot 2016-04-21 at 5.57.53 PM.png +0 -0
- data/inline-site/gallery/Screen Shot 2016-04-25 at 2.06.46 PM.png +0 -0
- data/inline-site/gallery/Screen Shot 2016-04-27 at 9.31.28 PM.png +0 -0
- data/inline-site/gallery/_gallery.html.erb +1 -0
- data/inline-site/gallery/_permalink.html.erb +1 -0
- data/inline-site/gallery/photos.page.rb +23 -0
- data/inline-site/index.html +41 -0
- data/inline-site/index.page.html.erb +1 -0
- data/inline-site/single-markdown.page.md +12 -0
- data/inline-site/styles/_helper.scss +1 -0
- data/inline-site/styles/app.css +1 -0
- data/inline-site/styles/app.scss +5 -0
- data/inline-site/tagged/_tag_layout.html.erb +7 -0
- data/inline-site/tagged/public.tag-page.rb +8 -0
- data/lib/sitefs/attribute_set.rb +93 -0
- data/lib/sitefs/command_config.rb +79 -0
- data/lib/sitefs/dsl_context.rb +49 -0
- data/lib/sitefs/file_action.rb +155 -0
- data/lib/sitefs/file_action_set.rb +51 -0
- data/lib/sitefs/file_registry.rb +61 -0
- data/lib/sitefs/handler.rb +46 -0
- data/lib/sitefs/handlers/markdown.rb +102 -0
- data/lib/sitefs/handlers/noop.rb +15 -0
- data/lib/sitefs/handlers/ruby_gen.rb +33 -0
- data/lib/sitefs/handlers/scss.rb +63 -0
- data/lib/sitefs/handlers/single_erb.rb +49 -0
- data/lib/sitefs/handlers/tag_page.rb +11 -0
- data/lib/sitefs/handlers.rb +6 -0
- data/lib/sitefs/html_pipelines.rb +95 -0
- data/lib/sitefs/layout_type.rb +16 -0
- data/lib/sitefs/manifest.rb +98 -0
- data/lib/sitefs/manifest_file.rb +64 -0
- data/lib/sitefs/page.rb +44 -0
- data/lib/sitefs/page_render.rb +6 -0
- data/lib/sitefs/path_helper.rb +31 -0
- data/lib/sitefs/render_context.rb +31 -0
- data/lib/sitefs/render_result.rb +16 -0
- data/lib/sitefs/renderer.rb +65 -0
- data/lib/sitefs/renderer_pipeline.rb +94 -0
- data/lib/sitefs/servlet.rb +31 -0
- data/lib/sitefs/tag_page_dsl_context.rb +13 -0
- data/lib/sitefs/version.rb +3 -0
- data/lib/sitefs/walker.rb +94 -0
- data/lib/sitefs/watcher.rb +85 -0
- data/lib/sitefs.rb +19 -0
- data/sitefs.gemspec +47 -0
- data/test-walker.rb +20 -0
- metadata +335 -0
@@ -0,0 +1,94 @@
|
|
1
|
+
require 'find'
|
2
|
+
|
3
|
+
module Sitefs::HashMaps
|
4
|
+
refine Hash do
|
5
|
+
def map_keys &blk
|
6
|
+
inject({}) do |h, (k,v)|
|
7
|
+
h[blk.call(k)] = v
|
8
|
+
h
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def map_values &blk
|
13
|
+
inject({}) do |h, (k,v)|
|
14
|
+
h[k] = blk.call(v)
|
15
|
+
h
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def find_value &blk
|
20
|
+
val = find(&blk)
|
21
|
+
val[1] if val
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# Class used for walking a source directory and discovering what files need to be mapped
|
27
|
+
class Sitefs::Walker
|
28
|
+
using HashMaps
|
29
|
+
attr_reader :config
|
30
|
+
|
31
|
+
HANDLERS = {
|
32
|
+
'page.{md,markdown}' => Handlers::Markdown,
|
33
|
+
'page.rb' => Handlers::RubyGen,
|
34
|
+
'page.*erb' => Handlers::SingleErb,
|
35
|
+
'tag-page.rb' => Handlers::TagPage,
|
36
|
+
'scss' => Handlers::Scss,
|
37
|
+
'*' => Handlers::Noop,
|
38
|
+
}
|
39
|
+
|
40
|
+
IGNORE_MATCHERS = [
|
41
|
+
'**/node_modules',
|
42
|
+
'**/.sass-cache',
|
43
|
+
'**/.git',
|
44
|
+
'**/.DS_Store',
|
45
|
+
]
|
46
|
+
|
47
|
+
def initialize config
|
48
|
+
@config = config
|
49
|
+
end
|
50
|
+
|
51
|
+
def root_path
|
52
|
+
@config.root_path
|
53
|
+
end
|
54
|
+
|
55
|
+
def walk
|
56
|
+
reg = FileRegistry.new
|
57
|
+
|
58
|
+
Dir.chdir root_path
|
59
|
+
|
60
|
+
ignore_matchers = IGNORE_MATCHERS | config.ignore_patterns
|
61
|
+
handlers = HANDLERS.map_keys {|ext| File.join('**', "*.#{ext}") }
|
62
|
+
match_args = File::FNM_CASEFOLD | File::FNM_EXTGLOB | File::FNM_PATHNAME
|
63
|
+
|
64
|
+
Find.find root_path do |full_path|
|
65
|
+
path = full_path.sub(root_path, '')
|
66
|
+
|
67
|
+
if ignore_matchers.find {|pattern| File.fnmatch(pattern, path, match_args)}
|
68
|
+
Find.prune if File.directory?(path)
|
69
|
+
next
|
70
|
+
end
|
71
|
+
|
72
|
+
if handler_class = handlers.find_value { |pattern, handler_class| File.fnmatch(pattern, path, match_args)}
|
73
|
+
handler = handler_class.new(root_path, full_path)
|
74
|
+
|
75
|
+
|
76
|
+
reg << handler if handler.should_generate?(config)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
reg
|
81
|
+
end
|
82
|
+
|
83
|
+
def watcher
|
84
|
+
Watcher.new self
|
85
|
+
end
|
86
|
+
|
87
|
+
def action_set
|
88
|
+
walk.gather_actions
|
89
|
+
end
|
90
|
+
|
91
|
+
def run action
|
92
|
+
action_set.call @config, action
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
require 'listen'
|
2
|
+
require 'webrick'
|
3
|
+
|
4
|
+
class Sitefs::Watcher
|
5
|
+
attr_reader :with_server, :walker
|
6
|
+
|
7
|
+
def initialize walker
|
8
|
+
@config = walker.config
|
9
|
+
@listener = ::Listen.to(root_path) do |modified, added, removed|
|
10
|
+
change modified, added, removed
|
11
|
+
end
|
12
|
+
|
13
|
+
@walker = walker
|
14
|
+
end
|
15
|
+
|
16
|
+
def root_path
|
17
|
+
@config.root_path
|
18
|
+
end
|
19
|
+
|
20
|
+
def port
|
21
|
+
@config.port
|
22
|
+
end
|
23
|
+
|
24
|
+
def start
|
25
|
+
puts "Listening to #{root_path}"
|
26
|
+
|
27
|
+
action_set.call @config, :write
|
28
|
+
@listener.start
|
29
|
+
|
30
|
+
if @port = port
|
31
|
+
server_thread.join
|
32
|
+
else
|
33
|
+
sleep
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def server_thread
|
38
|
+
@server_thread ||= Thread.new do
|
39
|
+
puts "about to start server on: http://127.0.0.1:#{@port}"
|
40
|
+
webrick_config = WEBrick::Config::FileHandler.merge({
|
41
|
+
:FancyIndexing => true,
|
42
|
+
:NondisclosureName => [
|
43
|
+
".ht*", "~*",
|
44
|
+
],
|
45
|
+
})
|
46
|
+
|
47
|
+
server = WEBrick::HTTPServer.new(
|
48
|
+
Port: @port,
|
49
|
+
DocumentRoot: root_path,
|
50
|
+
SitefsConfig: @config,
|
51
|
+
).tap { |o| o.unmount("") }
|
52
|
+
server.mount('', Servlet, root_path, webrick_config )
|
53
|
+
server.start
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def registry
|
58
|
+
walker.walk
|
59
|
+
end
|
60
|
+
|
61
|
+
def action_set
|
62
|
+
registry.gather_actions
|
63
|
+
end
|
64
|
+
|
65
|
+
def change modified, added, removed
|
66
|
+
puts "Change detected:"
|
67
|
+
|
68
|
+
modified.each {|f| puts " modified: #{f}"}
|
69
|
+
added.each {|f| puts " added: #{f}"}
|
70
|
+
removed.each {|f| puts " removed: #{f}"}
|
71
|
+
|
72
|
+
all = (modified | added | removed)
|
73
|
+
|
74
|
+
as = action_set
|
75
|
+
|
76
|
+
has_ungenerated_file = all.find do |path|
|
77
|
+
!as.includes_path?(path)
|
78
|
+
end
|
79
|
+
|
80
|
+
as.call(walker.config, :write) if has_ungenerated_file
|
81
|
+
|
82
|
+
puts ''
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
data/lib/sitefs.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'sitefs/version'
|
2
|
+
|
3
|
+
require 'stamp'
|
4
|
+
require 'autoloaded'
|
5
|
+
require 'yaml'
|
6
|
+
require 'aws-sdk'
|
7
|
+
|
8
|
+
%w{
|
9
|
+
}.each do |name|
|
10
|
+
require "sitefs/#{name}"
|
11
|
+
end
|
12
|
+
|
13
|
+
module Sitefs
|
14
|
+
extend self
|
15
|
+
|
16
|
+
Autoloaded.module do |autoloading|
|
17
|
+
# autoloading.with 'sitefs/dsl_context' => :'Sitefs::DSLContext'
|
18
|
+
end
|
19
|
+
end
|
data/sitefs.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'sitefs/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "sitefs"
|
8
|
+
spec.version = Sitefs::VERSION
|
9
|
+
spec.authors = ["Tal Atlas"]
|
10
|
+
spec.email = ["me@tal.by"]
|
11
|
+
|
12
|
+
spec.summary = %q{A simple static site generator}
|
13
|
+
spec.homepage = "http://sitefs.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
17
|
+
# delete this section to allow pushing this gem to any host.
|
18
|
+
# if spec.respond_to?(:metadata)
|
19
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
20
|
+
# else
|
21
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
22
|
+
# end
|
23
|
+
|
24
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
spec.bindir = "bin"
|
26
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
27
|
+
spec.require_paths = ["lib"]
|
28
|
+
|
29
|
+
spec.add_dependency 'html-pipeline', '~> 2.5'
|
30
|
+
spec.add_dependency 'html-pipeline-rouge_filter', '~> 1.0'
|
31
|
+
spec.add_dependency 'rinku', '~> 2.0'
|
32
|
+
spec.add_dependency 'github-markdown', '~> 0.6'
|
33
|
+
spec.add_dependency 'listen', '~> 3.1'
|
34
|
+
spec.add_dependency 'sass', '~> 3.4'
|
35
|
+
spec.add_dependency 'stamp', '~> 0.6'
|
36
|
+
spec.add_dependency 'ratom', '~> 0.9'
|
37
|
+
spec.add_dependency 'autoloaded', '~> 2'
|
38
|
+
spec.add_dependency 'slop', '~> 4'
|
39
|
+
spec.add_dependency 'diffy', '~> 3'
|
40
|
+
spec.add_dependency 'mime-types', '~> 3'
|
41
|
+
|
42
|
+
spec.add_dependency 'aws-sdk', '~> 2'
|
43
|
+
|
44
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
45
|
+
spec.add_development_dependency "rake", "~> 12"
|
46
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
47
|
+
end
|
data/test-walker.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
FS_TEST_DIR = File.expand_path('../inline-site', __FILE__)
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
4
|
+
|
5
|
+
require 'sitefs'
|
6
|
+
|
7
|
+
include Sitefs
|
8
|
+
|
9
|
+
watcher = Watcher.new FS_TEST_DIR
|
10
|
+
|
11
|
+
# sleep
|
12
|
+
|
13
|
+
# walker = Walker.new(FS_TEST_DIR)
|
14
|
+
|
15
|
+
# reg = walker.walk
|
16
|
+
# action_set = reg.gather_actions.call
|
17
|
+
|
18
|
+
# if action_set.has_errors?
|
19
|
+
# abort('some files didn\'t work')
|
20
|
+
# end
|
metadata
ADDED
@@ -0,0 +1,335 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sitefs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.beta1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tal Atlas
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: html-pipeline
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: html-pipeline-rouge_filter
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rinku
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: github-markdown
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.6'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: listen
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sass
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.4'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.4'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: stamp
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.6'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.6'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: ratom
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.9'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.9'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: autoloaded
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: slop
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '4'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '4'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: diffy
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: mime-types
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '3'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '3'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: aws-sdk
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '2'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '2'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: bundler
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '1.13'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '1.13'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: rake
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '12'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '12'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: rspec
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '3.0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '3.0'
|
237
|
+
description:
|
238
|
+
email:
|
239
|
+
- me@tal.by
|
240
|
+
executables:
|
241
|
+
- sitefs
|
242
|
+
extensions: []
|
243
|
+
extra_rdoc_files: []
|
244
|
+
files:
|
245
|
+
- ".editorconfig"
|
246
|
+
- ".gitignore"
|
247
|
+
- ".rspec"
|
248
|
+
- ".travis.yml"
|
249
|
+
- Gemfile
|
250
|
+
- Gemfile.lock
|
251
|
+
- LICENSE.txt
|
252
|
+
- README.md
|
253
|
+
- Rakefile
|
254
|
+
- TODO.md
|
255
|
+
- bin/sitefs
|
256
|
+
- inline-site/_layout.html.erb
|
257
|
+
- inline-site/_layout.md.html.erb
|
258
|
+
- inline-site/advanced-md.page.md
|
259
|
+
- inline-site/dir/_layout.md.html.erb
|
260
|
+
- inline-site/dir/sub1/_layout.html.erb
|
261
|
+
- inline-site/dir/sub1/sub2/deep-page.page.md
|
262
|
+
- inline-site/ears.png
|
263
|
+
- inline-site/gallery/IMG_4371.jpg
|
264
|
+
- inline-site/gallery/Screen Shot 2016-04-21 at 5.57.53 PM.png
|
265
|
+
- inline-site/gallery/Screen Shot 2016-04-25 at 2.06.46 PM.png
|
266
|
+
- inline-site/gallery/Screen Shot 2016-04-27 at 9.31.28 PM.png
|
267
|
+
- inline-site/gallery/_gallery.html.erb
|
268
|
+
- inline-site/gallery/_permalink.html.erb
|
269
|
+
- inline-site/gallery/photos.page.rb
|
270
|
+
- inline-site/index.html
|
271
|
+
- inline-site/index.page.html.erb
|
272
|
+
- inline-site/single-markdown.page.md
|
273
|
+
- inline-site/styles/_helper.scss
|
274
|
+
- inline-site/styles/app.css
|
275
|
+
- inline-site/styles/app.scss
|
276
|
+
- inline-site/tagged/_tag_layout.html.erb
|
277
|
+
- inline-site/tagged/public.tag-page.rb
|
278
|
+
- lib/sitefs.rb
|
279
|
+
- lib/sitefs/attribute_set.rb
|
280
|
+
- lib/sitefs/command_config.rb
|
281
|
+
- lib/sitefs/dsl_context.rb
|
282
|
+
- lib/sitefs/file_action.rb
|
283
|
+
- lib/sitefs/file_action_set.rb
|
284
|
+
- lib/sitefs/file_registry.rb
|
285
|
+
- lib/sitefs/handler.rb
|
286
|
+
- lib/sitefs/handlers.rb
|
287
|
+
- lib/sitefs/handlers/markdown.rb
|
288
|
+
- lib/sitefs/handlers/noop.rb
|
289
|
+
- lib/sitefs/handlers/ruby_gen.rb
|
290
|
+
- lib/sitefs/handlers/scss.rb
|
291
|
+
- lib/sitefs/handlers/single_erb.rb
|
292
|
+
- lib/sitefs/handlers/tag_page.rb
|
293
|
+
- lib/sitefs/html_pipelines.rb
|
294
|
+
- lib/sitefs/layout_type.rb
|
295
|
+
- lib/sitefs/manifest.rb
|
296
|
+
- lib/sitefs/manifest_file.rb
|
297
|
+
- lib/sitefs/page.rb
|
298
|
+
- lib/sitefs/page_render.rb
|
299
|
+
- lib/sitefs/path_helper.rb
|
300
|
+
- lib/sitefs/render_context.rb
|
301
|
+
- lib/sitefs/render_result.rb
|
302
|
+
- lib/sitefs/renderer.rb
|
303
|
+
- lib/sitefs/renderer_pipeline.rb
|
304
|
+
- lib/sitefs/servlet.rb
|
305
|
+
- lib/sitefs/tag_page_dsl_context.rb
|
306
|
+
- lib/sitefs/version.rb
|
307
|
+
- lib/sitefs/walker.rb
|
308
|
+
- lib/sitefs/watcher.rb
|
309
|
+
- sitefs.gemspec
|
310
|
+
- test-walker.rb
|
311
|
+
homepage: http://sitefs.com
|
312
|
+
licenses:
|
313
|
+
- MIT
|
314
|
+
metadata: {}
|
315
|
+
post_install_message:
|
316
|
+
rdoc_options: []
|
317
|
+
require_paths:
|
318
|
+
- lib
|
319
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
320
|
+
requirements:
|
321
|
+
- - ">="
|
322
|
+
- !ruby/object:Gem::Version
|
323
|
+
version: '0'
|
324
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
325
|
+
requirements:
|
326
|
+
- - ">"
|
327
|
+
- !ruby/object:Gem::Version
|
328
|
+
version: 1.3.1
|
329
|
+
requirements: []
|
330
|
+
rubyforge_project:
|
331
|
+
rubygems_version: 2.6.10
|
332
|
+
signing_key:
|
333
|
+
specification_version: 4
|
334
|
+
summary: A simple static site generator
|
335
|
+
test_files: []
|