rack-test 1.0.0 → 1.1.0

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
2
  SHA256:
3
- metadata.gz: ffbb291753487a29727c09ba1b0b96cf873564798ef6f984931256b54043eadd
4
- data.tar.gz: e9f40c35a2578f36cfbfffb17efc796543455c2617961350790f1742653566c0
3
+ metadata.gz: 14e25e843eada244c949970f14897865edcf1687b17889560923e32306632423
4
+ data.tar.gz: ac325910df89080a58b47b7ec9f7e84c552a597d09a0ed3e1c5600a7cc4a6d5a
5
5
  SHA512:
6
- metadata.gz: 3c2735a0f2564b979b9b5fcd9f5f952e7c0bf0b3f31071271089b8df2b34e18436e516a38bf3d708082b07169bbd79612a6286610b072970bb1c79636c31d1e9
7
- data.tar.gz: aa3444f42ebb904a6b33c03cfdb3787cef34acbe96171569395123483b5b0df66401d959576990d90ced9e587fdbfbba049f42884cec2696549ea685b6643baa
6
+ metadata.gz: a86f02b6cc8a0c7bbebbe64612e174f250abce84458ab732457e3b132f70f93b31f0ca791b75c167796690d3293fb4de02d895be85baeada4b619977b1b1ac39
7
+ data.tar.gz: 002d971754b2ac28d329c8b7231d97068939e6b0e17d24d7d7d87088ac15cff4597d560843168a0289098e58639bc39f9c3b22129550a39e0d5f07a03413d70b
data/History.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 1.1.0 / 2018-07-21
2
+
3
+ * Breaking changes:
4
+ * None
5
+
6
+ * Minor enhancements / new functionality:
7
+ * [GitHub] Added configuration for Stale (Per Lundberg #232)
8
+ * follow_direct: Include rack.session.options (Mark Edmondson #233)
9
+ * [CI] Add simplecov (fatkodima #227)
10
+
11
+ Bug fixes:
12
+ * Follow relative locations correctly. (Samuel Williams #230)
13
+
1
14
  ## 1.0.0 / 2018-03-27
2
15
 
3
16
  * Breaking changes:
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Rack::Test
2
2
  [![Gem Version](https://badge.fury.io/rb/rack-test.svg)](https://badge.fury.io/rb/rack-test)
3
3
  [<img src="https://travis-ci.org/rack-test/rack-test.svg?branch=master" />](https://travis-ci.org/rack-test/rack-test)
4
- [![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/codeclimate/codeclimate)
5
- [![Test Coverage](https://codeclimate.com/github/codeclimate/codeclimate/badges/coverage.svg)](https://codeclimate.com/github/codeclimate/codeclimate/coverage)
4
+ [![Code Climate](https://codeclimate.com/github/rack-test/rack-test/badges/gpa.svg)](https://codeclimate.com/github/rack-test/rack-test)
5
+ [![Test Coverage](https://codeclimate.com/github/rack-test/rack-test/badges/coverage.svg)](https://codeclimate.com/github/rack-test/rack-test/coverage)
6
6
 
7
7
  Code: https://github.com/rack-test/rack-test
8
8
 
@@ -76,7 +76,7 @@ class HomepageTest < Test::Unit::TestCase
76
76
  # parameters, so make sure that `json` below is already a JSON-serialized string.
77
77
  post(uri, json, { 'CONTENT_TYPE' => 'application/json' })
78
78
  end
79
-
79
+
80
80
  def delete_with_url_params_and_body
81
81
  delete '/?foo=bar', JSON.generate('baz' => 'zot')
82
82
  end
@@ -144,5 +144,7 @@ Contributions are welcome. Please make sure to:
144
144
 
145
145
  * Ensure `History.md` is up-to-date
146
146
  * Bump VERSION in lib/rack/test/version.rb
147
+ * `git commit . -m 'Release 1.1.0'`
148
+ * `git push`
147
149
  * bundle exec thor :release
148
150
  * Updated the [GitHub releases page](https://github.com/rack-test/rack-test/releases)
@@ -194,10 +194,17 @@ module Rack
194
194
  else
195
195
  [:get, {}]
196
196
  end
197
+
198
+ # Compute the next location by appending the location header with the
199
+ # last request, as per https://tools.ietf.org/html/rfc7231#section-7.1.2
200
+ # Adding two absolute locations returns the right-hand location
201
+ next_location = URI.parse(last_request.url) + URI.parse(last_response['Location'])
202
+
197
203
  send(
198
- request_method, last_response['Location'], params,
204
+ request_method, next_location.to_s, params,
199
205
  'HTTP_REFERER' => last_request.url,
200
- 'rack.session' => last_request.session
206
+ 'rack.session' => last_request.session,
207
+ 'rack.session.options' => last_request.session_options
201
208
  )
202
209
  end
203
210
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Test
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Helmkamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -113,19 +113,19 @@ dependencies:
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0.50'
115
115
  - !ruby/object:Gem::Dependency
116
- name: codeclimate-test-reporter
116
+ name: simplecov
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - "~>"
120
120
  - !ruby/object:Gem::Version
121
- version: '0.6'
121
+ version: '0.16'
122
122
  type: :development
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - "~>"
127
127
  - !ruby/object:Gem::Version
128
- version: '0.6'
128
+ version: '0.16'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: thor
131
131
  requirement: !ruby/object:Gem::Requirement
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 2.7.6
184
+ rubygems_version: 2.7.7
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: Simple testing API built on Rack