GithubHelp home page GithubHelp logo

arboreal's People

Contributors

mdub avatar yob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arboreal's Issues

Support newer Rails versions

Hi!

I'm in the process of upgrading an old Rails application from Rails 3.2. It depends on arboreal which doesn't support newer versions at the moment. I've seen #4 which contains a lot of good work to upgrade but needs splitting up.

I have three options:

Switching to that Arboreal fork would involve renaming a database column and incorporating changes that may not be well tested. If I have to change the database, I may as well switch to Ancestry. So really, I'm weighing up between switching to Ancestry and fixing up Arboreal's Rails compatibility myself.

What is your vision for this gem? Would you like to release new versions that are not compatible with old Ruby and old Rails? Do you see advantages of Arboreal over Ancestry? @mdub

How do I run tests?

I’ve cloned the repo, ran bundle install, then rake spec and got this:

    ~/tmp/arboreal Ξ  rake spec
/home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/options.rb:188:in `colour=': Use RbConfig instead of obsolete and deprecated Config.
/home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/options.rb:188:in `colour=': Use RbConfig instead of obsolete and deprecated Config.
/home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:2002:in `method_missing'/home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:2449: warning: already initialized constant Class::VALID_FIND_OPTIONS
/home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:2449: warning: previous definition of VALID_FIND_OPTIONS was here
: undefined method `alias_method_chain' for #<Class:0xacfacc4> (NoMethodError)
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/validations.rb:387:in `block in included'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/validations.rb:386:in `class_eval'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/validations.rb:386:in `included'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:3210:in `include'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:3210:in `block in <module:ActiveRecord>'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:3208:in `class_eval'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:3208:in `<module:ActiveRecord>'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/activerecord-2.3.18/lib/active_record/base.rb:5:in `<top (required)>'
    from /home/vlad/tmp/arboreal/spec/spec_helper.rb:11:in `<top (required)>'
    from spec/arboreal_spec.rb:1:in `require'
    from spec/arboreal_spec.rb:1:in `<top (required)>'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/example_group_runner.rb:15:in `load'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/example_group_runner.rb:15:in `block in load_files'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/example_group_runner.rb:14:in `each'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/example_group_runner.rb:14:in `load_files'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/options.rb:134:in `run_examples'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/runner/command_line.rb:9:in `run'
    from /home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/bin/spec:5:in `<main>'
rake aborted!
Command /home/vlad/.rvm/rubies/ruby-2.1.2/bin/ruby -I"lib:lib:spec"  "/home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/bin/spec" "spec/arboreal_spec.rb" -fnested --color failed
/home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/rake/spectask.rb:177:in `block (2 levels) in define'
/home/vlad/.rvm/gems/ruby-2.1.2/gems/rspec-1.3.2/lib/spec/rake/spectask.rb:153:in `block in define'
/home/vlad/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/home/vlad/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => spec
(See full trace by running task with --trace)
    ~/tmp/arboreal Ξ  

How do I do this correctly? :-)

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.