quicktravel_client 2.4.0 → 2.4.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: b46659b883b055d384d0d6002646e619d636c4a4
4
- data.tar.gz: a906274663a27d46b74eda888a5200bde90cc884
3
+ metadata.gz: a34fbbde163b000c11a10a3e8eeefd5e94f83e06
4
+ data.tar.gz: 7552b2bec07e5502da8e38994de245065df94a50
5
5
  SHA512:
6
- metadata.gz: bfc223f8ec2d51dddc2974b40281cc49ff6225cbbeae35a75f18b515c8656ac0a307e3f280b57b0df5e8adad90a36b1c4674eec2b2ad2696568f5bf848c0b5d8
7
- data.tar.gz: 381d7a52dce286c3874f17e260348b2c5c2d0c294193d4ce9226c53bc69c626a77b5f5de9919ffe248142362004ea9d8b32a5c728f0306d0b119c1e2931a6ca3
6
+ metadata.gz: 205499b78bbf1e1daa04d9dae57a49b1a934d14cd74a2f4b88f2e32cf37e4ac035de39d4f1e8d7004674999d22d223003c54d17085f036c482deba9b8b4958c9
7
+ data.tar.gz: e0137d1819ab9a98ca3baeb6b084f162e5f3c402a1c8edfe2086613a1fb05112bff8789cb50a8f564088413ac91399dd51d12b810cd787ddfd94e1a33aa6acf9
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
5
5
 
6
+ ## [2.4.1]
7
+ ### Changed
8
+ - Handle nil values for empty lists
9
+
6
10
  ## [2.4.0]
7
11
  ### Changed
8
12
  - Improve error handling when non JSON response
@@ -52,7 +52,7 @@ module QuickTravel
52
52
  "@#{relation_name}",
53
53
  begin
54
54
  klass = QuickTravel.const_get(options[:class_name] || relation_name.to_s.singularize.classify)
55
- instance_variable_get("@#{relation_name}_attributes").map { |attr|
55
+ Array(instance_variable_get("@#{relation_name}_attributes")).map { |attr|
56
56
  klass.new(attr)
57
57
  }
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module QuickTravel
2
- VERSION = '2.4.0'
2
+ VERSION = '2.4.1'
3
3
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency 'rake'
29
29
  spec.add_development_dependency 'rspec'
30
30
  spec.add_development_dependency 'rspec-its'
31
- spec.add_development_dependency 'simplecov'
31
+ spec.add_development_dependency 'coverage-kit'
32
32
  spec.add_development_dependency 'simplecov-rcov'
33
33
  spec.add_development_dependency 'coveralls'
34
34
  spec.add_development_dependency 'stamp' # Used to send appropriate dates to API's
@@ -1,31 +1,4 @@
1
- MINIMUM_COVERAGE = 77.8
2
- MAXIMUM_COVERAGE = MINIMUM_COVERAGE + 0.5
3
-
4
- if ENV['COVERAGE'] != 'off'
5
- require 'simplecov'
6
- require 'simplecov-rcov'
7
- require 'coveralls'
8
- Coveralls.wear!
9
-
10
- SimpleCov.formatters = [
11
- SimpleCov::Formatter::RcovFormatter,
12
- Coveralls::SimpleCov::Formatter
13
- ]
14
- SimpleCov.start do
15
- add_filter '/vendor/'
16
- add_filter '/spec/'
17
- add_group 'lib', 'lib'
18
- end
19
- SimpleCov.at_exit do
20
- SimpleCov.result.format!
21
- percent = SimpleCov.result.covered_percent
22
- puts "Coverage is #{'%.2f' % percent}%"
23
- if percent < MINIMUM_COVERAGE
24
- puts "Coverage must be above #{MINIMUM_COVERAGE}%"
25
- Kernel.exit(1)
26
- elsif percent > MAXIMUM_COVERAGE
27
- puts "Coverage is above #{MAXIMUM_COVERAGE}%. Time to bump minimum coverage!"
28
- Kernel.exit(1)
29
- end
30
- end
31
- end
1
+ require 'simplecov-rcov'
2
+ require 'coveralls'
3
+ require 'coverage/kit'
4
+ Coverage::Kit.setup(minimum_coverage: 77.8)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quicktravel_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Noack
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-11-01 00:00:00.000000000 Z
13
+ date: 2016-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -159,7 +159,7 @@ dependencies:
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  - !ruby/object:Gem::Dependency
162
- name: simplecov
162
+ name: coverage-kit
163
163
  requirement: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="