flexirest 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +3 -3
- data/LICENSE.txt +1 -1
- data/doc/{ActiveRestClient Internals.graffle → Flexirest Internals.graffle} +0 -0
- data/doc/{ActiveRestClient Internals.png → Flexirest Internals.png} +0 -0
- data/flexirest.gemspec +5 -5
- data/lib/flexirest/configuration.rb +1 -1
- data/lib/flexirest/version.rb +1 -1
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da568b8c28266cae1d7a558ac054680514a16f6
|
4
|
+
data.tar.gz: bedf4e0b825d1fb5847b4342bfc2c1fa2b8604e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffc0a1c9d7115f009e1ae929784ce54accd3a904e8d5a040841959ace5d08e21b85c126650f43b09032aa6a365a3ec66d45b45dc50a0685f01f2d9cd07cffa49
|
7
|
+
data.tar.gz: 7414812a6efe50781c389235154a1b6971306cb316c5be20b5c60858946946d860c3487cb79468edb9df7c4e30ed8cee9c01e7489b1798602ec66650887be70a
|
data/CONTRIBUTING.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
## Introduction
|
4
4
|
|
5
|
-
This project was built at Which? Ltd in the UK, but was released as open source in 2014 under the MIT Licence.
|
5
|
+
This project was built at Which? Ltd in the UK as ActiveRestClient, but was released as open source in 2014 under the MIT Licence. This is Andy Jeffries' fork of the project as the original seems not to be maintained by Which? and there's been no communication back about the project.
|
6
6
|
|
7
7
|
We're happy to receive contributions from the community for features and bugfixes and hopefully this guide helps new developers to the project to understand how to get started with the internals of Flexirest.
|
8
8
|
|
9
9
|
## Overview
|
10
10
|
|
11
|
-
![Component Overview Diagram](https://raw.githubusercontent.com/
|
11
|
+
![Component Overview Diagram](https://raw.githubusercontent.com/andyjeffries/flexirest/master/doc/Flexirest%20Internals.png)
|
12
12
|
|
13
13
|
## Components
|
14
14
|
|
@@ -47,7 +47,7 @@ A `Request` has a list of headers associated, but if the same header is set with
|
|
47
47
|
|
48
48
|
`LazyLoader` is a simple proxy class that takes an `Flexirest::Request` object, has a `method_missing` and `respond_to` pair that when called actually calls `#request` on the request object to make the API call. This is useful if you want to prepare an API object that doesn't make the call unless it's needed (i.e. like ActiveRecord scopes don't execute if they're used within a cached fragment).
|
49
49
|
|
50
|
-
`LazyAssociationLoader` is a completely different beast. This is used in HAL responses where the association
|
50
|
+
`LazyAssociationLoader` is a completely different beast. This is used in HAL responses where the association
|
51
51
|
|
52
52
|
### ProxyBase
|
53
53
|
|
data/LICENSE.txt
CHANGED
File without changes
|
File without changes
|
data/flexirest.gemspec
CHANGED
@@ -7,11 +7,11 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "flexirest"
|
8
8
|
spec.version = Flexirest::VERSION
|
9
9
|
spec.platform = Gem::Platform::RUBY
|
10
|
-
spec.authors = ["
|
11
|
-
spec.email = ["
|
12
|
-
spec.description = %q{Accessing REST services in
|
13
|
-
spec.summary = %q{This gem is for accessing REST services in
|
14
|
-
spec.homepage = "
|
10
|
+
spec.authors = ["Andy Jeffries"]
|
11
|
+
spec.email = ["andy@andyjeffries.co.uk"]
|
12
|
+
spec.description = %q{Accessing REST services in a flexible way}
|
13
|
+
spec.summary = %q{This gem is for accessing REST services in a flexible way. ActiveResource already exists for this, but it doesn't work where the resource naming doesn't follow Rails conventions, it doesn't have in-built caching and it's not as flexible in general.}
|
14
|
+
spec.homepage = "https://andyjeffries.co.uk/"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files`.split($/)
|
@@ -158,7 +158,7 @@ module Flexirest
|
|
158
158
|
end
|
159
159
|
|
160
160
|
def translator(value = nil)
|
161
|
-
Flexirest::Logger.warn("DEPRECATION: The translator functionality of Flexirest has been replaced with proxy functionality, see https://github.com/
|
161
|
+
Flexirest::Logger.warn("DEPRECATION: The translator functionality of Flexirest has been replaced with proxy functionality, see https://github.com/andyjeffries/flexirest#proxying-apis for more information") unless value.nil?
|
162
162
|
value ? @translator = value : @translator || nil
|
163
163
|
end
|
164
164
|
|
data/lib/flexirest/version.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexirest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Which Ltd
|
8
7
|
- Andy Jeffries
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
@@ -235,9 +234,8 @@ dependencies:
|
|
235
234
|
- - ">="
|
236
235
|
- !ruby/object:Gem::Version
|
237
236
|
version: '0'
|
238
|
-
description: Accessing REST services in
|
237
|
+
description: Accessing REST services in a flexible way
|
239
238
|
email:
|
240
|
-
- swlicensing@which.co.uk
|
241
239
|
- andy@andyjeffries.co.uk
|
242
240
|
executables: []
|
243
241
|
extensions: []
|
@@ -254,8 +252,8 @@ files:
|
|
254
252
|
- LICENSE.txt
|
255
253
|
- README.md
|
256
254
|
- Rakefile
|
257
|
-
- doc/
|
258
|
-
- doc/
|
255
|
+
- doc/Flexirest Internals.graffle
|
256
|
+
- doc/Flexirest Internals.png
|
259
257
|
- flexirest.gemspec
|
260
258
|
- lib/flexirest.rb
|
261
259
|
- lib/flexirest/base.rb
|
@@ -297,7 +295,7 @@ files:
|
|
297
295
|
- spec/lib/validation_spec.rb
|
298
296
|
- spec/lib/xml_spec.rb
|
299
297
|
- spec/spec_helper.rb
|
300
|
-
homepage:
|
298
|
+
homepage: https://andyjeffries.co.uk/
|
301
299
|
licenses:
|
302
300
|
- MIT
|
303
301
|
metadata: {}
|
@@ -320,7 +318,7 @@ rubyforge_project:
|
|
320
318
|
rubygems_version: 2.4.6
|
321
319
|
signing_key:
|
322
320
|
specification_version: 4
|
323
|
-
summary: This gem is for accessing REST services in
|
321
|
+
summary: This gem is for accessing REST services in a flexible way. ActiveResource
|
324
322
|
already exists for this, but it doesn't work where the resource naming doesn't follow
|
325
323
|
Rails conventions, it doesn't have in-built caching and it's not as flexible in
|
326
324
|
general.
|