Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change gem name

  • Loading branch information...
commit 9a33164cd8bc606065e918d749eec8daccdc40e3 1 parent 735e3f4
scambra authored
View
1  .gitignore
@@ -14,7 +14,6 @@ doc
# jeweler generated
pkg
-Gemfile*
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
# * Create a file at ~/.gitignore
View
14 Gemfile
@@ -0,0 +1,14 @@
+source "http://rubygems.org"
+# Add dependencies required to use your gem here.
+# Example:
+# gem "activesupport", ">= 2.3.5"
+
+gemspec
+
+# Add dependencies to develop your gem here.
+# Include everything needed to run rake, tests, features, etc.
+group :development do
+ gem "shoulda", ">= 0"
+ gem "bundler", "~> 1.0.0"
+ gem "rcov", ">= 0"
+end
View
94 Gemfile.lock
@@ -0,0 +1,94 @@
+PATH
+ remote: .
+ specs:
+ active_scaffold_sortable (3.0.2)
+ active_scaffold (~> 3.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.10)
+ actionpack (= 3.0.10)
+ mail (~> 2.2.19)
+ actionpack (3.0.10)
+ activemodel (= 3.0.10)
+ activesupport (= 3.0.10)
+ 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)
+ active_scaffold (3.0.23)
+ rails (~> 3.0.0)
+ render_component_vho
+ verification
+ activemodel (3.0.10)
+ activesupport (= 3.0.10)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activerecord (3.0.10)
+ activemodel (= 3.0.10)
+ activesupport (= 3.0.10)
+ arel (~> 2.0.10)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.10)
+ activemodel (= 3.0.10)
+ activesupport (= 3.0.10)
+ activesupport (3.0.10)
+ arel (2.0.10)
+ builder (2.1.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ i18n (0.5.0)
+ mail (2.2.19)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ polyglot (0.3.2)
+ rack (1.2.3)
+ rack-mount (0.6.14)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rails (3.0.10)
+ actionmailer (= 3.0.10)
+ actionpack (= 3.0.10)
+ activerecord (= 3.0.10)
+ activeresource (= 3.0.10)
+ activesupport (= 3.0.10)
+ bundler (~> 1.0)
+ railties (= 3.0.10)
+ railties (3.0.10)
+ actionpack (= 3.0.10)
+ activesupport (= 3.0.10)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.4)
+ rake (0.9.2)
+ rcov (0.9.9)
+ rdoc (3.9.4)
+ render_component_vho (3.0.3)
+ railties (~> 3.0.0)
+ shoulda (2.11.3)
+ thor (0.14.6)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.29)
+ verification (1.0.1)
+ actionpack (~> 3.0.0)
+ activesupport (~> 3.0.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ active_scaffold_sortable!
+ bundler (~> 1.0.0)
+ rcov
+ shoulda
View
26 Rakefile
@@ -1,4 +1,4 @@
-require 'rubygems'
+require 'rake'
require 'bundler'
begin
Bundler.setup(:default, :development)
@@ -7,27 +7,7 @@ rescue Bundler::BundlerError => e
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
-require 'rake'
-
-require 'jeweler'
-require './lib/active_scaffold_sortable/version.rb'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "active_scaffold_sortable_vho"
- gem.version = ActiveScaffoldSortable::Version::STRING
- gem.homepage = "http://github.com/vhochstein/active_scaffold_sortable"
- gem.license = "MIT"
- gem.summary = %Q{Drag n Drop Sorting for Activescaffold}
- gem.description = %Q{Sort Tree or List Structures by Drag n Drop}
- gem.email = "activescaffold@googlegroups.com"
- gem.authors = ["Volker Hochstein"]
- gem.add_runtime_dependency 'active_scaffold_vho', '~> 3.0'
- # Include your dependencies below. Runtime dependencies are required when using your gem,
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
- # gem.add_development_dependency 'rspec', '> 1.2.3'
-end
-Jeweler::RubygemsDotOrgTasks.new
+Bundler::GemHelper.install_tasks
require 'rake/testtask'
desc 'Test plugin.'
@@ -46,7 +26,7 @@ end
task :default => :test
-require 'rake/rdoctask'
+require 'rdoc/task'
desc 'Generate documentation for plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
View
29 active_scaffold_sortable.gemspec
@@ -0,0 +1,29 @@
+# -*- encoding: utf-8 -*-
+$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
+require 'active_scaffold_sortable/version'
+
+Gem::Specification.new do |s|
+ s.name = %q{active_scaffold_sortable}
+ s.version = ActiveScaffoldSortable::Version::STRING
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Sergio Cambra", "Volker Hochstein"]
+ s.summary = %q{Drag n Drop Sorting for Activescaffold}
+ s.description = %q{Sort Tree or List Structures by Drag n Drop}
+ s.email = %q{activescaffold@googlegroups.com}
+ s.homepage = %q{http://github.com/activescaffold/active_scaffold_sortable}
+ s.extra_rdoc_files = [
+ "LICENSE.txt",
+ "README.textile"
+ ]
+ s.files = Dir["{frontends,lib}/**/*"] + %w[LICENSE.txt README.textile]
+ s.test_files = Dir["test/**/*"]
+ s.licenses = ["MIT"]
+ s.require_paths = ["lib"]
+
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
+ s.add_development_dependency(%q<rcov>, [">= 0"])
+ s.add_runtime_dependency(%q<active_scaffold>, ["~> 3.0"])
+end
+
View
94 active_scaffold_sortable_vho.gemspec
@@ -1,94 +0,0 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{active_scaffold_sortable_vho}
- s.version = "3.0.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Volker Hochstein"]
- s.date = %q{2011-02-01}
- s.description = %q{Sort Tree or List Structures by Drag n Drop}
- s.email = %q{activescaffold@googlegroups.com}
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.textile"
- ]
- s.files = [
- ".document",
- "LICENSE.txt",
- "README.textile",
- "Rakefile",
- "active_scaffold_sortable_vho.gemspec",
- "frontends/default/stylesheets/sortable.css",
- "frontends/default/views/_list_with_header.html.erb",
- "frontends/default/views/on_create.js.rjs",
- "frontends/default/views/on_update.js.rjs",
- "frontends/default/views/reorder.js.rjs",
- "init.rb",
- "lib/active_scaffold/actions/sortable.rb",
- "lib/active_scaffold/config/sortable.rb",
- "lib/active_scaffold/helpers/sortable_helpers.rb",
- "lib/active_scaffold_sortable.rb",
- "lib/active_scaffold_sortable/config/core.rb",
- "lib/active_scaffold_sortable/core.rb",
- "lib/active_scaffold_sortable/version.rb",
- "lib/active_scaffold_sortable/view_helpers.rb",
- "lib/active_scaffold_sortable_vho.rb",
- "test/auto_models_controller_test.rb",
- "test/config_test.rb",
- "test/controllers/auto_models_controller.rb",
- "test/controllers/models_controller.rb",
- "test/controllers/sortable_models_controller.rb",
- "test/models/auto_model.rb",
- "test/models/model.rb",
- "test/router_test.rb",
- "test/schema.rb",
- "test/test_helper.rb"
- ]
- s.homepage = %q{http://github.com/vhochstein/active_scaffold_sortable}
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Drag n Drop Sorting for Activescaffold}
- s.test_files = [
- "test/auto_models_controller_test.rb",
- "test/config_test.rb",
- "test/controllers/auto_models_controller.rb",
- "test/controllers/models_controller.rb",
- "test/controllers/sortable_models_controller.rb",
- "test/models/auto_model.rb",
- "test/models/model.rb",
- "test/router_test.rb",
- "test/schema.rb",
- "test/test_helper.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<shoulda>, [">= 0"])
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
- s.add_development_dependency(%q<rcov>, [">= 0"])
- s.add_runtime_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
- else
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
- s.add_dependency(%q<rcov>, [">= 0"])
- s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
- end
- else
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
- s.add_dependency(%q<rcov>, [">= 0"])
- s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
- end
-end
-
View
7 init.rb
@@ -1,7 +1,2 @@
+ACTIVE_SCAFFOLD_SORTABLE_PLUGIN = true
require 'active_scaffold_sortable'
-
-begin
- ActiveScaffoldAssets.copy_to_public(ActiveScaffoldSortable.root)
-rescue
- raise $! unless Rails.env == 'production'
-end
View
2  lib/active_scaffold_sortable.rb
@@ -36,4 +36,4 @@ module Helpers
rescue
raise $! unless Rails.env == 'production'
end
-end if defined?(ACTIVE_SCAFFOLD_SORTABLE_GEM)
+end
View
2  lib/active_scaffold_sortable/version.rb
@@ -2,7 +2,7 @@ module ActiveScaffoldSortable
module Version
MAJOR = 3
MINOR = 0
- PATCH = 1
+ PATCH = 2
STRING = [MAJOR, MINOR, PATCH].compact.join('.')
end
View
2  lib/active_scaffold_sortable_vho.rb
@@ -1,2 +0,0 @@
-ACTIVE_SCAFFOLD_SORTABLE_GEM = true
-require 'active_scaffold_sortable'
Please sign in to comment.
Something went wrong with that request. Please try again.