Permalink
Browse files

Cleared out all old Rails application stuff.

  • Loading branch information...
1 parent aebfbdd commit 5db53c5288305ab68d97f6de3342f16270492ca4 @rubiety committed Oct 18, 2010
Showing with 27 additions and 23,549 deletions.
  1. +1 −6 .gitignore
  2. +14 −0 CHANGELOG.rdoc
  3. +0 −7 CHANGELOG.txt
  4. +0 −3 Capfile
  5. +11 −7 Rakefile
  6. +0 −2 TODO.txt
  7. +1 −1 app/models/tone_sequence.rb
  8. +0 −110 config/boot.rb
  9. +0 −23 config/database.yml
  10. +0 −47 config/deploy.rb
  11. +0 −59 config/environment.rb
  12. +0 −17 config/environments/development.rb
  13. +0 −19 config/environments/production.rb
  14. +0 −29 config/environments/test.rb
  15. +0 −10 config/initializers/inflections.rb
  16. +0 −6 config/initializers/mime_types.rb
  17. +0 −10 config/mongrel_cluster.yml
  18. +0 −37 config/routes.rb
  19. +0 −362 doc/app/classes/Chord.html
  20. +0 −295 doc/app/classes/ChordCollection.html
  21. +0 −270 doc/app/classes/ChordNotesController.html
  22. +0 −105 doc/app/classes/ChordNotesHelper.html
  23. +0 −197 doc/app/classes/ChordQualitiesController.html
  24. +0 −172 doc/app/classes/ChordQuality.html
  25. +0 −136 doc/app/classes/ChordScale.html
  26. +0 −209 doc/app/classes/ChordSymbol.html
  27. +0 −170 doc/app/classes/ChordSymbolCollection.html
  28. +0 −277 doc/app/classes/ChordSymbolsController.html
  29. +0 −148 doc/app/classes/ChordTone.html
  30. +0 −276 doc/app/classes/ChordTonesController.html
  31. +0 −297 doc/app/classes/ChordsController.html
  32. +0 −323 doc/app/classes/Key.html
  33. +0 −225 doc/app/classes/KeyContext.html
  34. +0 −231 doc/app/classes/Mode.html
  35. +0 −234 doc/app/classes/ModeContext.html
  36. +0 −152 doc/app/classes/ModeSequence.html
  37. +0 −275 doc/app/classes/ModesController.html
  38. +0 −153 doc/app/classes/NoteSequence.html
  39. +0 −295 doc/app/classes/NotesCollection.html
  40. +0 −105 doc/app/classes/NotesCollectionChordsHelper.html
  41. +0 −167 doc/app/classes/NotesCollectionController.html
  42. +0 −105 doc/app/classes/NotesCollectionHelper.html
  43. +0 −412 doc/app/classes/Scale.html
  44. +0 −272 doc/app/classes/ScaleNotesController.html
  45. +0 −105 doc/app/classes/ScaleNotesHelper.html
  46. +0 −140 doc/app/classes/ScaleTone.html
  47. +0 −274 doc/app/classes/ScaleTonesController.html
  48. +0 −193 doc/app/classes/ScalesController.html
  49. +0 −126 doc/app/classes/Tone.html
  50. +0 −214 doc/app/classes/Tone/Interval.html
  51. +0 −154 doc/app/classes/Tone/LetterInterval.html
  52. +0 −133 doc/app/classes/Tone/Offsets.html
  53. +0 −360 doc/app/classes/ToneSequence.html
  54. +0 −117 doc/app/classes/Voicing.html
  55. +0 −119 doc/app/classes/VoicingTone.html
  56. +0 −1 doc/app/created.rid
  57. +0 −101 doc/app/files/app/controllers/application_rb.html
  58. +0 −109 doc/app/files/app/controllers/chord_notes_controller_rb.html
  59. +0 −109 doc/app/files/app/controllers/chord_qualities_controller_rb.html
  60. +0 −117 doc/app/files/app/controllers/chord_symbols_controller_rb.html
  61. +0 −117 doc/app/files/app/controllers/chord_tones_controller_rb.html
  62. +0 −126 doc/app/files/app/controllers/chords_controller_rb.html
  63. +0 −101 doc/app/files/app/controllers/main_controller_rb.html
  64. +0 −109 doc/app/files/app/controllers/modes_controller_rb.html
  65. +0 −112 doc/app/files/app/controllers/notes_collection_controller_rb.html
  66. +0 −111 doc/app/files/app/controllers/scale_notes_controller_rb.html
  67. +0 −115 doc/app/files/app/controllers/scale_tones_controller_rb.html
  68. +0 −108 doc/app/files/app/controllers/scales_controller_rb.html
  69. +0 −101 doc/app/files/app/controllers/voicing_tones_controller_rb.html
  70. +0 −101 doc/app/files/app/controllers/voicings_controller_rb.html
  71. +0 −101 doc/app/files/app/helpers/application_helper_rb.html
  72. +0 −101 doc/app/files/app/helpers/chord_notes_helper_rb.html
  73. +0 −101 doc/app/files/app/helpers/chord_qualities_helper_rb.html
  74. +0 −101 doc/app/files/app/helpers/chord_symbols_helper_rb.html
  75. +0 −101 doc/app/files/app/helpers/chord_tones_helper_rb.html
  76. +0 −101 doc/app/files/app/helpers/chords_helper_rb.html
  77. +0 −101 doc/app/files/app/helpers/main_helper_rb.html
  78. +0 −101 doc/app/files/app/helpers/modes_helper_rb.html
  79. +0 −101 doc/app/files/app/helpers/notes_collection_chords_helper_rb.html
  80. +0 −101 doc/app/files/app/helpers/notes_collection_helper_rb.html
  81. +0 −101 doc/app/files/app/helpers/scale_notes_helper_rb.html
  82. +0 −101 doc/app/files/app/helpers/scale_tones_helper_rb.html
  83. +0 −101 doc/app/files/app/helpers/scales_helper_rb.html
  84. +0 −101 doc/app/files/app/helpers/voicing_tones_helper_rb.html
  85. +0 −101 doc/app/files/app/helpers/voicings_helper_rb.html
  86. +0 −119 doc/app/files/app/models/chord_collection_rb.html
  87. +0 −114 doc/app/files/app/models/chord_quality_rb.html
  88. +0 −215 doc/app/files/app/models/chord_rb.html
  89. +0 −126 doc/app/files/app/models/chord_scale_rb.html
  90. +0 −107 doc/app/files/app/models/chord_symbol_collection_rb.html
  91. +0 −119 doc/app/files/app/models/chord_symbol_rb.html
  92. +0 −136 doc/app/files/app/models/chord_tone_rb.html
  93. +0 −120 doc/app/files/app/models/key_context_rb.html
  94. +0 −117 doc/app/files/app/models/key_rb.html
  95. +0 −121 doc/app/files/app/models/mode_context_rb.html
  96. +0 −143 doc/app/files/app/models/mode_rb.html
  97. +0 −108 doc/app/files/app/models/mode_sequence_rb.html
  98. +0 −107 doc/app/files/app/models/note_sequence_rb.html
  99. +0 −108 doc/app/files/app/models/notes_collection_rb.html
  100. +0 −200 doc/app/files/app/models/scale_rb.html
  101. +0 −128 doc/app/files/app/models/scale_tone_rb.html
  102. +0 −108 doc/app/files/app/models/tone_rb.html
  103. +0 −109 doc/app/files/app/models/tone_sequence_rb.html
  104. +0 −107 doc/app/files/app/models/voicing_rb.html
  105. +0 −107 doc/app/files/app/models/voicing_tone_rb.html
  106. +0 −482 doc/app/files/doc/README_FOR_APP.html
  107. +0 −63 doc/app/fr_class_index.html
  108. +0 −76 doc/app/fr_file_index.html
  109. +0 −112 doc/app/fr_method_index.html
  110. +0 −24 doc/app/index.html
  111. +0 −208 doc/app/rdoc-style.css
  112. +0 −64 doc/introduction_blog_entry.txt
  113. 0 public/favicon.ico → lib/jazz_model.rb
  114. +0 −11 public/.htaccess
  115. +0 −30 public/404.html
  116. +0 −30 public/422.html
  117. +0 −30 public/500.html
  118. +0 −10 public/dispatch.cgi
  119. +0 −24 public/dispatch.fcgi
  120. +0 −10 public/dispatch.rb
  121. BIN public/images/rails.png
  122. +0 −2 public/javascripts/application.js
  123. +0 −963 public/javascripts/controls.js
  124. +0 −973 public/javascripts/dragdrop.js
  125. +0 −1,128 public/javascripts/effects.js
  126. +0 −4,320 public/javascripts/prototype.js
  127. +0 −5 public/robots.txt
  128. +0 −3 script/about
  129. +0 −3 script/console
  130. +0 −3 script/dbconsole
  131. +0 −3 script/destroy
  132. +0 −3 script/generate
  133. +0 −3 script/performance/benchmarker
  134. +0 −3 script/performance/profiler
  135. +0 −3 script/performance/request
  136. +0 −3 script/plugin
  137. +0 −3 script/process/inspector
  138. +0 −3 script/process/reaper
  139. +0 −3 script/process/spawner
  140. +0 −3 script/runner
  141. +0 −3 script/server
  142. +0 −4 script/spec
  143. +0 −102 script/spec_server
  144. +0 −23 vendor/plugins/acts_as_list/README
  145. +0 −3 vendor/plugins/acts_as_list/init.rb
  146. +0 −256 vendor/plugins/acts_as_list/lib/active_record/acts/list.rb
  147. +0 −332 vendor/plugins/acts_as_list/test/list_test.rb
  148. +0 −26 vendor/plugins/acts_as_tree/README
  149. +0 −22 vendor/plugins/acts_as_tree/Rakefile
  150. +0 −1 vendor/plugins/acts_as_tree/init.rb
  151. +0 −96 vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb
  152. 0 vendor/plugins/acts_as_tree/test/abstract_unit.rb
  153. +0 −219 vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb
  154. 0 vendor/plugins/acts_as_tree/test/database.yml
  155. 0 vendor/plugins/acts_as_tree/test/fixtures/mixin.rb
  156. 0 vendor/plugins/acts_as_tree/test/fixtures/mixins.yml
  157. 0 vendor/plugins/acts_as_tree/test/schema.rb
  158. +0 −20 vendor/plugins/migrate_test_db/MIT-LICENSE
  159. +0 −35 vendor/plugins/migrate_test_db/README
  160. +0 −40 vendor/plugins/migrate_test_db/tasks/migrate_test_db.rake
View
@@ -1,8 +1,3 @@
log/*.log
-tmp/**/*
-.DS_Store
-public/cache/**/*
-doc/api
-doc/app
db/schema.rb
-db/schema.sql
+db/schema.sql
View
@@ -0,0 +1,14 @@
+== 0.1.0 [2010-10-20] Modernization
+* Upgraded to RSpec 2.0
+* Ditched Controllers/Rails Application
+* Reworked all models to use in-memory ActiveModel instead of ActiveRecord
+* Internal Refactoring
+* Released as a Gem
+
+== 2008-08-24:
+* Upgraded to Rails 2.1
+* Refactored models to use new Rails 2.1 features.
+
+== Old:
+* Implemented REST Interface
+* Added RSpec
View
@@ -1,7 +0,0 @@
-2008-08-24:
-* Upgraded to Rails 2.1
-* Refactored models to use new Rails 2.1 features.
-
-Old:
-* Implemented REST Interface
-* Added RSpec
View
@@ -1,3 +0,0 @@
-load 'deploy' if respond_to?(:namespace) # cap2 differentiator
-Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
-load 'config/deploy'
View
@@ -1,10 +1,14 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require(File.join(File.dirname(__FILE__), 'config', 'boot'))
-
+require 'rubygems'
require 'rake'
-require 'rake/testtask'
require 'rake/rdoctask'
-require 'tasks/rails'
+desc "Generate documentation for the plugin."
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = "rdoc"
+ rdoc.title = "message_block"
+ rdoc.options << "--line-numbers" << "--inline-source"
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+Dir["#{File.dirname(__FILE__)}/lib/tasks/*.rake"].sort.each { |ext| load ext }
View
@@ -1,2 +0,0 @@
-* Add Chord Stubs Functionality - Stored as specific notes, matches to parent chord
- This will solve potential note-matching issues in the altered chord, for example.
@@ -15,7 +15,7 @@ def in_key_of(in_key = nil)
self
end
- # Shifts indexes to simulat a key change
+ # Shifts indexes to simulate a key change
def in_key_context!
self.each do |tone|
tone.tone = (tone.tone + key.index) % 12
View
@@ -1,110 +0,0 @@
-# Don't change this file!
-# Configure your app in config/environment.rb and config/environments/*.rb
-
-RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
-
-module Rails
- class << self
- def boot!
- unless booted?
- preinitialize
- pick_boot.run
- end
- end
-
- def booted?
- defined? Rails::Initializer
- end
-
- def pick_boot
- (vendor_rails? ? VendorBoot : GemBoot).new
- end
-
- def vendor_rails?
- File.exist?("#{RAILS_ROOT}/vendor/rails")
- end
-
- def preinitialize
- load(preinitializer_path) if File.exist?(preinitializer_path)
- end
-
- def preinitializer_path
- "#{RAILS_ROOT}/config/preinitializer.rb"
- end
- end
-
- class Boot
- def run
- load_initializer
- Rails::Initializer.run(:set_load_path)
- end
- end
-
- class VendorBoot < Boot
- def load_initializer
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
- Rails::Initializer.run(:install_gem_spec_stubs)
- Rails::GemDependency.add_frozen_gem_path
- end
- end
-
- class GemBoot < Boot
- def load_initializer
- self.class.load_rubygems
- load_rails_gem
- require 'initializer'
- end
-
- def load_rails_gem
- if version = self.class.gem_version
- gem 'rails', version
- else
- gem 'rails'
- end
- rescue Gem::LoadError => load_error
- $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
- exit 1
- end
-
- class << self
- def rubygems_version
- Gem::RubyGemsVersion rescue nil
- end
-
- def gem_version
- if defined? RAILS_GEM_VERSION
- RAILS_GEM_VERSION
- elsif ENV.include?('RAILS_GEM_VERSION')
- ENV['RAILS_GEM_VERSION']
- else
- parse_gem_version(read_environment_rb)
- end
- end
-
- def load_rubygems
- require 'rubygems'
- min_version = '1.3.1'
- unless rubygems_version >= min_version
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
- exit 1
- end
-
- rescue LoadError
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
- exit 1
- end
-
- def parse_gem_version(text)
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
- end
-
- private
- def read_environment_rb
- File.read("#{RAILS_ROOT}/config/environment.rb")
- end
- end
- end
-end
-
-# All that for this:
-Rails.boot!
View
@@ -1,23 +0,0 @@
-development:
- adapter: mysql
- encoding: utf8
- database: jazzinator_dev
- username: jazzinator
- password: jazz0102$
- hostname: 127.0.0.1
-
-test:
- adapter: mysql
- encoding: utf8
- database: jazzinator_test
- username: jazzinator
- password: jazz0102$
- hostname: 127.0.0.1
-
-production:
- adapter: mysql
- encoding: utf8
- database: jazztoolbox
- username: jazztoolbox
- password: jtb0102$
- hostname: 127.0.0.1
View
@@ -1,47 +0,0 @@
-set :application, "jazztoolbox"
-set :repository, "git@github.com:railsgarden/jazztoolbox.git"
-
-set :scm, :git
-set :branch, 'master'
-set :deploy_via, :remote_cache
-
-set :ssh_options, {:forward_agent => true}
-
-task :production do
- role :web, "jazztoolbox.com"
- role :app, "jazztoolbox.com"
- role :db, "jazztoolbox.com", :primary => true
-
- set :rails_env, "production"
- set :deploy_to, "/var/www/jazztoolbox.com/app"
- set :user, "bhughes"
- set :use_sudo, false
-end
-
-namespace :deploy do
- task :restart, :roles => :app do
- run "touch #{current_path}/tmp/restart.txt"
- end
-end
-
-after "deploy:update_code", :create_permissions
-after "deploy:update_code", :create_shared_links
-after "deploy:update_code", :recreate_database
-
-task :create_permissions do
- run "find #{release_path}/public -type d -exec chmod 0755 {} \\;"
- run "find #{release_path}/public -type f -exec chmod 0644 {} \\;"
- run "chmod 0755 #{release_path}/public/dispatch.*"
- run "chmod -R a+w #{release_path}/tmp"
-end
-
-task :create_shared_links do
- run "cd #{release_path}/public/ && ln -nfs ../../../../public/rdoc rdoc"
- run "cd #{release_path}/public/ && ln -nfs ../../../../public/rcov rcov"
-end
-
-task :recreate_database do
- run "cd #{release_path} && rake db:drop RAILS_ENV=#{rails_env}"
- run "cd #{release_path} && rake db:create RAILS_ENV=#{rails_env}"
- run "cd #{release_path} && rake db:migrate RAILS_ENV=#{rails_env}"
-end
View
@@ -1,59 +0,0 @@
-# Be sure to restart your server when you modify this file
-
-# Uncomment below to force Rails into production mode when
-# you don't control web/app server and can't set it the proper way
-# ENV['RAILS_ENV'] ||= 'production'
-
-# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
-
-# Bootstrap the Rails environment, frameworks, and default configuration
-require File.join(File.dirname(__FILE__), 'boot')
-
-Rails::Initializer.run do |config|
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration should go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded.
- # See Rails::Configuration for more options.
-
- # Skip frameworks you're not going to use (only works if using vendor/rails).
- # To use Rails without a database, you must remove the Active Record framework
- # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
-
- # Only load the plugins named here, in the order given. By default, all plugins
- # in vendor/plugins are loaded in alphabetical order.
- # :all can be used as a placeholder for all plugins not explicitly named
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
-
- # Add additional load paths for your own custom dirs
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
-
- # Force all environments to use the same logger level
- # (by default production uses :info, the others :debug)
- # config.log_level = :debug
-
- # Your secret key for verifying cookie session data integrity.
- # If you change this key, all old sessions will become invalid!
- # Make sure the secret is at least 30 characters and all random,
- # no regular words or you'll be exposed to dictionary attacks.
- config.action_controller.session = {
- :session_key => '_jazztoolbox_session',
- :secret => '35aba4b5464f6b1538698559e8d269635dc853070e29ad807ef166d922bde32a4a55440b5dca2fd9e30a0be91fa4f3cf6723ee8d04e21d31ba4cc99373c9cc0c'
- }
-
- # Use the database for sessions instead of the cookie-based default,
- # which shouldn't be used to store highly confidential information
- # (create the session table with 'rake db:sessions:create')
- # config.action_controller.session_store = :active_record_store
-
- # Use SQL instead of Active Record's schema dumper when creating the test database.
- # This is necessary if your schema can't be completely dumped by the schema dumper,
- # like if you have constraints or database-specific column types
- config.active_record.schema_format = :migrate
-
- # Activate observers that should always be running
- # config.active_record.observers = :cacher, :garbage_collector
-
- # Make Active Record use UTC-base instead of local time
- # config.active_record.default_timezone = :utc
-end
@@ -1,17 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# In the development environment your application's code is reloaded on
-# every request. This slows down response time but is perfect for development
-# since you don't have to restart the webserver when you make code changes.
-config.cache_classes = false
-
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils = true
-
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_view.debug_rjs = true
-config.action_controller.perform_caching = false
-
-# Don't care if the mailer can't send
-config.action_mailer.raise_delivery_errors = false
@@ -1,19 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The production environment is meant for finished, "live" apps.
-# Code is not reloaded between requests
-config.cache_classes = true
-
-# Use a different logger for distributed setups
-# config.logger = SyslogLogger.new
-
-# Full error reports are disabled and caching is turned on
-config.action_controller.consider_all_requests_local = false
-config.action_controller.perform_caching = true
-config.action_view.cache_template_loading = true
-
-# Enable serving of images, stylesheets, and javascripts from an asset server
-# config.action_controller.asset_host = "http://assets.example.com"
-
-# Disable delivery errors, bad email addresses will be ignored
-# config.action_mailer.raise_delivery_errors = false
@@ -1,29 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The test environment is used exclusively to run your application's
-# test suite. You never need to work with it otherwise. Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs. Don't rely on the data there!
-config.cache_classes = true
-
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils = true
-
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching = false
-
-# Disable request forgery protection in test environment
-config.action_controller.allow_forgery_protection = false
-
-# Tell ActionMailer not to deliver emails to the real world.
-# The :test delivery method accumulates sent emails in the
-# ActionMailer::Base.deliveries array.
-config.action_mailer.delivery_method = :test
-
-config.gem "rspec", :lib => false
-config.gem "rspec-rails", :lib => false
-config.gem "faker", :lib => false
-config.gem "cucumber", :lib => false, :source => "http://gems.github.com"
-config.gem "thoughtbot-factory_girl", :lib => false, :source => "http://gems.github.com"
-config.gem "thoughtbot-shoulda", :lib => false, :source => "http://gems.github.com"
@@ -1,10 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format
-# (all these examples are active by default):
-# Inflector.inflections do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
Oops, something went wrong.

0 comments on commit 5db53c5

Please sign in to comment.