utopia 1.6.1 → 1.6.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.
- checksums.yaml +4 -4
- data/lib/utopia/content/markup.rb +1 -1
- data/lib/utopia/version.rb +1 -1
- data/setup/server/git/hooks/post-receive +1 -1
- data/spec/utopia/content_spec.rb +9 -3
- data/spec/utopia/content_spec.ru +1 -1
- data/spec/utopia/{pages → content_spec}/_heading.xnode +0 -0
- data/spec/utopia/{pages → content_spec}/content/_show-value.xnode +0 -0
- data/spec/utopia/{pages → content_spec}/content/links.yaml +0 -0
- data/spec/utopia/{pages → content_spec}/content/test-partial.xnode +0 -0
- data/spec/utopia/{pages → content_spec}/index.xnode +0 -0
- data/spec/utopia/{pages → content_spec}/node/index.xnode +0 -0
- data/spec/utopia/{pages → content_spec}/test.txt +0 -0
- data/spec/utopia/content_spec/test.xnode +10 -0
- data/spec/utopia/middleware_spec.rb +1 -1
- metadata +19 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce081d5385f3729a098a961a9c99989b8c4a1bf3
|
4
|
+
data.tar.gz: 5d274fcfa32e3c9fc20bc97a0205fb572771f3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c49d04c98f7777bd1b0626da669b406662abdf360ff274a8ca4f5bcd2c9bfc42cd698137b498af63aa80036504309b4751a55cc3f00f18e6ce369dde6cfc6934
|
7
|
+
data.tar.gz: f6e9f1335e46834dc7206abdcedd717433cd160311b93283045309f19ad111076495c6077967880bbeeffb46c62b7976769df65f407eb2047cc47df87be688db
|
data/lib/utopia/version.rb
CHANGED
@@ -67,7 +67,7 @@ Dir.chdir(GIT_WORK_TREE) do
|
|
67
67
|
sudo %W{git submodule update -i}
|
68
68
|
|
69
69
|
if File.exist? 'Gemfile'
|
70
|
-
sudo %W{bundle install --deployment --
|
70
|
+
sudo %W{bundle install --deployment --jobs=4 --retry=2 --quiet}
|
71
71
|
end
|
72
72
|
|
73
73
|
if File.exist? 'Rakefile'
|
data/spec/utopia/content_spec.rb
CHANGED
@@ -27,10 +27,16 @@ module Utopia::ContentSpec
|
|
27
27
|
|
28
28
|
let(:app) {Rack::Builder.parse_file(File.expand_path('content_spec.ru', __dir__)).first}
|
29
29
|
|
30
|
+
it "should generate identical html" do
|
31
|
+
get "/test"
|
32
|
+
|
33
|
+
expect(last_response.body).to be == File.read(File.expand_path('content_spec/test.xnode', __dir__))
|
34
|
+
end
|
35
|
+
|
30
36
|
it "should get a local path" do
|
31
37
|
get '/node/index'
|
32
38
|
|
33
|
-
expect(last_response.body).to be == File.expand_path('
|
39
|
+
expect(last_response.body).to be == File.expand_path('content_spec/node', __dir__)
|
34
40
|
end
|
35
41
|
|
36
42
|
it "should successfully redirect to the index page" do
|
@@ -66,7 +72,7 @@ module Utopia::ContentSpec
|
|
66
72
|
end
|
67
73
|
|
68
74
|
describe Utopia::Content do
|
69
|
-
let(:root) {File.expand_path(
|
75
|
+
let(:root) {File.expand_path('content_spec', __dir__)}
|
70
76
|
let(:content) {Utopia::Content.new(lambda{}, root: root, cache_templates: true)}
|
71
77
|
|
72
78
|
it "should parse file and expand variables" do
|
@@ -80,7 +86,7 @@ module Utopia::ContentSpec
|
|
80
86
|
end
|
81
87
|
|
82
88
|
it "should fetch template and use cache" do
|
83
|
-
node_path = File.expand_path('../
|
89
|
+
node_path = File.expand_path('../content_spec/index.xnode', __FILE__)
|
84
90
|
|
85
91
|
template = content.fetch_template(node_path)
|
86
92
|
|
data/spec/utopia/content_spec.ru
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,7 +23,7 @@ require 'utopia/middleware'
|
|
23
23
|
module Utopia::MiddlewareSpec
|
24
24
|
describe Utopia do
|
25
25
|
it "should give a default path relative to the cwd" do
|
26
|
-
expect(File).to exist(Utopia::default_root('
|
26
|
+
expect(File).to exist(Utopia::default_root('content_spec', File.dirname(__FILE__)))
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
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: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trenni
|
@@ -276,6 +276,14 @@ files:
|
|
276
276
|
- spec/utopia/content/node_spec.rb
|
277
277
|
- spec/utopia/content_spec.rb
|
278
278
|
- spec/utopia/content_spec.ru
|
279
|
+
- spec/utopia/content_spec/_heading.xnode
|
280
|
+
- spec/utopia/content_spec/content/_show-value.xnode
|
281
|
+
- spec/utopia/content_spec/content/links.yaml
|
282
|
+
- spec/utopia/content_spec/content/test-partial.xnode
|
283
|
+
- spec/utopia/content_spec/index.xnode
|
284
|
+
- spec/utopia/content_spec/node/index.xnode
|
285
|
+
- spec/utopia/content_spec/test.txt
|
286
|
+
- spec/utopia/content_spec/test.xnode
|
279
287
|
- spec/utopia/controller/action_spec.rb
|
280
288
|
- spec/utopia/controller/middleware_spec.rb
|
281
289
|
- spec/utopia/controller/middleware_spec.ru
|
@@ -307,13 +315,6 @@ files:
|
|
307
315
|
- spec/utopia/localization_spec/localized.ja.txt
|
308
316
|
- spec/utopia/localization_spec/test.txt
|
309
317
|
- spec/utopia/middleware_spec.rb
|
310
|
-
- spec/utopia/pages/_heading.xnode
|
311
|
-
- spec/utopia/pages/content/_show-value.xnode
|
312
|
-
- spec/utopia/pages/content/links.yaml
|
313
|
-
- spec/utopia/pages/content/test-partial.xnode
|
314
|
-
- spec/utopia/pages/index.xnode
|
315
|
-
- spec/utopia/pages/node/index.xnode
|
316
|
-
- spec/utopia/pages/test.txt
|
317
318
|
- spec/utopia/path/matcher_spec.rb
|
318
319
|
- spec/utopia/path_spec.rb
|
319
320
|
- spec/utopia/performance_spec.rb
|
@@ -357,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
357
358
|
version: '0'
|
358
359
|
requirements: []
|
359
360
|
rubyforge_project:
|
360
|
-
rubygems_version: 2.5.
|
361
|
+
rubygems_version: 2.5.1
|
361
362
|
signing_key:
|
362
363
|
specification_version: 4
|
363
364
|
summary: Utopia is a framework for building dynamic content-driven websites.
|
@@ -390,6 +391,14 @@ test_files:
|
|
390
391
|
- spec/utopia/content/node_spec.rb
|
391
392
|
- spec/utopia/content_spec.rb
|
392
393
|
- spec/utopia/content_spec.ru
|
394
|
+
- spec/utopia/content_spec/_heading.xnode
|
395
|
+
- spec/utopia/content_spec/content/_show-value.xnode
|
396
|
+
- spec/utopia/content_spec/content/links.yaml
|
397
|
+
- spec/utopia/content_spec/content/test-partial.xnode
|
398
|
+
- spec/utopia/content_spec/index.xnode
|
399
|
+
- spec/utopia/content_spec/node/index.xnode
|
400
|
+
- spec/utopia/content_spec/test.txt
|
401
|
+
- spec/utopia/content_spec/test.xnode
|
393
402
|
- spec/utopia/controller/action_spec.rb
|
394
403
|
- spec/utopia/controller/middleware_spec.rb
|
395
404
|
- spec/utopia/controller/middleware_spec.ru
|
@@ -421,13 +430,6 @@ test_files:
|
|
421
430
|
- spec/utopia/localization_spec/localized.ja.txt
|
422
431
|
- spec/utopia/localization_spec/test.txt
|
423
432
|
- spec/utopia/middleware_spec.rb
|
424
|
-
- spec/utopia/pages/_heading.xnode
|
425
|
-
- spec/utopia/pages/content/_show-value.xnode
|
426
|
-
- spec/utopia/pages/content/links.yaml
|
427
|
-
- spec/utopia/pages/content/test-partial.xnode
|
428
|
-
- spec/utopia/pages/index.xnode
|
429
|
-
- spec/utopia/pages/node/index.xnode
|
430
|
-
- spec/utopia/pages/test.txt
|
431
433
|
- spec/utopia/path/matcher_spec.rb
|
432
434
|
- spec/utopia/path_spec.rb
|
433
435
|
- spec/utopia/performance_spec.rb
|