Comments (2)
it also happens in IRB:
irb(main):001:0> require 'data_mapper'
NameError: uninitialized constant StringIO
from /usr/lib/ruby/gems/2.2.0/gems/dm-core-1.2.1/lib/dm-core.rb:114:in `<top (required)>'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/lib/ruby/gems/2.2.0/gems/datamapper-1.2.0/lib/data_mapper.rb:12:in `block in <top (required)>'
from /usr/lib/ruby/gems/2.2.0/gems/datamapper-1.2.0/lib/data_mapper.rb:11:in `each'
from /usr/lib/ruby/gems/2.2.0/gems/datamapper-1.2.0/lib/data_mapper.rb:11:in `<top (required)>'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from (irb):1
from /usr/bin/irb:11:in `<main>'
from dm-core.
Could not reproduce on ruby 2.3.0 and data mapper 1.2.0:
▶ gem install data_mapper
Fetching: dm-core-1.2.1.gem (100%)
Successfully installed dm-core-1.2.1
Fetching: dm-validations-1.2.0.gem (100%)
Successfully installed dm-validations-1.2.0
Fetching: uuidtools-2.1.5.gem (100%)
Successfully installed uuidtools-2.1.5
Fetching: stringex-1.5.1.gem (100%)
Successfully installed stringex-1.5.1
Fetching: bcrypt-3.1.10.gem (100%)
Building native extensions. This could take a while...
/Users/tpitale/.rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /Users/tpitale/.bin in PATH, mode 040777
Successfully installed bcrypt-3.1.10
Fetching: bcrypt-ruby-3.1.5.gem (100%)
#######################################################
The bcrypt-ruby gem has changed its name to just bcrypt. Instead of
installing `bcrypt-ruby`, you should install `bcrypt`. Please update your
dependencies accordingly.
#######################################################
Successfully installed bcrypt-ruby-3.1.5
Fetching: dm-types-1.2.2.gem (100%)
Successfully installed dm-types-1.2.2
Fetching: dm-transactions-1.2.0.gem (100%)
Successfully installed dm-transactions-1.2.0
Fetching: dm-timestamps-1.2.0.gem (100%)
Successfully installed dm-timestamps-1.2.0
Fetching: json_pure-1.8.3.gem (100%)
Successfully installed json_pure-1.8.3
Fetching: dm-serializer-1.2.2.gem (100%)
Successfully installed dm-serializer-1.2.2
Fetching: dm-migrations-1.2.0.gem (100%)
Successfully installed dm-migrations-1.2.0
Fetching: dm-constraints-1.2.0.gem (100%)
Successfully installed dm-constraints-1.2.0
Fetching: dm-aggregates-1.2.0.gem (100%)
Successfully installed dm-aggregates-1.2.0
Fetching: data_mapper-1.2.0.gem (100%)
Successfully installed data_mapper-1.2.0
Parsing documentation for dm-core-1.2.1
Installing ri documentation for dm-core-1.2.1
Parsing documentation for dm-validations-1.2.0
Installing ri documentation for dm-validations-1.2.0
Parsing documentation for uuidtools-2.1.5
Installing ri documentation for uuidtools-2.1.5
Parsing documentation for stringex-1.5.1
Installing ri documentation for stringex-1.5.1
Parsing documentation for bcrypt-3.1.10
Installing ri documentation for bcrypt-3.1.10
Parsing documentation for bcrypt-ruby-3.1.5
Installing ri documentation for bcrypt-ruby-3.1.5
Parsing documentation for dm-types-1.2.2
Installing ri documentation for dm-types-1.2.2
Parsing documentation for dm-transactions-1.2.0
Installing ri documentation for dm-transactions-1.2.0
Parsing documentation for dm-timestamps-1.2.0
Installing ri documentation for dm-timestamps-1.2.0
Parsing documentation for json_pure-1.8.3
Installing ri documentation for json_pure-1.8.3
Parsing documentation for dm-serializer-1.2.2
Installing ri documentation for dm-serializer-1.2.2
Parsing documentation for dm-migrations-1.2.0
Installing ri documentation for dm-migrations-1.2.0
Parsing documentation for dm-constraints-1.2.0
Installing ri documentation for dm-constraints-1.2.0
Parsing documentation for dm-aggregates-1.2.0
Installing ri documentation for dm-aggregates-1.2.0
Parsing documentation for data_mapper-1.2.0
Installing ri documentation for data_mapper-1.2.0
Done installing documentation for dm-core, dm-validations, uuidtools, stringex, bcrypt, bcrypt-ruby, dm-types, dm-transactions, dm-timestamps, json_pure, dm-serializer, dm-migrations, dm-constraints, dm-aggregates, data_mapper after 7 seconds
15 gems installed
~
▶ irb
irb(main):001:0> require 'data_mapper'
=> true
from dm-core.
Related Issues (20)
- Bug on create unique index with scopes HOT 3
- Bump RSpec for Tests HOT 1
- DataMapper::Resource#run_once isn't thread-safe (and raises in remove_instance_variable) HOT 3
- Order clause is broken - +options[:order]+ entry #<Origin::Key:0x00000004c1bc50...> of an unsupported object Origin::Key (ArgumentError) HOT 1
- Non-primary key Serial property HOT 2
- Failed to setup DB with some ASCII characters in file path HOT 1
- Support raw data types HOT 1
- Datamapper SQL syntax error: argument passed to method computed as single quote instead of value HOT 5
- There should be a nice DSL for self.default_repository_name HOT 1
- Low performance on RPI2 HOT 1
- Extract dm-core/spec/* to a standalone gem
- Use array of hashes to populate `has n` dependency generates exceptions HOT 1
- Most types in dm-core inherit from Object, then overwrite dump/load with a module
- `require': cannot load such file -- dm-sqlote3-adapter
- Alternate use of eql as i'm getting `explicit use of 'eql' operator is deprecated ` error
- dm-serializer-1.2.2 dependencies HOT 1
- dm-serializer-1.2.2 dependency update HOT 2
- Unable to fetch belongs_to association in loop
- Offtopic: troubles on official site. HOT 1
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 dm-core.