diff --git a/config/environments/test.rb b/config/environments/test.rb index fd221e4..f38e2f9 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -30,7 +30,7 @@ config.gem 'jferris-mocha', config.gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com', - :version => '>= 1.2.0' + :version => '>= 1.2.1' config.gem 'thoughtbot-shoulda', :lib => 'shoulda', :source => 'http://gems.github.com', diff --git a/vendor/plugins/semi_formal/MIT-LICENSE b/vendor/plugins/semi_formal/MIT-LICENSE deleted file mode 100644 index 9376605..0000000 --- a/vendor/plugins/semi_formal/MIT-LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2009 [name of plugin creator] - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/plugins/semi_formal/README.markdown b/vendor/plugins/semi_formal/README.markdown deleted file mode 100644 index 6fd5426..0000000 --- a/vendor/plugins/semi_formal/README.markdown +++ /dev/null @@ -1,57 +0,0 @@ -SemiFormal -========== - -A FormBuilder meant to play well with [Blitz](http://github.com/dancroak/blitz) and [Evergreen](http://github.com/dancroak/evergreen). - -Examples --------- - -I had been writing this: - - <% form_for :session, :url => session_path do |form| %> -
-
- <%= form.label :email %> - <%= form.text_field :email %> -
-
- <%= form.label :password %> - <%= form.password_field :password %> -
-
- <%= form.check_box :remember_me %> - <%= form.label :remember_me %> -
-
-
- <%= form.submit "Sign in", :disable_with => "Please wait..." %> -
- <% end %> - -With SemiFormal, I write this: - - <% form_for :session, :url => session_path do |form| %> -
- <%= form.string :email %> - <%= form.password :password %> - <%= form.boolean :remember_me %> -
-
- <%= form.submit "Sign in", :disable_with => "Please wait..." %> -
- <% end %> - -Hey, slightly better. - -Also available: - - form.text - form.numeric - -numeric is also aliased as integer, decimal, and float to feel migration-like. - -Installation ------------- - - script/plugin install git://github.com/dancroak/semi_formal.git - diff --git a/vendor/plugins/semi_formal/Rakefile b/vendor/plugins/semi_formal/Rakefile deleted file mode 100644 index 2efe7ee..0000000 --- a/vendor/plugins/semi_formal/Rakefile +++ /dev/null @@ -1,23 +0,0 @@ -require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' - -desc 'Default: run unit tests.' -task :default => :test - -desc 'Test the semi_formal plugin.' -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.verbose = true -end - -desc 'Generate documentation for the semi_formal plugin.' -Rake::RDocTask.new(:rdoc) do |rdoc| - rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'SemiFormal' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README') - rdoc.rdoc_files.include('lib/**/*.rb') -end diff --git a/vendor/plugins/semi_formal/init.rb b/vendor/plugins/semi_formal/init.rb deleted file mode 100644 index d89c81f..0000000 --- a/vendor/plugins/semi_formal/init.rb +++ /dev/null @@ -1,2 +0,0 @@ -require File.join(File.dirname(__FILE__), 'lib', 'semi_formal') - diff --git a/vendor/plugins/semi_formal/install.rb b/vendor/plugins/semi_formal/install.rb deleted file mode 100644 index e0fc3e4..0000000 --- a/vendor/plugins/semi_formal/install.rb +++ /dev/null @@ -1,2 +0,0 @@ -puts IO.read(File.join(File.dirname(__FILE__), 'README.textile')) - diff --git a/vendor/plugins/semi_formal/lib/semi_formal.rb b/vendor/plugins/semi_formal/lib/semi_formal.rb deleted file mode 100644 index 22df674..0000000 --- a/vendor/plugins/semi_formal/lib/semi_formal.rb +++ /dev/null @@ -1,75 +0,0 @@ -class SemiFormal < ActionView::Helpers::FormBuilder - def string(field, *args) - options = args.extract_options! - "
" + - label(field, options[:label] || {}) + - text_field(field, options[:text_field] || {}) + - "
" - end - - def password(field, *args) - options = args.extract_options! - "
" + - label(field, options[:label] || {}) + - password_field(field, options[:password_field] || {}) + - "
" - end - - def boolean(field, *args) - options = args.extract_options! - "
" + - check_box(field, options[:check_box] || {}) + - label(field, options[:label] || {}) + - "
" - end - - def numeric(field, *args) - options = args.extract_options! - "
" + - label(field, options[:label] || {}) + - text_field(field, options[:text_field] || {}) + - "
" - end - alias :integer :numeric - alias :float :numeric - alias :decimal :numeric - - def text(field, *args) - options = args.extract_options! - "
" + - label(field, options[:label] || {}) + - text_area(field, options[:text_area] || {}) + - "
" - end - - # form.belongs_to :user - # - # returns a drop-down with value of User#id, text of User#to_s - # includes blank - # - def belongs_to(association, *args) - options = args.extract_options! - - reflection = @object.class.reflect_on_association(association) - collection = reflection.klass.all.collect {|each| [each.to_s, each.id] } - - options[:select] ||= {} - options[:select][:include_blank] = true - - field = "#{association}_id" - - "
" + - label(field, options[:label] || {}) + - select(field, collection, options[:select] || {}) + - "
" - end - - # has_many? - # if [:has_many, :has_and_belongs_to_many].include?(reflection.macro) - # html_options[:multiple] ||= true - # html_options[:size] ||= 5 - # end -end - -ActionView::Base.default_form_builder = SemiFormal - diff --git a/vendor/plugins/semi_formal/tasks/semi_formal_tasks.rake b/vendor/plugins/semi_formal/tasks/semi_formal_tasks.rake deleted file mode 100644 index b45ddff..0000000 --- a/vendor/plugins/semi_formal/tasks/semi_formal_tasks.rake +++ /dev/null @@ -1,4 +0,0 @@ -# desc "Explaining what the task does" -# task :semi_formal do -# # Task goes here -# end diff --git a/vendor/plugins/semi_formal/test/semi_formal_test.rb b/vendor/plugins/semi_formal/test/semi_formal_test.rb deleted file mode 100644 index 5c35f64..0000000 --- a/vendor/plugins/semi_formal/test/semi_formal_test.rb +++ /dev/null @@ -1,8 +0,0 @@ -require 'test_helper' - -class SemiFormalTest < ActiveSupport::TestCase - # Replace this with your real tests. - test "the truth" do - assert true - end -end diff --git a/vendor/plugins/semi_formal/test/test_helper.rb b/vendor/plugins/semi_formal/test/test_helper.rb deleted file mode 100644 index cf148b8..0000000 --- a/vendor/plugins/semi_formal/test/test_helper.rb +++ /dev/null @@ -1,3 +0,0 @@ -require 'rubygems' -require 'active_support' -require 'active_support/test_case' \ No newline at end of file -- libgit2 0.21.2