Skip to content

Commit

Permalink
prepare active_scaffold gem
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Aug 19, 2011
1 parent 4554269 commit d9f02f0
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 426 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ source "http://rubygems.org"
group :development do
gem "shoulda", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.5.2"
gem "rcov", ">= 0"
end
7 changes: 0 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
GEM
remote: http://rubygems.org/
specs:
git (1.2.5)
jeweler (1.5.2)
bundler (~> 1.0.0)
git (>= 1.2.5)
rake
rake (0.8.7)
rcov (0.9.9)
shoulda (2.11.3)

Expand All @@ -15,6 +9,5 @@ PLATFORMS

DEPENDENCIES
bundler (~> 1.0.0)
jeweler (~> 1.5.2)
rcov
shoulda
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ JQuery > 1.4.2
https://github.com/vhochstein/jquery-ujs/raw/master/src/rails.js

To configure the javascript framework when installed under vendor/plugins/
uncomment last line in ...plugins/active_scaffold/lib/active_scaffold_env.rb in order to use jquery instead of prototype
uncomment last line in config/initializers/active_scaffold.rb in order to use jquery instead of prototype.
That file is created when you install ActiveScaffold as a plugin.

To configure the javascript framework when installed as a gem:
Add a config/initializers/active_scaffold.rb containing:
Expand Down
28 changes: 2 additions & 26 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'rubygems'
require 'rake'
require 'bundler'
begin
Bundler.setup(:default, :development)
Expand All @@ -7,35 +7,11 @@ rescue Bundler::BundlerError => e
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/rdoctask'
require 'find'

require 'jeweler'
require './lib/active_scaffold/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_vho"
gem.version = ActiveScaffold::Version::STRING
gem.homepage = "http://github.com/vhochstein/active_scaffold"
gem.license = "MIT"
gem.summary = %Q{Rails 3.1 Version of activescaffold supporting prototype and jquery}
gem.description = %Q{Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.}
gem.email = "activescaffold@googlegroups.com"
gem.authors = ["Many, see README"]
gem.add_runtime_dependency 'render_component_vho'
gem.add_runtime_dependency 'verification'
gem.add_runtime_dependency 'rails', '~> 3.1.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

desc 'Test ActiveScaffold.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
Expand Down
31 changes: 31 additions & 0 deletions active_scaffold.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'active_scaffold/version'

Gem::Specification.new do |s|
s.name = %q{active_scaffold}
s.version = ActiveScaffold::Version::STRING
s.platform = Gem::Platform::RUBY
s.email = %q{activescaffold@googlegroups.com}
s.authors = ["Many, see README"]
s.homepage = %q{http://active_scaffold.com}
s.summary = %q{Rails 3.1 Version of activescaffold supporting prototype and jquery}
s.description = %q{Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.}
s.require_paths = ["lib"]
s.files = Dir["{frontends,lib,public,shoulda_macros}/**/*"] + %w[MIT-LICENSE CHANGELOG README]
s.extra_rdoc_files = [
"README"
]
s.licenses = ["MIT"]
s.test_files = Dir["test/**/*"]

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=

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<render_component_vho>, [">= 0"])
s.add_runtime_dependency(%q<verification>, [">= 0"])
s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
end

Loading

0 comments on commit d9f02f0

Please sign in to comment.