smallcage 0.2.3 → 0.2.4

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f24d43ad677982a42a7f5907c8546df0cb653642
4
+ data.tar.gz: 7f9356084a5e6a3c4e68883e3be78ba7374a6c39
5
+ SHA512:
6
+ metadata.gz: dc9e6a097c1156d80cdbfb07950a4d3f7811f9255ce2b366aef604fbf2065a5483979498d4fbc21716aa067df124a2eca2daeb5f99af214d49403f820522ad41
7
+ data.tar.gz: 4798d0500f6281ebc18a0a6ac0f1af91adb03971c785ed759fa57b7526bea722775c0e75c8179e793f1b904f038aabc9f63108360add07cc25c0c5779692d75c
data/.gitignore CHANGED
@@ -3,7 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
6
+ .ruby-version
7
7
  InstalledFiles
8
8
  _yardoc
9
9
  coverage
data/Gemfile CHANGED
@@ -1,7 +1,10 @@
1
1
  source "https://rubygems.org"
2
2
 
3
+ gem 'syck', :platforms => [:ruby_20]
4
+
3
5
  group :test do
4
6
  gem 'rake'
5
7
  gem 'rspec'
8
+ gem 'rcov', :platforms => :ruby_18, :require => false
9
+ gem 'simplecov', :platforms => [:ruby_19, :ruby_20], :require => false
6
10
  end
7
-
data/Gemfile.lock ADDED
@@ -0,0 +1,32 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.2.5)
5
+ docile (1.1.1)
6
+ multi_json (1.8.2)
7
+ rake (10.1.1)
8
+ rcov (1.0.0)
9
+ rspec (2.14.1)
10
+ rspec-core (~> 2.14.0)
11
+ rspec-expectations (~> 2.14.0)
12
+ rspec-mocks (~> 2.14.0)
13
+ rspec-core (2.14.7)
14
+ rspec-expectations (2.14.4)
15
+ diff-lcs (>= 1.1.3, < 2.0)
16
+ rspec-mocks (2.14.4)
17
+ simplecov (0.8.2)
18
+ docile (~> 1.1.0)
19
+ multi_json
20
+ simplecov-html (~> 0.8.0)
21
+ simplecov-html (0.8.0)
22
+ syck (1.0.1)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ rake
29
+ rcov
30
+ rspec
31
+ simplecov
32
+ syck
data/History.rdoc CHANGED
@@ -1,5 +1,10 @@
1
1
  = History
2
2
 
3
+ == 0.2.4 2014-01-06
4
+
5
+ * install syck gem only when the Ruby version is 2.0.0 or above.
6
+ * add require 'syck' to support 2.0.0.
7
+
3
8
  == 0.2.3 2012-07-16
4
9
 
5
10
  * use syck YAML engine for Ruby 1.9.2 and above.
data/README.rdoc CHANGED
@@ -86,3 +86,4 @@ Start HTTP server.
86
86
 
87
87
  ...and access http://localhost:8080
88
88
 
89
+ {<img src="https://secure.travis-ci.org/bluemark/smallcage.png" />}[http://travis-ci.org/bluemark/smallcage]
data/Rakefile CHANGED
@@ -3,10 +3,17 @@
3
3
  require "bundler/gem_tasks"
4
4
  require "rspec/core/rake_task"
5
5
 
6
- RSpec::Core::RakeTask.new
6
+ RSpec::Core::RakeTask.new(:spec)
7
7
 
8
8
  desc "-> spec"
9
9
  task :default => :spec
10
10
 
11
11
  desc "-> spec"
12
12
  task :test => :spec
13
+
14
+
15
+ desc "Run all specs with rcov"
16
+ RSpec::Core::RakeTask.new(:rcov) do |t|
17
+ t.rcov = true
18
+ t.rcov_opts = %w{--exclude gems,spec,pkg}
19
+ end
data/ext/mkrf_conf.rb ADDED
@@ -0,0 +1,26 @@
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
data/lib/smallcage.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  $:.unshift File.dirname(__FILE__)
2
2
 
3
3
  require 'yaml'
4
+ require 'syck'
4
5
  require 'erb'
5
6
  require 'pathname'
6
7
  require 'open-uri'
@@ -1,3 +1,3 @@
1
1
  module SmallCage #:nodoc:
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
data/smallcage.gemspec CHANGED
@@ -14,4 +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.extensions = 'ext/mkrf_conf.rb'
17
18
  end
data/spec/spec_helper.rb CHANGED
@@ -0,0 +1,10 @@
1
+ if RUBY_VERSION >= "1.9.0"
2
+ require 'simplecov'
3
+ SimpleCov.start do
4
+ add_filter "spec"
5
+ end
6
+ end
7
+
8
+ # required to execute rcov rake task.
9
+ require "rspec/core"
10
+
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smallcage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
5
- prerelease:
4
+ version: 0.2.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - SAITO Toshihiro
@@ -11,7 +10,7 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-07-16 00:00:00.000000000 Z
13
+ date: 2014-01-06 00:00:00.000000000 Z
15
14
  dependencies: []
16
15
  description: SmallCage is a simple, but powerful website generator. It converts content
17
16
  and template files, which has common elements in a website, to a plain, static website.
@@ -21,7 +20,8 @@ email:
21
20
  - smallcage@googlegroups.com
22
21
  executables:
23
22
  - smc
24
- extensions: []
23
+ extensions:
24
+ - ext/mkrf_conf.rb
25
25
  extra_rdoc_files: []
26
26
  files:
27
27
  - .gitignore
@@ -34,6 +34,7 @@ files:
34
34
  - README.rdoc
35
35
  - Rakefile
36
36
  - bin/smc
37
+ - ext/mkrf_conf.rb
37
38
  - lib/smallcage.rb
38
39
  - lib/smallcage/application.rb
39
40
  - lib/smallcage/commands/auto.rb
@@ -157,30 +158,26 @@ files:
157
158
  - spec/uri_spec.rb
158
159
  homepage: http://www.smallcage.org
159
160
  licenses: []
161
+ metadata: {}
160
162
  post_install_message:
161
163
  rdoc_options: []
162
164
  require_paths:
163
165
  - lib
164
166
  required_ruby_version: !ruby/object:Gem::Requirement
165
- none: false
166
167
  requirements:
167
- - - ! '>='
168
+ - - '>='
168
169
  - !ruby/object:Gem::Version
169
170
  version: '0'
170
- segments:
171
- - 0
172
- hash: -3079300471336458698
173
171
  required_rubygems_version: !ruby/object:Gem::Requirement
174
- none: false
175
172
  requirements:
176
- - - ! '>='
173
+ - - '>='
177
174
  - !ruby/object:Gem::Version
178
175
  version: '0'
179
176
  requirements: []
180
177
  rubyforge_project:
181
- rubygems_version: 1.8.24
178
+ rubygems_version: 2.0.14
182
179
  signing_key:
183
- specification_version: 3
180
+ specification_version: 4
184
181
  summary: a simple website generator
185
182
  test_files:
186
183
  - spec/data/htdocs1/_dir.smc