flexirest 1.11.2 → 1.11.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
2
  SHA256:
3
- metadata.gz: '069a842d7b7b6db2e2aa7cff28191a02d70e0ebe3bc6f49aadf569b8006b7cc4'
4
- data.tar.gz: 9db8212da8ed8698bc4a1d48137fe2e0e9ce8d75c94366d72fe1f78d986855e0
3
+ metadata.gz: abc3590ed1c31e53df7d8be038fad0a01f66d4d50dd3effbb17f0ed41256e6fa
4
+ data.tar.gz: 6049f2be6ecb5c921b4c0d10c1e4e3533dc50adaf98d153bae690e1d01413ecb
5
5
  SHA512:
6
- metadata.gz: fb73957659a29bb35ab8f08b9127e32f36e733e9a37830c09e42f221774531c18edbbb4767bccd1fcc4713a938fb9c195daa4863af39c128b312d582b6245fc2
7
- data.tar.gz: b9e91c14da366548a6a618eae2d634ad26cf60e1ed20d957b577bb4e1e777c32eea594ebc2a37990f61eeb59c41e34912ed591477f0a80005bfc7435dac7aa3d
6
+ metadata.gz: 469d6426f9de8945cc94af7c26e06a88e6b7b570e3c0b72487dd4d940518d54eba224ed522efe8abc12f822d80350b89658ac0cc4d7b7fcdc64c581075f44644
7
+ data.tar.gz: d6d241da12c0049113e692693a4d98b7cbaa45f7ad06f5733a21eb7c516507e6ae9d513620feca19372f8039a2a9c3019bfb98005b8670a1920a860a363a181d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.11.3
4
+
5
+ Bugfix:
6
+
7
+ - Forward all Flexirest::ResultIterator#index arguments to allow for code like `result.index { |i| i == "z" }` (thanks to Stevo-S for the PR)
8
+
3
9
  ## 1.11.2
4
10
 
5
11
  Bugfix:
@@ -230,7 +236,7 @@ Features:
230
236
 
231
237
  Fix:
232
238
 
233
- - plain requests to URLs that are just the domain e.g. "https://www.example.com" should also work (i.e. without any trailing path, even a '/')
239
+ - plain requests to URLs that are just the domain e.g. "<https://www.example.com>" should also work (i.e. without any trailing path, even a '/')
234
240
 
235
241
  ## 1.7.7
236
242
 
@@ -33,8 +33,8 @@ module Flexirest
33
33
  @items.join(*args)
34
34
  end
35
35
 
36
- def index(value)
37
- @items.index(value)
36
+ def index(...)
37
+ @items.index(...)
38
38
  end
39
39
 
40
40
  def empty?
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.11.2"
2
+ VERSION = "1.11.3"
3
3
  end
@@ -74,6 +74,7 @@ describe Flexirest::ResultIterator do
74
74
  result << "a"
75
75
  result << "z"
76
76
  expect(result.index("z")).to eq(1)
77
+ expect(result.index { |i| i == "z" }).to eq(1)
77
78
  end
78
79
 
79
80
  it "should implement empty?" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.2
4
+ version: 1.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-04 00:00:00.000000000 Z
11
+ date: 2023-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler