utopia 1.9.11 → 2.0.0
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 +4 -4
- data/.codeclimate.yml +3 -2
- data/.gitignore +4 -1
- data/.rspec +1 -0
- data/.travis.yml +4 -0
- data/.yardopts +2 -0
- data/Gemfile +8 -1
- data/README.md +2 -2
- data/Rakefile +10 -10
- data/benchmarks/call_vs_check.rb +36 -0
- data/benchmarks/const_vs_hash.rb +33 -0
- data/documentation/Gemfile +5 -0
- data/documentation/Guardfile +20 -0
- data/documentation/config.ru +6 -13
- data/documentation/config/puma.rb +20 -0
- data/documentation/pages/_editor.xnode +64 -0
- data/documentation/pages/_heading.xnode +2 -2
- data/documentation/pages/_page.xnode +1 -2
- data/documentation/pages/errors/exception.xnode +3 -3
- data/documentation/pages/errors/file-not-found.xnode +3 -3
- data/documentation/pages/wiki/bower-integration/content.md +1 -1
- data/documentation/pages/wiki/content.md +6 -8
- data/documentation/pages/wiki/controller.rb +3 -3
- data/documentation/pages/wiki/edit.xnode +7 -19
- data/documentation/pages/wiki/middleware/content/content.md +4 -10
- data/documentation/pages/wiki/{controller → middleware/controller}/actions/content.md +0 -0
- data/documentation/pages/wiki/{controller → middleware/controller}/links.yaml +0 -0
- data/documentation/pages/wiki/{controller → middleware/controller}/rewrite/content.md +3 -3
- data/documentation/pages/wiki/show.xnode +4 -6
- data/documentation/pages/wiki/updating-utopia/content.md +55 -0
- data/documentation/pages/wiki/your-first-page/content.md +5 -3
- data/documentation/public/materials +1 -0
- data/lib/utopia.rb +3 -4
- data/lib/utopia/command.rb +4 -284
- data/lib/utopia/command/server.rb +115 -0
- data/lib/utopia/command/setup.rb +78 -0
- data/lib/utopia/command/site.rb +183 -0
- data/lib/utopia/content.rb +83 -59
- data/lib/utopia/content/{transaction.rb → document.rb} +116 -110
- data/lib/utopia/content/link.rb +7 -2
- data/lib/utopia/content/links.rb +2 -1
- data/lib/utopia/content/markup.rb +7 -2
- data/lib/utopia/{tags/deferred.rb → content/namespace.rb} +25 -6
- data/lib/utopia/content/node.rb +74 -76
- data/lib/utopia/content/response.rb +22 -3
- data/lib/utopia/content/tags.rb +66 -0
- data/lib/utopia/controller.rb +10 -18
- data/lib/utopia/controller/actions.rb +10 -0
- data/lib/utopia/controller/base.rb +2 -1
- data/lib/utopia/controller/respond.rb +1 -1
- data/lib/utopia/controller/rewrite.rb +8 -4
- data/lib/utopia/exceptions.rb +1 -0
- data/lib/utopia/exceptions/handler.rb +7 -2
- data/lib/utopia/exceptions/mailer.rb +33 -12
- data/lib/utopia/{tags/node.rb → extensions/array_split.rb} +11 -9
- data/lib/utopia/{tags/environment.rb → extensions/date_comparisons.rb} +24 -14
- data/lib/utopia/http.rb +2 -0
- data/lib/utopia/locale.rb +1 -0
- data/lib/utopia/localization.rb +37 -28
- data/lib/utopia/logger.rb +1 -0
- data/lib/utopia/logger/compact_formatter.rb +1 -0
- data/lib/utopia/middleware.rb +11 -1
- data/lib/utopia/path.rb +1 -0
- data/lib/utopia/path/matcher.rb +14 -2
- data/lib/utopia/redirection.rb +13 -16
- data/lib/utopia/session.rb +14 -6
- data/lib/utopia/setup.rb +3 -1
- data/lib/utopia/static.rb +11 -12
- data/lib/utopia/version.rb +1 -1
- data/setup/server/git/hooks/post-receive +0 -4
- data/setup/site/.gitignore +9 -0
- data/setup/site/.rspec +1 -0
- data/setup/site/Gemfile +4 -0
- data/setup/site/Guardfile +17 -0
- data/setup/site/Rakefile +2 -2
- data/setup/site/config.ru +5 -12
- data/setup/site/pages/_heading.xnode +2 -2
- data/setup/site/pages/_page.xnode +1 -1
- data/setup/site/pages/errors/exception.xnode +3 -3
- data/setup/site/pages/errors/file-not-found.xnode +3 -3
- data/setup/site/pages/welcome/index.xnode +3 -3
- data/setup/site/public/_static/site.css +4 -0
- data/setup/site/spec/spec_helper.rb +29 -0
- data/setup/site/tasks/deploy.rake +13 -0
- data/setup/site/tasks/development.rake +34 -0
- data/setup/site/tasks/environment.rake +17 -0
- data/spec/mock_node.rb +15 -0
- data/spec/spec_helper.rb +29 -0
- data/{lib/utopia/extensions/date.rb → spec/utopia/content/document_spec.rb} +31 -21
- data/spec/utopia/content/markup_spec.rb +2 -2
- data/spec/utopia/content/{tag_spec.rb → namespace_spec.rb} +17 -10
- data/spec/utopia/content/tags_spec.rb +80 -0
- data/spec/utopia/content_spec.rb +1 -1
- data/spec/utopia/content_spec.ru +1 -6
- data/spec/utopia/content_spec/_heading.xnode +1 -1
- data/spec/utopia/content_spec/content/test-partial.xnode +1 -1
- data/spec/utopia/content_spec/index.xnode +1 -1
- data/spec/utopia/controller/middleware_spec.ru +1 -3
- data/spec/utopia/controller/respond_spec.rb +2 -22
- data/spec/utopia/controller/respond_spec.ru +1 -5
- data/spec/utopia/controller/respond_spec/errors/file-not-found.xnode +7 -6
- data/spec/utopia/exceptions/handler_spec.ru +1 -2
- data/spec/utopia/exceptions/mailer_spec.ru +1 -2
- data/spec/utopia/extensions_spec.rb +2 -2
- data/spec/utopia/localization_spec.ru +1 -2
- data/spec/utopia/performance_spec.rb +2 -6
- data/spec/utopia/performance_spec/config.ru +5 -12
- data/spec/utopia/performance_spec/pages/_heading.xnode +2 -2
- data/spec/utopia/performance_spec/pages/_page.xnode +1 -1
- data/spec/utopia/performance_spec/pages/errors/exception.xnode +3 -3
- data/spec/utopia/performance_spec/pages/errors/file-not-found.xnode +3 -3
- data/spec/utopia/performance_spec/pages/welcome/index.xnode +3 -3
- data/spec/utopia/setup_spec.rb +79 -15
- data/utopia.gemspec +3 -3
- metadata +41 -27
- data/.simplecov +0 -9
- data/documentation/pages/welcome/index.xnode +0 -41
- data/lib/utopia/content/tag.rb +0 -90
- data/lib/utopia/extensions/array.rb +0 -29
- data/lib/utopia/tags/override.rb +0 -33
- data/setup/site/.simplecov +0 -9
- data/setup/site/tasks/test.rake +0 -10
- data/setup/site/tasks/utopia.rake +0 -41
- data/spec/utopia/controller/respond_spec/rewrite/controller.rb +0 -12
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<?r
|
|
2
|
-
<h1><content/></h1>
|
|
1
|
+
<?r document.attributes[:title] ||= content ?>
|
|
2
|
+
<h1><utopia:content/></h1>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<page class="front">
|
|
2
|
-
<heading>Welcome to Utopia</heading>
|
|
1
|
+
<content:page class="front">
|
|
2
|
+
<content:heading>Welcome to Utopia</content:heading>
|
|
3
3
|
|
|
4
4
|
<p><strong>Utopia is designed to simplify web development.</strong> Utopia is a fully featured stack for both content-heavy sites and dynamic web applications.</p>
|
|
5
5
|
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
<h2>Standards Based Localization</h2>
|
|
15
15
|
|
|
16
16
|
<p>Automatically sniff the user's desired language and provide content in the correct language.</p>
|
|
17
|
-
</page>
|
|
17
|
+
</content:page>
|
data/spec/utopia/setup_spec.rb
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
# THE SOFTWARE.
|
|
20
20
|
|
|
21
21
|
require 'fileutils'
|
|
22
|
+
require 'tmpdir'
|
|
23
|
+
require 'yaml'
|
|
22
24
|
|
|
23
25
|
RSpec.describe "utopia executable" do
|
|
24
26
|
let(:utopia) {File.expand_path("../../bin/utopia", __dir__)}
|
|
@@ -29,20 +31,44 @@ RSpec.describe "utopia executable" do
|
|
|
29
31
|
# We need to build a package to test deployment:
|
|
30
32
|
system("rake", "build") or abort("Could not build package for setup spec!")
|
|
31
33
|
|
|
32
|
-
ENV
|
|
33
|
-
ENV
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
ENV['DEPLOY_USER'] = 'http'
|
|
35
|
+
ENV['DEPLOY_GROUP'] = 'http'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
around(:each) do |example|
|
|
39
|
+
Bundler.with_clean_env do
|
|
40
|
+
# This allows the utopia command to load the correct library:
|
|
41
|
+
ENV['RUBYLIB'] = File.expand_path("../../lib", __dir__)
|
|
42
|
+
|
|
43
|
+
example.run
|
|
44
|
+
end
|
|
38
45
|
end
|
|
39
46
|
|
|
40
|
-
def
|
|
47
|
+
def sh_status(*args)
|
|
41
48
|
puts args.join(' ')
|
|
42
49
|
system(*args)
|
|
43
50
|
return $?
|
|
44
51
|
end
|
|
45
52
|
|
|
53
|
+
def sh_stdout(*args)
|
|
54
|
+
puts args.join(' ')
|
|
55
|
+
output = %x[#{args.join ' '}]
|
|
56
|
+
return output
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def git_config(name, value=nil)
|
|
60
|
+
unless value.nil?
|
|
61
|
+
return sh_status('git', 'config', name, value)
|
|
62
|
+
else
|
|
63
|
+
return sh_stdout('git', 'config', name).chomp
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def group_rw(path)
|
|
68
|
+
gaccess = File.stat(path).mode.to_s(8)[-2]
|
|
69
|
+
return gaccess == '6' || gaccess == '7'
|
|
70
|
+
end
|
|
71
|
+
|
|
46
72
|
def install_packages(dir)
|
|
47
73
|
# We do a bit of a hack here to ensure the package is available:
|
|
48
74
|
FileUtils.mkpath File.join(dir, "vendor/cache")
|
|
@@ -53,13 +79,13 @@ RSpec.describe "utopia executable" do
|
|
|
53
79
|
Dir.mktmpdir('test-site') do |dir|
|
|
54
80
|
install_packages(dir)
|
|
55
81
|
|
|
56
|
-
result =
|
|
82
|
+
result = sh_status(utopia, "--in", dir, "site", "create")
|
|
57
83
|
expect(result).to be == 0
|
|
58
84
|
|
|
59
|
-
expect(Dir.entries(dir)).to include(".bowerrc", ".git", "Gemfile", "Gemfile.lock", "README.md", "Rakefile", "config.ru", "lib", "pages", "public", "
|
|
85
|
+
expect(Dir.entries(dir)).to include(".bowerrc", ".git", "Gemfile", "Gemfile.lock", "README.md", "Rakefile", "config.ru", "lib", "pages", "public", "spec")
|
|
60
86
|
|
|
61
87
|
Dir.chdir(dir) do
|
|
62
|
-
result =
|
|
88
|
+
result = sh_status("rake", "test")
|
|
63
89
|
expect(result).to be == 0
|
|
64
90
|
end
|
|
65
91
|
end
|
|
@@ -69,16 +95,48 @@ RSpec.describe "utopia executable" do
|
|
|
69
95
|
Dir.mktmpdir('test-server') do |dir|
|
|
70
96
|
install_packages(dir)
|
|
71
97
|
|
|
72
|
-
result =
|
|
98
|
+
result = sh_status(utopia, "--in", dir, "server", "create")
|
|
73
99
|
expect(result).to be == 0
|
|
74
100
|
|
|
75
101
|
expect(Dir.entries(dir)).to include(".git")
|
|
76
102
|
|
|
103
|
+
# make sure git is set up properly
|
|
104
|
+
Dir.chdir(dir) do
|
|
105
|
+
expect(git_config 'core.sharedRepository').to be == '1'
|
|
106
|
+
expect(git_config 'receive.denyCurrentBranch').to be == 'ignore'
|
|
107
|
+
expect(git_config 'core.worktree').to be == dir
|
|
108
|
+
end
|
|
109
|
+
|
|
77
110
|
environment = YAML.load_file(File.join(dir, 'config/environment.yaml'))
|
|
78
111
|
expect(environment).to include('RACK_ENV', 'UTOPIA_SESSION_SECRET')
|
|
79
112
|
end
|
|
80
113
|
end
|
|
81
114
|
|
|
115
|
+
it "should not trash the sample server during update" do
|
|
116
|
+
Dir.mktmpdir('test-server') do |dir|
|
|
117
|
+
install_packages(dir)
|
|
118
|
+
|
|
119
|
+
result = sh_status(utopia, "--in", dir, "server", "create")
|
|
120
|
+
expect(result).to be == 0
|
|
121
|
+
|
|
122
|
+
Dir.chdir(dir) do
|
|
123
|
+
# make the repository look a bit like like it's an old one
|
|
124
|
+
git_config 'core.sharedRepository', 'false'
|
|
125
|
+
sh_status 'chmod', '-Rf', 'g-x', '.git'
|
|
126
|
+
sh_status 'rm', '-f', '.git/hooks/post-receive'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
result = sh_status(utopia, "--in", dir, "server", "update")
|
|
130
|
+
expect(result).to be == 0
|
|
131
|
+
|
|
132
|
+
# check a couple of files to make sure they have group read and write access
|
|
133
|
+
# after the update
|
|
134
|
+
Dir.glob(File.join(dir, '.git/**/*')).each do |path|
|
|
135
|
+
expect(group_rw path).to be == true
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
82
140
|
it "can generate sample site, server and push to the server" do
|
|
83
141
|
Dir.mktmpdir('test') do |dir|
|
|
84
142
|
site_path = File.join(dir, 'site')
|
|
@@ -87,18 +145,24 @@ RSpec.describe "utopia executable" do
|
|
|
87
145
|
|
|
88
146
|
server_path = File.join(dir, 'server')
|
|
89
147
|
|
|
90
|
-
result =
|
|
148
|
+
result = sh_status(utopia, "--in", site_path, "site", "create")
|
|
91
149
|
expect(result).to be == 0
|
|
92
150
|
|
|
93
|
-
result =
|
|
151
|
+
result = sh_status(utopia, "--in", server_path, "server", "create")
|
|
94
152
|
expect(result).to be == 0
|
|
95
153
|
|
|
96
154
|
Dir.chdir(site_path) do
|
|
97
|
-
result =
|
|
155
|
+
result = sh_status("git", "push", "--set-upstream", server_path, "master")
|
|
98
156
|
expect(result).to be == 0
|
|
99
157
|
end
|
|
100
158
|
|
|
101
|
-
|
|
159
|
+
files = %W[.bowerrc .git Gemfile Gemfile.lock README.md Rakefile config.ru lib pages public]
|
|
160
|
+
|
|
161
|
+
expect(Dir.entries(server_path)).to include(*files)
|
|
162
|
+
|
|
163
|
+
expect(File.executable? File.join(server_path, 'config.ru')).to be == true
|
|
164
|
+
|
|
165
|
+
puts File.stat(File.join(dir, 'server', '.git')).mode
|
|
102
166
|
end
|
|
103
167
|
end
|
|
104
168
|
end
|
data/utopia.gemspec
CHANGED
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
EOF
|
|
15
15
|
spec.summary = %q{Utopia is a framework for building dynamic content-driven websites.}
|
|
16
16
|
spec.homepage = 'https://github.com/ioquatix/utopia'
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
spec.files = `git ls-files`.split($/)
|
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
@@ -22,11 +22,11 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
|
|
23
23
|
spec.required_ruby_version = '~> 2.2'
|
|
24
24
|
|
|
25
|
-
spec.add_dependency 'trenni', '~>
|
|
25
|
+
spec.add_dependency 'trenni', '~> 3.0'
|
|
26
26
|
spec.add_dependency 'mime-types', '~> 3.0'
|
|
27
27
|
|
|
28
28
|
spec.add_dependency 'samovar', '~> 1.2'
|
|
29
|
-
spec.add_dependency 'rainbow', '~> 2.
|
|
29
|
+
spec.add_dependency 'rainbow', '~> 2.1'
|
|
30
30
|
|
|
31
31
|
spec.add_dependency 'rack', '~> 2.0'
|
|
32
32
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: utopia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: trenni
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '3.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '3.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: mime-types
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,14 +58,14 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '2.
|
|
61
|
+
version: '2.1'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '2.
|
|
68
|
+
version: '2.1'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rack
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -192,11 +192,13 @@ files:
|
|
|
192
192
|
- ".codeclimate.yml"
|
|
193
193
|
- ".gitignore"
|
|
194
194
|
- ".rspec"
|
|
195
|
-
- ".simplecov"
|
|
196
195
|
- ".travis.yml"
|
|
196
|
+
- ".yardopts"
|
|
197
197
|
- Gemfile
|
|
198
198
|
- README.md
|
|
199
199
|
- Rakefile
|
|
200
|
+
- benchmarks/call_vs_check.rb
|
|
201
|
+
- benchmarks/const_vs_hash.rb
|
|
200
202
|
- benchmarks/hash_vs_openstruct.rb
|
|
201
203
|
- benchmarks/string_vs_symbol.rb
|
|
202
204
|
- benchmarks/struct_vs_class.rb
|
|
@@ -204,30 +206,32 @@ files:
|
|
|
204
206
|
- documentation/.bowerrc
|
|
205
207
|
- documentation/.rspec
|
|
206
208
|
- documentation/Gemfile
|
|
209
|
+
- documentation/Guardfile
|
|
207
210
|
- documentation/Rakefile
|
|
208
211
|
- documentation/config.ru
|
|
209
212
|
- documentation/config/README.md
|
|
210
213
|
- documentation/config/environment.rb
|
|
214
|
+
- documentation/config/puma.rb
|
|
211
215
|
- documentation/lib/readme.txt
|
|
216
|
+
- documentation/pages/_editor.xnode
|
|
212
217
|
- documentation/pages/_heading.xnode
|
|
213
218
|
- documentation/pages/_page.xnode
|
|
214
219
|
- documentation/pages/errors/exception.xnode
|
|
215
220
|
- documentation/pages/errors/file-not-found.xnode
|
|
216
221
|
- documentation/pages/links.yaml
|
|
217
|
-
- documentation/pages/welcome/index.xnode
|
|
218
222
|
- documentation/pages/wiki/_listing.xnode
|
|
219
223
|
- documentation/pages/wiki/_navigation.xnode
|
|
220
224
|
- documentation/pages/wiki/bower-integration/content.md
|
|
221
225
|
- documentation/pages/wiki/content.md
|
|
222
226
|
- documentation/pages/wiki/controller.rb
|
|
223
|
-
- documentation/pages/wiki/controller/actions/content.md
|
|
224
|
-
- documentation/pages/wiki/controller/links.yaml
|
|
225
|
-
- documentation/pages/wiki/controller/rewrite/content.md
|
|
226
227
|
- documentation/pages/wiki/development-environment-setup/content.md
|
|
227
228
|
- documentation/pages/wiki/edit.xnode
|
|
228
229
|
- documentation/pages/wiki/links.yaml
|
|
229
230
|
- documentation/pages/wiki/middleware/content/content.md
|
|
231
|
+
- documentation/pages/wiki/middleware/controller/actions/content.md
|
|
230
232
|
- documentation/pages/wiki/middleware/controller/content.md
|
|
233
|
+
- documentation/pages/wiki/middleware/controller/links.yaml
|
|
234
|
+
- documentation/pages/wiki/middleware/controller/rewrite/content.md
|
|
231
235
|
- documentation/pages/wiki/middleware/localization/content.md
|
|
232
236
|
- documentation/pages/wiki/middleware/redirection/content.md
|
|
233
237
|
- documentation/pages/wiki/middleware/session/content.md
|
|
@@ -235,6 +239,7 @@ files:
|
|
|
235
239
|
- documentation/pages/wiki/server-setup/content.md
|
|
236
240
|
- documentation/pages/wiki/show.xnode
|
|
237
241
|
- documentation/pages/wiki/testing/content.md
|
|
242
|
+
- documentation/pages/wiki/updating-utopia/content.md
|
|
238
243
|
- documentation/pages/wiki/your-first-page/content.md
|
|
239
244
|
- documentation/public/_components/jquery-syntax/.sass-cache/040afc1428b286fb3c50151378b349a6149698d3/jquery.syntax.core.sassc
|
|
240
245
|
- documentation/public/_components/jquery-syntax/.sass-cache/098642d80a1682613dca2bba6fd0a3bc9fd2bf04/jquery.syntax.layout.editor.sassc
|
|
@@ -346,19 +351,24 @@ files:
|
|
|
346
351
|
- documentation/public/_components/jquery/jquery.slim.min.js
|
|
347
352
|
- documentation/public/_components/jquery/jquery.slim.min.map
|
|
348
353
|
- documentation/public/_static
|
|
354
|
+
- documentation/public/materials
|
|
349
355
|
- documentation/spec/website_context.rb
|
|
350
356
|
- documentation/spec/website_spec.rb
|
|
351
357
|
- documentation/tasks
|
|
352
358
|
- lib/utopia.rb
|
|
353
359
|
- lib/utopia/command.rb
|
|
360
|
+
- lib/utopia/command/server.rb
|
|
361
|
+
- lib/utopia/command/setup.rb
|
|
362
|
+
- lib/utopia/command/site.rb
|
|
354
363
|
- lib/utopia/content.rb
|
|
364
|
+
- lib/utopia/content/document.rb
|
|
355
365
|
- lib/utopia/content/link.rb
|
|
356
366
|
- lib/utopia/content/links.rb
|
|
357
367
|
- lib/utopia/content/markup.rb
|
|
368
|
+
- lib/utopia/content/namespace.rb
|
|
358
369
|
- lib/utopia/content/node.rb
|
|
359
370
|
- lib/utopia/content/response.rb
|
|
360
|
-
- lib/utopia/content/
|
|
361
|
-
- lib/utopia/content/transaction.rb
|
|
371
|
+
- lib/utopia/content/tags.rb
|
|
362
372
|
- lib/utopia/content_length.rb
|
|
363
373
|
- lib/utopia/controller.rb
|
|
364
374
|
- lib/utopia/controller/actions.rb
|
|
@@ -369,8 +379,8 @@ files:
|
|
|
369
379
|
- lib/utopia/exceptions.rb
|
|
370
380
|
- lib/utopia/exceptions/handler.rb
|
|
371
381
|
- lib/utopia/exceptions/mailer.rb
|
|
372
|
-
- lib/utopia/extensions/
|
|
373
|
-
- lib/utopia/extensions/
|
|
382
|
+
- lib/utopia/extensions/array_split.rb
|
|
383
|
+
- lib/utopia/extensions/date_comparisons.rb
|
|
374
384
|
- lib/utopia/http.rb
|
|
375
385
|
- lib/utopia/locale.rb
|
|
376
386
|
- lib/utopia/localization.rb
|
|
@@ -384,19 +394,16 @@ files:
|
|
|
384
394
|
- lib/utopia/session/lazy_hash.rb
|
|
385
395
|
- lib/utopia/setup.rb
|
|
386
396
|
- lib/utopia/static.rb
|
|
387
|
-
- lib/utopia/tags/deferred.rb
|
|
388
|
-
- lib/utopia/tags/environment.rb
|
|
389
|
-
- lib/utopia/tags/node.rb
|
|
390
|
-
- lib/utopia/tags/override.rb
|
|
391
397
|
- lib/utopia/version.rb
|
|
392
398
|
- materials/utopia.png
|
|
393
399
|
- materials/utopia.svg
|
|
394
400
|
- setup/.bowerrc
|
|
395
401
|
- setup/server/git/hooks/post-receive
|
|
396
402
|
- setup/site/.bowerrc
|
|
403
|
+
- setup/site/.gitignore
|
|
397
404
|
- setup/site/.rspec
|
|
398
|
-
- setup/site/.simplecov
|
|
399
405
|
- setup/site/Gemfile
|
|
406
|
+
- setup/site/Guardfile
|
|
400
407
|
- setup/site/README.md
|
|
401
408
|
- setup/site/Rakefile
|
|
402
409
|
- setup/site/config.ru
|
|
@@ -414,13 +421,17 @@ files:
|
|
|
414
421
|
- setup/site/public/_static/utopia-background.svg
|
|
415
422
|
- setup/site/public/_static/utopia.svg
|
|
416
423
|
- setup/site/public/readme.txt
|
|
424
|
+
- setup/site/spec/spec_helper.rb
|
|
417
425
|
- setup/site/spec/website_context.rb
|
|
418
426
|
- setup/site/spec/website_spec.rb
|
|
419
427
|
- setup/site/tasks/bower.rake
|
|
428
|
+
- setup/site/tasks/deploy.rake
|
|
429
|
+
- setup/site/tasks/development.rake
|
|
430
|
+
- setup/site/tasks/environment.rake
|
|
420
431
|
- setup/site/tasks/log.rake
|
|
421
|
-
-
|
|
422
|
-
-
|
|
423
|
-
-
|
|
432
|
+
- spec/mock_node.rb
|
|
433
|
+
- spec/spec_helper.rb
|
|
434
|
+
- spec/utopia/content/document_spec.rb
|
|
424
435
|
- spec/utopia/content/link_spec.rb
|
|
425
436
|
- spec/utopia/content/links/foo/index.xnode
|
|
426
437
|
- spec/utopia/content/links/foo/links.yaml
|
|
@@ -439,6 +450,7 @@ files:
|
|
|
439
450
|
- spec/utopia/content/localized/two.en.xnode
|
|
440
451
|
- spec/utopia/content/localized/two.zh.xnode
|
|
441
452
|
- spec/utopia/content/markup_spec.rb
|
|
453
|
+
- spec/utopia/content/namespace_spec.rb
|
|
442
454
|
- spec/utopia/content/node/ordered/first.xnode
|
|
443
455
|
- spec/utopia/content/node/ordered/index.xnode
|
|
444
456
|
- spec/utopia/content/node/ordered/links.yaml
|
|
@@ -448,7 +460,7 @@ files:
|
|
|
448
460
|
- spec/utopia/content/node/related/links.yaml
|
|
449
461
|
- spec/utopia/content/node_spec.rb
|
|
450
462
|
- spec/utopia/content/response_spec.rb
|
|
451
|
-
- spec/utopia/content/
|
|
463
|
+
- spec/utopia/content/tags_spec.rb
|
|
452
464
|
- spec/utopia/content_spec.rb
|
|
453
465
|
- spec/utopia/content_spec.ru
|
|
454
466
|
- spec/utopia/content_spec/_heading.xnode
|
|
@@ -472,7 +484,6 @@ files:
|
|
|
472
484
|
- spec/utopia/controller/respond_spec/api/controller.rb
|
|
473
485
|
- spec/utopia/controller/respond_spec/errors/controller.rb
|
|
474
486
|
- spec/utopia/controller/respond_spec/errors/file-not-found.xnode
|
|
475
|
-
- spec/utopia/controller/respond_spec/rewrite/controller.rb
|
|
476
487
|
- spec/utopia/controller/rewrite_spec.rb
|
|
477
488
|
- spec/utopia/controller/sequence_spec.rb
|
|
478
489
|
- spec/utopia/controller/variables_spec.rb
|
|
@@ -540,6 +551,9 @@ signing_key:
|
|
|
540
551
|
specification_version: 4
|
|
541
552
|
summary: Utopia is a framework for building dynamic content-driven websites.
|
|
542
553
|
test_files:
|
|
554
|
+
- spec/mock_node.rb
|
|
555
|
+
- spec/spec_helper.rb
|
|
556
|
+
- spec/utopia/content/document_spec.rb
|
|
543
557
|
- spec/utopia/content/link_spec.rb
|
|
544
558
|
- spec/utopia/content/links/foo/index.xnode
|
|
545
559
|
- spec/utopia/content/links/foo/links.yaml
|
|
@@ -558,6 +572,7 @@ test_files:
|
|
|
558
572
|
- spec/utopia/content/localized/two.en.xnode
|
|
559
573
|
- spec/utopia/content/localized/two.zh.xnode
|
|
560
574
|
- spec/utopia/content/markup_spec.rb
|
|
575
|
+
- spec/utopia/content/namespace_spec.rb
|
|
561
576
|
- spec/utopia/content/node/ordered/first.xnode
|
|
562
577
|
- spec/utopia/content/node/ordered/index.xnode
|
|
563
578
|
- spec/utopia/content/node/ordered/links.yaml
|
|
@@ -567,7 +582,7 @@ test_files:
|
|
|
567
582
|
- spec/utopia/content/node/related/links.yaml
|
|
568
583
|
- spec/utopia/content/node_spec.rb
|
|
569
584
|
- spec/utopia/content/response_spec.rb
|
|
570
|
-
- spec/utopia/content/
|
|
585
|
+
- spec/utopia/content/tags_spec.rb
|
|
571
586
|
- spec/utopia/content_spec.rb
|
|
572
587
|
- spec/utopia/content_spec.ru
|
|
573
588
|
- spec/utopia/content_spec/_heading.xnode
|
|
@@ -591,7 +606,6 @@ test_files:
|
|
|
591
606
|
- spec/utopia/controller/respond_spec/api/controller.rb
|
|
592
607
|
- spec/utopia/controller/respond_spec/errors/controller.rb
|
|
593
608
|
- spec/utopia/controller/respond_spec/errors/file-not-found.xnode
|
|
594
|
-
- spec/utopia/controller/respond_spec/rewrite/controller.rb
|
|
595
609
|
- spec/utopia/controller/rewrite_spec.rb
|
|
596
610
|
- spec/utopia/controller/sequence_spec.rb
|
|
597
611
|
- spec/utopia/controller/variables_spec.rb
|