smallcage 0.2.0 → 0.2.1
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/History.txt +5 -0
- data/README.rdoc +2 -2
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/smallcage/application.rb +1 -1
- data/lib/smallcage/version.rb +1 -1
- data/project/gdata/_smc/rakelib/gdata.rake +29 -24
- data/project/rake/_smc/Rakefile +1 -8
- data/project/rake/_smc/rakelib/default.rake +15 -0
- data/project/rake/_smc/rakelib/svn.rake +1 -1
- data/project/standard/_smc/templates/header.rhtml +1 -1
- data/smallcage.gemspec +4 -3
- metadata +4 -3
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= SmallCage -- simple website generator
|
1
|
+
= SmallCage -- a simple website generator
|
2
2
|
|
3
3
|
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.
|
4
4
|
|
@@ -23,7 +23,7 @@ If successfully installed, smc command will be available.
|
|
23
23
|
|
24
24
|
$ smc
|
25
25
|
Usage: smc <subcommand> [options]
|
26
|
-
SmallCage 0.1.9 - simple website generator
|
26
|
+
SmallCage 0.1.9 - a simple website generator
|
27
27
|
Subcommands are:
|
28
28
|
update [path] Build smc contents.
|
29
29
|
clean [path] Remove files generated from *.smc source.
|
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ begin
|
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "smallcage"
|
8
|
-
gem.summary = "simple website generator"
|
8
|
+
gem.summary = "a simple website generator"
|
9
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
10
|
gem.email = "smallcage@googlegroups.com"
|
11
11
|
gem.homepage = "http://www.smallcage.org"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/smallcage/version.rb
CHANGED
@@ -14,9 +14,8 @@ class GDataExporter
|
|
14
14
|
def load_config
|
15
15
|
if File.file?(CONFIG_FILE)
|
16
16
|
@config = YAML.load_file(CONFIG_FILE)
|
17
|
-
else
|
18
|
-
@config ||= {}
|
19
17
|
end
|
18
|
+
@config ||= {}
|
20
19
|
@config["gdata_auth"] ||= "default"
|
21
20
|
end
|
22
21
|
private :load_config
|
@@ -37,17 +36,36 @@ class GDataExporter
|
|
37
36
|
end
|
38
37
|
private :umask_close
|
39
38
|
|
39
|
+
def config_sample
|
40
|
+
puts <<'EOT'
|
41
|
+
|
42
|
+
Configulation sample (add these lines to _dir.smc):
|
43
|
+
----------------------------------------------------------------
|
44
|
+
gdata_auth: default
|
45
|
+
gdata_files:
|
46
|
+
- key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
47
|
+
file: _smc/data/sample1.csv
|
48
|
+
- key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
49
|
+
file: _smc/data/sample2.csv
|
50
|
+
----------------------------------------------------------------
|
51
|
+
You can get document keys using 'gdata:list' task.
|
52
|
+
|
53
|
+
EOT
|
54
|
+
end
|
55
|
+
private :config_sample
|
56
|
+
|
40
57
|
def env
|
41
58
|
unless File.file?(CONFIG_FILE)
|
42
|
-
puts "ERROR:
|
59
|
+
puts "ERROR: Configuration file not found: #{CONFIG_FILE}"
|
60
|
+
config_sample
|
43
61
|
return
|
44
62
|
end
|
45
|
-
puts "OK:
|
63
|
+
puts "OK: Configuration file exists: #{CONFIG_FILE.realpath}"
|
46
64
|
|
47
65
|
puts "OK: Auth name(gdata_auth): #{@config["gdata_auth"]}"
|
48
66
|
|
49
67
|
if @config["gdata_files"]
|
50
|
-
puts "OK: gdata_files"
|
68
|
+
puts "OK: Configuration value exists: gdata_files"
|
51
69
|
@config["gdata_files"].to_a.each do |fileconf|
|
52
70
|
puts <<"EOT"
|
53
71
|
- title: "#{fileconf["title"]}"
|
@@ -56,21 +74,8 @@ class GDataExporter
|
|
56
74
|
EOT
|
57
75
|
end
|
58
76
|
else
|
59
|
-
puts
|
60
|
-
|
61
|
-
|
62
|
-
Configulation sample (add these lines to _dir.smc):
|
63
|
-
----------------------------------------------------------------
|
64
|
-
gdata_auth: default
|
65
|
-
gdata_files:
|
66
|
-
- key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
67
|
-
file: _smc/data/sample1.csv
|
68
|
-
- key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
69
|
-
file: _smc/data/sample2.csv
|
70
|
-
----------------------------------------------------------------
|
71
|
-
You can get document keys using 'gdata:keys' task.
|
72
|
-
|
73
|
-
EOT
|
77
|
+
puts "ERROR: Counfiguration value not found: gdata_files"
|
78
|
+
config_sample
|
74
79
|
end
|
75
80
|
|
76
81
|
unless AUTH_ROOT.exist?
|
@@ -199,25 +204,25 @@ end
|
|
199
204
|
|
200
205
|
namespace :gdata do
|
201
206
|
|
202
|
-
desc "
|
207
|
+
desc "Show Google Data API configuration."
|
203
208
|
task :env do
|
204
209
|
exporter = GDataExporter.new
|
205
210
|
exporter.env
|
206
211
|
end
|
207
212
|
|
208
|
-
desc "
|
213
|
+
desc "Login Google Data API."
|
209
214
|
task :login do
|
210
215
|
exporter = GDataExporter.new
|
211
216
|
exporter.login
|
212
217
|
end
|
213
218
|
|
214
|
-
desc "
|
219
|
+
desc "List all Google Spreadsheets."
|
215
220
|
task :list do
|
216
221
|
exporter = GDataExporter.new
|
217
222
|
exporter.list
|
218
223
|
end
|
219
224
|
|
220
|
-
desc "
|
225
|
+
desc "Export Google Spreadsheets as CSV."
|
221
226
|
task :export do
|
222
227
|
exporter = GDataExporter.new
|
223
228
|
exporter.export
|
data/project/rake/_smc/Rakefile
CHANGED
@@ -1,12 +1,5 @@
|
|
1
|
-
Dir.chdir(File.dirname(__FILE__) + "/..")
|
2
|
-
|
3
1
|
require 'rubygems'
|
4
2
|
require 'smallcage'
|
5
3
|
|
4
|
+
Dir.chdir(File.dirname(__FILE__) + "/..")
|
6
5
|
FileList["_smc/rakelib/*.rake"].each {|f| load f }
|
7
|
-
|
8
|
-
task :default => :smcupdate
|
9
|
-
|
10
|
-
task :smcupdate do
|
11
|
-
system "smc update"
|
12
|
-
end
|
data/smallcage.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{smallcage}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["SAITO Toshihiro", "gommmmmm", "KOSEKI Kengo"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-24}
|
13
13
|
s.default_executable = %q{smc}
|
14
14
|
s.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.}
|
15
15
|
s.email = %q{smallcage@googlegroups.com}
|
@@ -66,6 +66,7 @@ Gem::Specification.new do |s|
|
|
66
66
|
"project/nkf/_smc/helpers/nkf_helper.rb",
|
67
67
|
"project/rake/_smc/Rakefile",
|
68
68
|
"project/rake/_smc/rakelib/csv.rake",
|
69
|
+
"project/rake/_smc/rakelib/default.rake",
|
69
70
|
"project/rake/_smc/rakelib/svn.rake",
|
70
71
|
"project/redcloth/_smc/helpers/red_cloth_helper.rb",
|
71
72
|
"project/redcloth/_smc/templates/textile.rhtml",
|
@@ -148,7 +149,7 @@ Gem::Specification.new do |s|
|
|
148
149
|
s.rdoc_options = ["--charset=UTF-8"]
|
149
150
|
s.require_paths = ["lib"]
|
150
151
|
s.rubygems_version = %q{1.3.5}
|
151
|
-
s.summary = %q{simple website generator}
|
152
|
+
s.summary = %q{a simple website generator}
|
152
153
|
s.test_files = [
|
153
154
|
"spec/document_path_spec.rb",
|
154
155
|
"spec/export_spec.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smallcage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SAITO Toshihiro
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-11-
|
14
|
+
date: 2009-11-24 00:00:00 +09:00
|
15
15
|
default_executable: smc
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- project/nkf/_smc/helpers/nkf_helper.rb
|
82
82
|
- project/rake/_smc/Rakefile
|
83
83
|
- project/rake/_smc/rakelib/csv.rake
|
84
|
+
- project/rake/_smc/rakelib/default.rake
|
84
85
|
- project/rake/_smc/rakelib/svn.rake
|
85
86
|
- project/redcloth/_smc/helpers/red_cloth_helper.rb
|
86
87
|
- project/redcloth/_smc/templates/textile.rhtml
|
@@ -185,7 +186,7 @@ rubyforge_project:
|
|
185
186
|
rubygems_version: 1.3.5
|
186
187
|
signing_key:
|
187
188
|
specification_version: 3
|
188
|
-
summary: simple website generator
|
189
|
+
summary: a simple website generator
|
189
190
|
test_files:
|
190
191
|
- spec/document_path_spec.rb
|
191
192
|
- spec/export_spec.rb
|