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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95af9cafe48631ad6f7d042b5be5b80d5cef58e4
4
- data.tar.gz: f4f2a7962845d247b00cf61126cd81c3e372c55c
3
+ metadata.gz: 077e20d274bf51c797cec0b75f2f730611987c94
4
+ data.tar.gz: 5cded99d5edbd043d82892e6dbf5392722cddb5b
5
5
  SHA512:
6
- metadata.gz: 86a8ccfad5216e8d089ac9a1e4932f2077718e4700e993d6044fe0ef2ae9cd018cfcbbf06427899ad535f1aad283dd09c630657b7d703d5fcb6ca93336913d48
7
- data.tar.gz: e38379191d7540169a23da8bd35fac7f7ea12dafab2023cc1a4351d6631e24cb22e1e23541b026d6b6031e0a1d3306ad531295c48ff8d05f8d011776d7336dac
6
+ metadata.gz: 98f3c3a1697281f1342218eee566c520a0f8f178461e2ae42cc0d0013b48a1fd64331dc3a4aef154b6ba27133b3200fd2ee4a0a5e73375baf4fa031378f4dbfb
7
+ data.tar.gz: 2412cb9e37e49ed010b427778f3f157fb835d10f111c9c62f19a090825d67980e9f5b609061f36c06c25ee1b98d04a7cde5cc98e64f7d95ff98388ef3f150af1
@@ -1,3 +1,6 @@
1
+ ## 1.2.1
2
+ - Use request.path_info instead of request.path
3
+
1
4
  ## 1.2.0
2
5
  - Allow users to generate index.html by putting trailing slash
3
6
 
@@ -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.path) + path_suffix
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.path.end_with?(".html")
73
+ when response.content_type.nil? || !response.content_type.include?("text/html") || request.path_info.end_with?(".html")
74
74
  ""
75
- when request.path.end_with?("/")
75
+ when request.path_info.end_with?("/")
76
76
  "index.html"
77
77
  else
78
78
  ".html"
@@ -1,3 +1,3 @@
1
1
  module Sitespec
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.0
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-06-12 00:00:00.000000000 Z
11
+ date: 2015-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack-test