brreg_grunndata 0.1.5 → 0.1.6

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: 671c0f2d6c14318997f3fb6657c6d630a78b3c01
4
- data.tar.gz: 64c4f541b3e68a94f482ee41cd272e786a37b189
3
+ metadata.gz: 4b3d72761cfab0088fd3b78a17492a8e7e95a7b0
4
+ data.tar.gz: 19e6cc2b092e388a8a032c59df55573bc6c59a84
5
5
  SHA512:
6
- metadata.gz: cd32ea2e29d31e52fcb8d9ac98251c4a19496e5dc7cc45d1c7f9fce5442416ecec7455f831bb2c6fe849fff15a88b85258fef077272d43ccebd12ca612358bcc
7
- data.tar.gz: 56d260c79fd2e85a152f093c648dd5f52c51c135324d2b268eb1cf52c8c04b8b4b82fae2cda7f4d00986d3c6cccb3d6ec9b18821a3294b32fafe18254eebcc71
6
+ metadata.gz: 9f78cb767f2a2901335d0279d0216349904bdd488a481d1124c3d6513f97d42ee83f4d4fa79328d1850d6de196e2b72fb8bbb175686a0771fad14530bdb36e0b
7
+ data.tar.gz: f9f8f9bba43043c5734e69e29b6c14b2bda633d2e95f5a415dcdf98f8b5a75e211dc0be88fd68e15b541e757f29f524da2712eb3735e35b636a70f3696b9efbd
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ## v.0.1.6 (to be released)
1
+ ## v.0.1.7 (to be released)
2
+
3
+ ## v.0.1.6
4
+ * FIXED: Issue where organization name was not read completely.
2
5
 
3
6
  ## v.0.1.5
4
7
  * FIXED: Issue with service and hent_saerlige_opplysninger when client returned one line.
data/Dockerfile ADDED
@@ -0,0 +1,25 @@
1
+ FROM ruby:2.3.3
2
+
3
+
4
+ ### DEPENDENCIES ###
5
+
6
+ # RUN apt-get update && apt-get install -y \
7
+ # less
8
+
9
+
10
+ ### PREPARE ###
11
+
12
+ # Don't install doc for ruby gems
13
+ RUN echo 'gem: --no-rdoc --no-ri' > /etc/gemrc
14
+
15
+ RUN mkdir /app
16
+ WORKDIR /app
17
+
18
+ # copy over Gemfile and install bundle
19
+ ADD Gemfile .
20
+ ADD brreg_grunndata.gemspec .
21
+ ADD lib/brreg_grunndata/version.rb /app/lib/brreg_grunndata/version.rb
22
+
23
+ RUN bundle install --jobs 20 --retry 5
24
+
25
+ COPY . .
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Ruby wrapper for brreg / enhetsregisteret's [soap web service](https://www.brreg.no/produkter-og-tjenester/bestille/tilgang-til-enhetsregisteret-via-web-services/).
4
4
 
5
- [![Build Status](https://snap-ci.com/gramo-org/brreg_grunndata/branch/master/build_image)](https://snap-ci.com/gramo-org/brreg_grunndata/branch/master)
5
+ [ ![Codeship Status for gramo-org/brreg_grunndata](https://app.codeship.com/projects/7ef81de0-f07c-0134-bc88-3e50d5e616b5/status?branch=master)](https://app.codeship.com/projects/209130)
6
6
 
7
7
  # Usage
8
8
 
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_dependency 'savon', '~> 2.11'
27
+ spec.add_dependency 'savon', '~> 2.11.1'
28
28
  spec.add_dependency 'dry-struct', '~> 0.1.1'
29
29
 
30
30
  spec.add_development_dependency 'bundler', '~> 1.13'
@@ -0,0 +1,5 @@
1
+ brreg_grunndata:
2
+ build:
3
+ image: gramoorg/brreg_grunndata
4
+ dockerfile_path: Dockerfile
5
+ cached: true
@@ -0,0 +1,3 @@
1
+ - name: tests
2
+ service: brreg_grunndata
3
+ command: bundle exec rspec
@@ -17,11 +17,16 @@ module BrregGrunndata
17
17
  #
18
18
  # @return BrregGrunndata::Types::Organization
19
19
  def organization(h)
20
+ name = h.fetch :navn, {}
21
+ name = [
22
+ name[:navn1], name[:navn2], name[:navn3], name[:navn4], name[:navn5]
23
+ ].compact.join ' '
24
+
20
25
  Organization.new(
21
26
  orgnr: h.fetch(:organisasjonsnummer),
22
27
  organizational_form: organizational_form(h[:organisasjonsform]),
23
28
 
24
- name: h.dig(:navn, :navn1),
29
+ name: name.length > 0 ? name : nil,
25
30
 
26
31
  telephone_number: h[:telefonnummer],
27
32
  telefax_number: h[:telefaksnummer],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrregGrunndata
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brreg_grunndata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorbjørn Hermansen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-19 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.11'
19
+ version: 2.11.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.11'
26
+ version: 2.11.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dry-struct
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -121,6 +121,7 @@ files:
121
121
  - ".travis.yml"
122
122
  - CHANGELOG.md
123
123
  - CODE_OF_CONDUCT.md
124
+ - Dockerfile
124
125
  - Gemfile
125
126
  - LICENSE.txt
126
127
  - README.md
@@ -128,6 +129,8 @@ files:
128
129
  - bin/console
129
130
  - bin/setup
130
131
  - brreg_grunndata.gemspec
132
+ - codeship-services.yml
133
+ - codeship-steps.yml
131
134
  - lib/brreg_grunndata.rb
132
135
  - lib/brreg_grunndata/client.rb
133
136
  - lib/brreg_grunndata/client/response.rb
@@ -166,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
169
  version: '0'
167
170
  requirements: []
168
171
  rubyforge_project:
169
- rubygems_version: 2.5.2
172
+ rubygems_version: 2.6.8
170
173
  signing_key:
171
174
  specification_version: 4
172
175
  summary: Access BRREG's grunndata