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 +4 -4
- data/CHANGELOG.md +4 -1
- data/Dockerfile +25 -0
- data/README.md +1 -1
- data/brreg_grunndata.gemspec +1 -1
- data/codeship-services.yml +5 -0
- data/codeship-steps.yml +3 -0
- data/lib/brreg_grunndata/types/factories.rb +6 -1
- data/lib/brreg_grunndata/version.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b3d72761cfab0088fd3b78a17492a8e7e95a7b0
|
4
|
+
data.tar.gz: 19e6cc2b092e388a8a032c59df55573bc6c59a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f78cb767f2a2901335d0279d0216349904bdd488a481d1124c3d6513f97d42ee83f4d4fa79328d1850d6de196e2b72fb8bbb175686a0771fad14530bdb36e0b
|
7
|
+
data.tar.gz: f9f8f9bba43043c5734e69e29b6c14b2bda633d2e95f5a415dcdf98f8b5a75e211dc0be88fd68e15b541e757f29f524da2712eb3735e35b636a70f3696b9efbd
|
data/CHANGELOG.md
CHANGED
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
|
-
[![
|
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
|
|
data/brreg_grunndata.gemspec
CHANGED
@@ -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'
|
data/codeship-steps.yml
ADDED
@@ -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:
|
29
|
+
name: name.length > 0 ? name : nil,
|
25
30
|
|
26
31
|
telephone_number: h[:telefonnummer],
|
27
32
|
telefax_number: h[:telefaksnummer],
|
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.
|
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:
|
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:
|
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:
|
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.
|
172
|
+
rubygems_version: 2.6.8
|
170
173
|
signing_key:
|
171
174
|
specification_version: 4
|
172
175
|
summary: Access BRREG's grunndata
|