Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Git cleanup, running rake rails:update with vendor/rails at 1-2-stable.

  • Loading branch information...
commit 0b60bea80683e155e68fa138fa55cd0fe53e5df8 1 parent 0fab11b
@thomasn authored
View
8 .gitignore
@@ -0,0 +1,8 @@
+index
+log/*
+config/database.yml
+vendor/rails
+tmp/pids/*
+tmp/cache/*
+tmp/sockets/*
+tmp/sessions/*
View
30 config/boot.rb
@@ -1,15 +1,6 @@
# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
-unless defined?(RAILS_ROOT)
- root_path = File.join(File.dirname(__FILE__), '..')
-
- unless RUBY_PLATFORM =~ /(:?mswin|mingw)/
- require 'pathname'
- root_path = Pathname.new(root_path).cleanpath(true).to_s
- end
-
- RAILS_ROOT = root_path
-end
+RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
unless defined?(Rails::Initializer)
if File.directory?("#{RAILS_ROOT}/vendor/rails")
@@ -17,20 +8,23 @@
else
require 'rubygems'
- environment_without_comments = IO.readlines(File.dirname(__FILE__) + '/environment.rb').reject { |l| l =~ /^#/ }.join
- environment_without_comments =~ /[^#]RAILS_GEM_VERSION = '([\d.]+)'/
- rails_gem_version = $1
+ rails_gem_version =
+ if defined? RAILS_GEM_VERSION
+ RAILS_GEM_VERSION
+ else
+ File.read("#{File.dirname(__FILE__)}/environment.rb") =~ /^[^#]*RAILS_GEM_VERSION\s+=\s+'([\d.]+)'/
+ $1
+ end
- if version = defined?(RAILS_GEM_VERSION) ? RAILS_GEM_VERSION : rails_gem_version
- # Asking for 1.1.6 will give you 1.1.6.5206, if available -- makes it easier to use beta gems
- rails_gem = Gem.cache.search('rails', "~>#{version}.0").sort_by { |g| g.version.version }.last
+ if rails_gem_version
+ rails_gem = Gem.cache.search('rails', "=#{rails_gem_version}.0").sort_by { |g| g.version.version }.last
if rails_gem
gem "rails", "=#{rails_gem.version.version}"
require rails_gem.full_gem_path + '/lib/initializer'
else
- STDERR.puts %(Cannot find gem for Rails ~>#{version}.0:
- Install the missing gem with 'gem install -v=#{version} rails', or
+ STDERR.puts %(Cannot find gem for Rails =#{rails_gem_version}.0:
+ Install the missing gem with 'gem install -v=#{rails_gem_version} rails', or
change environment.rb to define RAILS_GEM_VERSION with your desired version.
)
exit 1
View
4 config/environment.rb
@@ -5,7 +5,7 @@
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '1.2.6' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
@@ -58,4 +58,4 @@
# Mime::Type.register "application/x-mobile", :mobile
# Include your application configuration below
-ActionMailer::Base.delivery_method = :smtp
+ActionMailer::Base.delivery_method = :smtp
View
306 db/schema.rb
@@ -1,153 +1,153 @@
-# This file is autogenerated. Instead of editing this file, please use the
-# migrations feature of ActiveRecord to incrementally modify your database, and
-# then regenerate this schema definition.
-
-ActiveRecord::Schema.define(:version => 23) do
-
- create_table "activities", :force => true do |t|
- t.column "activity_type_id", :integer
- t.column "time", :datetime
- t.column "notes", :text
- t.column "user_id", :integer
- end
-
- add_index "activities", ["activity_type_id"], :name => "index_activities_on_activity_type_id"
- add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
-
- create_table "activities_contacts", :id => false, :force => true do |t|
- t.column "activity_id", :integer
- t.column "contact_id", :integer
- end
-
- add_index "activities_contacts", ["activity_id"], :name => "index_activities_contacts_on_activity_id"
- add_index "activities_contacts", ["contact_id"], :name => "index_activities_contacts_on_contact_id"
-
- create_table "activity_types", :force => true do |t|
- t.column "name", :string
- end
-
- create_table "addresses", :force => true do |t|
- t.column "address1", :string
- t.column "address2", :string
- t.column "city", :string
- t.column "state", :string
- t.column "zip", :string
- t.column "country", :string
- end
-
- create_table "contacts", :force => true do |t|
- t.column "first_name", :string
- t.column "last_name", :string
- t.column "email", :string
- t.column "phone_number", :string
- t.column "title", :string
- t.column "work_phone", :string
- t.column "mobile_phone", :string
- t.column "home_phone", :string
- t.column "other_phone", :string
- t.column "fax", :string
- t.column "do_not_email", :boolean
- t.column "do_not_phone", :boolean
- t.column "notes", :text
- t.column "address_id", :integer
- t.column "address2_id", :integer
- t.column "lead_source_id", :integer
- end
-
- add_index "contacts", ["address2_id"], :name => "index_contacts_on_address2_id"
- add_index "contacts", ["address_id"], :name => "index_contacts_on_address_id"
- add_index "contacts", ["lead_source_id"], :name => "index_contacts_on_lead_source_id"
-
- create_table "contacts_groups", :id => false, :force => true do |t|
- t.column "contact_id", :integer
- t.column "group_id", :integer
- end
-
- add_index "contacts_groups", ["contact_id"], :name => "index_contacts_groups_on_contact_id"
- add_index "contacts_groups", ["group_id"], :name => "index_contacts_groups_on_group_id"
-
- create_table "dynamic_attribute_values", :force => true do |t|
- t.column "dynamic_attribute_id", :integer
- t.column "contact_id", :integer
- t.column "string_value", :string
- t.column "text_value", :text
- t.column "integer_value", :integer
- t.column "decimal_value", :decimal
- t.column "datetime_value", :datetime
- t.column "boolean_value", :boolean
- end
-
- add_index "dynamic_attribute_values", ["contact_id"], :name => "index_dynamic_attribute_values_on_contact_id"
- add_index "dynamic_attribute_values", ["dynamic_attribute_id"], :name => "index_dynamic_attribute_values_on_dynamic_attribute_id"
-
- create_table "dynamic_attributes", :force => true do |t|
- t.column "name", :string
- t.column "type_name", :string
- end
-
- add_index "dynamic_attributes", ["name"], :name => "index_dynamic_attributes_on_name"
-
- create_table "email_messages", :force => true do |t|
- t.column "activity_id", :integer
- t.column "subject", :string
- t.column "body", :text
- end
-
- create_table "group_types", :force => true do |t|
- t.column "name", :string
- end
-
- create_table "groups", :force => true do |t|
- t.column "name", :string
- t.column "account_number", :integer
- t.column "phone", :string
- t.column "fax", :string
- t.column "website", :string
- t.column "notes", :text
- t.column "billing_address_id", :integer
- t.column "shipping_address_id", :integer
- t.column "group_type_id", :integer
- t.column "parent_id", :integer
- t.column "lft", :integer
- t.column "rgt", :integer
- t.column "root_id", :integer
- t.column "depth", :integer
- end
-
- add_index "groups", ["billing_address_id"], :name => "index_groups_on_billing_address_id"
- add_index "groups", ["group_type_id"], :name => "index_groups_on_group_type_id"
- add_index "groups", ["lft"], :name => "index_groups_on_lft"
- add_index "groups", ["parent_id"], :name => "index_groups_on_parent_id"
- add_index "groups", ["rgt"], :name => "index_groups_on_rgt"
- add_index "groups", ["root_id"], :name => "index_groups_on_root_id"
- add_index "groups", ["shipping_address_id"], :name => "index_groups_on_shipping_address_id"
-
- create_table "lead_sources", :force => true do |t|
- t.column "name", :string
- end
-
- create_table "taggings", :force => true do |t|
- t.column "tag_id", :integer
- t.column "taggable_id", :integer
- t.column "taggable_type", :string
- t.column "created_at", :datetime
- end
-
- create_table "tags", :force => true do |t|
- t.column "name", :string
- end
-
- create_table "users", :force => true do |t|
- t.column "login", :string
- t.column "email", :string
- t.column "crypted_password", :string, :limit => 40
- t.column "salt", :string, :limit => 40
- t.column "created_at", :datetime
- t.column "updated_at", :datetime
- t.column "remember_token", :string
- t.column "remember_token_expires_at", :datetime
- end
-
- add_index "users", ["login", "crypted_password"], :name => "index_users_on_login_and_crypted_password"
-
-end
+# This file is autogenerated. Instead of editing this file, please use the
+# migrations feature of ActiveRecord to incrementally modify your database, and
+# then regenerate this schema definition.
+
+ActiveRecord::Schema.define(:version => 23) do
+
+ create_table "activities", :force => true do |t|
+ t.column "activity_type_id", :integer
+ t.column "time", :datetime
+ t.column "notes", :text
+ t.column "user_id", :integer
+ end
+
+ add_index "activities", ["activity_type_id"], :name => "index_activities_on_activity_type_id"
+ add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
+
+ create_table "activities_contacts", :id => false, :force => true do |t|
+ t.column "activity_id", :integer
+ t.column "contact_id", :integer
+ end
+
+ add_index "activities_contacts", ["activity_id"], :name => "index_activities_contacts_on_activity_id"
+ add_index "activities_contacts", ["contact_id"], :name => "index_activities_contacts_on_contact_id"
+
+ create_table "activity_types", :force => true do |t|
+ t.column "name", :string
+ end
+
+ create_table "addresses", :force => true do |t|
+ t.column "address1", :string
+ t.column "address2", :string
+ t.column "city", :string
+ t.column "state", :string
+ t.column "zip", :string
+ t.column "country", :string
+ end
+
+ create_table "contacts", :force => true do |t|
+ t.column "first_name", :string
+ t.column "last_name", :string
+ t.column "email", :string
+ t.column "phone_number", :string
+ t.column "title", :string
+ t.column "work_phone", :string
+ t.column "mobile_phone", :string
+ t.column "home_phone", :string
+ t.column "other_phone", :string
+ t.column "fax", :string
+ t.column "do_not_email", :boolean
+ t.column "do_not_phone", :boolean
+ t.column "notes", :text
+ t.column "address_id", :integer
+ t.column "address2_id", :integer
+ t.column "lead_source_id", :integer
+ end
+
+ add_index "contacts", ["address2_id"], :name => "index_contacts_on_address2_id"
+ add_index "contacts", ["address_id"], :name => "index_contacts_on_address_id"
+ add_index "contacts", ["lead_source_id"], :name => "index_contacts_on_lead_source_id"
+
+ create_table "contacts_groups", :id => false, :force => true do |t|
+ t.column "contact_id", :integer
+ t.column "group_id", :integer
+ end
+
+ add_index "contacts_groups", ["contact_id"], :name => "index_contacts_groups_on_contact_id"
+ add_index "contacts_groups", ["group_id"], :name => "index_contacts_groups_on_group_id"
+
+ create_table "dynamic_attribute_values", :force => true do |t|
+ t.column "dynamic_attribute_id", :integer
+ t.column "contact_id", :integer
+ t.column "string_value", :string
+ t.column "text_value", :text
+ t.column "integer_value", :integer
+ t.column "decimal_value", :decimal
+ t.column "datetime_value", :datetime
+ t.column "boolean_value", :boolean
+ end
+
+ add_index "dynamic_attribute_values", ["contact_id"], :name => "index_dynamic_attribute_values_on_contact_id"
+ add_index "dynamic_attribute_values", ["dynamic_attribute_id"], :name => "index_dynamic_attribute_values_on_dynamic_attribute_id"
+
+ create_table "dynamic_attributes", :force => true do |t|
+ t.column "name", :string
+ t.column "type_name", :string
+ end
+
+ add_index "dynamic_attributes", ["name"], :name => "index_dynamic_attributes_on_name"
+
+ create_table "email_messages", :force => true do |t|
+ t.column "activity_id", :integer
+ t.column "subject", :string
+ t.column "body", :text
+ end
+
+ create_table "group_types", :force => true do |t|
+ t.column "name", :string
+ end
+
+ create_table "groups", :force => true do |t|
+ t.column "name", :string
+ t.column "account_number", :integer
+ t.column "phone", :string
+ t.column "fax", :string
+ t.column "website", :string
+ t.column "notes", :text
+ t.column "billing_address_id", :integer
+ t.column "shipping_address_id", :integer
+ t.column "group_type_id", :integer
+ t.column "parent_id", :integer
+ t.column "lft", :integer
+ t.column "rgt", :integer
+ t.column "root_id", :integer
+ t.column "depth", :integer
+ end
+
+ add_index "groups", ["billing_address_id"], :name => "index_groups_on_billing_address_id"
+ add_index "groups", ["group_type_id"], :name => "index_groups_on_group_type_id"
+ add_index "groups", ["lft"], :name => "index_groups_on_lft"
+ add_index "groups", ["parent_id"], :name => "index_groups_on_parent_id"
+ add_index "groups", ["rgt"], :name => "index_groups_on_rgt"
+ add_index "groups", ["root_id"], :name => "index_groups_on_root_id"
+ add_index "groups", ["shipping_address_id"], :name => "index_groups_on_shipping_address_id"
+
+ create_table "lead_sources", :force => true do |t|
+ t.column "name", :string
+ end
+
+ create_table "taggings", :force => true do |t|
+ t.column "tag_id", :integer
+ t.column "taggable_id", :integer
+ t.column "taggable_type", :string
+ t.column "created_at", :datetime
+ end
+
+ create_table "tags", :force => true do |t|
+ t.column "name", :string
+ end
+
+ create_table "users", :force => true do |t|
+ t.column "login", :string
+ t.column "email", :string
+ t.column "crypted_password", :string, :limit => 40
+ t.column "salt", :string, :limit => 40
+ t.column "created_at", :datetime
+ t.column "updated_at", :datetime
+ t.column "remember_token", :string
+ t.column "remember_token_expires_at", :datetime
+ end
+
+ add_index "users", ["login", "crypted_password"], :name => "index_users_on_login_and_crypted_password"
+
+end
View
11 doc/README_FOR_APP
@@ -7,24 +7,25 @@ that you only ever send them what they want to see. At present it is usable by R
aren't too fussed about user interfaces ;-)
== Installation
- * Requires: Rails 1.2.3 or higher, PostgreSQL 8.x or MySQL 5.x
- * Get the code (!) - see GettingStarted on the wiki
+ * Requires: Rails 1.2.6 or higher, PostgreSQL 8.x or MySQL 5.x
+ * Get the code (!) - see http://github.com/thomasn/forgetmenot/tree/master or GettingStarted on the wiki
* Set up databases forgetmenot_development, forgetmenot_production, forgetmenot_test
* Check settings in config/database.yml (for MySQL, change adapter, see a standard Rails install for examples)
* sudo gem install maruku - Maruku is used for Markdown support (drop 'sudo' on Windows machines)
- * sudo gem install ferret - Ferret is used for the search engine
* rake db:migrate - create initial dev database
* rake test - run all tests
* ruby script/server -p 3333 - start the Mongrel server on port 3333
+For deployment (Phusion Passenger is recommended of course, on nginx or Apache) see config/deploy.rb.
+
== Getting involved
If you are just getting started with UI changes, try hacking CSS
(public/stylesheets/forgetmenot.css) an/or adding some images to public/images (please make sure they can be used with
our MIT licensing, GPL and Creative Commons Share-Alike licenses don't allow this). The HTML for the app pages is
generated by app/views/common/* , you may want to add divs, classes etc. here.
-If you have changes you'd like to contribute back, great! Please add your name to CONTRIBUTORS and post us a
-patch; instructions are on the wiki, SendingPatches.
+If you have changes you'd like to contribute back, great! Please add your name to CONTRIBUTORS and create a fork on GitHub.
+Send a pull request when you're ready.
If you can't contribute at the moment, but find Forgetmenot useful, please post a message to the list to let us know -
and to tell us what you'd like to see in future releases.
View
0  log/.keep
No changes.
View
0  script/about 100644 → 100755
File mode changed
View
0  script/breakpointer 100644 → 100755
File mode changed
View
0  script/console 100644 → 100755
File mode changed
View
0  script/destroy 100644 → 100755
File mode changed
View
0  script/ferret_start 100644 → 100755
File mode changed
View
0  script/ferret_stop 100644 → 100755
File mode changed
View
0  script/generate 100644 → 100755
File mode changed
View
0  script/plugin 100644 → 100755
File mode changed
View
0  script/runner 100644 → 100755
File mode changed
View
0  script/server 100644 → 100755
File mode changed
View
0  tmp/cache/.keep
No changes.
View
0  tmp/pids/.keep
No changes.
View
0  tmp/sessions/.keep
No changes.
View
0  tmp/sockets/.keep
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.