smallcage 0.2.2 → 0.2.3
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.
- data/.gitignore +19 -2
- data/.rspec +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +7 -0
- data/{History.txt → History.rdoc} +8 -0
- data/Rakefile +7 -40
- data/lib/smallcage/application.rb +1 -1
- data/lib/smallcage/commands/import.rb +3 -3
- data/lib/smallcage/loader.rb +9 -7
- data/lib/smallcage/update_list.rb +4 -4
- data/lib/smallcage/version.rb +1 -7
- data/smallcage.gemspec +13 -182
- data/spec/data/htdocs1/_smc/filters/filters.yml +1 -1
- data/spec/document_path_spec.rb +1 -1
- data/spec/export_spec.rb +2 -2
- data/spec/import_spec.rb +2 -2
- data/spec/loader_spec.rb +1 -1
- data/spec/manifest_spec.rb +1 -1
- data/spec/misc_spec.rb +2 -2
- data/spec/smallcage/application_spec.rb +1 -1
- data/spec/smallcage/commands/auto_spec.rb +1 -1
- data/spec/smallcage/commands/server_spec.rb +1 -1
- data/spec/smallcage_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -9
- data/spec/update_list_spec.rb +3 -4
- data/spec/update_spec.rb +2 -2
- data/spec/uri_spec.rb +1 -1
- metadata +66 -48
- data/VERSION +0 -1
- data/spec/spec.opts +0 -1
data/.gitignore
CHANGED
@@ -1,5 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
|
1
19
|
*~
|
2
20
|
.DS_Store
|
3
21
|
.project
|
4
|
-
|
5
|
-
doc
|
22
|
+
*.ignore
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Rakefile
CHANGED
@@ -1,45 +1,12 @@
|
|
1
|
-
|
2
|
-
require 'rake'
|
1
|
+
#!/usr/bin/env rake
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "smallcage"
|
8
|
-
gem.summary = "a simple website generator"
|
9
|
-
gem.description = "SmallCage is a simple, but powerful website generator. It converts content and template files, which has common elements in a website, to a plain, static website. No database, no application container, and no repeat in many pages is needed. You can keep your site well with very little work."
|
10
|
-
gem.email = "smallcage@googlegroups.com"
|
11
|
-
gem.homepage = "http://www.smallcage.org"
|
12
|
-
gem.authors = ["SAITO Toshihiro", "gommmmmm", "KOSEKI Kengo"]
|
13
|
-
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
-
end
|
16
|
-
Jeweler::GemcutterTasks.new
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
19
|
-
end
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rspec/core/rake_task"
|
20
5
|
|
21
|
-
|
22
|
-
Spec::Rake::SpecTask.new(:spec) do |spec|
|
23
|
-
spec.libs << 'lib' << 'spec'
|
24
|
-
spec.spec_files = FileList['spec/**/*_spec.rb']
|
25
|
-
end
|
26
|
-
|
27
|
-
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
28
|
-
spec.libs << 'lib' << 'spec'
|
29
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
30
|
-
spec.rcov = true
|
31
|
-
end
|
32
|
-
|
33
|
-
task :spec => :check_dependencies
|
6
|
+
RSpec::Core::RakeTask.new
|
34
7
|
|
8
|
+
desc "-> spec"
|
35
9
|
task :default => :spec
|
36
10
|
|
37
|
-
|
38
|
-
|
39
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
40
|
-
|
41
|
-
rdoc.rdoc_dir = 'rdoc'
|
42
|
-
rdoc.title = "smallcage #{version}"
|
43
|
-
rdoc.rdoc_files.include('README*')
|
44
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
45
|
-
end
|
11
|
+
desc "-> spec"
|
12
|
+
task :test => :spec
|
@@ -111,7 +111,7 @@ module SmallCage::Commands
|
|
111
111
|
source = open(mfuri) {|io| io.read }
|
112
112
|
result = []
|
113
113
|
|
114
|
-
files = source.scan(%r{<li><a href="(./[^"]+)">(./[^<]+)</a></li>})
|
114
|
+
files = source.scan(%r{<li><a href="(./[^"]+)">(./[^<]+)</a></li>}) #"
|
115
115
|
files.each do |f|
|
116
116
|
raise "illegal path:#{f[0]},#{f[1]}" if f[0] != f[1]
|
117
117
|
raise "illegal path:#{f[0]}" if f[0] =~ %r{/\.\.}
|
@@ -180,7 +180,7 @@ module SmallCage::Commands
|
|
180
180
|
end
|
181
181
|
|
182
182
|
def external?
|
183
|
-
from =~ %r{^https?://}
|
183
|
+
from.to_s =~ %r{^https?://}
|
184
184
|
end
|
185
185
|
|
186
186
|
def exist?
|
@@ -214,4 +214,4 @@ module SmallCage::Commands
|
|
214
214
|
|
215
215
|
end
|
216
216
|
end
|
217
|
-
end
|
217
|
+
end
|
data/lib/smallcage/loader.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
YAML::ENGINE.yamler = 'syck' if RUBY_VERSION >= "1.9.2"
|
2
|
+
|
1
3
|
module SmallCage
|
2
4
|
class Loader
|
3
5
|
DEFAULT_TEMPLATE = "default"
|
@@ -150,10 +152,10 @@ module SmallCage
|
|
150
152
|
|
151
153
|
def each_smc_file
|
152
154
|
if @target.directory?
|
153
|
-
|
155
|
+
path = Pathname.new(@target)
|
154
156
|
Dir.chdir(@target) do
|
155
|
-
Dir.glob("**/*.smc") do |f|
|
156
|
-
yield
|
157
|
+
Dir.glob("**/*.smc").sort.each do |f|
|
158
|
+
yield path + f
|
157
159
|
end
|
158
160
|
end
|
159
161
|
else
|
@@ -163,14 +165,14 @@ module SmallCage
|
|
163
165
|
|
164
166
|
def each_not_smc_file
|
165
167
|
if @target.directory?
|
166
|
-
|
168
|
+
path = Pathname.new(@target)
|
167
169
|
Dir.chdir(@target) do
|
168
|
-
Dir.glob("**/*") do |f|
|
169
|
-
f =
|
170
|
+
Dir.glob("**/*").sort.each do |f|
|
171
|
+
f = path + f
|
170
172
|
next if f.directory?
|
171
173
|
next if f.to_s =~ %r{/_smc/}
|
172
174
|
next if f.to_s =~ %r{\.smc$}
|
173
|
-
yield DocumentPath.new(@root,
|
175
|
+
yield DocumentPath.new(@root, path + f)
|
174
176
|
end
|
175
177
|
end
|
176
178
|
else
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module SmallCage
|
2
2
|
|
3
3
|
# Updated files list model.
|
4
|
-
# Do not access File system
|
4
|
+
# Do not access File system except list.yml.
|
5
5
|
class UpdateList
|
6
6
|
attr_reader :update_count
|
7
7
|
|
@@ -12,7 +12,7 @@ module SmallCage
|
|
12
12
|
return self.new(root_path + "_smc/tmp/list.yml", uri)
|
13
13
|
end
|
14
14
|
|
15
|
-
# target_uri must be
|
15
|
+
# target_uri must be ended with / when the target is a directory.
|
16
16
|
def initialize(list_file, target_uri)
|
17
17
|
@list_file = list_file
|
18
18
|
@target_uri = target_uri
|
@@ -28,7 +28,7 @@ module SmallCage
|
|
28
28
|
else
|
29
29
|
@data = {}
|
30
30
|
end
|
31
|
-
@data["version"] ||= VERSION
|
31
|
+
@data["version"] ||= VERSION
|
32
32
|
@data["list"] ||= []
|
33
33
|
|
34
34
|
@map = {}
|
@@ -52,7 +52,7 @@ module SmallCage
|
|
52
52
|
|
53
53
|
def save
|
54
54
|
FileUtils.mkpath(@list_file.parent)
|
55
|
-
@data["version"] = VERSION
|
55
|
+
@data["version"] = VERSION
|
56
56
|
open(@list_file, "w") do |io|
|
57
57
|
io << to_yaml
|
58
58
|
end
|
data/lib/smallcage/version.rb
CHANGED
data/smallcage.gemspec
CHANGED
@@ -1,186 +1,17 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/smallcage/version', __FILE__)
|
5
3
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["SAITO Toshihiro", "gommmmmm", "KOSEKI Kengo"]
|
6
|
+
gem.email = ["smallcage@googlegroups.com"]
|
7
|
+
gem.description = %q{SmallCage is a simple, but powerful website generator. It converts content and template files, which has common elements in a website, to a plain, static website. No database, no application container, and no repeat in many pages is needed. You can keep your site well with very little work.}
|
8
|
+
gem.summary = %q{a simple website generator}
|
9
|
+
gem.homepage = %q{http://www.smallcage.org}
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
s.executables = ["smc"]
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"README.rdoc"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".gitignore",
|
22
|
-
"History.txt",
|
23
|
-
"License.txt",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"bin/smc",
|
28
|
-
"lib/smallcage.rb",
|
29
|
-
"lib/smallcage/application.rb",
|
30
|
-
"lib/smallcage/commands/auto.rb",
|
31
|
-
"lib/smallcage/commands/base.rb",
|
32
|
-
"lib/smallcage/commands/clean.rb",
|
33
|
-
"lib/smallcage/commands/export.rb",
|
34
|
-
"lib/smallcage/commands/import.rb",
|
35
|
-
"lib/smallcage/commands/manifest.rb",
|
36
|
-
"lib/smallcage/commands/server.rb",
|
37
|
-
"lib/smallcage/commands/update.rb",
|
38
|
-
"lib/smallcage/commands/uri.rb",
|
39
|
-
"lib/smallcage/document_path.rb",
|
40
|
-
"lib/smallcage/erb_base.rb",
|
41
|
-
"lib/smallcage/http_server.rb",
|
42
|
-
"lib/smallcage/loader.rb",
|
43
|
-
"lib/smallcage/misc.rb",
|
44
|
-
"lib/smallcage/renderer.rb",
|
45
|
-
"lib/smallcage/resources/Manifest.erb",
|
46
|
-
"lib/smallcage/resources/auto.html",
|
47
|
-
"lib/smallcage/runner.rb",
|
48
|
-
"lib/smallcage/update_list.rb",
|
49
|
-
"lib/smallcage/version.rb",
|
50
|
-
"project/base/_smc/helpers/base_helper.rb",
|
51
|
-
"project/base/_smc/helpers/site_helper.rb",
|
52
|
-
"project/base/_smc/templates/default.rhtml",
|
53
|
-
"project/base/_smc/templates/footer.rhtml",
|
54
|
-
"project/base/_smc/templates/header.rhtml",
|
55
|
-
"project/bluecloth/_smc/helpers/blue_cloth_helper.rb",
|
56
|
-
"project/bluecloth/_smc/templates/markdown.rhtml",
|
57
|
-
"project/cache/_smc/filters/cache_filter.rb",
|
58
|
-
"project/cache/_smc/filters/filters.yml",
|
59
|
-
"project/cache/_smc/rakelib/cache.rake",
|
60
|
-
"project/gdata/_smc/rakelib/gdata.rake",
|
61
|
-
"project/lang/_smc/helpers/lang_helper.rb",
|
62
|
-
"project/lang/_smc/templates/other_lang.rhtml",
|
63
|
-
"project/news/_smc/helpers/news_helper.rb",
|
64
|
-
"project/nkf/_smc/filters/filters.yml",
|
65
|
-
"project/nkf/_smc/filters/nkf_filter.rb",
|
66
|
-
"project/nkf/_smc/helpers/nkf_helper.rb",
|
67
|
-
"project/rake/_smc/Rakefile",
|
68
|
-
"project/rake/_smc/rakelib/csv.rake",
|
69
|
-
"project/rake/_smc/rakelib/default.rake",
|
70
|
-
"project/rake/_smc/rakelib/svn.rake",
|
71
|
-
"project/redcloth/_smc/helpers/red_cloth_helper.rb",
|
72
|
-
"project/redcloth/_smc/templates/textile.rhtml",
|
73
|
-
"project/relpath/_smc/filters/filters.yml",
|
74
|
-
"project/relpath/_smc/filters/relpath_filter.rb",
|
75
|
-
"project/standard/_dir.smc",
|
76
|
-
"project/standard/_smc/helpers/menu_helper.rb",
|
77
|
-
"project/standard/_smc/templates/default.rhtml",
|
78
|
-
"project/standard/_smc/templates/footer.rhtml",
|
79
|
-
"project/standard/_smc/templates/header.rhtml",
|
80
|
-
"project/standard/_smc/templates/menu.rhtml",
|
81
|
-
"project/standard/_smc/templates/redirect.rhtml",
|
82
|
-
"project/standard/_smc/templates/sidebar.rhtml",
|
83
|
-
"project/standard/_smc/templates/topic_path.rhtml",
|
84
|
-
"project/standard/common/css/default.css",
|
85
|
-
"project/standard/common/css/print.css",
|
86
|
-
"project/standard/index.html.smc",
|
87
|
-
"project/standard/sample/_dir.smc",
|
88
|
-
"project/standard/sample/index.html.smc",
|
89
|
-
"project/standard/sample/redirect.html.smc",
|
90
|
-
"project/standard/sample/sub/_dir.smc",
|
91
|
-
"project/standard/sample/sub/contents.html.smc",
|
92
|
-
"project/standard/sample/sub/index.html.smc",
|
93
|
-
"project/tutorial/_smc/helpers/sample_helper.rb",
|
94
|
-
"project/tutorial/_smc/templates/default.rhtml",
|
95
|
-
"project/tutorial/_smc/templates/include1.rhtml",
|
96
|
-
"project/tutorial/_smc/templates/include2.rhtml",
|
97
|
-
"project/tutorial/sample.txt.smc",
|
98
|
-
"project/tutorial/sample2.txt.smc",
|
99
|
-
"project/tutorial2/_smc/helpers/priority_sample_helper.rb",
|
100
|
-
"project/tutorial2/_smc/templates/priorities.rhtml",
|
101
|
-
"project/tutorial2/_smc/templates/priority1.rhtml",
|
102
|
-
"project/tutorial2/_smc/templates/priority2.rhtml",
|
103
|
-
"project/tutorial2/_smc/templates/priority3.rhtml",
|
104
|
-
"project/tutorial2/_smc/templates/smc_variables.rhtml",
|
105
|
-
"project/tutorial2/tutorial2/_dir.smc",
|
106
|
-
"project/tutorial2/tutorial2/priorities.txt.smc",
|
107
|
-
"project/tutorial2/tutorial2/vars.txt.smc",
|
108
|
-
"smallcage.gemspec",
|
109
|
-
"spec/data/htdocs1/_dir.smc",
|
110
|
-
"spec/data/htdocs1/_smc/.gitignore",
|
111
|
-
"spec/data/htdocs1/_smc/filters/filters.yml",
|
112
|
-
"spec/data/htdocs1/a/b/c/index.html.smc",
|
113
|
-
"spec/data/htdocs2/_smc/filters/filters.yml",
|
114
|
-
"spec/data/htdocs2/_smc/templates/dummy.rhtml",
|
115
|
-
"spec/data/htdocs2/a/b/c/test.html",
|
116
|
-
"spec/data/htdocs2/a/b/test.html",
|
117
|
-
"spec/data/htdocs2/a/test.html.smc",
|
118
|
-
"spec/data/htdocs3/_dir.smc",
|
119
|
-
"spec/data/htdocs3/_local.smc",
|
120
|
-
"spec/data/htdocs3/_smc/.gitignore",
|
121
|
-
"spec/data/htdocs3/a/b/_dir.smc",
|
122
|
-
"spec/data/htdocs3/a/b/_local.smc",
|
123
|
-
"spec/data/htdocs3/a/b/c/_local.smc",
|
124
|
-
"spec/data/htdocs3/a/b/c/index.html.smc",
|
125
|
-
"spec/data/htdocs3/a/index.html.smc",
|
126
|
-
"spec/data/htdocs3/ab/index.html.smc",
|
127
|
-
"spec/data/htdocs3/abc/index.html.smc",
|
128
|
-
"spec/data/multifiles/_dir.smc",
|
129
|
-
"spec/data/multifiles/_smc/templates/default.rhtml",
|
130
|
-
"spec/data/multifiles/_smc/templates/items.rhtml",
|
131
|
-
"spec/data/multifiles/_smc/templates/items.uri.rhtml",
|
132
|
-
"spec/data/multifiles/index.html.smc",
|
133
|
-
"spec/data/multifiles/items/index.html.smc",
|
134
|
-
"spec/data/updatelists/list1.yml",
|
135
|
-
"spec/document_path_spec.rb",
|
136
|
-
"spec/export_spec.rb",
|
137
|
-
"spec/import_spec.rb",
|
138
|
-
"spec/loader_spec.rb",
|
139
|
-
"spec/manifest_spec.rb",
|
140
|
-
"spec/misc_spec.rb",
|
141
|
-
"spec/smallcage/application_spec.rb",
|
142
|
-
"spec/smallcage/commands/auto_spec.rb",
|
143
|
-
"spec/smallcage/commands/server_spec.rb",
|
144
|
-
"spec/smallcage_spec.rb",
|
145
|
-
"spec/spec.opts",
|
146
|
-
"spec/spec_helper.rb",
|
147
|
-
"spec/update_list_spec.rb",
|
148
|
-
"spec/update_spec.rb",
|
149
|
-
"spec/uri_spec.rb"
|
150
|
-
]
|
151
|
-
s.homepage = %q{http://www.smallcage.org}
|
152
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
153
|
-
s.require_paths = ["lib"]
|
154
|
-
s.rubygems_version = %q{1.3.5}
|
155
|
-
s.summary = %q{a simple website generator}
|
156
|
-
s.test_files = [
|
157
|
-
"spec/document_path_spec.rb",
|
158
|
-
"spec/export_spec.rb",
|
159
|
-
"spec/import_spec.rb",
|
160
|
-
"spec/loader_spec.rb",
|
161
|
-
"spec/manifest_spec.rb",
|
162
|
-
"spec/misc_spec.rb",
|
163
|
-
"spec/smallcage/application_spec.rb",
|
164
|
-
"spec/smallcage/commands/auto_spec.rb",
|
165
|
-
"spec/smallcage/commands/server_spec.rb",
|
166
|
-
"spec/smallcage_spec.rb",
|
167
|
-
"spec/spec_helper.rb",
|
168
|
-
"spec/update_list_spec.rb",
|
169
|
-
"spec/update_spec.rb",
|
170
|
-
"spec/uri_spec.rb"
|
171
|
-
]
|
172
|
-
|
173
|
-
if s.respond_to? :specification_version then
|
174
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
175
|
-
s.specification_version = 3
|
176
|
-
|
177
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
178
|
-
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
179
|
-
else
|
180
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
181
|
-
end
|
182
|
-
else
|
183
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
184
|
-
end
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "smallcage"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = SmallCage::VERSION
|
185
17
|
end
|
186
|
-
|
@@ -1 +1 @@
|
|
1
|
-
after_rendering_filters:
|
1
|
+
after_rendering_filters:
|
data/spec/document_path_spec.rb
CHANGED
data/spec/export_spec.rb
CHANGED
data/spec/import_spec.rb
CHANGED
data/spec/loader_spec.rb
CHANGED
data/spec/manifest_spec.rb
CHANGED
data/spec/misc_spec.rb
CHANGED
data/spec/smallcage_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper.rb'
|
2
2
|
require 'smallcage'
|
3
3
|
|
4
4
|
describe "smallcage" do
|
5
5
|
|
6
6
|
it "show version" do
|
7
|
-
# puts "------- version:" + SmallCage::VERSION
|
7
|
+
# puts "------- version:" + SmallCage::VERSION
|
8
8
|
end
|
9
9
|
|
10
10
|
end
|
data/spec/spec_helper.rb
CHANGED
data/spec/update_list_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper.rb'
|
2
2
|
require 'smallcage'
|
3
3
|
|
4
4
|
describe SmallCage::UpdateList do
|
@@ -35,7 +35,7 @@ EOT
|
|
35
35
|
list.save
|
36
36
|
|
37
37
|
data = YAML.load_file(file)
|
38
|
-
data["version"].should == SmallCage::VERSION
|
38
|
+
data["version"].should == SmallCage::VERSION
|
39
39
|
ensure
|
40
40
|
file.delete
|
41
41
|
end
|
@@ -109,8 +109,7 @@ EOT
|
|
109
109
|
list = SmallCage::UpdateList.new(file, "/")
|
110
110
|
e = list.expire
|
111
111
|
e.length.should == 2
|
112
|
-
e
|
113
|
-
e[1].should == "/index2.html"
|
112
|
+
e.should =~ ["/index.html", "/index2.html"]
|
114
113
|
|
115
114
|
list = SmallCage::UpdateList.new(file, "/abc/")
|
116
115
|
list.update("/abc/index.html.smc", 2, "/abc/index.html")
|
data/spec/update_spec.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper.rb'
|
2
2
|
require 'smallcage'
|
3
3
|
|
4
4
|
describe 'update' do
|
5
5
|
|
6
|
-
it "should update
|
6
|
+
it "should not update docroot directory" do
|
7
7
|
docroot = Pathname.new(File.dirname(__FILE__) + "/data/htdocs1")
|
8
8
|
path = docroot + "a/b/"
|
9
9
|
|
data/spec/uri_spec.rb
CHANGED
metadata
CHANGED
@@ -1,44 +1,38 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: smallcage
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- SAITO Toshihiro
|
8
9
|
- gommmmmm
|
9
10
|
- KOSEKI Kengo
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirements:
|
23
|
-
- - ">="
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: 1.2.9
|
26
|
-
version:
|
27
|
-
description: SmallCage is a simple, but powerful website generator. It converts content and template files, which has common elements in a website, to a plain, static website. No database, no application container, and no repeat in many pages is needed. You can keep your site well with very little work.
|
28
|
-
email: smallcage@googlegroups.com
|
29
|
-
executables:
|
14
|
+
date: 2012-07-16 00:00:00.000000000 Z
|
15
|
+
dependencies: []
|
16
|
+
description: SmallCage is a simple, but powerful website generator. It converts content
|
17
|
+
and template files, which has common elements in a website, to a plain, static website.
|
18
|
+
No database, no application container, and no repeat in many pages is needed. You
|
19
|
+
can keep your site well with very little work.
|
20
|
+
email:
|
21
|
+
- smallcage@googlegroups.com
|
22
|
+
executables:
|
30
23
|
- smc
|
31
24
|
extensions: []
|
32
|
-
|
33
|
-
|
34
|
-
- README.rdoc
|
35
|
-
files:
|
25
|
+
extra_rdoc_files: []
|
26
|
+
files:
|
36
27
|
- .gitignore
|
37
|
-
-
|
28
|
+
- .rspec
|
29
|
+
- .travis.yml
|
30
|
+
- Gemfile
|
31
|
+
- Gemfile.lock
|
32
|
+
- History.rdoc
|
38
33
|
- License.txt
|
39
34
|
- README.rdoc
|
40
35
|
- Rakefile
|
41
|
-
- VERSION
|
42
36
|
- bin/smc
|
43
37
|
- lib/smallcage.rb
|
44
38
|
- lib/smallcage/application.rb
|
@@ -157,40 +151,64 @@ files:
|
|
157
151
|
- spec/smallcage/commands/auto_spec.rb
|
158
152
|
- spec/smallcage/commands/server_spec.rb
|
159
153
|
- spec/smallcage_spec.rb
|
160
|
-
- spec/spec.opts
|
161
154
|
- spec/spec_helper.rb
|
162
155
|
- spec/update_list_spec.rb
|
163
156
|
- spec/update_spec.rb
|
164
157
|
- spec/uri_spec.rb
|
165
|
-
has_rdoc: true
|
166
158
|
homepage: http://www.smallcage.org
|
167
159
|
licenses: []
|
168
|
-
|
169
160
|
post_install_message:
|
170
|
-
rdoc_options:
|
171
|
-
|
172
|
-
require_paths:
|
161
|
+
rdoc_options: []
|
162
|
+
require_paths:
|
173
163
|
- lib
|
174
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
166
|
+
requirements:
|
167
|
+
- - ! '>='
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
segments:
|
171
|
+
- 0
|
172
|
+
hash: -3079300471336458698
|
173
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ! '>='
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
186
179
|
requirements: []
|
187
|
-
|
188
180
|
rubyforge_project:
|
189
|
-
rubygems_version: 1.
|
181
|
+
rubygems_version: 1.8.24
|
190
182
|
signing_key:
|
191
183
|
specification_version: 3
|
192
184
|
summary: a simple website generator
|
193
|
-
test_files:
|
185
|
+
test_files:
|
186
|
+
- spec/data/htdocs1/_dir.smc
|
187
|
+
- spec/data/htdocs1/_smc/.gitignore
|
188
|
+
- spec/data/htdocs1/_smc/filters/filters.yml
|
189
|
+
- spec/data/htdocs1/a/b/c/index.html.smc
|
190
|
+
- spec/data/htdocs2/_smc/filters/filters.yml
|
191
|
+
- spec/data/htdocs2/_smc/templates/dummy.rhtml
|
192
|
+
- spec/data/htdocs2/a/b/c/test.html
|
193
|
+
- spec/data/htdocs2/a/b/test.html
|
194
|
+
- spec/data/htdocs2/a/test.html.smc
|
195
|
+
- spec/data/htdocs3/_dir.smc
|
196
|
+
- spec/data/htdocs3/_local.smc
|
197
|
+
- spec/data/htdocs3/_smc/.gitignore
|
198
|
+
- spec/data/htdocs3/a/b/_dir.smc
|
199
|
+
- spec/data/htdocs3/a/b/_local.smc
|
200
|
+
- spec/data/htdocs3/a/b/c/_local.smc
|
201
|
+
- spec/data/htdocs3/a/b/c/index.html.smc
|
202
|
+
- spec/data/htdocs3/a/index.html.smc
|
203
|
+
- spec/data/htdocs3/ab/index.html.smc
|
204
|
+
- spec/data/htdocs3/abc/index.html.smc
|
205
|
+
- spec/data/multifiles/_dir.smc
|
206
|
+
- spec/data/multifiles/_smc/templates/default.rhtml
|
207
|
+
- spec/data/multifiles/_smc/templates/items.rhtml
|
208
|
+
- spec/data/multifiles/_smc/templates/items.uri.rhtml
|
209
|
+
- spec/data/multifiles/index.html.smc
|
210
|
+
- spec/data/multifiles/items/index.html.smc
|
211
|
+
- spec/data/updatelists/list1.yml
|
194
212
|
- spec/document_path_spec.rb
|
195
213
|
- spec/export_spec.rb
|
196
214
|
- spec/import_spec.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.2
|
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|