diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..3707abf --- /dev/null +++ b/Appraisals @@ -0,0 +1,11 @@ +appraise "3.0" do + gem "activerecord", "~> 3.0" +end + +appraise "3.1" do + gem "activerecord", "~> 3.1" +end + +appraise "3.2" do + gem "activerecord", "~> 3.2" +end \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index d4a78ef..e8a32e7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,87 +1,99 @@ PATH remote: . specs: - tabs_on_rails (2.0.1) + tabs_on_rails (2.0.2) GEM remote: http://rubygems.org/ specs: - abstract (1.0.0) - actionmailer (3.0.9) - actionpack (= 3.0.9) - mail (~> 2.2.19) - actionpack (3.0.9) - activemodel (= 3.0.9) - activesupport (= 3.0.9) - builder (~> 2.1.2) - erubis (~> 2.6.6) - i18n (~> 0.5.0) - rack (~> 1.2.1) - rack-mount (~> 0.6.14) - rack-test (~> 0.5.7) - tzinfo (~> 0.3.23) - activemodel (3.0.9) - activesupport (= 3.0.9) - builder (~> 2.1.2) - i18n (~> 0.5.0) - activerecord (3.0.9) - activemodel (= 3.0.9) - activesupport (= 3.0.9) - arel (~> 2.0.10) - tzinfo (~> 0.3.23) - activeresource (3.0.9) - activemodel (= 3.0.9) - activesupport (= 3.0.9) - activesupport (3.0.9) - arel (2.0.10) - builder (2.1.2) - erubis (2.6.6) - abstract (>= 1.0.0) - haml (3.0.25) - hanna-nouveau (0.2.3) - haml (= 3.0.25) - rdoc - i18n (0.5.0) - mail (2.2.19) - activesupport (>= 2.3.6) + actionmailer (3.2.1) + actionpack (= 3.2.1) + mail (~> 2.4.0) + actionpack (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + builder (~> 3.0.0) + erubis (~> 2.7.0) + journey (~> 1.0.1) + rack (~> 1.4.0) + rack-cache (~> 1.1) + rack-test (~> 0.6.1) + sprockets (~> 2.1.2) + activemodel (3.2.1) + activesupport (= 3.2.1) + builder (~> 3.0.0) + activerecord (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + arel (~> 3.0.0) + tzinfo (~> 0.3.29) + activeresource (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + activesupport (3.2.1) + i18n (~> 0.6) + multi_json (~> 1.0) + appraisal (0.4.0) + bundler + rake + arel (3.0.0) + builder (3.0.0) + erubis (2.7.0) + hike (1.2.1) + i18n (0.6.0) + journey (1.0.1) + json (1.6.5) + mail (2.4.1) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) - mime-types (1.16) + mime-types (1.17.2) mocha (0.9.12) - polyglot (0.3.1) - rack (1.2.3) - rack-mount (0.6.14) - rack (>= 1.0.0) - rack-test (0.5.7) + multi_json (1.0.4) + polyglot (0.3.3) + rack (1.4.1) + rack-cache (1.1) + rack (>= 0.4) + rack-ssl (1.3.2) + rack + rack-test (0.6.1) rack (>= 1.0) - rails (3.0.9) - actionmailer (= 3.0.9) - actionpack (= 3.0.9) - activerecord (= 3.0.9) - activeresource (= 3.0.9) - activesupport (= 3.0.9) + rails (3.2.1) + actionmailer (= 3.2.1) + actionpack (= 3.2.1) + activerecord (= 3.2.1) + activeresource (= 3.2.1) + activesupport (= 3.2.1) bundler (~> 1.0) - railties (= 3.0.9) - railties (3.0.9) - actionpack (= 3.0.9) - activesupport (= 3.0.9) + railties (= 3.2.1) + railties (3.2.1) + actionpack (= 3.2.1) + activesupport (= 3.2.1) + rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) - thor (~> 0.14.4) - rake (0.9.2) - rdoc (3.7) + thor (~> 0.14.6) + rake (0.9.2.2) + rdoc (3.12) + json (~> 1.4) + sprockets (2.1.2) + hike (~> 1.2) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) thor (0.14.6) - treetop (1.4.9) + tilt (1.3.3) + treetop (1.4.10) + polyglot polyglot (>= 0.3.1) - tzinfo (0.3.29) + tzinfo (0.3.31) + yard (0.7.5) PLATFORMS ruby DEPENDENCIES - bundler - hanna-nouveau + appraisal mocha (~> 0.9.10) - rails (~> 3.0.6) + rails (>= 3.0) tabs_on_rails! + yard diff --git a/Rakefile b/Rakefile index f821437..3eb9cc7 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ require 'rubygems' require 'bundler' +require 'appraisal' $:.unshift(File.dirname(__FILE__) + '/lib') require 'tabs_on_rails/version' @@ -26,9 +27,8 @@ spec = Gem::Specification.new do |s| s.files = %w( Rakefile LICENSE init.rb .gemtest ) + Dir.glob("*.{rdoc,gemspec}") + Dir.glob("{lib,test,rails}/**/*") s.require_paths = %w( lib ) - s.add_development_dependency "rake" - s.add_development_dependency "bundler" - s.add_development_dependency "rails", "~> 3.0.6" + s.add_development_dependency "rails", ">= 3.0" + s.add_development_dependency "appraisal" s.add_development_dependency "mocha", "~> 0.9.10" s.add_development_dependency "yard" end @@ -63,7 +63,8 @@ require 'rake/testtask' Rake::TestTask.new do |t| t.libs << "test" t.test_files = FileList["test/**/*_test.rb"] - t.verbose = true + t.verbose = !!ENV["VERBOSE"] + t.warning = !!ENV["WARNING"] end diff --git a/gemfiles/3.0.gemfile b/gemfiles/3.0.gemfile new file mode 100644 index 0000000..68518b8 --- /dev/null +++ b/gemfiles/3.0.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "activerecord", "~> 3.0" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/3.0.gemfile.lock b/gemfiles/3.0.gemfile.lock new file mode 100644 index 0000000..9b14024 --- /dev/null +++ b/gemfiles/3.0.gemfile.lock @@ -0,0 +1,91 @@ +PATH + remote: /Users/weppos/Code/tabs_on_rails + specs: + tabs_on_rails (2.0.2) + +GEM + remote: http://rubygems.org/ + specs: + abstract (1.0.0) + actionmailer (3.0.11) + actionpack (= 3.0.11) + mail (~> 2.2.19) + actionpack (3.0.11) + activemodel (= 3.0.11) + activesupport (= 3.0.11) + builder (~> 2.1.2) + erubis (~> 2.6.6) + i18n (~> 0.5.0) + rack (~> 1.2.1) + rack-mount (~> 0.6.14) + rack-test (~> 0.5.7) + tzinfo (~> 0.3.23) + activemodel (3.0.11) + activesupport (= 3.0.11) + builder (~> 2.1.2) + i18n (~> 0.5.0) + activerecord (3.0.11) + activemodel (= 3.0.11) + activesupport (= 3.0.11) + arel (~> 2.0.10) + tzinfo (~> 0.3.23) + activeresource (3.0.11) + activemodel (= 3.0.11) + activesupport (= 3.0.11) + activesupport (3.0.11) + appraisal (0.4.0) + bundler + rake + arel (2.0.10) + builder (2.1.2) + erubis (2.6.6) + abstract (>= 1.0.0) + i18n (0.5.0) + json (1.6.5) + mail (2.2.19) + activesupport (>= 2.3.6) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.17.2) + mocha (0.9.12) + polyglot (0.3.3) + rack (1.2.5) + rack-mount (0.6.14) + rack (>= 1.0.0) + rack-test (0.5.7) + rack (>= 1.0) + rails (3.0.11) + actionmailer (= 3.0.11) + actionpack (= 3.0.11) + activerecord (= 3.0.11) + activeresource (= 3.0.11) + activesupport (= 3.0.11) + bundler (~> 1.0) + railties (= 3.0.11) + railties (3.0.11) + actionpack (= 3.0.11) + activesupport (= 3.0.11) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (~> 0.14.4) + rake (0.9.2.2) + rdoc (3.12) + json (~> 1.4) + thor (0.14.6) + treetop (1.4.10) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.31) + yard (0.7.5) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord (~> 3.0) + appraisal + mocha (~> 0.9.10) + rails (>= 3.0) + tabs_on_rails! + yard diff --git a/gemfiles/3.1.gemfile b/gemfiles/3.1.gemfile new file mode 100644 index 0000000..24d2ede --- /dev/null +++ b/gemfiles/3.1.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "activerecord", "~> 3.1" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/3.1.gemfile.lock b/gemfiles/3.1.gemfile.lock new file mode 100644 index 0000000..8254265 --- /dev/null +++ b/gemfiles/3.1.gemfile.lock @@ -0,0 +1,100 @@ +PATH + remote: /Users/weppos/Code/tabs_on_rails + specs: + tabs_on_rails (2.0.2) + +GEM + remote: http://rubygems.org/ + specs: + actionmailer (3.2.1) + actionpack (= 3.2.1) + mail (~> 2.4.0) + actionpack (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + builder (~> 3.0.0) + erubis (~> 2.7.0) + journey (~> 1.0.1) + rack (~> 1.4.0) + rack-cache (~> 1.1) + rack-test (~> 0.6.1) + sprockets (~> 2.1.2) + activemodel (3.2.1) + activesupport (= 3.2.1) + builder (~> 3.0.0) + activerecord (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + arel (~> 3.0.0) + tzinfo (~> 0.3.29) + activeresource (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + activesupport (3.2.1) + i18n (~> 0.6) + multi_json (~> 1.0) + appraisal (0.4.0) + bundler + rake + arel (3.0.0) + builder (3.0.0) + erubis (2.7.0) + hike (1.2.1) + i18n (0.6.0) + journey (1.0.1) + json (1.6.5) + mail (2.4.1) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.17.2) + mocha (0.9.12) + multi_json (1.0.4) + polyglot (0.3.3) + rack (1.4.1) + rack-cache (1.1) + rack (>= 0.4) + rack-ssl (1.3.2) + rack + rack-test (0.6.1) + rack (>= 1.0) + rails (3.2.1) + actionmailer (= 3.2.1) + actionpack (= 3.2.1) + activerecord (= 3.2.1) + activeresource (= 3.2.1) + activesupport (= 3.2.1) + bundler (~> 1.0) + railties (= 3.2.1) + railties (3.2.1) + actionpack (= 3.2.1) + activesupport (= 3.2.1) + rack-ssl (~> 1.3.2) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (~> 0.14.6) + rake (0.9.2.2) + rdoc (3.12) + json (~> 1.4) + sprockets (2.1.2) + hike (~> 1.2) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + thor (0.14.6) + tilt (1.3.3) + treetop (1.4.10) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.31) + yard (0.7.5) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord (~> 3.1) + appraisal + mocha (~> 0.9.10) + rails (>= 3.0) + tabs_on_rails! + yard diff --git a/gemfiles/3.2.gemfile b/gemfiles/3.2.gemfile new file mode 100644 index 0000000..4f25955 --- /dev/null +++ b/gemfiles/3.2.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +gem "activerecord", "~> 3.2" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/3.2.gemfile.lock b/gemfiles/3.2.gemfile.lock new file mode 100644 index 0000000..335a653 --- /dev/null +++ b/gemfiles/3.2.gemfile.lock @@ -0,0 +1,100 @@ +PATH + remote: /Users/weppos/Code/tabs_on_rails + specs: + tabs_on_rails (2.0.2) + +GEM + remote: http://rubygems.org/ + specs: + actionmailer (3.2.1) + actionpack (= 3.2.1) + mail (~> 2.4.0) + actionpack (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + builder (~> 3.0.0) + erubis (~> 2.7.0) + journey (~> 1.0.1) + rack (~> 1.4.0) + rack-cache (~> 1.1) + rack-test (~> 0.6.1) + sprockets (~> 2.1.2) + activemodel (3.2.1) + activesupport (= 3.2.1) + builder (~> 3.0.0) + activerecord (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + arel (~> 3.0.0) + tzinfo (~> 0.3.29) + activeresource (3.2.1) + activemodel (= 3.2.1) + activesupport (= 3.2.1) + activesupport (3.2.1) + i18n (~> 0.6) + multi_json (~> 1.0) + appraisal (0.4.0) + bundler + rake + arel (3.0.0) + builder (3.0.0) + erubis (2.7.0) + hike (1.2.1) + i18n (0.6.0) + journey (1.0.1) + json (1.6.5) + mail (2.4.1) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.17.2) + mocha (0.9.12) + multi_json (1.0.4) + polyglot (0.3.3) + rack (1.4.1) + rack-cache (1.1) + rack (>= 0.4) + rack-ssl (1.3.2) + rack + rack-test (0.6.1) + rack (>= 1.0) + rails (3.2.1) + actionmailer (= 3.2.1) + actionpack (= 3.2.1) + activerecord (= 3.2.1) + activeresource (= 3.2.1) + activesupport (= 3.2.1) + bundler (~> 1.0) + railties (= 3.2.1) + railties (3.2.1) + actionpack (= 3.2.1) + activesupport (= 3.2.1) + rack-ssl (~> 1.3.2) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (~> 0.14.6) + rake (0.9.2.2) + rdoc (3.12) + json (~> 1.4) + sprockets (2.1.2) + hike (~> 1.2) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + thor (0.14.6) + tilt (1.3.3) + treetop (1.4.10) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.31) + yard (0.7.5) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord (~> 3.2) + appraisal + mocha (~> 0.9.10) + rails (>= 3.0) + tabs_on_rails! + yard diff --git a/tabs_on_rails.gemspec b/tabs_on_rails.gemspec index d429acd..f825b70 100644 --- a/tabs_on_rails.gemspec +++ b/tabs_on_rails.gemspec @@ -1,40 +1,38 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| - s.name = %q{tabs_on_rails} + s.name = "tabs_on_rails" s.version = "2.0.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = [%q{Simone Carletti}] - s.date = %q{2011-06-29} - s.description = %q{TabsOnRails is a simple Rails plugin for creating tabs and navigation menus.} - s.email = %q{weppos@weppos.net} - s.extra_rdoc_files = [%q{CHANGELOG.rdoc}, %q{README.rdoc}] - s.files = [%q{Rakefile}, %q{LICENSE}, %q{init.rb}, %q{.gemtest}, %q{CHANGELOG.rdoc}, %q{README.rdoc}, %q{tabs_on_rails.gemspec}, %q{lib/tabs_on_rails/action_controller.rb}, %q{lib/tabs_on_rails/railtie.rb}, %q{lib/tabs_on_rails/tabs/builder.rb}, %q{lib/tabs_on_rails/tabs/tabs_builder.rb}, %q{lib/tabs_on_rails/tabs.rb}, %q{lib/tabs_on_rails/version.rb}, %q{lib/tabs_on_rails.rb}, %q{test/test_helper.rb}, %q{test/unit/controller_mixin_test.rb}, %q{test/unit/tabs/block_builder_test.rb}, %q{test/unit/tabs/builder_test.rb}, %q{test/unit/tabs/tabs_builder_test.rb}, %q{test/unit/tabs_test.rb}, %q{test/views/working/default.html.erb}, %q{test/views/working/with_item_block.html.erb}, %q{test/views/working/with_item_options.html.erb}, %q{test/views/working/with_open_close_tabs.html.erb}] - s.homepage = %q{http://www.simonecarletti.com/code/tabs_on_rails} - s.rdoc_options = [%q{--main}, %q{README.rdoc}] - s.require_paths = [%q{lib}] - s.rubygems_version = %q{1.8.3} - s.summary = %q{A simple Ruby on Rails plugin for creating tabs and navigation menus.} + s.authors = ["Simone Carletti"] + s.date = "2012-02-03" + s.description = "TabsOnRails is a simple Rails plugin for creating tabs and navigation menus." + s.email = "weppos@weppos.net" + s.files = ["Rakefile", "LICENSE", "init.rb", ".gemtest", "CHANGELOG.rdoc", "README.rdoc", "tabs_on_rails.gemspec", "lib/tabs_on_rails", "lib/tabs_on_rails/action_controller.rb", "lib/tabs_on_rails/railtie.rb", "lib/tabs_on_rails/tabs", "lib/tabs_on_rails/tabs/builder.rb", "lib/tabs_on_rails/tabs/tabs_builder.rb", "lib/tabs_on_rails/tabs.rb", "lib/tabs_on_rails/version.rb", "lib/tabs_on_rails.rb", "test/functionals", "test/test_helper.rb", "test/unit", "test/unit/controller_mixin_test.rb", "test/unit/tabs", "test/unit/tabs/block_builder_test.rb", "test/unit/tabs/builder_test.rb", "test/unit/tabs/tabs_builder_test.rb", "test/unit/tabs_test.rb", "test/views", "test/views/working", "test/views/working/default.html.erb", "test/views/working/with_item_block.html.erb", "test/views/working/with_item_options.html.erb", "test/views/working/with_open_close_tabs.html.erb"] + s.homepage = "http://www.simonecarletti.com/code/tabs_on_rails" + s.require_paths = ["lib"] + s.rubygems_version = "1.8.11" + s.summary = "A simple Ruby on Rails plugin for creating tabs and navigation menus." if s.respond_to? :specification_version then s.specification_version = 3 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, ["~> 3.0.6"]) + s.add_development_dependency(%q, [">= 3.0"]) + s.add_development_dependency(%q, [">= 0"]) s.add_development_dependency(%q, ["~> 0.9.10"]) + s.add_development_dependency(%q, [">= 0"]) else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, ["~> 3.0.6"]) + s.add_dependency(%q, [">= 3.0"]) + s.add_dependency(%q, [">= 0"]) s.add_dependency(%q, ["~> 0.9.10"]) + s.add_dependency(%q, [">= 0"]) end else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, ["~> 3.0.6"]) + s.add_dependency(%q, [">= 3.0"]) + s.add_dependency(%q, [">= 0"]) s.add_dependency(%q, ["~> 0.9.10"]) + s.add_dependency(%q, [">= 0"]) end end