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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/quick_travel/adapter.rb +1 -1
- data/lib/quick_travel/version.rb +1 -1
- data/quicktravel_client.gemspec +1 -1
- data/spec/support/coverage_loader.rb +4 -31
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a34fbbde163b000c11a10a3e8eeefd5e94f83e06
|
4
|
+
data.tar.gz: 7552b2bec07e5502da8e38994de245065df94a50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/quick_travel/adapter.rb
CHANGED
@@ -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
|
data/lib/quick_travel/version.rb
CHANGED
data/quicktravel_client.gemspec
CHANGED
@@ -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 '
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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.
|
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-
|
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:
|
162
|
+
name: coverage-kit
|
163
163
|
requirement: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - ">="
|