Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed issue with datamapper edge

  • Loading branch information...
commit 38dc646fa5e093f55a667b789e55fd640c718bb4 1 parent 0c3625b
Christian Meier authored November 28, 2009

Showing 1 changed file with 15 additions and 8 deletions. Show diff stats Hide diff stats

  1. 23  datamapper_rails_templates.rb
23  datamapper_rails_templates.rb
... ...
@@ -1,8 +1,8 @@
1 1
 # inspired by http://www.rowtheboat.com/archives/32
2 2
 ###################################################
3 3
 
4  
-# get all datamapper related gems
5  
-gem 'addressable', :lib => 'addressable/uri'
  4
+# this pulls in rails_datamapper and rack_datamapper
  5
+gem 'datamapper4rails'
6 6
 
7 7
 # assume sqlite3 to be database
8 8
 gem 'do_sqlite3'
@@ -12,14 +12,15 @@
12 12
 gem 'dm-timestamps'
13 13
 gem 'dm-migrations'
14 14
 gem 'dm-serializer' # to allow xml interface to work
  15
+gem 'dm-core'
  16
+
  17
+# get all datamapper related gems
  18
+gem 'addressable', :lib => 'addressable/uri'
15 19
 
16 20
 # assume you prefer rspec over unit tests
17 21
 gem 'rspec', :lib => false
18 22
 gem 'rspec-rails', :lib => false
19 23
 
20  
-# this pulls in rails_datamapper and rack_datamapper
21  
-gem 'datamapper4rails'
22  
-
23 24
 # install all gems
24 25
 rake 'gems:install'
25 26
 
@@ -81,7 +82,7 @@ def <<(arg)
81 82
 
82 83
 echo
83 84
 echo "shall freeze rails and fix a bug which prevents rails to use certain"
84  
-echo "java gems like the dataobjects drivers !!"
  85
+echo "java gems like the dataobjects drivers (do_sqlite3, etc) !!"
85 86
 echo
86 87
 
87 88
 mvn --version
@@ -91,12 +92,12 @@ def <<(arg)
91 92
         exit -1
92 93
 fi
93 94
 
94  
-mvn de.saumya.mojo:rails-maven-plugin:rails-freeze-gems de.saumya.mojo:rails-maven-plugin:gems-install
  95
+mvn de.saumya.mojo:rails-maven-plugin:gems-install de.saumya.mojo:rails-maven-plugin:rails-freeze-gems de.saumya.mojo:rails-maven-plugin:gems-install -Djruby.fork=false
95 96
 
96 97
 echo
97 98
 echo "you can run rails with (no need to install jruby !!)"
98 99
 echo
99  
-echo "\tmvn de.saumya.mojo:rails-maven-plugin:server"
  100
+echo "\tmvn de.saumya.mojo:rails-maven-plugin:server -Djruby.fork=false"
100 101
 echo
101 102
 echo "more info on"
102 103
 echo "\thttp://github.org/mkristian/rails-maven-plugin"
@@ -111,4 +112,10 @@ def <<(arg)
111 112
 logger.info "info mavenized rails application"
112 113
 logger.info "\thttp://github.org/mkristian/rails-maven-plugin"
113 114
 logger.info 
  115
+logger.info "if you want to run jruby please run again after uninstalling"
  116
+logger.info "the native extension of do_sqlite3"
  117
+logger.info "\truby -S gem uninstall do_sqlite3"
  118
+logger.info "\tjruby -S rake gems:install"
  119
+logger.info "rake gems:unpack does NOT work with jruby due to a bug in rail <=2.3.4"
  120
+logger.info "you can try the prepare-jruby.sh script and see if this works for you"
114 121
 logger.info 

0 notes on commit 38dc646

Please sign in to comment.
Something went wrong with that request. Please try again.