kashi 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 63fe81a65b91228d2ec53577e6abf2fe02c19ad2
4
- data.tar.gz: 40c0ee3a565749b1cdc51f480f6394d9c3a7a8a4
2
+ SHA256:
3
+ metadata.gz: c12a17183a9262372e6697611c9f706a829c28a85b59e9a77aea1cadc0a78ac4
4
+ data.tar.gz: fd9f8007fa7f6eab43e021ebe3ccb84bc8f3b2f89cc8de4a71bbd086f19ca713
5
5
  SHA512:
6
- metadata.gz: 64ce67a296e69b9f54934df66248b2bbbae395821c33ba5650657bc4a67d06bdba0ea6d10eb931cb00a23f440e3ed5c2c22c27ffcfa4e34add8fc0503daa312f
7
- data.tar.gz: 407872d77b9293b0f30ae056c43dabaf58956248d4b68aa7ca6ce00c530d2cad9f68314efa441bb9c489fd27ac947d2b434015c1e3c311a072d98fe5fdd4e585
6
+ metadata.gz: 1a1d4b9cec488dfba86e6002690fea1b3dd5bb75cce05fc1a52e3e5c0fae8cafbef4ce0560e8f11acf6339c831ad83588e448f9968113b83b5c2845e3b020863
7
+ data.tar.gz: 7abcfde7a82c2c7ecb07e4df914e9947cb507aa58072d181e62db41ae985453230733105afe84e427615149d2d7f3376542d06a0a16b7cb414384b08b281c30c
data/README.md CHANGED
@@ -88,6 +88,7 @@ cake do
88
88
  find_string ""
89
89
  do_not_find 0
90
90
  follow_redirect 1
91
+ final_endpoint ""
91
92
  custom_header(
92
93
  {"Host"=>"example.com"}
93
94
  )
@@ -154,10 +154,10 @@ module Kashi
154
154
  @result.node_locations = ['']
155
155
  @result.status_codes = []
156
156
  @result.virus = ''
157
+ @result.final_endpoint = ''
157
158
 
158
159
  # not used
159
160
  @result.post_raw = ''
160
- @result.final_endpoint = ''
161
161
 
162
162
  instance_eval(&block)
163
163
  end
@@ -290,6 +290,10 @@ module Kashi
290
290
  def follow_redirect(follow_redirect)
291
291
  @result.follow_redirect = follow_redirect
292
292
  end
293
+
294
+ def final_endpoint(endpoint)
295
+ @result.final_endpoint = endpoint
296
+ end
293
297
  end
294
298
  end
295
299
  end
@@ -57,6 +57,9 @@ cake do
57
57
  use_jar <%= test['UseJar'].inspect %>
58
58
  <%- end -%>
59
59
  follow_redirect <%= test['FollowRedirect'] ? 1 : 0 %>
60
+ <%- if test['FinalEndpoint'] -%>
61
+ final_endpoint <%= test['FinalEndpoint'].inspect %>
62
+ <%- end -%>
60
63
  custom_header(
61
64
  <%= (test['CustomHeader'] == '' ? '' : JSON.parse(test['CustomHeader'])).inspect %>
62
65
  )
data/lib/kashi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kashi
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kashi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - wata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-07 00:00:00.000000000 Z
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: statuscake
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.5.1
161
+ rubygems_version: 2.7.6
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Codenize StatusCake