webstub 1.1.5 → 1.1.6

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
  SHA1:
3
- metadata.gz: 04b972f94008e25abfc07c6a231f1059096fd373
4
- data.tar.gz: 66ad2d78a3acbf68cd9969b567132aba5c9732a0
3
+ metadata.gz: c9601adc5710e669132d18e14cbaf521c3c42ef0
4
+ data.tar.gz: fc62f6f87eff05c832b8fb114d6f82d35f07bbe7
5
5
  SHA512:
6
- metadata.gz: 0657ad2907f0c68e4c67c9f3163baca97a533ca877fcc98e29b02345375abcbd513638d05069260c03ae72413af7cea7beef8ad6007d51bb680a307678b121e2
7
- data.tar.gz: 2a2f70ad81fece0abc1fcf55bec14fe4634167b638a816578dd4af23c9ae7702916b291b8685ebc16fa8b4a43dab68796cf8e73498b61612214d5298d34aff76
6
+ metadata.gz: 26b4dc062c19d72ffbe096b3e11c087a4af5563cd922155744beaf16c24132f3c61731ef0422e0f6be292377c164c9ad686439eb0bba91970b80d0f2d592a53d
7
+ data.tar.gz: 68d512c58deacf1c5994dfd131e5b8d3bb293cb3a61feae101f8f8304a3b3c04c073610045adeb6620d74ca97a0f90598f676928594d8ca7e9e92a528cbcb3de
data/.gitignore CHANGED
@@ -6,3 +6,5 @@ resources/*.nib
6
6
  resources/*.momd
7
7
  resources/*.storyboardc
8
8
  Gemfile.lock
9
+
10
+ webstub-*.gem
@@ -1,4 +1,5 @@
1
1
  language: objective-c
2
+ osx_image: xcode7.3
2
3
  before_install:
3
4
  - (ruby --version)
4
5
  - sudo chown -R travis ~/Library/RubyMotion
@@ -58,6 +58,10 @@ module WebStub
58
58
 
59
59
  if @stub.redirects?
60
60
  url = NSURL.URLWithString(@stub.response_headers["Location"])
61
+ if request.URL == url
62
+ # Can't redirect to same URL. Since iOS 10, it will cause a crash.
63
+ return
64
+ end
61
65
  redirect_request = NSURLRequest.requestWithURL(url)
62
66
 
63
67
  client.URLProtocol(self, wasRedirectedToRequest: redirect_request, redirectResponse: response)
@@ -1,3 +1,3 @@
1
1
  module WebStub
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webstub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Green
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-30 00:00:00.000000000 Z
11
+ date: 2016-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.2.2
97
+ rubygems_version: 2.5.1
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Easily stub out HTTP responses in RubyMotion specs