rack-blogengine 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/MANIFEST +33 -19
- data/README.md +5 -4
- data/doc/Operator.html +236 -0
- data/doc/Rack.html +117 -0
- data/doc/Rack/Blogengine.html +419 -0
- data/doc/Rack/Blogengine/Application.html +278 -0
- data/doc/Rack/Blogengine/ApplicationRouter.html +413 -0
- data/doc/Rack/Blogengine/CommandLineInterface.html +991 -0
- data/doc/Rack/Blogengine/Document.html +680 -0
- data/doc/Rack/Blogengine/DocumentParser.html +1708 -0
- data/doc/_index.html +197 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +237 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +237 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +263 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/rack/blogengine/command_line_interface.rb +2 -2
- data/lib/rack/blogengine/version.rb +1 -1
- data/rack-blogengine.gemspec +2 -2
- metadata +48 -21
- metadata.gz.sig +0 -0
- data/.gitignore +0 -20
- data/.rubocop.yml +0 -2
- data/.travis.yml +0 -22
- data/Gemfile +0 -4
- data/Rakefile +0 -8
- data/checksum/rack-blogengine-1.0.6.gem.sha512 +0 -1
- data/task/build.rake +0 -4
- data/task/checksum.rake +0 -15
- data/task/default.rake +0 -5
- data/task/floodtest.rake +0 -33
- data/task/manifest.rake +0 -8
- data/task/test.rake +0 -19
- data/task/travis.rake +0 -5
- data/test/rack/blogengine/application_router_test.rb +0 -49
- data/test/rack/blogengine/application_test.rb +0 -41
- data/test/rack/blogengine/command_line_interface_test.rb +0 -70
- data/test/rack/blogengine/document_parser_test.rb +0 -70
- data/test/test_helper.rb +0 -68
@@ -0,0 +1,114 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Top Level Namespace
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!top-level-namespace.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Top Level Namespace</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Top Level Namespace
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</dl>
|
82
|
+
<div class="clear"></div>
|
83
|
+
|
84
|
+
<h2>Defined Under Namespace</h2>
|
85
|
+
<p class="children">
|
86
|
+
|
87
|
+
|
88
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Rack.html" title="Rack (module)">Rack</a></span>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Operator.html" title="Operator (class)">Operator</a></span>
|
93
|
+
|
94
|
+
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div id="footer">
|
108
|
+
Generated on Mon Apr 21 22:58:50 2014 by
|
109
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
+
0.8.7.4 (ruby-2.1.1).
|
111
|
+
</div>
|
112
|
+
|
113
|
+
</body>
|
114
|
+
</html>
|
@@ -16,7 +16,7 @@ module Rack
|
|
16
16
|
def method_missing(name, *args)
|
17
17
|
puts "Command #{name} not available"
|
18
18
|
print "Available Commands are: \n\n"
|
19
|
-
|
19
|
+
methods(false).each do |method|
|
20
20
|
print "\t #{method}\n" unless method == :method_missing # || method == :setup || method == :getConfig
|
21
21
|
end
|
22
22
|
print "\n"
|
@@ -28,7 +28,7 @@ module Rack
|
|
28
28
|
if target.empty?
|
29
29
|
print 'Specify a targetfolder!'
|
30
30
|
else
|
31
|
-
if Dir.
|
31
|
+
if Dir.exist?("#{target}")
|
32
32
|
config = get_config(target)
|
33
33
|
app = build_rack_app(target, config)
|
34
34
|
|
data/rack-blogengine.gemspec
CHANGED
@@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.post_install_message = 'Please report any issues at: ' \
|
17
17
|
'https://github.com/Benny1992/rack-blogengine/issues/new'
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
spec.cert_chain = ['certs/benny1992.pem']
|
20
|
+
spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
|
21
21
|
|
22
22
|
spec.files = File.read(File.expand_path('../MANIFEST', __FILE__)).split("\n")
|
23
23
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-blogengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benny1992
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRIwEAYDVQQDDAlyM3Fu
|
14
|
+
YmVubmkxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
15
|
+
bTAeFw0xNDA0MjExOTQzMTlaFw0xNTA0MjExOTQzMTlaMEAxEjAQBgNVBAMMCXIz
|
16
|
+
cW5iZW5uaTEVMBMGCgmSJomT8ixkARkWBWdtYWl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7B4tzcOuOVbNMqnlBaYaO8M64lJGfRv8
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: bundler
|
@@ -116,15 +138,10 @@ executables:
|
|
116
138
|
extensions: []
|
117
139
|
extra_rdoc_files: []
|
118
140
|
files:
|
119
|
-
- ".gitignore"
|
120
|
-
- ".rubocop.yml"
|
121
|
-
- ".travis.yml"
|
122
141
|
- ".yardopts"
|
123
|
-
- Gemfile
|
124
142
|
- LICENSE.txt
|
125
143
|
- MANIFEST
|
126
144
|
- README.md
|
127
|
-
- Rakefile
|
128
145
|
- assets/Gemfile
|
129
146
|
- assets/config.yml
|
130
147
|
- assets/content_error.content
|
@@ -137,7 +154,28 @@ files:
|
|
137
154
|
- assets/pygment.content
|
138
155
|
- assets/title_error.content
|
139
156
|
- bin/rack-blogengine
|
140
|
-
-
|
157
|
+
- doc/Operator.html
|
158
|
+
- doc/Rack.html
|
159
|
+
- doc/Rack/Blogengine.html
|
160
|
+
- doc/Rack/Blogengine/Application.html
|
161
|
+
- doc/Rack/Blogengine/ApplicationRouter.html
|
162
|
+
- doc/Rack/Blogengine/CommandLineInterface.html
|
163
|
+
- doc/Rack/Blogengine/Document.html
|
164
|
+
- doc/Rack/Blogengine/DocumentParser.html
|
165
|
+
- doc/_index.html
|
166
|
+
- doc/class_list.html
|
167
|
+
- doc/css/common.css
|
168
|
+
- doc/css/full_list.css
|
169
|
+
- doc/css/style.css
|
170
|
+
- doc/file.README.html
|
171
|
+
- doc/file_list.html
|
172
|
+
- doc/frames.html
|
173
|
+
- doc/index.html
|
174
|
+
- doc/js/app.js
|
175
|
+
- doc/js/full_list.js
|
176
|
+
- doc/js/jquery.js
|
177
|
+
- doc/method_list.html
|
178
|
+
- doc/top-level-namespace.html
|
141
179
|
- lib/rack/blogengine.rb
|
142
180
|
- lib/rack/blogengine/application.rb
|
143
181
|
- lib/rack/blogengine/application_router.rb
|
@@ -147,18 +185,6 @@ files:
|
|
147
185
|
- lib/rack/blogengine/operator.rb
|
148
186
|
- lib/rack/blogengine/version.rb
|
149
187
|
- rack-blogengine.gemspec
|
150
|
-
- task/build.rake
|
151
|
-
- task/checksum.rake
|
152
|
-
- task/default.rake
|
153
|
-
- task/floodtest.rake
|
154
|
-
- task/manifest.rake
|
155
|
-
- task/test.rake
|
156
|
-
- task/travis.rake
|
157
|
-
- test/rack/blogengine/application_router_test.rb
|
158
|
-
- test/rack/blogengine/application_test.rb
|
159
|
-
- test/rack/blogengine/command_line_interface_test.rb
|
160
|
-
- test/rack/blogengine/document_parser_test.rb
|
161
|
-
- test/test_helper.rb
|
162
188
|
homepage: https://github.com/Benny1992/rack-blogengine
|
163
189
|
licenses:
|
164
190
|
- MIT
|
@@ -184,3 +210,4 @@ signing_key:
|
|
184
210
|
specification_version: 4
|
185
211
|
summary: Blogengine based on rack applications
|
186
212
|
test_files: []
|
213
|
+
has_rdoc:
|
metadata.gz.sig
ADDED
Binary file
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
data/.travis.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
|
4
|
-
before_install:
|
5
|
-
- gem update --system
|
6
|
-
- gem --version
|
7
|
-
- gem install bundler
|
8
|
-
|
9
|
-
rvm:
|
10
|
-
- 2.0.0
|
11
|
-
- 2.1.0
|
12
|
-
- 2.1.1
|
13
|
-
- ruby-head
|
14
|
-
- jruby
|
15
|
-
- rbx
|
16
|
-
|
17
|
-
matrix:
|
18
|
-
allow_failures:
|
19
|
-
- rvm: jruby
|
20
|
-
- rvm: ruby-head
|
21
|
-
|
22
|
-
script: "env COVERAGE=true bundle exec rake"
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2faadb7c2fdbaa1088e4d13833884277e54dd14ffc4925edbbe9c84562c754f0c50753744d773ffd48c7268f82c08fc3d6e37535f5b547b9045376f8930cb889
|
data/task/build.rake
DELETED
data/task/checksum.rake
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'digest/sha2'
|
2
|
-
|
3
|
-
desc 'Creates a SHA512 checksum of the current version'
|
4
|
-
task :checksum do
|
5
|
-
checksums = File.expand_path('../../checksum', __FILE__)
|
6
|
-
name = "#{GEMSPEC.name}-#{GEMSPEC.version}.gem"
|
7
|
-
path = File.join(File.expand_path('../../pkg', __FILE__), name)
|
8
|
-
|
9
|
-
checksum_name = File.basename(path) + '.sha512'
|
10
|
-
checksum = Digest::SHA512.new.hexdigest(File.read(path))
|
11
|
-
|
12
|
-
File.open(File.join(checksums, checksum_name), 'w') do |handle|
|
13
|
-
handle.write(checksum)
|
14
|
-
end
|
15
|
-
end
|
data/task/default.rake
DELETED
data/task/floodtest.rake
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
test_runs = if ENV['TESTS']
|
2
|
-
Integer(ENV['TESTS'])
|
3
|
-
else
|
4
|
-
30
|
5
|
-
end
|
6
|
-
|
7
|
-
namespace :floodtest do
|
8
|
-
task :unit do
|
9
|
-
desc 'Run Unit floodtest (default 30 tests, configurable via ENV["TESTS"])'
|
10
|
-
1.upto(test_runs) do |i|
|
11
|
-
puts "Running test #{i} of #{test_runs}"
|
12
|
-
exit(-1) if !system('bundle exec rake test:unit')
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
# task :spec do
|
17
|
-
# desc 'Run Spec floodtest (default 30 tests, configurable via ENV["TESTS"])'
|
18
|
-
# 1.upto(test_runs) do |i|
|
19
|
-
# puts "Running test #{i} of #{test_runs}"
|
20
|
-
# exit(-1) if !system('bundle exec rake test:spec ')
|
21
|
-
# end
|
22
|
-
# end
|
23
|
-
|
24
|
-
# task :feature do
|
25
|
-
# desc 'Run Feature floodtest (default 30 tests, configurable via ENV["TESTS"])'
|
26
|
-
# 1.upto(test_runs) do |i|
|
27
|
-
# puts "Running test #{i} of #{test_runs}"
|
28
|
-
# exit(-1) if !system('bundle exec rake test:feature')
|
29
|
-
# end
|
30
|
-
# end
|
31
|
-
end
|
32
|
-
|
33
|
-
|
data/task/manifest.rake
DELETED
data/task/test.rake
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
namespace :test do
|
2
|
-
Rake::TestTask.new(:unit) do |t|
|
3
|
-
t.libs << "test" << "bin" << "ext" << "controllers" << "helpers" << "models"
|
4
|
-
t.test_files = FileList['test/**/*_test.rb']
|
5
|
-
t.verbose = true
|
6
|
-
end
|
7
|
-
|
8
|
-
# Rake::TestTask.new(:spec) do |t|
|
9
|
-
# t.libs << "spec" << "bin" << "ext" << "controllers" << "helpers" << "models"
|
10
|
-
# t.test_files = FileList['spec/**/*_spec.rb']
|
11
|
-
# t.verbose = true
|
12
|
-
# end
|
13
|
-
|
14
|
-
# Cucumber::Rake::Task.new(:feature) do |t|
|
15
|
-
# t.cucumber_opts = "features --format pretty"
|
16
|
-
# end
|
17
|
-
end
|
18
|
-
|
19
|
-
|
data/task/travis.rake
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'test_helper.rb'
|
2
|
-
|
3
|
-
#
|
4
|
-
# TestClass for ApplicationRouter
|
5
|
-
#
|
6
|
-
# @author [benny]
|
7
|
-
#
|
8
|
-
class ApplicationRouterTest < MiniTest::Unit::TestCase
|
9
|
-
def setup
|
10
|
-
# fake document
|
11
|
-
documents = [{ html: '<!DOCTYPE html><body><h2>This is the Index Page</h2></body></html>',
|
12
|
-
path: '/' }]
|
13
|
-
|
14
|
-
env_fail = { 'PATH_INFO' => '/fail' }
|
15
|
-
request_fail = Rack::Request.new(env_fail)
|
16
|
-
|
17
|
-
env_success = { 'PATH_INFO' => '/' }
|
18
|
-
request_success = Rack::Request.new(env_success)
|
19
|
-
|
20
|
-
@route_success = Rack::Blogengine::ApplicationRouter.map_route(request_success, documents)
|
21
|
-
@route_fail = Rack::Blogengine::ApplicationRouter.map_route(request_fail, documents)
|
22
|
-
end
|
23
|
-
|
24
|
-
def test_map_route_general
|
25
|
-
assert_instance_of(Hash, @route_success, 'Route should be a hash')
|
26
|
-
|
27
|
-
# Check Hash keys
|
28
|
-
assert(@route_success.key?('path'), 'Route should contain a path')
|
29
|
-
assert(@route_success.key?('response'), 'Route should contain a response')
|
30
|
-
|
31
|
-
# Check path
|
32
|
-
assert_instance_of(String, @route_success['path'], 'Path should be a string')
|
33
|
-
|
34
|
-
# Check response
|
35
|
-
assert_instance_of(Rack::Response, @route_success['response'], 'Response should be an Array')
|
36
|
-
assert_instance_of(Fixnum, @route_success['response'].status, 'Status should be a Fixnum')
|
37
|
-
end
|
38
|
-
|
39
|
-
def test_map_route_on_success
|
40
|
-
assert_equal(200, @route_success['response'].status, 'Status should be 200')
|
41
|
-
end
|
42
|
-
|
43
|
-
def test_map_route_on_fail
|
44
|
-
assert_equal(404, @route_fail['response'].status, 'Status should be 404')
|
45
|
-
end
|
46
|
-
|
47
|
-
def teardown
|
48
|
-
end
|
49
|
-
end
|