cpr_adressematch 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e7fa2dc3a4817f7d8761e0a2c2a946b2362425bf
4
+ data.tar.gz: 462427046f60876585369a1370a501512a4e5d5f
5
+ SHA512:
6
+ metadata.gz: ce720d5e3016d7671ae29636074a49f3a1ef2beb5edfefd756aa2fe5966a2c8175ac4f6f3b7ade15f528c06329c25883096448e581375bded12e9dac6fa99746
7
+ data.tar.gz: 46fa905db9dd31ef45c222c622922c0ef09f0484871679da7f93ae6e1883e82f8fe7f02b55367fc7be4dcb58afb655719491afa0b0c40e3d6d078cb52be0de67
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "rdoc", "~> 3.12"
11
+ gem "bundler", "~> 1.0"
12
+ gem "jeweler", "~> 2.0.1"
13
+ gem "simplecov", ">= 0"
14
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,80 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (4.1.8)
5
+ i18n (~> 0.6, >= 0.6.9)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
+ thread_safe (~> 0.1)
9
+ tzinfo (~> 1.1)
10
+ addressable (2.3.6)
11
+ builder (3.2.2)
12
+ descendants_tracker (0.0.4)
13
+ thread_safe (~> 0.3, >= 0.3.1)
14
+ docile (1.1.5)
15
+ faraday (0.9.0)
16
+ multipart-post (>= 1.2, < 3)
17
+ git (1.2.8)
18
+ github_api (0.12.2)
19
+ addressable (~> 2.3)
20
+ descendants_tracker (~> 0.0.4)
21
+ faraday (~> 0.8, < 0.10)
22
+ hashie (>= 3.3)
23
+ multi_json (>= 1.7.5, < 2.0)
24
+ nokogiri (~> 1.6.3)
25
+ oauth2
26
+ hashie (3.3.1)
27
+ highline (1.6.21)
28
+ i18n (0.6.11)
29
+ jeweler (2.0.1)
30
+ builder
31
+ bundler (>= 1.0)
32
+ git (>= 1.2.5)
33
+ github_api
34
+ highline (>= 1.6.15)
35
+ nokogiri (>= 1.5.10)
36
+ rake
37
+ rdoc
38
+ json (1.8.1)
39
+ jwt (1.0.0)
40
+ mini_portile (0.6.1)
41
+ minitest (5.4.3)
42
+ multi_json (1.10.1)
43
+ multi_xml (0.5.5)
44
+ multipart-post (2.0.0)
45
+ nokogiri (1.6.4.1)
46
+ mini_portile (~> 0.6.0)
47
+ oauth2 (1.0.0)
48
+ faraday (>= 0.8, < 0.10)
49
+ jwt (~> 1.0)
50
+ multi_json (~> 1.3)
51
+ multi_xml (~> 0.5)
52
+ rack (~> 1.2)
53
+ rack (1.5.2)
54
+ rake (10.3.2)
55
+ rdoc (3.12.2)
56
+ json (~> 1.4)
57
+ shoulda (3.5.0)
58
+ shoulda-context (~> 1.0, >= 1.0.1)
59
+ shoulda-matchers (>= 1.4.1, < 3.0)
60
+ shoulda-context (1.2.1)
61
+ shoulda-matchers (2.7.0)
62
+ activesupport (>= 3.0.0)
63
+ simplecov (0.9.1)
64
+ docile (~> 1.1.0)
65
+ multi_json (~> 1.0)
66
+ simplecov-html (~> 0.8.0)
67
+ simplecov-html (0.8.0)
68
+ thread_safe (0.3.4)
69
+ tzinfo (1.2.2)
70
+ thread_safe (~> 0.1)
71
+
72
+ PLATFORMS
73
+ ruby
74
+
75
+ DEPENDENCIES
76
+ bundler (~> 1.0)
77
+ jeweler (~> 2.0.1)
78
+ rdoc (~> 3.12)
79
+ shoulda
80
+ simplecov
data/Rakefile CHANGED
@@ -1,9 +1,19 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
2
12
  require 'rake'
3
13
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
7
17
  gem.name = "cpr_adressematch"
8
18
  gem.summary = %Q{Interface for generating and parsing the Danish CPR Registry data files}
9
19
  gem.description = %Q{Interface for generating and parsing the Danish CPR Registry data files.
@@ -14,12 +24,11 @@ begin
14
24
  gem.homepage = "http://github.com/andersjo/cpr_adressematch"
15
25
  gem.authors = ["Anders Johannsen"]
16
26
  gem.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
17
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
- end
19
- Jeweler::GemcutterTasks.new
20
- rescue LoadError
21
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
27
+ # dependencies defined in Gemfile
22
28
  end
29
+ Jeweler::RubygemsDotOrgTasks.new
30
+
31
+
23
32
 
24
33
  require 'rake/testtask'
25
34
  Rake::TestTask.new(:test) do |test|
@@ -54,12 +63,12 @@ task :test => :check_dependencies
54
63
 
55
64
  task :default => :test
56
65
 
57
- require 'rake/rdoctask'
66
+ require 'rdoc/task'
58
67
  Rake::RDocTask.new do |rdoc|
59
68
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
60
69
 
61
70
  rdoc.rdoc_dir = 'rdoc'
62
- rdoc.title = "cpr_adressematch #{version}"
71
+ rdoc.title = "cpr_adressematch2 #{version}"
63
72
  rdoc.rdoc_files.include('README*')
64
73
  rdoc.rdoc_files.include('lib/**/*.rb')
65
74
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/cpr/field.rb CHANGED
@@ -13,7 +13,7 @@ module Cpr
13
13
  end
14
14
 
15
15
  def write(raw, value)
16
- raw[range] = cast_for_write(value).encode("iso-8859-1")[0...length]
16
+ raw[range] = cast_for_write(value).encode(Encoding::ISO_8859_1, undef: :replace, invalid: :replace)[0...length]
17
17
  raw
18
18
  end
19
19
 
metadata CHANGED
@@ -1,58 +1,122 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cpr_adressematch
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Anders Johannsen
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-11-24 00:00:00 +01:00
18
- default_executable:
19
- dependencies: []
20
-
21
- description: "Interface for generating and parsing the Danish CPR Registry data files.\n Support the 'adressematch' protocol, which can be used to query by name and adress as well as\n by the personal identifical number (CPR)\n "
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: shoulda
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jeweler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: "Interface for generating and parsing the Danish CPR Registry data files.\n
84
+ \ Support the 'adressematch' protocol, which can be used to query by name and
85
+ adress as well as\n by the personal identifical number (CPR)\n "
22
86
  email: anders@johannsen.com
23
87
  executables: []
24
-
25
88
  extensions: []
26
-
27
- extra_rdoc_files:
89
+ extra_rdoc_files:
28
90
  - LICENSE
29
91
  - README.rdoc
30
- files:
92
+ files:
93
+ - Gemfile
94
+ - Gemfile.lock
31
95
  - LICENSE
32
96
  - README.rdoc
33
97
  - Rakefile
34
98
  - VERSION
35
- - lib/cpr/adressematch/req1100.rb
36
- - lib/cpr/adressematch/req1200.rb
37
- - lib/cpr/adressematch/req1300.rb
38
- - lib/cpr/adressematch/req1400.rb
39
- - lib/cpr/adressematch/resp000.rb
40
- - lib/cpr/adressematch/resp001.rb
41
- - lib/cpr/adressematch/resp001a.rb
42
- - lib/cpr/adressematch/resp002.rb
43
- - lib/cpr/adressematch/resp003.rb
44
- - lib/cpr/adressematch/resp004.rb
45
- - lib/cpr/adressematch/resp005.rb
46
- - lib/cpr/adressematch/resp010.rb
47
- - lib/cpr/adressematch/resp011.rb
48
- - lib/cpr/adressematch/resp012.rb
49
- - lib/cpr/adressematch/resp013.rb
50
- - lib/cpr/adressematch/resp901.rb
51
- - lib/cpr/adressematch/resp902.rb
52
- - lib/cpr/adressematch/resp903.rb
53
- - lib/cpr/adressematch/resp910.rb
54
- - lib/cpr/adressematch/resp998.rb
55
- - lib/cpr/adressematch/resp999.rb
99
+ - lib/cpr/adressematch/Req1100.rb
100
+ - lib/cpr/adressematch/Req1200.rb
101
+ - lib/cpr/adressematch/Req1300.rb
102
+ - lib/cpr/adressematch/Req1400.rb
103
+ - lib/cpr/adressematch/Resp000.rb
104
+ - lib/cpr/adressematch/Resp001.rb
105
+ - lib/cpr/adressematch/Resp001A.rb
106
+ - lib/cpr/adressematch/Resp002.rb
107
+ - lib/cpr/adressematch/Resp003.rb
108
+ - lib/cpr/adressematch/Resp004.rb
109
+ - lib/cpr/adressematch/Resp005.rb
110
+ - lib/cpr/adressematch/Resp010.rb
111
+ - lib/cpr/adressematch/Resp011.rb
112
+ - lib/cpr/adressematch/Resp012.rb
113
+ - lib/cpr/adressematch/Resp013.rb
114
+ - lib/cpr/adressematch/Resp901.rb
115
+ - lib/cpr/adressematch/Resp902.rb
116
+ - lib/cpr/adressematch/Resp903.rb
117
+ - lib/cpr/adressematch/Resp910.rb
118
+ - lib/cpr/adressematch/Resp998.rb
119
+ - lib/cpr/adressematch/Resp999.rb
56
120
  - lib/cpr/alphanumeric_field.rb
57
121
  - lib/cpr/class_generator.rb
58
122
  - lib/cpr/field.rb
@@ -71,45 +135,27 @@ files:
71
135
  - test/test_cpr_req_document.rb
72
136
  - test/test_cpr_resp_document.rb
73
137
  - test/test_cpr_row.rb
74
- has_rdoc: true
75
138
  homepage: http://github.com/andersjo/cpr_adressematch
76
139
  licenses: []
77
-
140
+ metadata: {}
78
141
  post_install_message:
79
142
  rdoc_options: []
80
-
81
- require_paths:
143
+ require_paths:
82
144
  - lib
83
- required_ruby_version: !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
86
147
  - - ">="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 0
90
- version: "0"
91
- required_rubygems_version: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
94
152
  - - ">="
95
- - !ruby/object:Gem::Version
96
- segments:
97
- - 0
98
- version: "0"
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
99
155
  requirements: []
100
-
101
156
  rubyforge_project:
102
- rubygems_version: 1.3.7
157
+ rubygems_version: 2.2.2
103
158
  signing_key:
104
- specification_version: 3
159
+ specification_version: 4
105
160
  summary: Interface for generating and parsing the Danish CPR Registry data files
106
- test_files:
107
- - test/helper.rb
108
- - test/test_cpr_adressematch.rb
109
- - test/test_cpr_adressematch_resp001.rb
110
- - test/test_cpr_alphanumeric_field.rb
111
- - test/test_cpr_field.rb
112
- - test/test_cpr_numeric_field.rb
113
- - test/test_cpr_req_document.rb
114
- - test/test_cpr_resp_document.rb
115
- - test/test_cpr_row.rb
161
+ test_files: []