flexirest 1.7.4 → 1.7.5

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: 5c923ce76f5b90c0bdb2fba0090bf7f7c0e9a8b3
4
- data.tar.gz: deb9b3f6c36c9507fbba1a0bd98a485dd1828124
3
+ metadata.gz: cc25c4790b42d7d6c5f17f1bccf38af464ae9acc
4
+ data.tar.gz: 851bdde04eb58f1e9b38753fd8c6ad72324c92d8
5
5
  SHA512:
6
- metadata.gz: 430b70a85bf6b8d5cd77eb6d6440e55245ef9915ca8adfd5c76d26bde7c4a6c36ecdbc4e7bc5ed9bdb8176191ecf5b1c2c0f9e63a51da0f2f16cf092f2d66f16
7
- data.tar.gz: 500dbc7e0637b9f48c9476f6a099fd12815ab21a49fc69357cd30d110378020d1e9710354c21a11215d621e48719ac8f18817be07883e7d818b6d3dcbadcaafd
6
+ metadata.gz: '0179fd825262037792935e82e26c86d262c4d3675410850fc05aeefb37b72e8d620b60e6e245487825e50aa69cae40e4e2e13020b40704b856fb61e025dbaeec'
7
+ data.tar.gz: 79aa3524f59de9ff2932d2ee07c69170bb281031ba393551fe6dbe63f3ae5583dff88c93e6ecce0a4e7110afbb1750808bbe78fec9efe625667c702559699da4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.5
4
+
5
+ Feature:
6
+
7
+ - Implemented `Flexirest::ResultIterator#join` for closer to native handling of ActiveModel::Errors in Rails applications.
8
+
3
9
  ## 1.7.4
4
10
 
5
11
  Feature:
data/flexirest.gemspec CHANGED
@@ -14,6 +14,10 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://andyjeffries.co.uk/"
15
15
  spec.license = "MIT"
16
16
 
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata["source_code_uri"] = "https://github.com/flexirest/flexirest"
19
+ end
20
+
17
21
  spec.files = `git ls-files`.split($/)
18
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -23,6 +23,10 @@ module Flexirest
23
23
  @items
24
24
  end
25
25
 
26
+ def join(*args)
27
+ @items.join(*args)
28
+ end
29
+
26
30
  def index(value)
27
31
  @items.index(value)
28
32
  end
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.7.4"
2
+ VERSION = "1.7.5"
3
3
  end
@@ -34,6 +34,13 @@ describe Flexirest::ResultIterator do
34
34
  expect(result.first).to eq("a")
35
35
  end
36
36
 
37
+ it "should implement join" do
38
+ result = Flexirest::ResultIterator.new
39
+ result << "a"
40
+ result << "z"
41
+ expect(result.join(",")).to eq("a,z")
42
+ end
43
+
37
44
  it "should implement any?" do
38
45
  result = Flexirest::ResultIterator.new
39
46
  expect(result.any?).to be_falsey
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.7.4
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-03 00:00:00.000000000 Z
11
+ date: 2019-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -330,7 +330,8 @@ files:
330
330
  homepage: https://andyjeffries.co.uk/
331
331
  licenses:
332
332
  - MIT
333
- metadata: {}
333
+ metadata:
334
+ source_code_uri: https://github.com/flexirest/flexirest
334
335
  post_install_message:
335
336
  rdoc_options: []
336
337
  require_paths: