Comments (5)
With rails 2.3.2 and ROXML 2.5.3, this doesn’t seem to be an issue anymore
from roxml.
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:ininstance_method' from /usr/lib/ruby/gems/1.8/gems/deprecated-2.0.1/lib/deprecated.rb:176:in
deprecate'
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: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/array.rb:9 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.rb:5
from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml/extensions.rb:4:ineach' ... 5 levels... 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.rb:7
from /usr/lib/ruby/gems/1.8/gems/roxml-2.5.3/lib/roxml.rb:6:ineach' 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: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/onix-0.7.7/lib/onix.rb:12
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36: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:in `require'
from (irb):1>>
from roxml.
I've posted 3.1, which doesn't use the ActiveSupport deprecation api at all. Let me know if the problem remains.
from roxml.
Switch that: reopen if it's still a problem.
from roxml.
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)
- Incorrect detail in History file for 3.1.6 HOT 1
- 3.1.6 is not compatible with activesupport 2.3.x HOT 4
- Unable to read collection into Array HOT 2
- Ability to traverse to the parent object
- know if a tag is empty or not HOT 1
- After marshalling/unmarshalling nil is frozen HOT 1
- xmlns in root node HOT 10
- unable to run any tests HOT 4
- One test is failing: ROXML::XML should raise on malformed xml HOT 3
- Conditionally combining multiple attributes
- undefined method `each' for "":String in ruby 1.9.3 HOT 4
- RequiredElementMissing is a subclass of Exception HOT 1
- wishlist: port spec suite to RSpec3 HOT 2
- spec/regression_spec.rb fails with ruby2.2 HOT 2
- Generating XML from object without indentation
- Ignoring attribute when converting object to xml HOT 1
- warning: constant ::Fixnum is deprecated HOT 1
- Please release new gem version HOT 5
- Please release a new gem version HOT 12
- Obsolete references to URI.escape and URI.unescape HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roxml.