parliament-utils 0.2.5 → 0.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2504e7de24d05b087cf9ea9bf3cde72ec598da85
|
4
|
+
data.tar.gz: 627a166006535486f8df00678e78b119a6bc5f37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a601b2ed3fc5e6dbba9850883dc3d7e92db360fd29084da22140151d5663da7b20bafb6215c6acbb42534cc94b6c558f8e0ad6a5601afa670e97432990e38b1d
|
7
|
+
data.tar.gz: f55cb7ff4855549cd59eaeba9f810f2babc547677cba9d8fc5ecc0588e2308472aff3ac356e8e05f54b6cb988e08d1447c8ac8f8288d7638c9438b61359b52e5
|
@@ -47,9 +47,9 @@ module Parliament
|
|
47
47
|
# @param [Object] name a Vcard::Name.
|
48
48
|
# @return [Vcard::Vcard::Maker, Boolean] a Vcard maker with person details set or false if the contact point is not associated with a person.
|
49
49
|
def person_set(contact_point, name)
|
50
|
-
return false if contact_point.
|
51
|
-
name.given = contact_point.
|
52
|
-
name.family = contact_point.
|
50
|
+
return false if contact_point.parliamentary_incumbency.nil? || contact_point.parliamentary_incumbency.member.nil?
|
51
|
+
name.given = contact_point.parliamentary_incumbency.member.given_name
|
52
|
+
name.family = contact_point.parliamentary_incumbency.member.family_name
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require_relative './test_helpers/rails_helper' if defined?(::Rails)
|
2
2
|
require_relative './test_helpers/rspec_helper'
|
3
3
|
require_relative './test_helpers/simplecov_helper'
|
4
|
-
require_relative './test_helpers/vcr_helper' if defined?(::VCR)
|
4
|
+
require_relative './test_helpers/vcr_helper' if defined?(::VCR) || ENV['RUN_VCR_IN_GEM']
|
5
5
|
require_relative './test_helpers/webmock_helper'
|
6
6
|
require_relative './test_helpers/bandiera_helper'
|
7
7
|
|
@@ -11,7 +11,7 @@ module Parliament
|
|
11
11
|
include Parliament::Utils::TestHelpers::RailsHelper if defined?(::Rails)
|
12
12
|
include Parliament::Utils::TestHelpers::RSpecHelper
|
13
13
|
include Parliament::Utils::TestHelpers::SimpleCovHelper
|
14
|
-
include Parliament::Utils::TestHelpers::VCRHelper if defined?(::VCR)
|
14
|
+
include Parliament::Utils::TestHelpers::VCRHelper if defined?(::VCR) || ENV['RUN_VCR_IN_GEM']
|
15
15
|
include Parliament::Utils::TestHelpers::WebmockHelper
|
16
16
|
include Parliament::Utils::TestHelpers::BandieraHelper
|
17
17
|
end
|
@@ -2,12 +2,10 @@ module Parliament
|
|
2
2
|
module Utils
|
3
3
|
module TestHelpers
|
4
4
|
module SimpleCovHelper
|
5
|
-
|
6
5
|
require 'coveralls'
|
7
6
|
require 'simplecov'
|
8
7
|
|
9
8
|
def self.load_rspec_config(config)
|
10
|
-
|
11
9
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
12
10
|
Coveralls::SimpleCov::Formatter,
|
13
11
|
SimpleCov::Formatter::HTMLFormatter
|
data/parliament-utils.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
24
|
spec.add_dependency 'parliament-ruby', '~> 0.7'
|
25
|
-
spec.add_dependency 'parliament-grom-decorators', '~> 0.
|
25
|
+
spec.add_dependency 'parliament-grom-decorators', '~> 0.10'
|
26
26
|
spec.add_dependency 'parliament-ntriple'
|
27
27
|
spec.add_dependency 'i18n'
|
28
28
|
spec.add_dependency 'vcard'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rebecca Appleyard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parliament-ruby
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.10'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.10'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: parliament-ntriple
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -311,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
311
|
version: '0'
|
312
312
|
requirements: []
|
313
313
|
rubyforge_project:
|
314
|
-
rubygems_version: 2.6.
|
314
|
+
rubygems_version: 2.6.11
|
315
315
|
signing_key:
|
316
316
|
specification_version: 4
|
317
317
|
summary: Parliament Utils gem.
|