Giter Site home page Giter Site logo

Mongrel + Rails 2.3.1 interaction? about roxml HOT 5 CLOSED

empact avatar empact commented on August 20, 2024
Mongrel + Rails 2.3.1 interaction?

from roxml.

Comments (5)

yob avatar yob commented on August 20, 2024

With rails 2.3.2 and ROXML 2.5.3, this doesn’t seem to be an issue anymore

from roxml.

mfvargo avatar mfvargo commented on August 20, 2024

I still see deprecation issues with 2.5.3 and rails 2.3.4

mvargo@mvargo-lt:~/workspace/cms$ script/console
Loading development environment (Rails 2.3.4)

require 'onix'
TypeError: {:to_h=>:to_hash} is not a symbol
from /usr/lib/ruby/gems/1.8/gems/deprecated-2.0.1/lib/deprecated.rb:176:in instance_method' from /usr/lib/ruby/gems/1.8/gems/deprecated-2.0.1/lib/deprecated.rb:176:indeprecate'
from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml/extensions/array/conversions.rb:26
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require' from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in'
from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require' from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml/extensions/array.rb:9 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire'
from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in new_constants_in' from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire'
from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml/extensions.rb:5
from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml/extensions.rb:4:in each' ... 5 levels... from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire'
from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml.rb:7
from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml.rb:6:in each' from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml.rb:6 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in require' from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire'
from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in new_constants_in' from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire'
from /usr/lib/ruby/gems/1.8/gems/onix-0.7.7/lib/onix.rb:12
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require' from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in'
from /home/mvargo/workspace/cms/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
from (irb):1>>

from roxml.

Empact avatar Empact commented on August 20, 2024

I've posted 3.1, which doesn't use the ActiveSupport deprecation api at all. Let me know if the problem remains.

from roxml.

Empact avatar Empact commented on August 20, 2024

Switch that: reopen if it's still a problem.

from roxml.

mfvargo avatar mfvargo commented on August 20, 2024

Hi,

Got the new code and I can load it up successfully from my rails 2.3.4 env.

class Foo
include ROXML
xml_accessor :foo_name, :from => "FooName"
end
=> [#<ROXML::Definition:0x7f93bd2de648 @blocks=[], @type=:text, @required=nil, @attr_name="foo_name", @array=false, @namespace=nil, @cdata=nil, @Frozen=nil, @Accessor="foo_name", @name_explicit=true, @default=nil, @name="FooName", @wrapper=nil, @to_xml=nil>]
foo = Foo.new
=> #Foo:0x7f93bd2daea8
foo.foo_name = "Buddy"
=> "Buddy"
foo.to_xml
=>
Buddy

Now I just have to figure out how to bolt it up to the ONIX gem.

from roxml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.