eancom 0.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.gitignore +187 -6
  4. data/.gitlab-ci.yml +27 -0
  5. data/.rspec_status +225 -0
  6. data/.rubocop.yml +2 -0
  7. data/.ruby-version +1 -0
  8. data/Gemfile +4 -2
  9. data/Gemfile.lock +87 -3
  10. data/bin/console +3 -2
  11. data/definitions/desadv/d01b.rb +205 -0
  12. data/definitions/desadv/d96a.rb +108 -73
  13. data/definitions/segments/alc.rb +236 -0
  14. data/definitions/segments/ali.rb +93 -0
  15. data/definitions/segments/bgm.rb +267 -0
  16. data/definitions/segments/cav.rb +122 -0
  17. data/definitions/segments/cci.rb +136 -0
  18. data/definitions/segments/cnt.rb +78 -0
  19. data/definitions/segments/cps.rb +76 -0
  20. data/definitions/segments/cux.rb +167 -0
  21. data/definitions/segments/dtm.rb +159 -0
  22. data/definitions/segments/ftx.rb +143 -0
  23. data/definitions/segments/imd.rb +356 -0
  24. data/definitions/segments/lin.rb +113 -0
  25. data/definitions/segments/loc.rb +89 -0
  26. data/definitions/segments/mea.rb +189 -0
  27. data/definitions/segments/moa.rb +144 -0
  28. data/definitions/segments/nad.rb +254 -0
  29. data/definitions/segments/pac.rb +250 -0
  30. data/definitions/segments/pgi.rb +148 -0
  31. data/definitions/segments/pia.rb +501 -0
  32. data/definitions/segments/pri.rb +188 -0
  33. data/definitions/segments/qty.rb +79 -0
  34. data/definitions/segments/rff.rb +166 -0
  35. data/definitions/segments/tax.rb +259 -0
  36. data/definitions/segments/tdt.rb +254 -0
  37. data/definitions/segments/una.rb +85 -0
  38. data/definitions/segments/unb.rb +284 -0
  39. data/definitions/segments/unh.rb +118 -0
  40. data/definitions/segments/uns.rb +40 -0
  41. data/definitions/segments/unt.rb +48 -0
  42. data/definitions/segments/unz.rb +48 -0
  43. data/definitions/slsrpt/d01b.rb +201 -0
  44. data/definitions/slsrpt/d96a.rb +194 -0
  45. data/eancom.gemspec +9 -5
  46. data/lib/eancom/definition.rb +1 -1
  47. data/lib/eancom/edifact/body.rb +63 -0
  48. data/lib/eancom/edifact/composite.rb +38 -0
  49. data/lib/eancom/edifact/data.rb +108 -0
  50. data/lib/eancom/edifact/document.rb +43 -11
  51. data/lib/eancom/edifact/document_element.rb +26 -0
  52. data/lib/eancom/edifact/footer.rb +6 -0
  53. data/lib/eancom/edifact/header.rb +15 -0
  54. data/lib/eancom/edifact/item.rb +40 -0
  55. data/lib/eancom/edifact/message.rb +24 -16
  56. data/lib/eancom/edifact/segment.rb +131 -12
  57. data/lib/eancom/edifact/segments/alc.rb +61 -0
  58. data/lib/eancom/edifact/segments/ali.rb +52 -0
  59. data/lib/eancom/edifact/segments/bgm.rb +45 -0
  60. data/lib/eancom/edifact/segments/cav.rb +47 -0
  61. data/lib/eancom/edifact/segments/cci.rb +53 -0
  62. data/lib/eancom/edifact/segments/cnt.rb +33 -0
  63. data/lib/eancom/edifact/segments/cps.rb +30 -0
  64. data/lib/eancom/edifact/segments/cux.rb +60 -0
  65. data/lib/eancom/edifact/segments/dtm.rb +43 -0
  66. data/lib/eancom/edifact/segments/ftx.rb +63 -0
  67. data/lib/eancom/edifact/segments/imd.rb +69 -0
  68. data/lib/eancom/edifact/segments/lin.rb +43 -0
  69. data/lib/eancom/edifact/segments/loc.rb +43 -0
  70. data/lib/eancom/edifact/segments/mea.rb +53 -0
  71. data/lib/eancom/edifact/segments/moa.rb +45 -0
  72. data/lib/eancom/edifact/segments/nad.rb +107 -0
  73. data/lib/eancom/edifact/segments/pac.rb +54 -0
  74. data/lib/eancom/edifact/segments/pgi.rb +45 -0
  75. data/lib/eancom/edifact/segments/pia.rb +107 -0
  76. data/lib/eancom/edifact/segments/pri.rb +54 -0
  77. data/lib/eancom/edifact/segments/qty.rb +40 -0
  78. data/lib/eancom/edifact/segments/rff.rb +41 -0
  79. data/lib/eancom/edifact/segments/tax.rb +72 -0
  80. data/lib/eancom/edifact/segments/tdt.rb +54 -0
  81. data/lib/eancom/edifact/segments/una.rb +51 -0
  82. data/lib/eancom/edifact/segments/unb.rb +69 -0
  83. data/lib/eancom/edifact/segments/unh.rb +46 -0
  84. data/lib/eancom/edifact/segments/uns.rb +29 -0
  85. data/lib/eancom/edifact/segments/unt.rb +28 -0
  86. data/lib/eancom/edifact/segments/unz.rb +28 -0
  87. data/lib/eancom/edifact/structure.rb +91 -0
  88. data/lib/eancom/edifact.rb +45 -12
  89. data/lib/eancom/factory.rb +8 -7
  90. data/lib/eancom/parser/document.rb +68 -0
  91. data/lib/eancom/parser/segment.rb +71 -0
  92. data/lib/eancom/parser.rb +7 -0
  93. data/lib/eancom/version.rb +1 -1
  94. data/lib/eancom.rb +59 -16
  95. metadata +138 -5
  96. data/lib/eancom/edifact/element.rb +0 -16
  97. data/lib/eancom/edifact/envelope.rb +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66282d8cdd5814a9cd6ddb733530d578c025da6b215e577a0d5f890b1324295f
4
- data.tar.gz: 39b225da80ab4dbc9886259b7cf61146e68364855f5f584c66348daee02e31d1
3
+ metadata.gz: ed1960a328b39c0fb90eee78d4d9e2b26a08343c3c562f2fb98728b5d7cc46f0
4
+ data.tar.gz: 00f51322b7afab8f06d20898d5dfb49fadffd54388d4c1c4a66ac31ca644c80f
5
5
  SHA512:
6
- metadata.gz: a0efc78d25648823163e8e2e19b8c7e5aea2db94206bdf691ef1a2ba066501b8bc72799ad6de0d89dc42d66999600a61595dbb3f83e3a855fe088ddf7257f56c
7
- data.tar.gz: 5791816403f0ebd74821f43c8fc8aaa8f609c9f44fb99429ed61e59eb1c91ea8122a220fc9f9ec960b2019adbad5bed239bf2301f6d536aa4f7da5f5aa6d1bfe
6
+ metadata.gz: 68c56347ae0338ef02d28f17bd008c8fbcc8566347127baa14e9fff4bfdcb39e95a312d1df544a0719b4b17f5b26d771d3b8e01322b7bf9eebf4c714d13b3103
7
+ data.tar.gz: 4ef213cf27bae001c14550ffaa20cd7723973b11b1cdc1f639751e65d044868b15de754b28c7dd3710e355a470932ae3c863daecba267c5b3ef1040c794e548f
data/.DS_Store ADDED
Binary file
data/.gitignore CHANGED
@@ -1,11 +1,192 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
1
+
2
+ # Created by https://www.gitignore.io/api/git,vim,ruby,rails,macos
3
+ # Edit at https://www.gitignore.io/?templates=git,vim,ruby,rails,macos
4
+
5
+ ### Git ###
6
+ # Created by git for backups. To disable backups in Git:
7
+ # $ git config --global mergetool.keepBackup false
8
+ *.orig
9
+
10
+ # Created by git when using merge tools for conflicts
11
+ *.BACKUP.*
12
+ *.BASE.*
13
+ *.LOCAL.*
14
+ *.REMOTE.*
15
+ *_BACKUP_*.txt
16
+ *_BASE_*.txt
17
+ *_LOCAL_*.txt
18
+ *_REMOTE_*.txt
19
+
20
+ ### macOS ###
21
+ # General
22
+ *.DS_Store
23
+ .AppleDouble
24
+ .LSOverride
25
+
26
+ # Icon must end with two \r
27
+ Icon
28
+
29
+ # Thumbnails
30
+ ._*
31
+
32
+ # Files that might appear in the root of a volume
33
+ .DocumentRevisions-V100
34
+ .fseventsd
35
+ .Spotlight-V100
36
+ .TemporaryItems
37
+ .Trashes
38
+ .VolumeIcon.icns
39
+ .com.apple.timemachine.donotpresent
40
+
41
+ # Directories potentially created on remote AFP share
42
+ .AppleDB
43
+ .AppleDesktop
44
+ Network Trash Folder
45
+ Temporary Items
46
+ .apdisk
47
+
48
+ ### Rails ###
49
+ *.rbc
50
+ capybara-*.html
51
+ .rspec
52
+ /db/*.sqlite3
53
+ /db/*.sqlite3-journal
54
+ /public/system
4
55
  /coverage/
5
- /doc/
56
+ /spec/tmp
57
+ rerun.txt
58
+ pickle-email-*.html
59
+
60
+ # Ignore all logfiles and tempfiles.
61
+ /log/*
62
+ /tmp/*
63
+ !/log/.keep
64
+ !/tmp/.keep
65
+
66
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
67
+ config/initializers/secret_token.rb
68
+ config/master.key
69
+
70
+ # Only include if you have production secrets in this file, which is no longer a Rails default
71
+ # config/secrets.yml
72
+
73
+ # dotenv
74
+ # TODO Comment out this rule if environment variables can be committed
75
+ .env
76
+
77
+ ## Environment normalization:
78
+ /.bundle
79
+ /vendor/bundle
80
+
81
+ # these should all be checked in to normalize the environment:
82
+ # Gemfile.lock, .ruby-version, .ruby-gemset
83
+
84
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
85
+ .rvmrc
86
+
87
+ # if using bower-rails ignore default bower_components path bower.json files
88
+ /vendor/assets/bower_components
89
+ *.bowerrc
90
+ bower.json
91
+
92
+ # Ignore pow environment settings
93
+ .powenv
94
+
95
+ # Ignore Byebug command history file.
96
+ .byebug_history
97
+
98
+ # Ignore node_modules
99
+ node_modules/
100
+
101
+ # Ignore precompiled javascript packs
102
+ /public/packs
103
+ /public/packs-test
104
+ /public/assets
105
+
106
+ # Ignore yarn files
107
+ /yarn-error.log
108
+ yarn-debug.log*
109
+ .yarn-integrity
110
+
111
+ # Ignore uploaded files in development
112
+ /storage/*
113
+ !/storage/.keep
114
+
115
+ ### Ruby ###
116
+ *.gem
117
+ /.config
118
+ /InstalledFiles
6
119
  /pkg/
7
120
  /spec/reports/
121
+ /spec/examples.txt
122
+ /test/tmp/
123
+ /test/version_tmp/
8
124
  /tmp/
9
125
 
10
- # rspec failure tracking
11
- .rspec_status
126
+ # Used by dotenv library to load environment variables.
127
+ # .env
128
+
129
+ # Ignore Byebug command history file.
130
+
131
+ ## Specific to RubyMotion:
132
+ .dat*
133
+ .repl_history
134
+ build/
135
+ *.bridgesupport
136
+ build-iPhoneOS/
137
+ build-iPhoneSimulator/
138
+
139
+ ## Specific to RubyMotion (use of CocoaPods):
140
+ #
141
+ # We recommend against adding the Pods directory to your .gitignore. However
142
+ # you should judge for yourself, the pros and cons are mentioned at:
143
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
144
+ # vendor/Pods/
145
+
146
+ ## Documentation cache and generated files:
147
+ /.yardoc/
148
+ /_yardoc/
149
+ /doc/
150
+ /rdoc/
151
+
152
+ /.bundle/
153
+ /lib/bundler/man/
154
+
155
+ # for a library or gem, you might want to ignore these files since the code is
156
+ # intended to run in multiple environments; otherwise, check them in:
157
+ # Gemfile.lock
158
+ # .ruby-version
159
+ # .ruby-gemset
160
+
161
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
162
+
163
+ ### Ruby Patch ###
164
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
165
+ .rubocop-https?--*
166
+
167
+ ### Vim ###
168
+ # Swap
169
+ [._]*.s[a-v][a-z]
170
+ [._]*.sw[a-p]
171
+ [._]s[a-rt-v][a-z]
172
+ [._]ss[a-gi-z]
173
+ [._]sw[a-p]
174
+
175
+ # Session
176
+ Session.vim
177
+ Sessionx.vim
178
+
179
+ # Temporary
180
+ .netrwhist
181
+ *~
182
+
183
+ # Auto-generated tag files
184
+ tags
185
+
186
+ # Persistent undo
187
+ [._]*.un~
188
+
189
+ # Coc configuration directory
190
+ .vim
191
+
192
+ # End of https://www.gitignore.io/api/git,vim,ruby,rails,macos
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,27 @@
1
+ variables:
2
+ RUBY_DOCKER_IMAGE: eu.gcr.io/fadendaten-staging/ruby:3.0.2-alpine-dev
3
+
4
+ include:
5
+ - project: fadendaten/infrastructure/gitlab-runner
6
+ file: gitlabci/base.yml
7
+
8
+ stages:
9
+ - pre-test
10
+ - lint
11
+ - test
12
+
13
+ Cache assets:
14
+ stage: pre-test
15
+ extends: .cache_assets:fadendaten
16
+
17
+ pronto:
18
+ stage: pre-test
19
+ extends: .pronto:fadendaten
20
+
21
+ rspec:
22
+ stage: test
23
+ extends: .rspec:base:fadendaten
24
+ before_script: # exclude rake db:schema:load in before_script
25
+ - bundle check --path=vendor || bundle install --path=vendor --jobs=$(nproc)
26
+ script:
27
+ - bundle exec rspec spec/
data/.rspec_status ADDED
@@ -0,0 +1,225 @@
1
+ example_id | status | run_time |
2
+ ------------------------------------------------------- | ------ | --------------- |
3
+ ./spec/eancom/definition_spec.rb[1:1:1] | passed | 0.00161 seconds |
4
+ ./spec/eancom/definition_spec.rb[1:1:2] | passed | 0.00087 seconds |
5
+ ./spec/eancom/definition_spec.rb[1:1:3] | passed | 0.00071 seconds |
6
+ ./spec/eancom/definition_spec.rb[1:1:4] | passed | 0.00012 seconds |
7
+ ./spec/eancom/definition_spec.rb[1:1:5] | passed | 0.00009 seconds |
8
+ ./spec/eancom/definition_spec.rb[1:2:1] | passed | 0.00011 seconds |
9
+ ./spec/eancom/definition_spec.rb[1:2:2] | passed | 0.00098 seconds |
10
+ ./spec/eancom/definition_spec.rb[1:2:3] | passed | 0.00009 seconds |
11
+ ./spec/eancom/definition_spec.rb[1:2:4] | passed | 0.00007 seconds |
12
+ ./spec/eancom/definition_spec.rb[1:3:1:1] | passed | 0.00019 seconds |
13
+ ./spec/eancom/definition_spec.rb[1:3:1:2] | passed | 0.00011 seconds |
14
+ ./spec/eancom/edifact/composite_spec.rb[1:1:1] | passed | 0.00009 seconds |
15
+ ./spec/eancom/edifact/composite_spec.rb[1:1:2] | passed | 0.00008 seconds |
16
+ ./spec/eancom/edifact/composite_spec.rb[1:2:1] | passed | 0.0001 seconds |
17
+ ./spec/eancom/edifact/composite_spec.rb[1:2:2:1] | passed | 0.00152 seconds |
18
+ ./spec/eancom/edifact/composite_spec.rb[1:3:1] | passed | 0.00017 seconds |
19
+ ./spec/eancom/edifact/composite_spec.rb[1:4:1] | passed | 0.0001 seconds |
20
+ ./spec/eancom/edifact/composite_spec.rb[1:5:1] | passed | 0.0001 seconds |
21
+ ./spec/eancom/edifact/data_spec.rb[1:1:1] | passed | 0.00014 seconds |
22
+ ./spec/eancom/edifact/data_spec.rb[1:1:2] | passed | 0.00011 seconds |
23
+ ./spec/eancom/edifact/data_spec.rb[1:1:3] | passed | 0.00013 seconds |
24
+ ./spec/eancom/edifact/data_spec.rb[1:1:4] | passed | 0.00008 seconds |
25
+ ./spec/eancom/edifact/data_spec.rb[1:1:5] | passed | 0.00008 seconds |
26
+ ./spec/eancom/edifact/data_spec.rb[1:1:6] | passed | 0.00008 seconds |
27
+ ./spec/eancom/edifact/data_spec.rb[1:2:1:1:1] | passed | 0.00012 seconds |
28
+ ./spec/eancom/edifact/data_spec.rb[1:2:1:2:1] | passed | 0.00021 seconds |
29
+ ./spec/eancom/edifact/data_spec.rb[1:2:2:1:1:1] | passed | 0.00025 seconds |
30
+ ./spec/eancom/edifact/data_spec.rb[1:2:2:1:2:1] | passed | 0.00018 seconds |
31
+ ./spec/eancom/edifact/data_spec.rb[1:2:2:2:1:1] | passed | 0.00016 seconds |
32
+ ./spec/eancom/edifact/data_spec.rb[1:2:2:2:2:1] | passed | 0.00016 seconds |
33
+ ./spec/eancom/edifact/data_spec.rb[1:2:2:3:1] | passed | 0.00015 seconds |
34
+ ./spec/eancom/edifact/data_spec.rb[1:2:3:1:1:1] | passed | 0.00012 seconds |
35
+ ./spec/eancom/edifact/data_spec.rb[1:2:3:1:2:1] | passed | 0.00013 seconds |
36
+ ./spec/eancom/edifact/data_spec.rb[1:2:3:1:2:2] | passed | 0.0001 seconds |
37
+ ./spec/eancom/edifact/data_spec.rb[1:2:3:2:1] | passed | 0.00013 seconds |
38
+ ./spec/eancom/edifact/data_spec.rb[1:2:4:1:1] | passed | 0.00021 seconds |
39
+ ./spec/eancom/edifact/data_spec.rb[1:3:1:1] | passed | 0.00023 seconds |
40
+ ./spec/eancom/edifact/data_spec.rb[1:3:1:2:1] | passed | 0.00023 seconds |
41
+ ./spec/eancom/edifact/data_spec.rb[1:3:2:1] | passed | 0.00012 seconds |
42
+ ./spec/eancom/edifact/header_spec.rb[1:1:1] | passed | 0.00024 seconds |
43
+ ./spec/eancom/edifact/segment_spec.rb[1:1:1] | passed | 0.00073 seconds |
44
+ ./spec/eancom/edifact/segment_spec.rb[1:2:1] | passed | 0.00074 seconds |
45
+ ./spec/eancom/edifact/segment_spec.rb[1:3:1] | passed | 0.00068 seconds |
46
+ ./spec/eancom/edifact/segment_spec.rb[1:4:1] | passed | 0.00061 seconds |
47
+ ./spec/eancom/edifact/segment_spec.rb[1:5:1] | passed | 0.00018 seconds |
48
+ ./spec/eancom/edifact/segment_spec.rb[1:5:2] | passed | 0.00014 seconds |
49
+ ./spec/eancom/edifact/segment_spec.rb[1:6:1] | passed | 0.00029 seconds |
50
+ ./spec/eancom/edifact/segment_spec.rb[1:7:1] | passed | 0.00021 seconds |
51
+ ./spec/eancom/edifact/segment_spec.rb[1:8:1:1] | passed | 0.00015 seconds |
52
+ ./spec/eancom/edifact/segments/bgm_spec.rb[1:1:1] | passed | 0.00017 seconds |
53
+ ./spec/eancom/edifact/segments/bgm_spec.rb[1:2:1] | passed | 0.00018 seconds |
54
+ ./spec/eancom/edifact/segments/bgm_spec.rb[1:3:1] | passed | 0.00026 seconds |
55
+ ./spec/eancom/edifact/segments/bgm_spec.rb[1:4:1] | passed | 0.00038 seconds |
56
+ ./spec/eancom/edifact/segments/bgm_spec.rb[1:5:1] | passed | 0.00048 seconds |
57
+ ./spec/eancom/edifact/segments/bgm_spec.rb[1:6:1] | passed | 0.00029 seconds |
58
+ ./spec/eancom/edifact/segments/cnt_spec.rb[1:1:1] | passed | 0.00017 seconds |
59
+ ./spec/eancom/edifact/segments/cnt_spec.rb[1:2:1] | passed | 0.00012 seconds |
60
+ ./spec/eancom/edifact/segments/cnt_spec.rb[1:3:1] | passed | 0.00014 seconds |
61
+ ./spec/eancom/edifact/segments/cnt_spec.rb[1:4:1] | passed | 0.00019 seconds |
62
+ ./spec/eancom/edifact/segments/cnt_spec.rb[1:5:1] | passed | 0.00041 seconds |
63
+ ./spec/eancom/edifact/segments/cnt_spec.rb[1:6:1] | passed | 0.00026 seconds |
64
+ ./spec/eancom/edifact/segments/cps_spec.rb[1:1:1] | passed | 0.00116 seconds |
65
+ ./spec/eancom/edifact/segments/cps_spec.rb[1:2:1] | passed | 0.0004 seconds |
66
+ ./spec/eancom/edifact/segments/cps_spec.rb[1:3:1] | passed | 0.00012 seconds |
67
+ ./spec/eancom/edifact/segments/cps_spec.rb[1:4:1] | passed | 0.00017 seconds |
68
+ ./spec/eancom/edifact/segments/cps_spec.rb[1:5:1] | passed | 0.00019 seconds |
69
+ ./spec/eancom/edifact/segments/cps_spec.rb[1:6:1] | passed | 0.00013 seconds |
70
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:1:1] | passed | 0.00014 seconds |
71
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:2:1] | passed | 0.00012 seconds |
72
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:3:1] | passed | 0.00016 seconds |
73
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:4:1] | passed | 0.00019 seconds |
74
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:5:1] | passed | 0.00014 seconds |
75
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:6:1] | passed | 0.00015 seconds |
76
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:7:1] | passed | 0.00012 seconds |
77
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:7:2] | passed | 0.00011 seconds |
78
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:7:3] | passed | 0.00011 seconds |
79
+ ./spec/eancom/edifact/segments/dtm_spec.rb[1:7:4] | passed | 0.00011 seconds |
80
+ ./spec/eancom/edifact/segments/imd_spec.rb[1:1:1] | passed | 0.00016 seconds |
81
+ ./spec/eancom/edifact/segments/imd_spec.rb[1:2:1] | passed | 0.00016 seconds |
82
+ ./spec/eancom/edifact/segments/imd_spec.rb[1:3:1] | passed | 0.00021 seconds |
83
+ ./spec/eancom/edifact/segments/imd_spec.rb[1:4:1] | passed | 0.00023 seconds |
84
+ ./spec/eancom/edifact/segments/imd_spec.rb[1:5:1] | passed | 0.00031 seconds |
85
+ ./spec/eancom/edifact/segments/imd_spec.rb[1:6:1] | passed | 0.00018 seconds |
86
+ ./spec/eancom/edifact/segments/lin_spec.rb[1:1:1] | passed | 0.00014 seconds |
87
+ ./spec/eancom/edifact/segments/lin_spec.rb[1:2:1] | passed | 0.00012 seconds |
88
+ ./spec/eancom/edifact/segments/lin_spec.rb[1:3:1] | passed | 0.00028 seconds |
89
+ ./spec/eancom/edifact/segments/lin_spec.rb[1:4:1] | passed | 0.00021 seconds |
90
+ ./spec/eancom/edifact/segments/lin_spec.rb[1:5:1] | passed | 0.00024 seconds |
91
+ ./spec/eancom/edifact/segments/lin_spec.rb[1:6:1] | passed | 0.00016 seconds |
92
+ ./spec/eancom/edifact/segments/nad_spec.rb[1:1:1] | passed | 0.0002 seconds |
93
+ ./spec/eancom/edifact/segments/nad_spec.rb[1:2:1] | passed | 0.00016 seconds |
94
+ ./spec/eancom/edifact/segments/nad_spec.rb[1:3:1] | passed | 0.00023 seconds |
95
+ ./spec/eancom/edifact/segments/nad_spec.rb[1:4:1] | passed | 0.00036 seconds |
96
+ ./spec/eancom/edifact/segments/nad_spec.rb[1:5:1] | passed | 0.00057 seconds |
97
+ ./spec/eancom/edifact/segments/nad_spec.rb[1:6:1] | passed | 0.00025 seconds |
98
+ ./spec/eancom/edifact/segments/pac_spec.rb[1:1:1] | passed | 0.00018 seconds |
99
+ ./spec/eancom/edifact/segments/pac_spec.rb[1:2:1] | passed | 0.00014 seconds |
100
+ ./spec/eancom/edifact/segments/pac_spec.rb[1:3:1] | passed | 0.00015 seconds |
101
+ ./spec/eancom/edifact/segments/pac_spec.rb[1:4:1] | passed | 0.00025 seconds |
102
+ ./spec/eancom/edifact/segments/pac_spec.rb[1:5:1] | passed | 0.00036 seconds |
103
+ ./spec/eancom/edifact/segments/pac_spec.rb[1:6:1] | passed | 0.00018 seconds |
104
+ ./spec/eancom/edifact/segments/pia_spec.rb[1:1:1] | passed | 0.00016 seconds |
105
+ ./spec/eancom/edifact/segments/pia_spec.rb[1:2:1] | passed | 0.00014 seconds |
106
+ ./spec/eancom/edifact/segments/pia_spec.rb[1:3:1] | passed | 0.00018 seconds |
107
+ ./spec/eancom/edifact/segments/pia_spec.rb[1:4:1] | passed | 0.00028 seconds |
108
+ ./spec/eancom/edifact/segments/pia_spec.rb[1:5:1] | passed | 0.00045 seconds |
109
+ ./spec/eancom/edifact/segments/pia_spec.rb[1:6:1] | passed | 0.00019 seconds |
110
+ ./spec/eancom/edifact/segments/qty_spec.rb[1:1:1] | passed | 0.00012 seconds |
111
+ ./spec/eancom/edifact/segments/qty_spec.rb[1:2:1] | passed | 0.0001 seconds |
112
+ ./spec/eancom/edifact/segments/qty_spec.rb[1:3:1] | passed | 0.00014 seconds |
113
+ ./spec/eancom/edifact/segments/qty_spec.rb[1:4:1] | passed | 0.00014 seconds |
114
+ ./spec/eancom/edifact/segments/qty_spec.rb[1:5:1] | passed | 0.00016 seconds |
115
+ ./spec/eancom/edifact/segments/qty_spec.rb[1:6:1] | passed | 0.00017 seconds |
116
+ ./spec/eancom/edifact/segments/rff_spec.rb[1:1:1] | passed | 0.00012 seconds |
117
+ ./spec/eancom/edifact/segments/rff_spec.rb[1:2:1] | passed | 0.00012 seconds |
118
+ ./spec/eancom/edifact/segments/rff_spec.rb[1:3:1] | passed | 0.00014 seconds |
119
+ ./spec/eancom/edifact/segments/rff_spec.rb[1:4:1] | passed | 0.00014 seconds |
120
+ ./spec/eancom/edifact/segments/rff_spec.rb[1:5:1] | passed | 0.00015 seconds |
121
+ ./spec/eancom/edifact/segments/rff_spec.rb[1:6:1] | passed | 0.0001 seconds |
122
+ ./spec/eancom/edifact/segments/tdt_spec.rb[1:1:1] | passed | 0.00017 seconds |
123
+ ./spec/eancom/edifact/segments/tdt_spec.rb[1:2:1] | passed | 0.00023 seconds |
124
+ ./spec/eancom/edifact/segments/tdt_spec.rb[1:3:1] | passed | 0.0002 seconds |
125
+ ./spec/eancom/edifact/segments/tdt_spec.rb[1:4:1] | passed | 0.00048 seconds |
126
+ ./spec/eancom/edifact/segments/tdt_spec.rb[1:5:1] | passed | 0.00066 seconds |
127
+ ./spec/eancom/edifact/segments/tdt_spec.rb[1:6:1] | passed | 0.00028 seconds |
128
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:1] | passed | 0.0002 seconds |
129
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:2] | passed | 0.00013 seconds |
130
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:3] | passed | 0.00023 seconds |
131
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:4] | passed | 0.00019 seconds |
132
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:5] | passed | 0.00042 seconds |
133
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:6] | passed | 0.00027 seconds |
134
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:7] | passed | 0.0004 seconds |
135
+ ./spec/eancom/edifact/segments/una_spec.rb[1:1:8] | passed | 0.00031 seconds |
136
+ ./spec/eancom/edifact/segments/una_spec.rb[1:2:1] | passed | 0.00036 seconds |
137
+ ./spec/eancom/edifact/segments/una_spec.rb[1:3:1] | passed | 0.00138 seconds |
138
+ ./spec/eancom/edifact/segments/una_spec.rb[1:4:1] | passed | 0.00064 seconds |
139
+ ./spec/eancom/edifact/segments/una_spec.rb[1:5:1] | passed | 0.00018 seconds |
140
+ ./spec/eancom/edifact/segments/una_spec.rb[1:6:1] | passed | 0.00013 seconds |
141
+ ./spec/eancom/edifact/segments/una_spec.rb[1:7:1] | passed | 0.00013 seconds |
142
+ ./spec/eancom/edifact/segments/una_spec.rb[1:7:2] | passed | 0.00014 seconds |
143
+ ./spec/eancom/edifact/segments/una_spec.rb[1:7:3] | passed | 0.00015 seconds |
144
+ ./spec/eancom/edifact/segments/una_spec.rb[1:7:4] | passed | 0.00013 seconds |
145
+ ./spec/eancom/edifact/segments/una_spec.rb[1:7:5] | passed | 0.00015 seconds |
146
+ ./spec/eancom/edifact/segments/una_spec.rb[1:7:6] | passed | 0.00013 seconds |
147
+ ./spec/eancom/edifact/segments/una_spec.rb[1:7:7] | passed | 0.00013 seconds |
148
+ ./spec/eancom/edifact/segments/unb_spec.rb[1:1:1] | passed | 0.00021 seconds |
149
+ ./spec/eancom/edifact/segments/unb_spec.rb[1:2:1] | passed | 0.00033 seconds |
150
+ ./spec/eancom/edifact/segments/unb_spec.rb[1:3:1] | passed | 0.00034 seconds |
151
+ ./spec/eancom/edifact/segments/unb_spec.rb[1:4:1] | passed | 0.00055 seconds |
152
+ ./spec/eancom/edifact/segments/unb_spec.rb[1:5:1] | passed | 0.00046 seconds |
153
+ ./spec/eancom/edifact/segments/unb_spec.rb[1:6:1] | passed | 0.00024 seconds |
154
+ ./spec/eancom/edifact/segments/unh_spec.rb[1:1:1] | passed | 0.00027 seconds |
155
+ ./spec/eancom/edifact/segments/unh_spec.rb[1:2:1] | passed | 0.00015 seconds |
156
+ ./spec/eancom/edifact/segments/unh_spec.rb[1:3:1] | passed | 0.00022 seconds |
157
+ ./spec/eancom/edifact/segments/unh_spec.rb[1:4:1] | passed | 0.00019 seconds |
158
+ ./spec/eancom/edifact/segments/unh_spec.rb[1:5:1] | passed | 0.00024 seconds |
159
+ ./spec/eancom/edifact/segments/unh_spec.rb[1:6:1] | passed | 0.00017 seconds |
160
+ ./spec/eancom/edifact/segments/unt_spec.rb[1:1:1] | passed | 0.00013 seconds |
161
+ ./spec/eancom/edifact/segments/unt_spec.rb[1:2:1] | passed | 0.0001 seconds |
162
+ ./spec/eancom/edifact/segments/unt_spec.rb[1:3:1] | passed | 0.0001 seconds |
163
+ ./spec/eancom/edifact/segments/unt_spec.rb[1:4:1] | passed | 0.00016 seconds |
164
+ ./spec/eancom/edifact/segments/unt_spec.rb[1:5:1] | passed | 0.00017 seconds |
165
+ ./spec/eancom/edifact/segments/unt_spec.rb[1:6:1] | passed | 0.00012 seconds |
166
+ ./spec/eancom/edifact/segments/unz_spec.rb[1:1:1] | passed | 0.00013 seconds |
167
+ ./spec/eancom/edifact/segments/unz_spec.rb[1:2:1] | passed | 0.00009 seconds |
168
+ ./spec/eancom/edifact/segments/unz_spec.rb[1:3:1] | passed | 0.00012 seconds |
169
+ ./spec/eancom/edifact/segments/unz_spec.rb[1:4:1] | passed | 0.00013 seconds |
170
+ ./spec/eancom/edifact/segments/unz_spec.rb[1:5:1] | passed | 0.00016 seconds |
171
+ ./spec/eancom/edifact/segments/unz_spec.rb[1:6:1] | passed | 0.00012 seconds |
172
+ ./spec/eancom/edifact/structure_spec.rb[1:1:1] | passed | 0.00009 seconds |
173
+ ./spec/eancom/edifact/structure_spec.rb[1:1:2] | passed | 0.00009 seconds |
174
+ ./spec/eancom/edifact/structure_spec.rb[1:1:3] | passed | 0.0001 seconds |
175
+ ./spec/eancom/edifact/structure_spec.rb[1:2:1] | passed | 0.00008 seconds |
176
+ ./spec/eancom/edifact/structure_spec.rb[1:2:2:1] | passed | 0.00009 seconds |
177
+ ./spec/eancom/edifact/structure_spec.rb[1:2:2:2] | passed | 0.00011 seconds |
178
+ ./spec/eancom/edifact/structure_spec.rb[1:3:1] | passed | 0.00012 seconds |
179
+ ./spec/eancom/edifact/structure_spec.rb[1:3:2:1] | passed | 0.00013 seconds |
180
+ ./spec/eancom/edifact/structure_spec.rb[1:4:1:1] | passed | 0.00016 seconds |
181
+ ./spec/eancom/edifact/structure_spec.rb[1:4:2:1] | passed | 0.00024 seconds |
182
+ ./spec/eancom/edifact/structure_spec.rb[1:4:3:1:1] | passed | 0.00012 seconds |
183
+ ./spec/eancom/factory_spec.rb[1:1:1] | passed | 0.0004 seconds |
184
+ ./spec/eancom/factory_spec.rb[1:2:1] | passed | 0.00028 seconds |
185
+ ./spec/eancom/factory_spec.rb[1:3:1] | passed | 0.00147 seconds |
186
+ ./spec/eancom/factory_spec.rb[1:4:1] | passed | 0.00035 seconds |
187
+ ./spec/eancom/factory_spec.rb[1:4:2:1] | passed | 0.00029 seconds |
188
+ ./spec/eancom/factory_spec.rb[1:4:2:2:1] | passed | 0.01079 seconds |
189
+ ./spec/eancom/parser/document_spec.rb[1:1:1] | passed | 0.00031 seconds |
190
+ ./spec/eancom/parser/document_spec.rb[1:2:1] | passed | 0.00273 seconds |
191
+ ./spec/eancom/parser/document_spec.rb[1:3:1:1] | passed | 0.00112 seconds |
192
+ ./spec/eancom/parser/document_spec.rb[1:3:2:1] | passed | 0.00046 seconds |
193
+ ./spec/eancom/parser/document_spec.rb[1:3:3:1] | passed | 0.00015 seconds |
194
+ ./spec/eancom/parser/segment_spec.rb[1:1:1:1] | passed | 0.00046 seconds |
195
+ ./spec/eancom/parser/segment_spec.rb[1:1:2:1] | passed | 0.00028 seconds |
196
+ ./spec/eancom/parser/segment_spec.rb[1:1:2:2] | passed | 0.00022 seconds |
197
+ ./spec/eancom/parser/segment_spec.rb[1:1:3:1:1] | passed | 0.00016 seconds |
198
+ ./spec/eancom/parser/segment_spec.rb[1:1:3:2:1] | passed | 0.00016 seconds |
199
+ ./spec/eancom/parser/segment_spec.rb[1:1:3:3:1] | passed | 0.00012 seconds |
200
+ ./spec/eancom/parser/segment_spec.rb[1:1:3:4:1] | passed | 0.00012 seconds |
201
+ ./spec/eancom/parser/segment_spec.rb[1:2:1:1] | passed | 0.0001 seconds |
202
+ ./spec/eancom/parser/segment_spec.rb[1:2:2:1] | passed | 0.00021 seconds |
203
+ ./spec/eancom/parser/segment_spec.rb[1:2:3:1] | passed | 0.00018 seconds |
204
+ ./spec/eancom/version_spec.rb[1:1] | passed | 0.00098 seconds |
205
+ ./spec/eancom_spec.rb[1:1] | passed | 0.0001 seconds |
206
+ ./spec/eancom_spec.rb[1:2:1:1] | passed | 0.00014 seconds |
207
+ ./spec/eancom_spec.rb[1:2:1:2] | passed | 0.00012 seconds |
208
+ ./spec/eancom_spec.rb[1:2:1:3] | passed | 0.00139 seconds |
209
+ ./spec/eancom_spec.rb[1:2:2:1] | passed | 0.00016 seconds |
210
+ ./spec/eancom_spec.rb[1:3:1:1] | passed | 0.0001 seconds |
211
+ ./spec/eancom_spec.rb[1:3:1:2] | passed | 0.0001 seconds |
212
+ ./spec/eancom_spec.rb[1:3:1:3] | passed | 0.00011 seconds |
213
+ ./spec/eancom_spec.rb[1:3:2:1] | passed | 0.00009 seconds |
214
+ ./spec/intergration/01B/desadv_spec.rb[1:1:1:1] | passed | 0.00404 seconds |
215
+ ./spec/intergration/01B/desadv_spec.rb[1:3:1:1] | passed | 0.00435 seconds |
216
+ ./spec/intergration/01B/gygax_retail_spec.rb[1:1:1:1:1] | passed | 0.01515 seconds |
217
+ ./spec/intergration/01B/gygax_retail_spec.rb[1:1:2:1:1] | passed | 0.00698 seconds |
218
+ ./spec/intergration/01B/street_one_spec.rb[1:1:1:1:1] | passed | 0.03123 seconds |
219
+ ./spec/intergration/01B/street_one_spec.rb[1:2:1:1:1] | passed | 0.00337 seconds |
220
+ ./spec/intergration/01B/street_one_spec.rb[1:3:1:1:1] | passed | 0.00237 seconds |
221
+ ./spec/intergration/01B/street_one_spec.rb[1:3:2:1:1] | passed | 0.00548 seconds |
222
+ ./spec/intergration/01B/street_one_spec.rb[1:4:1:1:1] | passed | 0.00264 seconds |
223
+ ./spec/intergration/01B/street_one_spec.rb[1:5:1:1:1] | passed | 0.00926 seconds |
224
+ ./spec/intergration/96A/street_one_spec.rb[1:1:1:1:1] | passed | 0.00556 seconds |
225
+ ./spec/intergration/96A/street_one_spec.rb[1:1:2:1:1] | passed | 0.00311 seconds |
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ inherit_from:
2
+ - https://gitlab.com/fadendaten/infrastructure/styleguides/-/raw/main/ruby/.rubocop.yml
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.6.5
data/Gemfile CHANGED
@@ -3,5 +3,7 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in eancom.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
7
- gem "rspec", "~> 3.0"
6
+ group :development, :lint do
7
+ gem 'pronto'
8
+ gem 'pronto-rubocop'
9
+ end
data/Gemfile.lock CHANGED
@@ -1,15 +1,69 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eancom (0.1.0)
4
+ eancom (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ addressable (2.8.0)
10
+ public_suffix (>= 2.0.2, < 5.0)
11
+ ast (2.4.2)
9
12
  coderay (1.1.2)
10
13
  diff-lcs (1.3)
11
14
  docile (1.3.2)
15
+ faraday (1.10.0)
16
+ faraday-em_http (~> 1.0)
17
+ faraday-em_synchrony (~> 1.0)
18
+ faraday-excon (~> 1.1)
19
+ faraday-httpclient (~> 1.0)
20
+ faraday-multipart (~> 1.0)
21
+ faraday-net_http (~> 1.0)
22
+ faraday-net_http_persistent (~> 1.0)
23
+ faraday-patron (~> 1.0)
24
+ faraday-rack (~> 1.0)
25
+ faraday-retry (~> 1.0)
26
+ ruby2_keywords (>= 0.0.4)
27
+ faraday-em_http (1.0.0)
28
+ faraday-em_synchrony (1.0.0)
29
+ faraday-excon (1.1.0)
30
+ faraday-httpclient (1.0.1)
31
+ faraday-multipart (1.0.3)
32
+ multipart-post (>= 1.2, < 3)
33
+ faraday-net_http (1.0.1)
34
+ faraday-net_http_persistent (1.2.0)
35
+ faraday-patron (1.0.0)
36
+ faraday-rack (1.0.0)
37
+ faraday-retry (1.0.3)
38
+ gitlab (4.18.0)
39
+ httparty (~> 0.18)
40
+ terminal-table (>= 1.5.1)
41
+ httparty (0.20.0)
42
+ mime-types (~> 3.0)
43
+ multi_xml (>= 0.5.2)
12
44
  method_source (0.9.2)
45
+ mime-types (3.4.1)
46
+ mime-types-data (~> 3.2015)
47
+ mime-types-data (3.2022.0105)
48
+ multi_xml (0.6.0)
49
+ multipart-post (2.1.1)
50
+ octokit (4.22.0)
51
+ faraday (>= 0.9)
52
+ sawyer (~> 0.8.0, >= 0.5.3)
53
+ parallel (1.22.1)
54
+ parser (3.1.2.0)
55
+ ast (~> 2.4.1)
56
+ pronto (0.11.0)
57
+ gitlab (~> 4.4, >= 4.4.0)
58
+ httparty (>= 0.13.7)
59
+ octokit (~> 4.7, >= 4.7.0)
60
+ rainbow (>= 2.2, < 4.0)
61
+ rexml (~> 3.2)
62
+ rugged (>= 0.23.0, < 1.1.0)
63
+ thor (>= 0.20.3, < 2.0)
64
+ pronto-rubocop (0.11.1)
65
+ pronto (~> 0.11.0)
66
+ rubocop (>= 0.63.1, < 2.0)
13
67
  pry (0.12.2)
14
68
  coderay (~> 1.1.0)
15
69
  method_source (~> 0.9.0)
@@ -18,7 +72,11 @@ GEM
18
72
  pry-remote (0.1.8)
19
73
  pry (~> 0.9)
20
74
  slop (~> 3.0)
75
+ public_suffix (4.0.7)
76
+ rainbow (3.1.1)
21
77
  rake (12.3.3)
78
+ regexp_parser (2.4.0)
79
+ rexml (3.2.5)
22
80
  rspec (3.9.0)
23
81
  rspec-core (~> 3.9.0)
24
82
  rspec-expectations (~> 3.9.0)
@@ -32,23 +90,49 @@ GEM
32
90
  diff-lcs (>= 1.2.0, < 2.0)
33
91
  rspec-support (~> 3.9.0)
34
92
  rspec-support (3.9.2)
93
+ rubocop (1.29.1)
94
+ parallel (~> 1.10)
95
+ parser (>= 3.1.0.0)
96
+ rainbow (>= 2.2.2, < 4.0)
97
+ regexp_parser (>= 1.8, < 3.0)
98
+ rexml (>= 3.2.5, < 4.0)
99
+ rubocop-ast (>= 1.17.0, < 2.0)
100
+ ruby-progressbar (~> 1.7)
101
+ unicode-display_width (>= 1.4.0, < 3.0)
102
+ rubocop-ast (1.18.0)
103
+ parser (>= 3.1.1.0)
104
+ ruby-progressbar (1.11.0)
105
+ ruby2_keywords (0.0.5)
106
+ rugged (1.0.1)
107
+ sawyer (0.8.2)
108
+ addressable (>= 2.3.5)
109
+ faraday (> 0.8, < 2.0)
35
110
  simplecov (0.18.5)
36
111
  docile (~> 1.1)
37
112
  simplecov-html (~> 0.11)
38
113
  simplecov-html (0.12.2)
39
114
  slop (3.6.0)
115
+ terminal-table (3.0.2)
116
+ unicode-display_width (>= 1.1.1, < 3)
117
+ thor (1.2.1)
118
+ timecop (0.9.1)
119
+ unicode-display_width (2.1.0)
40
120
 
41
121
  PLATFORMS
42
122
  ruby
43
123
 
44
124
  DEPENDENCIES
45
125
  eancom!
126
+ pronto
127
+ pronto-rubocop
46
128
  pry
47
129
  pry-nav
48
130
  pry-remote
49
- rake (~> 12.0)
50
- rspec (~> 3.0)
131
+ rake
132
+ rspec
133
+ rubocop
51
134
  simplecov
135
+ timecop
52
136
 
53
137
  BUNDLED WITH
54
138
  2.1.4
data/bin/console CHANGED
@@ -10,5 +10,6 @@ require "eancom"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require "irb"
14
- IRB.start(__FILE__)
13
+ # require "irb"
14
+ require 'pry'
15
+ Pry.start