smallcage 0.2.5 → 0.2.6
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.
- checksums.yaml +7 -0
- data/History.rdoc +5 -0
- data/README.rdoc +2 -2
- data/lib/smallcage.rb +11 -1
- data/lib/smallcage/version.rb +1 -1
- data/smallcage.gemspec +1 -1
- metadata +33 -48
- data/ext/mkrf_conf.rb +0 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6aceb5682ca0ccf02101888c9b0352d1e90cf345
|
4
|
+
data.tar.gz: df68dc9ff5ef3d48f77afb617308565f32c673a7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a6e0f5020364e558e6e6be8ec961ea2a54ab578b084e6890b50356d935d22484ece6e76a29843f5c8b57a2824e284954243046107aea834b05098ef0a0466e22
|
7
|
+
data.tar.gz: 6a1390f2865a837a1628aadd265e3046eae2b7f3baf7c1e0e6f2a1db276a549fc2b76f04723a5c421b84f19972e1edd48b5f9d8e392246fb4e0082e3725c9783
|
data/History.rdoc
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
= History
|
2
2
|
|
3
|
+
== 0.2.6 2014-03-14
|
4
|
+
|
5
|
+
* show message to ask install Syck for Ruby 2.0.
|
6
|
+
* remove mkrf_conf.rb. It cause a problem when installed by Bundler.
|
7
|
+
|
3
8
|
== 0.2.5 2014-03-08
|
4
9
|
|
5
10
|
* fix ignoring LoadError bug. When LoadError occurred in the helper modules, smc finished without any message.
|
data/README.rdoc
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
= SmallCage -- a simple website generator
|
2
2
|
|
3
|
+
{<img src="https://travis-ci.org/saito/smallcage.png" alt="Build Status" />}[https://travis-ci.org/saito/smallcage]
|
4
|
+
|
3
5
|
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
6
|
|
5
7
|
With SmallCage, you can
|
@@ -85,5 +87,3 @@ Start HTTP server.
|
|
85
87
|
$ smc server . 8080
|
86
88
|
|
87
89
|
...and access http://localhost:8080
|
88
|
-
|
89
|
-
{<img src="https://secure.travis-ci.org/bluemark/smallcage.png" />}[http://travis-ci.org/bluemark/smallcage]
|
data/lib/smallcage.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
$:.unshift(File.dirname( __FILE__)) if __FILE__ == $0
|
2
2
|
|
3
3
|
require 'yaml'
|
4
|
-
require 'syck'
|
5
4
|
require 'erb'
|
6
5
|
require 'pathname'
|
7
6
|
require 'open-uri'
|
@@ -9,6 +8,17 @@ require 'fileutils'
|
|
9
8
|
require 'delegate'
|
10
9
|
|
11
10
|
require 'smallcage/version'
|
11
|
+
|
12
|
+
begin
|
13
|
+
require 'syck'
|
14
|
+
rescue LoadError => e
|
15
|
+
puts "SmallCage (#{ SmallCage::VERSION }) requires syck! Please install syck."
|
16
|
+
puts
|
17
|
+
puts ' $ gem install syck'
|
18
|
+
puts
|
19
|
+
exit 1
|
20
|
+
end
|
21
|
+
|
12
22
|
require 'smallcage/misc'
|
13
23
|
require 'smallcage/loader'
|
14
24
|
require 'smallcage/anonymous_loader'
|
data/lib/smallcage/version.rb
CHANGED
data/smallcage.gemspec
CHANGED
@@ -14,5 +14,5 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = "smallcage"
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = SmallCage::VERSION
|
17
|
-
gem.
|
17
|
+
gem.post_install_message = "\nSmallCage: Please install syck if you are using Ruby 2.0 or above.\n\n $ gem install syck\n\n"
|
18
18
|
end
|
metadata
CHANGED
@@ -1,36 +1,28 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: smallcage
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 5
|
10
|
-
version: 0.2.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.6
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- SAITO Toshihiro
|
14
8
|
- gommmmmm
|
15
9
|
- KOSEKI Kengo
|
16
10
|
autorequire:
|
17
11
|
bindir: bin
|
18
12
|
cert_chain: []
|
19
|
-
|
20
|
-
date: 2014-03-08 00:00:00 +09:00
|
21
|
-
default_executable:
|
13
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
22
14
|
dependencies: []
|
23
|
-
|
24
|
-
|
25
|
-
|
15
|
+
description: SmallCage is a simple, but powerful website generator. It converts content
|
16
|
+
and template files, which has common elements in a website, to a plain, static website.
|
17
|
+
No database, no application container, and no repeat in many pages is needed. You
|
18
|
+
can keep your site well with very little work.
|
19
|
+
email:
|
26
20
|
- smallcage@googlegroups.com
|
27
|
-
executables:
|
21
|
+
executables:
|
28
22
|
- smc
|
29
|
-
extensions:
|
30
|
-
- ext/mkrf_conf.rb
|
23
|
+
extensions: []
|
31
24
|
extra_rdoc_files: []
|
32
|
-
|
33
|
-
files:
|
25
|
+
files:
|
34
26
|
- .gitignore
|
35
27
|
- .rspec
|
36
28
|
- .rubocop.yml
|
@@ -42,7 +34,6 @@ files:
|
|
42
34
|
- README.rdoc
|
43
35
|
- Rakefile
|
44
36
|
- bin/smc
|
45
|
-
- ext/mkrf_conf.rb
|
46
37
|
- lib/smallcage.rb
|
47
38
|
- lib/smallcage/anonymous_loader.rb
|
48
39
|
- lib/smallcage/application.rb
|
@@ -170,41 +161,35 @@ files:
|
|
170
161
|
- spec/lib/smallcage/update_list_spec.rb
|
171
162
|
- spec/lib/smallcage_spec.rb
|
172
163
|
- spec/spec_helper.rb
|
173
|
-
has_rdoc: true
|
174
164
|
homepage: http://www.smallcage.org
|
175
165
|
licenses: []
|
166
|
+
metadata: {}
|
167
|
+
post_install_message: |2+
|
176
168
|
|
177
|
-
|
178
|
-
rdoc_options: []
|
169
|
+
SmallCage: Please install syck if you are using Ruby 2.0 or above.
|
179
170
|
|
180
|
-
|
171
|
+
$ gem install syck
|
172
|
+
|
173
|
+
rdoc_options: []
|
174
|
+
require_paths:
|
181
175
|
- lib
|
182
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
none: false
|
193
|
-
requirements:
|
194
|
-
- - ">="
|
195
|
-
- !ruby/object:Gem::Version
|
196
|
-
hash: 3
|
197
|
-
segments:
|
198
|
-
- 0
|
199
|
-
version: "0"
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - '>='
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0'
|
200
186
|
requirements: []
|
201
|
-
|
202
187
|
rubyforge_project:
|
203
|
-
rubygems_version:
|
188
|
+
rubygems_version: 2.0.14
|
204
189
|
signing_key:
|
205
|
-
specification_version:
|
190
|
+
specification_version: 4
|
206
191
|
summary: a simple website generator
|
207
|
-
test_files:
|
192
|
+
test_files:
|
208
193
|
- spec/data/anonymous_loader/1/error1.rb
|
209
194
|
- spec/data/anonymous_loader/1/error2.rb
|
210
195
|
- spec/data/anonymous_loader/1/test1.rb
|
data/ext/mkrf_conf.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# Install syck gem only when the RUBY_VERSION >= "2.0"
|
2
|
-
# http://stackoverflow.com/questions/4596606/rubygems-how-do-i-add-platform-specific-dependency
|
3
|
-
# http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using
|
4
|
-
|
5
|
-
require 'rubygems'
|
6
|
-
require 'rubygems/command.rb'
|
7
|
-
require 'rubygems/dependency_installer.rb'
|
8
|
-
|
9
|
-
begin
|
10
|
-
Gem::Command.build_args = ARGV
|
11
|
-
rescue NoMethodError
|
12
|
-
end
|
13
|
-
|
14
|
-
inst = Gem::DependencyInstaller.new
|
15
|
-
begin
|
16
|
-
if RUBY_VERSION >= '2.0'
|
17
|
-
inst.install 'syck'
|
18
|
-
end
|
19
|
-
rescue
|
20
|
-
exit(1)
|
21
|
-
end
|
22
|
-
|
23
|
-
# create dummy rakefile to indicate success
|
24
|
-
f = File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w')
|
25
|
-
f.write("task :default\n")
|
26
|
-
f.close
|