Permalink
Browse files

Cleanup to remove deprecation warnings

  • Loading branch information...
1 parent b051904 commit de62bf7d42af7bf811749efe7130e673622d8706 Chad Humphries and Jon Distad committed Oct 1, 2010
View
@@ -8,3 +8,4 @@ coverage.data
test/coverage
.bundle
config/database.yml
+tags
View
@@ -5,14 +5,15 @@ gem "rails", "2.3.5"
gem "ruby-openid", "2.1.7"
gem "rack-openid", "1.0.3", :require => nil
gem "pg", "0.9.0"
+gem "rubytree", "0.7.0"
gem "rdiscount", "1.6.5"
gem "chronic", "0.2.3"
gem 'will_paginate', '2.3.12'
gem 'levenshtein', '0.2.0'
group :test do
- gem "shoulda", "2.11.1"
+ gem "shoulda", "2.11.3"
gem "flexmock", "0.8.7"
gem "rcov", "0.9.9", :require => nil
end
View
@@ -37,7 +37,8 @@ GEM
ruby-openid (2.1.7)
rubyforge (2.0.4)
json_pure (>= 1.1.7)
- shoulda (2.11.1)
+ rubytree (0.7.0)
+ shoulda (2.11.3)
will_paginate (2.3.12)
PLATFORMS
@@ -54,5 +55,6 @@ DEPENDENCIES
rcov (= 0.9.9)
rdiscount (= 1.6.5)
ruby-openid (= 2.1.7)
- shoulda (= 2.11.1)
+ rubytree (= 0.7.0)
+ shoulda (= 2.11.3)
will_paginate (= 2.3.12)
View
@@ -1,6 +1,6 @@
vote_map_to_dummy_see_also_up:
id: 1
- vote: 1
+ vote: true
created_at: 2010-08-13 01:06:03
voteable_id: 1
- user_id: 1
+ user_id: 1
@@ -14,7 +14,7 @@ class CommentsControllerTest < ActionController::TestCase
end
should respond_with 302
- should_set_the_flash_to "Comment successfully deleted."
+ should set_the_flash.to "Comment successfully deleted."
end
context "without a logged in user" do
@@ -23,7 +23,7 @@ class CommentsControllerTest < ActionController::TestCase
end
should respond_with 302
- should_set_the_flash_to "There was a problem deleting that comment."
+ should set_the_flash.to "There was a problem deleting that comment."
end
context "without a valid comment id" do
@@ -32,7 +32,7 @@ class CommentsControllerTest < ActionController::TestCase
end
should respond_with 302
- should_set_the_flash_to "There was a problem deleting that comment."
+ should set_the_flash.to "There was a problem deleting that comment."
end
end
end
@@ -109,9 +109,9 @@ class ExamplesControllerTest < ActionController::TestCase
get :view_changes, :id => 1
end
- should_assign_to :example
- should_assign_to :versions
- should_render_template :view_changes
+ should assign_to :example
+ should assign_to :versions
+ should render_template :view_changes
should respond_with :success
end
@@ -121,7 +121,7 @@ class ExamplesControllerTest < ActionController::TestCase
end
should set_the_flash
- should_redirect_to "/"
+ should redirect_to "/"
end
end
@@ -20,15 +20,15 @@ class MainControllerTest < ActionController::TestCase
get :function_short_link, :id => -1
end
- should_respond_with 404
+ should respond_with 404
end
context "with a valid function, but an invalid library" do
setup do
get :function_short_link, :id => 2
end
- should_respond_with 404
+ should respond_with 404
end
end
@@ -40,15 +40,15 @@ class MainControllerTest < ActionController::TestCase
get :ns, :lib => 'not found', :ns => 'clojure.core'
end
- should_respond_with 404
+ should respond_with 404
end
context "with a valid library and an invalid ns" do
setup do
get :ns, :lib => 'Clojure Core', :ns => 'not found'
end
- should_respond_with 404
+ should respond_with 404
end
end
@@ -60,7 +60,7 @@ class MainControllerTest < ActionController::TestCase
get :lib, :lib => "not found"
end
- should_respond_with 404
+ should respond_with 404
end
end
@@ -71,7 +71,7 @@ class MainControllerTest < ActionController::TestCase
get :quick_ref_shortdesc, :lib => 'not found'
end
- should_respond_with 404
+ should respond_with 404
end
should_succeed :quick_ref_vars_only, :lib => 'Clojure Core'
@@ -80,7 +80,7 @@ class MainControllerTest < ActionController::TestCase
get :quick_ref_vars_only, :lib => 'not found'
end
- should_respond_with 404
+ should respond_with 404
end
end
@@ -12,15 +12,15 @@ class UserControllerTest < ActionController::TestCase
get :profile, :login => 'not found'
end
- should_respond_with 404
+ should respond_with 404
end
context "A login with a space in it" do
setup do
get :profile, :login => 'Brian Marick'
end
- should_respond_with :success
+ should respond_with :success
end
context "Where the current user and the profile page user are the same" do
@@ -30,7 +30,7 @@ class UserControllerTest < ActionController::TestCase
get :profile, :login => 'zkim'
end
- should_respond_with :success
+ should respond_with :success
end
context "updating a user with a valid email" do
View
@@ -42,7 +42,7 @@ def self.should_response(action_name, response, params = {})
get action_name, params
end
- should_respond_with response
+ should respond_with response
end
end
@@ -62,4 +62,4 @@ def self.should_have_json_prop(property, value)
end
-end
+end
@@ -1,122 +0,0 @@
---- !ruby/object:Gem::Specification
-name: rubytree
-version: !ruby/object:Gem::Version
- version: 0.7.0
-platform: ruby
-authors:
-- Anupam Sengupta
-autorequire:
-bindir: bin
-cert_chain: []
-
-date: 2010-05-03 00:00:00 -06:00
-default_executable:
-dependencies:
-- !ruby/object:Gem::Dependency
- name: rubyforge
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: 2.0.4
- version:
-- !ruby/object:Gem::Dependency
- name: hoe-yard
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: 0.1.2
- version:
-- !ruby/object:Gem::Dependency
- name: hoe
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: 2.6.0
- version:
-description: |-
- RubyTree is a Ruby implementation of the generic tree data structure. It provides a node-based model to store keyed
- node-elements in the tree and simple APIs to access, modify and traverse the structure. RubyTree is node-centric, where
- individual nodes on the tree are the primary compositional and structural elements.
-
- This implementation also mixes in the Enumerable module to allow standard access to the tree as a collection.
-email:
-- anupamsg@gmail.com
-executables: []
-
-extensions: []
-
-extra_rdoc_files:
-- History.txt
-- Manifest.txt
-- COPYING
-- API-CHANGES
-files:
-- COPYING
-- History.txt
-- Manifest.txt
-- README
-- API-CHANGES
-- Rakefile
-- TODO
-- lib/tree.rb
-- lib/tree/binarytree.rb
-- setup.rb
-- test/test_binarytree.rb
-- test/test_tree.rb
-has_rdoc: true
-homepage: http://rubytree.rubyforge.org
-licenses: []
-
-post_install_message: |
- ========================================================================
-
- Thank you for installing rubytree.
-
- Please note that a few APIs have been deprecated since Version 0.6.1.
-
- Specifically, the 'Tree::TreeNode#depth' method is now deprecated, and
- a new nodeDepth() method has been introduced.
-
- Details of the API changes are documented in the API-CHANGES file.
-
- ========================================================================
-
-rdoc_options:
-- --files
-- COPYING,API-CHANGES
-- --title
-- Rubytree Documentation
-- --quiet
-require_paths:
-- lib
-required_ruby_version: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-required_rubygems_version: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-requirements: []
-
-rubyforge_project: rubytree
-rubygems_version: 1.3.5
-signing_key:
-specification_version: 3
-summary: RubyTree is a Ruby implementation of the generic tree data structure
-test_files:
-- test/test_binarytree.rb
-- test/test_tree.rb
@@ -1,42 +0,0 @@
-= API Changes in RubyTree
-
-This file documents various API level changes that have been made to the RubyTree package.
-
-Note: API level changes are expected to reduce dramatically after the 1.x release. In most cases, an alternative will
-be provided to ensure relatively smooth transition to the new APIs.
-
-== Release 0.7.0 Changes
-
-- Converted all exceptions thrown on invalid method arguments to from 'RuntimeError' to 'ArgumentError'. This impacts the
- following methods:
-
- - {Tree::TreeNode#initialize}
- - {Tree::TreeNode#add}
- - {Tree::TreeNode#[]}
- - {Tree::BinaryTreeNode#add}
-
-- Added {Tree::TreeNode#level} as an alias for {Tree::TreeNode#nodeDepth}
-
-- Added new methods {Tree::TreeNode#in_degree} and {Tree::TreeNode#out_degree} to report the node's degree stats
-
-- {Tree::TreeNode#isOnlyChild?} now returns +true+ for a root node.
-
-- {Tree::TreeNode#nextSibling} and {Tree::TreeNode#previousSibling} now return +nil+ for a root node.
-
-- {Tree::TreeNode#add} and {Tree::TreeNode#<<} now throw an ArgumentError exception if a +nil+ node is passed as an argument.
-
-- Added new methods {Tree::TreeNode#to_json} and {Tree::TreeNode::json_create} to convert to/from the JSON format.
- Thanks to Dirk[http://github.com/railsbros-dirk] for this change.
-
-== Release 0.6.1 Changes
-
-- Deprecated the {Tree::TreeNode#depth} method as it was returning an incorrect depth value. Have introduced a new replacement
- method {Tree::TreeNode#nodeDepth} which returns the correct result.
-
-
-
-
-# Local Variables:
-# mode: text
-# coding: utf-8-unix
-# End:
Oops, something went wrong.

0 comments on commit de62bf7

Please sign in to comment.