XML namespace changed to www.qlcplus.org

Post Reply
User avatar
cingulingu
Posts: 57
Joined: Sat Aug 22, 2015 7:42 am
Real Name: Veljko Stankov

Found a glitch. In update-fixture-map.rb
I don't know what happened. Yesterday, morning it worked as usual. But now it give me this.

Code: Select all

./update-fixture-map.rb:239:in `load': undefined method `content' for nil:NilClass (NoMethodError)
        from ./update-fixture-map.rb:210:in `initialize'
        from ./update-fixture-map.rb:258:in `new'
        from ./update-fixture-map.rb:258:in `block (2 levels) in load_fixtures'
        from ./update-fixture-map.rb:257:in `glob'
        from ./update-fixture-map.rb:257:in `block in load_fixtures'
        from ./update-fixture-map.rb:256:in `chdir'
        from ./update-fixture-map.rb:256:in `load_fixtures'
        from ./update-fixture-map.rb:479:in `<main>'
There was no changes in ruby or ruby-xml.
User avatar
mcallegari
Posts: 4710
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

cingulingu wrote:Found a glitch. In update-fixture-map.rb
I don't know what happened. Yesterday, morning it worked as usual. But now it give me this.
There was no changes in ruby or ruby-xml.
We haven't touched that script (last change was 5 months ago).
Probably something bad happened to your Ruby installation ?
janosvitok
Posts: 1325
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

Fixed in https://github.com/mcallegari/qlcplus/c ... 6ac944645f
Problem was that XML namespace was changed in https://github.com/mcallegari/qlcplus/c ... 2184319f8e

I'll update all data files to the new namespace later.
User avatar
mcallegari
Posts: 4710
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Can the Ruby script handle both sourceforge and qlcplus.org namespaces ?

Otherwise, what happens if we change the URL here ?
https://github.com/mcallegari/qlcplus/b ... ap.rb#L233
https://github.com/mcallegari/qlcplus/b ... ap.rb#L274
User avatar
cingulingu
Posts: 57
Joined: Sat Aug 22, 2015 7:42 am
Real Name: Veljko Stankov

Working again.. Thanks.
janosvitok
Posts: 1325
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

I've replaced all namespaces in data files and schemas. The script now works with the new namespace only. I wasn't able to replace namespace with libxml-ruby.
I'll do it later by bruteforce.
Post Reply