hx 0.3.2
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/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +7 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/bin/hx +3 -0
- data/lib/hx.rb +749 -0
- data/lib/hx/commandline.rb +161 -0
- data/spec/cache_spec.rb +31 -0
- data/spec/hx_dummy.rb +0 -0
- data/spec/hx_dummy2.rb +0 -0
- data/spec/nullsource_spec.rb +25 -0
- data/spec/overlay_spec.rb +40 -0
- data/spec/pathfilter_spec.rb +45 -0
- data/spec/pathops_spec.rb +72 -0
- data/spec/site_spec.rb +65 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +33 -0
- metadata +92 -0
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'hx'
|
4
|
+
require 'ostruct'
|
5
|
+
require 'spec'
|
6
|
+
require 'spec/autorun'
|
7
|
+
|
8
|
+
class FakeSource
|
9
|
+
include Hx::Source
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@entries = {}
|
13
|
+
end
|
14
|
+
|
15
|
+
def add_entry(path, content, metadata={})
|
16
|
+
entry = OpenStruct.new(metadata)
|
17
|
+
entry.content = content
|
18
|
+
@entries[path] = entry
|
19
|
+
end
|
20
|
+
|
21
|
+
def each_entry
|
22
|
+
@entries.each { |path, entry| yield path, entry }
|
23
|
+
self
|
24
|
+
end
|
25
|
+
|
26
|
+
def get_entry(path)
|
27
|
+
@entries[path]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
Spec::Runner.configure do |config|
|
32
|
+
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hx
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- MenTaLguY
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-02-06 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.2.9
|
24
|
+
version:
|
25
|
+
description: A miniature site generator.
|
26
|
+
email: mental@rydia.net
|
27
|
+
executables:
|
28
|
+
- hx
|
29
|
+
- hx
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files:
|
33
|
+
- LICENSE
|
34
|
+
- README.rdoc
|
35
|
+
files:
|
36
|
+
- .document
|
37
|
+
- .gitignore
|
38
|
+
- LICENSE
|
39
|
+
- README.rdoc
|
40
|
+
- Rakefile
|
41
|
+
- VERSION
|
42
|
+
- bin/hx
|
43
|
+
- lib/hx.rb
|
44
|
+
- lib/hx/commandline.rb
|
45
|
+
- spec/cache_spec.rb
|
46
|
+
- spec/hx_dummy.rb
|
47
|
+
- spec/hx_dummy2.rb
|
48
|
+
- spec/nullsource_spec.rb
|
49
|
+
- spec/overlay_spec.rb
|
50
|
+
- spec/pathfilter_spec.rb
|
51
|
+
- spec/pathops_spec.rb
|
52
|
+
- spec/site_spec.rb
|
53
|
+
- spec/spec.opts
|
54
|
+
- spec/spec_helper.rb
|
55
|
+
has_rdoc: true
|
56
|
+
homepage: http://github.com/mental/hx
|
57
|
+
licenses: []
|
58
|
+
|
59
|
+
post_install_message:
|
60
|
+
rdoc_options:
|
61
|
+
- --charset=UTF-8
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: "0"
|
69
|
+
version:
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: "0"
|
75
|
+
version:
|
76
|
+
requirements: []
|
77
|
+
|
78
|
+
rubyforge_project:
|
79
|
+
rubygems_version: 1.3.5
|
80
|
+
signing_key:
|
81
|
+
specification_version: 3
|
82
|
+
summary: A miniature site generator.
|
83
|
+
test_files:
|
84
|
+
- spec/spec_helper.rb
|
85
|
+
- spec/cache_spec.rb
|
86
|
+
- spec/hx_dummy.rb
|
87
|
+
- spec/pathfilter_spec.rb
|
88
|
+
- spec/nullsource_spec.rb
|
89
|
+
- spec/site_spec.rb
|
90
|
+
- spec/hx_dummy2.rb
|
91
|
+
- spec/overlay_spec.rb
|
92
|
+
- spec/pathops_spec.rb
|