proformaxml 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +41 -38
- data/lib/proformaxml/services/importer.rb +2 -3
- data/lib/proformaxml/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8284cbc28d6d2cabde0247312b5a526ffdb8be758261295757f3b4b132250004
|
|
4
|
+
data.tar.gz: 0fa49ec56a760ff164eed881b362bcb4307dcf6d789c9d395e65d67945c9654d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16a96f01c9bb5a05008820954da688600b65d01d4733a45204c933d205635977e8e18358b05c20f2d14c898a6fca3b6e005ad84aa20122df8f2f8e3b8471f73e
|
|
7
|
+
data.tar.gz: 7b743f6b785d69e549bfb0948e19d90fdec93644aca4ae312c7d27c27c7748def994f1ea11e10084fc061567db47e2b14e2e7a7b026378448d7bcbbdb2a5268b
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
proformaxml (1.
|
|
4
|
+
proformaxml (1.4.0)
|
|
5
5
|
activemodel (>= 5.2.3, < 8.0.0)
|
|
6
6
|
activesupport (>= 5.2.3, < 8.0.0)
|
|
7
7
|
dachsfisch (~> 1.0.0)
|
|
@@ -11,9 +11,9 @@ PATH
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
activemodel (7.1.3.
|
|
15
|
-
activesupport (= 7.1.3.
|
|
16
|
-
activesupport (7.1.3.
|
|
14
|
+
activemodel (7.1.3.4)
|
|
15
|
+
activesupport (= 7.1.3.4)
|
|
16
|
+
activesupport (7.1.3.4)
|
|
17
17
|
base64
|
|
18
18
|
bigdecimal
|
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
@@ -25,17 +25,16 @@ GEM
|
|
|
25
25
|
tzinfo (~> 2.0)
|
|
26
26
|
ast (2.4.2)
|
|
27
27
|
base64 (0.2.0)
|
|
28
|
-
bigdecimal (3.1.
|
|
28
|
+
bigdecimal (3.1.8)
|
|
29
29
|
byebug (11.1.3)
|
|
30
30
|
coderay (1.1.3)
|
|
31
|
-
concurrent-ruby (1.
|
|
31
|
+
concurrent-ruby (1.3.1)
|
|
32
32
|
connection_pool (2.4.1)
|
|
33
33
|
dachsfisch (1.0.0)
|
|
34
34
|
nokogiri (>= 1.14.1, < 2.0.0)
|
|
35
35
|
diff-lcs (1.5.1)
|
|
36
36
|
docile (1.4.0)
|
|
37
|
-
drb (2.2.
|
|
38
|
-
ruby2_keywords
|
|
37
|
+
drb (2.2.1)
|
|
39
38
|
factory_bot (6.4.6)
|
|
40
39
|
activesupport (>= 5.0.0)
|
|
41
40
|
ffi (1.16.3)
|
|
@@ -54,27 +53,27 @@ GEM
|
|
|
54
53
|
guard (~> 2.1)
|
|
55
54
|
guard-compat (~> 1.1)
|
|
56
55
|
rspec (>= 2.99.0, < 4.0)
|
|
57
|
-
i18n (1.14.
|
|
56
|
+
i18n (1.14.5)
|
|
58
57
|
concurrent-ruby (~> 1.0)
|
|
59
|
-
json (2.7.
|
|
58
|
+
json (2.7.2)
|
|
60
59
|
language_server-protocol (3.17.0.3)
|
|
61
|
-
listen (3.
|
|
60
|
+
listen (3.9.0)
|
|
62
61
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
63
62
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
64
63
|
lumberjack (1.2.10)
|
|
65
|
-
method_source (1.
|
|
66
|
-
mini_portile2 (2.8.
|
|
67
|
-
minitest (5.
|
|
64
|
+
method_source (1.1.0)
|
|
65
|
+
mini_portile2 (2.8.7)
|
|
66
|
+
minitest (5.23.1)
|
|
68
67
|
mutex_m (0.2.0)
|
|
69
68
|
nenv (0.3.0)
|
|
70
|
-
nokogiri (1.16.
|
|
69
|
+
nokogiri (1.16.6)
|
|
71
70
|
mini_portile2 (~> 2.8.2)
|
|
72
71
|
racc (~> 1.4)
|
|
73
72
|
notiffany (0.1.3)
|
|
74
73
|
nenv (~> 0.1)
|
|
75
74
|
shellany (~> 0.0)
|
|
76
75
|
parallel (1.24.0)
|
|
77
|
-
parser (3.
|
|
76
|
+
parser (3.3.1.0)
|
|
78
77
|
ast (~> 2.4.1)
|
|
79
78
|
racc
|
|
80
79
|
pry (0.14.2)
|
|
@@ -83,15 +82,16 @@ GEM
|
|
|
83
82
|
pry-byebug (3.10.1)
|
|
84
83
|
byebug (~> 11.0)
|
|
85
84
|
pry (>= 0.13, < 0.15)
|
|
86
|
-
racc (1.
|
|
87
|
-
rack (3.0.
|
|
85
|
+
racc (1.8.0)
|
|
86
|
+
rack (3.0.11)
|
|
88
87
|
rainbow (3.1.1)
|
|
89
88
|
rake (13.2.1)
|
|
90
89
|
rb-fsevent (0.11.2)
|
|
91
90
|
rb-inotify (0.10.1)
|
|
92
91
|
ffi (~> 1.0)
|
|
93
|
-
regexp_parser (2.
|
|
94
|
-
rexml (3.2.
|
|
92
|
+
regexp_parser (2.9.1)
|
|
93
|
+
rexml (3.2.8)
|
|
94
|
+
strscan (>= 3.0.9)
|
|
95
95
|
rspec (3.13.0)
|
|
96
96
|
rspec-core (~> 3.13.0)
|
|
97
97
|
rspec-expectations (~> 3.13.0)
|
|
@@ -105,41 +105,43 @@ GEM
|
|
|
105
105
|
rspec-support (~> 3.13.0)
|
|
106
106
|
rspec-github (2.4.0)
|
|
107
107
|
rspec-core (~> 3.0)
|
|
108
|
-
rspec-mocks (3.13.
|
|
108
|
+
rspec-mocks (3.13.1)
|
|
109
109
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
110
110
|
rspec-support (~> 3.13.0)
|
|
111
|
-
rspec-support (3.13.
|
|
112
|
-
rubocop (1.
|
|
111
|
+
rspec-support (3.13.1)
|
|
112
|
+
rubocop (1.63.5)
|
|
113
113
|
json (~> 2.3)
|
|
114
114
|
language_server-protocol (>= 3.17.0)
|
|
115
115
|
parallel (~> 1.10)
|
|
116
|
-
parser (>= 3.
|
|
116
|
+
parser (>= 3.3.0.2)
|
|
117
117
|
rainbow (>= 2.2.2, < 4.0)
|
|
118
118
|
regexp_parser (>= 1.8, < 3.0)
|
|
119
119
|
rexml (>= 3.2.5, < 4.0)
|
|
120
|
-
rubocop-ast (>= 1.
|
|
120
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
121
121
|
ruby-progressbar (~> 1.7)
|
|
122
122
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
123
|
-
rubocop-ast (1.
|
|
124
|
-
parser (>= 3.
|
|
125
|
-
rubocop-capybara (2.
|
|
123
|
+
rubocop-ast (1.31.3)
|
|
124
|
+
parser (>= 3.3.1.0)
|
|
125
|
+
rubocop-capybara (2.20.0)
|
|
126
126
|
rubocop (~> 1.41)
|
|
127
|
-
rubocop-factory_bot (2.
|
|
128
|
-
rubocop (~> 1.
|
|
129
|
-
rubocop-performance (1.
|
|
127
|
+
rubocop-factory_bot (2.25.1)
|
|
128
|
+
rubocop (~> 1.41)
|
|
129
|
+
rubocop-performance (1.21.0)
|
|
130
130
|
rubocop (>= 1.48.1, < 2.0)
|
|
131
|
-
rubocop-ast (>= 1.
|
|
132
|
-
rubocop-rails (2.
|
|
131
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
132
|
+
rubocop-rails (2.24.1)
|
|
133
133
|
activesupport (>= 4.2.0)
|
|
134
134
|
rack (>= 1.1)
|
|
135
135
|
rubocop (>= 1.33.0, < 2.0)
|
|
136
|
-
rubocop-ast (>= 1.
|
|
137
|
-
rubocop-rspec (2.
|
|
136
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
137
|
+
rubocop-rspec (2.29.2)
|
|
138
138
|
rubocop (~> 1.40)
|
|
139
139
|
rubocop-capybara (~> 2.17)
|
|
140
140
|
rubocop-factory_bot (~> 2.22)
|
|
141
|
+
rubocop-rspec_rails (~> 2.28)
|
|
142
|
+
rubocop-rspec_rails (2.28.3)
|
|
143
|
+
rubocop (~> 1.40)
|
|
141
144
|
ruby-progressbar (1.13.0)
|
|
142
|
-
ruby2_keywords (0.0.5)
|
|
143
145
|
rubyzip (2.3.2)
|
|
144
146
|
shellany (0.0.1)
|
|
145
147
|
simplecov (0.22.0)
|
|
@@ -148,7 +150,8 @@ GEM
|
|
|
148
150
|
simplecov_json_formatter (~> 0.1)
|
|
149
151
|
simplecov-html (0.12.3)
|
|
150
152
|
simplecov_json_formatter (0.1.4)
|
|
151
|
-
|
|
153
|
+
strscan (3.1.0)
|
|
154
|
+
thor (1.3.1)
|
|
152
155
|
tzinfo (2.0.6)
|
|
153
156
|
concurrent-ruby (~> 1.0)
|
|
154
157
|
unicode-display_width (2.5.0)
|
|
@@ -175,4 +178,4 @@ DEPENDENCIES
|
|
|
175
178
|
simplecov
|
|
176
179
|
|
|
177
180
|
BUNDLED WITH
|
|
178
|
-
2.5.
|
|
181
|
+
2.5.11
|
|
@@ -12,7 +12,7 @@ module ProformaXML
|
|
|
12
12
|
@expected_version = expected_version
|
|
13
13
|
|
|
14
14
|
xml = filestring_from_zip('task.xml')
|
|
15
|
-
raise PreImportValidationError if xml.
|
|
15
|
+
raise PreImportValidationError.new(['no task_xml found']) if xml.blank?
|
|
16
16
|
|
|
17
17
|
@doc = Nokogiri::XML(xml, &:noblanks)
|
|
18
18
|
@task = Task.new
|
|
@@ -28,8 +28,7 @@ module ProformaXML
|
|
|
28
28
|
|
|
29
29
|
def perform
|
|
30
30
|
errors = validate
|
|
31
|
-
|
|
32
|
-
raise PreImportValidationError.new(errors) if errors.any?
|
|
31
|
+
raise PreImportValidationError.new(errors.map(&:message)) if errors.any?
|
|
33
32
|
|
|
34
33
|
@pro_ns = proforma_namespace
|
|
35
34
|
@task_node = @doc.xpath("/#{@pro_ns}:task")
|
data/lib/proformaxml/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: proformaxml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karol
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-06-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
167
167
|
- !ruby/object:Gem::Version
|
|
168
168
|
version: '0'
|
|
169
169
|
requirements: []
|
|
170
|
-
rubygems_version: 3.5.
|
|
170
|
+
rubygems_version: 3.5.9
|
|
171
171
|
signing_key:
|
|
172
172
|
specification_version: 4
|
|
173
173
|
summary: Implements parts of ProFormA-XML specification
|