Giter Site home page Giter Site logo

Comments (6)

snusnu avatar snusnu commented on July 23, 2024

Your version of DataMapper is really old (current version is 1.1 with 1.1.1 being just around the corner). If it's an option for you, try upgrading and the problem will be gone. However, it's only fair to note that an upgrade from 0.9.2 to 1.1 probably won't go without at least some breakage. The various release notes in between should cover the changes you need to make tho.

In general, and iirc, Pathname#/ was provided by extlib so you could start out by grepping that source for the exact file to require. I'd be surprised if DM-1.1 still suffers from that problem (the dependency on extlib has been removed).

I'm closing this issue now. In general, please file DM issues (for the latest version) at http://datamapper.lighthouseapp.com/projects/20609-datamapper

from dm-types.

hedgehog avatar hedgehog commented on July 23, 2024

bizarre, that gem versioning is what I got from bundler install of a project Gemfile generated by Padrino... go figure.
Thanks.

from dm-types.

tmilewski avatar tmilewski commented on July 23, 2024

It should be noted that the "data_mapper" gem is ver 0.9.2 while the "datamapper" is the current one.

That said, the official DataMapper documentation says to use "data_mapper" which is clearly incorrect:

http://datamapper.org/getting-started

Just thought I'd point that out.

from dm-types.

bioform avatar bioform commented on July 23, 2024

I have this issue with data_mapper ver. 1.1.0

#   File    Line    Location
0   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/dm-types-0.10.0/lib/dm-types.rb    5   in `'
1   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/dm-types-0.10.0/lib/dm-types.rb    4   in `'
2   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/dm-types-0.10.0/lib/dm-types.rb    3   in `'
3   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/data_mapper-0.9.2/lib/data_mapper.rb   7   in `require'
4   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/data_mapper-0.9.2/lib/data_mapper.rb   7   in `block in '
5   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/data_mapper-0.9.2/lib/data_mapper.rb   5   in `each'
6   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/data_mapper-0.9.2/lib/data_mapper.rb   5   in `'
7   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/runtime.rb  68  in `require'
8   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/runtime.rb  68  in `block (2 levels) in require'
9   /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/runtime.rb  66  in `each'
10  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/runtime.rb  66  in `block in require'
11  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/runtime.rb  55  in `each'
12  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/runtime.rb  55  in `require'
13  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler.rb  120 in `require'
14  /opt/reestr/config/boot.rb  10  in `'
15  config.ru   1   in `require'
16  config.ru   1   in `block in '
17  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.2/lib/rack/builder.rb 51  in `instance_eval'
18  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.2/lib/rack/builder.rb 51  in `initialize'
19  config.ru   1   in `new'
20  config.ru   1   in `'
21  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb  222 in `eval'
22  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb  222 in `load_rack_app'
23  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb  156 in `block in initialize_server'
24  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb 572 in `report_app_init_status'
25  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb  153 in `initialize_server'
26  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb   204 in `start_synchronously'
27  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb   180 in `start'
28  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb  128 in `start'
29  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 253 in `block (2 levels) in spawn_rack_application'
30  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb    132 in `lookup_or_add'
31  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 246 in `block in spawn_rack_application'
32  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb    82  in `block in synchronize'
33      prelude>    10:in `synchronize'
34  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb    79  in `synchronize'
35  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 244 in `spawn_rack_application'
36  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 137 in `spawn_application'
37  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application'
38  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb   357 in `server_main_loop'
39  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb   206 in `start_synchronously'
40  /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server

from dm-types.

Bastes avatar Bastes commented on July 23, 2024

I've just also been fooled by the data_mapper =/= datamapper thing ; could someone correct the ?

Thanks in advance.

from dm-types.

solnic avatar solnic commented on July 23, 2024

Actually no, both gems are the same and there are 2 because of historical reasons heh. We will remove datamapper gem soon. So people should be using data_mapper.

from dm-types.

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.