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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b157efe52f1bd6f2fed9ef86bc5a62faedb9e445
4
- data.tar.gz: dedc9e398421a048f823f8c01186aecc94d57ce2
3
+ metadata.gz: 4da568b8c28266cae1d7a558ac054680514a16f6
4
+ data.tar.gz: bedf4e0b825d1fb5847b4342bfc2c1fa2b8604e4
5
5
  SHA512:
6
- metadata.gz: bb78e0f680b36a8d7e64ad708ff26acac2354d5ef881a3174c29b3957da5f3f7875608d008812554028ed3de0ff778ce7d02e7372b933822b68b46ec20a4fa4d
7
- data.tar.gz: 47d2dfe5f97ee37e93c0c698491e65078cb745220126ce0c52419cb41f7fc2cf3e47ec220975a68635c7cd4babe1ba0ca087a8e90db5079c1c29cea6365307a6
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/whichdigital/active-rest-client/master/doc/Flexirest%20Internals.png)
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Which? Ltd
1
+ Code originally copyright (c) 2013 Which? Ltd, released with an MIT License and now this fork is released under the same licence by Andy Jeffries.
2
2
 
3
3
  MIT License
4
4
 
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 = ["Which Ltd", "Andy Jeffries"]
11
- spec.email = ["swlicensing@which.co.uk", "andy@andyjeffries.co.uk"]
12
- spec.description = %q{Accessing REST services in an ActiveRecord style}
13
- spec.summary = %q{This gem is for accessing REST services in an ActiveRecord style. 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 = "http://whichdigital.github.io/"
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/whichdigital/active-rest-client#proxying-apis for more information") unless value.nil?
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
 
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.0
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 an ActiveRecord style
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/ActiveRestClient Internals.graffle
258
- - doc/ActiveRestClient Internals.png
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: http://whichdigital.github.io/
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 an ActiveRecord style. ActiveResource
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.