netprint 0.3.0 → 0.3.1
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/.travis.yml +9 -0
- data/bin/netprint +4 -0
- data/lib/netprint/agent.rb +5 -1
- data/lib/netprint/version.rb +1 -1
- data/spec/netprint/agent_spec.rb +1 -1
- data/spec/upload_error.html +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd835b4a184d0da47107907c553c01f38e2c2504
|
4
|
+
data.tar.gz: a1fd1a69deb580a1076af3a1f1f36d516046f787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1681f849daa7029306a39edebeea971e9f8a0cfc90c15483c01ff90e4b00253a746b9b9e3c1f9c80fe508675dfb882bd25785126f800992d343c4434e479af88
|
7
|
+
data.tar.gz: ec49ee335fec0cffd88147532790adc2bdc1e881624f32ac6525668c92043a58d66898408175546dc4c8a1993a40b3c164be1b0b67fdf75b2e6c2c75f83a511c
|
data/.travis.yml
ADDED
data/bin/netprint
CHANGED
data/lib/netprint/agent.rb
CHANGED
@@ -45,7 +45,11 @@ module Netprint
|
|
45
45
|
options.apply(form)
|
46
46
|
@page = form.submit(form.button_with(name: 'update-ow-btn'))
|
47
47
|
|
48
|
-
|
48
|
+
errors = @page.search('//ul[@id="svErrMsg"]/li')
|
49
|
+
|
50
|
+
unless errors.empty?
|
51
|
+
raise UploadError.new(errors.first.text)
|
52
|
+
end
|
49
53
|
|
50
54
|
get_code
|
51
55
|
end
|
data/lib/netprint/version.rb
CHANGED
data/spec/netprint/agent_spec.rb
CHANGED
data/spec/upload_error.html
CHANGED
@@ -222,7 +222,7 @@ Connection: close
|
|
222
222
|
|
223
223
|
<article style="display:none" id="errMsgArea" class="xux-type-fault message-fault mt10 n-txt">
|
224
224
|
<ul id="svErrMsg">
|
225
|
-
<li
|
225
|
+
<li><img src="/img/xux_common_icon_24_fault.png" width="24" height="24" />error message</li>
|
226
226
|
</ul>
|
227
227
|
<ul id="clErrMsg">
|
228
228
|
</ul>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netprint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youpy
|
@@ -90,6 +90,7 @@ extra_rdoc_files: []
|
|
90
90
|
files:
|
91
91
|
- ".gitignore"
|
92
92
|
- ".rspec"
|
93
|
+
- ".travis.yml"
|
93
94
|
- Gemfile
|
94
95
|
- LICENSE
|
95
96
|
- README.md
|