flexirest 1.3.27 → 1.3.28

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: 41037b044f911e96fa8ef57aaacae1c8ab7b4c46
4
- data.tar.gz: fa0e305dfa953cab72072df58e10d8fbad96bef9
3
+ metadata.gz: 06f57e7a69b3da8a839a5ee30a1c33cd25576fd0
4
+ data.tar.gz: 36070e158d45d127b26dc497f57d0f47a36b7eb2
5
5
  SHA512:
6
- metadata.gz: aea60eaa4a88d43f48c87d3e7753660f7042b1cfc7ddc682454c21c9bbab28db9fcb29839a703409326166f9e02bc80479900d791b47aec0c782829e1bd440e5
7
- data.tar.gz: c7f4e0e891019152782e07fc3546bccdab28a401ccb40e3b37d922d89cfe65ff2980260e5f03595273271caf13f1f40ebc501d3359c910145cec19618c742eaf
6
+ metadata.gz: 5cbcb419898a3c14349f6eb57becd64cb3d04b2c89e59dc9f21a5163d9df3aadcb3f2358aef4e0999094b73c7f5d3f070d15f4f266d05d3d6343787d2f1f2a45
7
+ data.tar.gz: 29f9987cb73598b12f6aae2f9eadca45b2b294f19325033b93a6027a51c1f0a280fdc5054094f3c8842434e1cc2570379c32c7047399b3eefb4174e1823ab32b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.28
4
+
5
+ Feature:
6
+
7
+ - Implemented delete_if on ResultIterator
8
+
3
9
  ## 1.3.27
4
10
 
5
11
  Bugfix:
data/flexirest.gemspec CHANGED
@@ -47,5 +47,6 @@ Gem::Specification.new do |spec|
47
47
  spec.add_runtime_dependency "json", "< 2.0.0"
48
48
  spec.add_runtime_dependency "tins", "~> 1.6.0"
49
49
  spec.add_runtime_dependency "term-ansicolor", "~> 1.3.2"
50
+ spec.add_runtime_dependency "public_suffix", "~> 1.4.6"
50
51
  end
51
52
  end
@@ -58,6 +58,11 @@ module Flexirest
58
58
  self
59
59
  end
60
60
 
61
+ def delete_if
62
+ @items = @items.delete_if &Proc.new
63
+ self
64
+ end
65
+
61
66
  def parallelise(method=nil)
62
67
  collected_responses = []
63
68
  threads = []
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.3.27"
2
+ VERSION = "1.3.28"
3
3
  end
@@ -101,6 +101,16 @@ describe Flexirest::ResultIterator do
101
101
  expect(result.shuffle.first == result.shuffle.first && result.shuffle.first == result.shuffle.first).to_not be_truthy
102
102
  end
103
103
 
104
+ it "should implement delete_if" do
105
+ result = Flexirest::ResultIterator.new
106
+ result << "a"
107
+ result << "z"
108
+ result.delete_if {|i| i == "z" }
109
+ expect(result.items).to eq(["a"])
110
+ end
111
+
112
+
113
+
104
114
  it "can parallelise calls to each item" do
105
115
  result = Flexirest::ResultIterator.new
106
116
  result << 3
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.3.27
4
+ version: 1.3.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler