xmlconv 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xmlconv/custom/lookandfeel.rb +11 -0
- data/lib/xmlconv/version.rb +1 -1
- data/test/test_custom/lookandfeel.rb +30 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27ef4826f4fd76c4a54f711ca88fb0fe069351f6
|
4
|
+
data.tar.gz: 80a90b6ee5f8c2e6c95c9e6a8a29d6113d9c775c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e00f9c46f17998846bf4f94b1e99576791a68620488aa286df16974d4005880c451c799ab91732265b4ea92ba2c835ac991988024d9d543220b69243902cad72
|
7
|
+
data.tar.gz: 03e599d19d269f249c8f09a41361b306ba04cf80ea532921af3f7b819c15f9114d029b4a60da764f23b10b03204aa495d6d43ce78ecd07154d1cae20ba218a2b
|
@@ -45,6 +45,17 @@ module XmlConv
|
|
45
45
|
RESOURCES = {
|
46
46
|
:css => 'xmlconv.css'
|
47
47
|
}
|
48
|
+
|
49
|
+
alias :orig_base_url :base_url
|
50
|
+
|
51
|
+
# Provides non flavored base url
|
52
|
+
def base_url
|
53
|
+
_flavor = @flavor
|
54
|
+
@flavor = nil
|
55
|
+
url = orig_base_url
|
56
|
+
@flavor = _flavor
|
57
|
+
url
|
58
|
+
end
|
48
59
|
end
|
49
60
|
end
|
50
61
|
end
|
data/lib/xmlconv/version.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
$: << File.dirname(__FILE__)
|
2
|
+
$: << File.expand_path('..', File.dirname(__FILE__))
|
3
|
+
$: << File.expand_path('../../lib', File.dirname(__FILE__))
|
4
|
+
|
5
|
+
require 'minitest/autorun'
|
6
|
+
require 'flexmock/minitest'
|
7
|
+
require 'xmlconv/util/application'
|
8
|
+
require 'xmlconv/util/session'
|
9
|
+
require 'xmlconv/custom/lookandfeel'
|
10
|
+
|
11
|
+
module XmlConv
|
12
|
+
class TestApplication < Util::Application
|
13
|
+
def unknown_user; end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Custom
|
17
|
+
class TestLookandfeel < ::Minitest::Test
|
18
|
+
def setup
|
19
|
+
@app = TestApplication.new
|
20
|
+
@session = Util::Session.new('test', @app)
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_base_url_does_not_include_flavor
|
24
|
+
lookandfeel = Lookandfeel.new(@session)
|
25
|
+
assert_equal('sbsm', lookandfeel.flavor)
|
26
|
+
refute_match(lookandfeel.base_url, @session.flavor)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmlconv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: odba
|
@@ -387,6 +387,7 @@ files:
|
|
387
387
|
- test/data/sandoz.xundart@bbmb.ch.20110524001038.928592
|
388
388
|
- test/data/simple_email.txt
|
389
389
|
- test/suite.rb
|
390
|
+
- test/test_custom/lookandfeel.rb
|
390
391
|
- test/test_i2/address.rb
|
391
392
|
- test/test_i2/date.rb
|
392
393
|
- test/test_i2/document.rb
|
@@ -433,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
433
434
|
version: '0'
|
434
435
|
requirements: []
|
435
436
|
rubyforge_project:
|
436
|
-
rubygems_version: 2.
|
437
|
+
rubygems_version: 2.5.1
|
437
438
|
signing_key:
|
438
439
|
specification_version: 4
|
439
440
|
summary: xmlconverter, convert XML to flat files
|
@@ -443,6 +444,7 @@ test_files:
|
|
443
444
|
- test/data/sandoz.xundart@bbmb.ch.20110524001038.928592
|
444
445
|
- test/data/simple_email.txt
|
445
446
|
- test/suite.rb
|
447
|
+
- test/test_custom/lookandfeel.rb
|
446
448
|
- test/test_i2/address.rb
|
447
449
|
- test/test_i2/date.rb
|
448
450
|
- test/test_i2/document.rb
|
@@ -468,4 +470,3 @@ test_files:
|
|
468
470
|
- test/test_util/invoicer.rb
|
469
471
|
- test/test_util/polling_manager.rb
|
470
472
|
- test/test_util/transaction.rb
|
471
|
-
has_rdoc:
|