sitespec 1.2.0 → 1.2.1
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/CHANGELOG.md +3 -0
- data/lib/sitespec/artifact.rb +3 -3
- data/lib/sitespec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 077e20d274bf51c797cec0b75f2f730611987c94
|
|
4
|
+
data.tar.gz: 5cded99d5edbd043d82892e6dbf5392722cddb5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98f3c3a1697281f1342218eee566c520a0f8f178461e2ae42cc0d0013b48a1fd64331dc3a4aef154b6ba27133b3200fd2ee4a0a5e73375baf4fa031378f4dbfb
|
|
7
|
+
data.tar.gz: 2412cb9e37e49ed010b427778f3f157fb835d10f111c9c62f19a090825d67980e9f5b609061f36c06c25ee1b98d04a7cde5cc98e64f7d95ff98388ef3f150af1
|
data/CHANGELOG.md
CHANGED
data/lib/sitespec/artifact.rb
CHANGED
|
@@ -62,7 +62,7 @@ module Sitespec
|
|
|
62
62
|
|
|
63
63
|
# @return [String] Where to an artifact file is located
|
|
64
64
|
def path
|
|
65
|
-
File.join(Sitespec.configuration.build_pathname, request.
|
|
65
|
+
File.join(Sitespec.configuration.build_pathname, request.path_info) + path_suffix
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
# @return [String]
|
|
@@ -70,9 +70,9 @@ module Sitespec
|
|
|
70
70
|
case
|
|
71
71
|
when !Sitespec.configuration.auto_complete_html_path
|
|
72
72
|
""
|
|
73
|
-
when response.content_type.nil? || !response.content_type.include?("text/html") || request.
|
|
73
|
+
when response.content_type.nil? || !response.content_type.include?("text/html") || request.path_info.end_with?(".html")
|
|
74
74
|
""
|
|
75
|
-
when request.
|
|
75
|
+
when request.path_info.end_with?("/")
|
|
76
76
|
"index.html"
|
|
77
77
|
else
|
|
78
78
|
".html"
|
data/lib/sitespec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sitespec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack-test
|