Skip to content
Browse files

Merge branch 'easysafeinstall' into ecosol

  • Loading branch information...
2 parents cba919b + 7cff8de commit 318d55d435b7b783b380677108dd03c8fe827abb @brauliobo brauliobo committed Apr 9, 2012
Showing with 88 additions and 54 deletions.
  1. +29 −0 GEMINSTALL
  2. +56 −9 Gemfile
  3. +0 −44 Gemfile.lock
  4. +1 −1 config/boot.rb
  5. +1 −0 script/delayed_job
  6. +1 −0 script/feed-updater
View
29 GEMINSTALL
@@ -0,0 +1,29 @@
+See more at http://noosfero.org/Development/InstallSteps and
+http://noosfero.org/Development/RVMGemBasedInstallation
+
+1. Install packages dependencies
+
+1.1. System deps
+$ sudo apt-get install po4a iso-codes tango-icon-theme curl
+
+1.2. Compilation deps
+$ sudo apt-get install libmagick9-dev libpq-dev libreadline-dev libsqlite3-dev libxslt1-dev
+
+2. Install RVM (command from http://beginrescueend.com/rvm/install/)
+$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
+
+3. Open a new terminal (so that RVM path is loaded) and compile ruby
+$ rvm install 1.8.7
+$ rvm use 1.8.7
+$ rvm gemset create noosfero
+$ rvm 1.8.7@noosfero
+$ gem update --system 1.4.1
+
+If you get command not found on rvm, try opening another terminal (thus reloading the environment).
+You might want to change noosfero to something else or create other gemsets. Documentation on gemsets at http://beginrescueend.com/gemsets/basics/
+***Running rvm 1.8.7@noosfero is required each time you open a new shell!***
+
+4. Install bundler let bundler do the rest
+$ gem install bundler
+$ bundle install
+
View
65 Gemfile
@@ -1,13 +1,59 @@
source :rubygems
-gem 'cucumber', '0.4.0'
-gem 'webrat', '0.5.1'
-gem 'rspec', '1.2.9'
-gem 'rspec-rails', '1.2.9'
-gem 'Selenium', '>= 1.1.14'
-gem 'selenium-client', '>= 1.2.17'
-gem 'database_cleaner'
-gem 'exception_notification', '1.0.20090728'
-gem 'system_timer'
+
+group :development, :production do
+ gem 'rake', '0.8.7'
+ gem 'rails', '2.3.5'
+ gem 'gettext', '2.1.0'
+ gem 'gettext_rails', '2.1.0'
+ gem 'rmagick', '2.13.1'
+ gem 'RedCloth', '4.2.2'
+ gem 'will_paginate', '2.3.12'
+ gem 'ruby-feedparser', '0.7'
+ gem 'ferret', '0.11.6'
+ gem 'hpricot', '0.8.2'
+ gem 'i18n', '0.4.1'
+ gem 'daemons', '1.0.10'
+ gem 'mongrel', '1.1.5'
+ gem 'mongrel_cluster', '1.0.5'
+
+ #Indirect, matching debian squeeze versions
+ gem 'builder', '2.1.2'
+ gem 'cmdparse', '2.0.2'
+ gem 'gem_plugin', '0.2.3'
+ gem 'eventmachine', '0.12.10'
+ gem 'log4r', '1.0.6'
+ gem 'mmap', '0.2.6'
+ gem 'mocha', '0.9.8'
+ gem 'nokogiri', '1.4.0'
+ gem 'rest-client', '1.6.0'
+ gem 'ruby-breakpoint', '0.5.1'
+end
+
+group :production do
+ gem 'thin', '1.2.4'
+ gem 'exception_notification', '1.0.20090728'
+end
+
+group :databases do
+ gem 'sqlite3-ruby', '1.2.4'
+ gem 'pg', '0.8.0'
+end
+
+group :test do
+ gem 'system_timer'
+ gem 'tidy'
+ gem 'rcov'
+end
+
+group :test, :cucumber do
+ gem 'cucumber', '0.4.0'
+ gem 'webrat', '0.5.1'
+ gem 'rspec', '1.2.9'
+ gem 'rspec-rails', '1.2.9'
+ gem 'Selenium', '>= 1.1.14'
+ gem 'selenium-client', '>= 1.2.17'
+ gem 'database_cleaner'
+end
def program(name)
unless system("which #{name} > /dev/null")
@@ -17,3 +63,4 @@ end
program 'java'
program 'firefox'
+
View
44 Gemfile.lock
@@ -1,44 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- Selenium (1.1.14)
- builder (3.0.0)
- cucumber (0.4.0)
- builder (>= 2.1.2)
- diff-lcs (>= 1.1.2)
- polyglot (>= 0.2.9)
- term-ansicolor (>= 1.0.3)
- treetop (>= 1.4.2)
- database_cleaner (0.7.0)
- diff-lcs (1.1.3)
- exception_notification (1.0.20090728)
- nokogiri (1.5.0)
- polyglot (0.3.3)
- rack (1.3.5)
- rspec (1.2.9)
- rspec-rails (1.2.9)
- rack (>= 1.0.0)
- rspec (>= 1.2.9)
- selenium-client (1.2.18)
- system_timer (1.2.4)
- term-ansicolor (1.0.7)
- treetop (1.4.10)
- polyglot
- polyglot (>= 0.3.1)
- webrat (0.5.1)
- nokogiri (>= 1.2.0)
- rack (>= 1.0)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- Selenium (>= 1.1.14)
- cucumber (= 0.4.0)
- database_cleaner
- exception_notification (= 1.0.20090728)
- rspec (= 1.2.9)
- rspec-rails (= 1.2.9)
- selenium-client (>= 1.2.17)
- system_timer
- webrat (= 0.5.1)
View
2 config/boot.rb
@@ -109,7 +109,7 @@ def read_environment_rb
def install_debian_rails
local_rails = File.dirname(__FILE__) + '/../vendor/rails'
debian_rails = ['/usr/share/rails-ruby1.8', '/usr/lib/ruby/vendor_ruby/rails'].find { |d| File.exists?(d) }
- if !File.exist?(local_rails) && File.exists?(debian_rails)
+ if debian_rails and !File.exist?(local_rails) && File.exists?(debian_rails)
File.delete(local_rails) if File.symlink?(local_rails) # remove dangling symlink
puts "I: Installing Debian-installed Rails from /usr/share/rails into vendor/rails."
recommended_rails_version = Rails::GemBoot.gem_version
View
1 script/delayed_job
@@ -7,6 +7,7 @@
# etc. The actual feed update logic is DelayedJob plugin.
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
+require 'rubygems'
require 'daemons'
require 'delayed/command'
require 'app/models/profile'
View
1 script/feed-updater
@@ -6,6 +6,7 @@
# The role of this script is to just start/stop the daemon, write a PID file,
# etc. The actual feed update logic is in FeedUpdater.
+require 'rubygems'
require 'daemons'
require 'optparse'

0 comments on commit 318d55d

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