Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Can install as a gem in rails3.

  • Loading branch information...
commit fd8f0b81a07f81bb3036d4b4e422e91162d3a2f5 1 parent be692bf
@jeffschuil jeffschuil authored
View
1  .gitignore
@@ -1,2 +1,3 @@
.DS_Store
+pkg
*~
View
10 README.rdoc
@@ -21,6 +21,16 @@ To generate the necessary static files AND the example below:
=== Rails 3
+As a gem:
+
+ gem install event-calendar
+
+Add this to your Gemfile:
+
+ gem 'event-calendar', :require => 'event_calendar'
+
+Or as a plugin:
+
rails plugin install git://github.com/elevation/event_calendar.git
To generate the necessary static files AND the example below:
View
28 Rakefile
@@ -1,31 +1,24 @@
+require 'rubygems'
require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-require 'spec/rake/spectask'
begin
require 'jeweler'
-
Jeweler::Tasks.new do |gem|
- gem.name = "event_calendar"
- gem.summary = "Event Calendar"
- gem.email = "info@cyt.ch"
- gem.description = "Generates a calendar with events that span more than one day."
- gem.files = FileList["[A-Z]*", "{lib,rails}/**/*"]
+ gem.name = "event-calendar"
+ gem.summary = "Rails helper for generating a calendar of events."
+ gem.email = ""
+ gem.description = "Rails helper for generating a calendar of events. These events can optionally span multiple days."
gem.authors = ["Jeff Schuil"]
- gem.homepage = "http://github.com/huerlisi/event_calendar"
+ gem.homepage = "http://github.com/elevation/event_calendar"
gem.require_path = 'lib'
- gem.files = %w(MIT-LICENSE CHANGELOG.rdoc README.rdoc Rakefile) + Dir.glob("{lib,generators,spec}/**/*")
- # Runtime dependencies: When installing event_calendar these will be checked if they are installed.
- # Will be offered to install these if they are not already installed.
- gem.add_dependency 'activerecord'
+ # Runtime dependencies
end
-
Jeweler::GemcutterTasks.new
-rescue
- puts "Jeweler or one of its dependencies is not installed."
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
+require 'spec/rake/spectask'
task :default => :spec
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
@@ -33,6 +26,7 @@ Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', 'spec/spec.opts']
end
+require 'rake/rdoctask'
desc 'Generate documentation for the event_calendar plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
View
78 event-calendar.gemspec
@@ -0,0 +1,78 @@
+# 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{event-calendar}
+ s.version = "2.3.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Jeff Schuil"]
+ s.date = %q{2010-11-17}
+ s.description = %q{Rails helper for generating a calendar of events. These events can optionally span multiple days.}
+ s.email = %q{}
+ s.extra_rdoc_files = [
+ "README.rdoc"
+ ]
+ s.files = [
+ "CHANGELOG.rdoc",
+ "MIT-LICENSE",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "event-calendar.gemspec",
+ "generators/event_calendar/USAGE",
+ "generators/event_calendar/event_calendar_generator.rb",
+ "generators/event_calendar/lib/insert_routes.rb",
+ "generators/event_calendar/templates/controller.rb.erb",
+ "generators/event_calendar/templates/helper.rb.erb",
+ "generators/event_calendar/templates/javascript.js",
+ "generators/event_calendar/templates/jq_javascript.js",
+ "generators/event_calendar/templates/migration.rb.erb",
+ "generators/event_calendar/templates/model.rb.erb",
+ "generators/event_calendar/templates/stylesheet.css",
+ "generators/event_calendar/templates/view.html.erb",
+ "init.rb",
+ "install.rb",
+ "lib/event_calendar.rb",
+ "lib/event_calendar/calendar_helper.rb",
+ "lib/event_calendar/railtie.rb",
+ "lib/generators/event_calendar/USAGE",
+ "lib/generators/event_calendar/event_calendar_generator.rb",
+ "lib/generators/event_calendar/templates/controller.rb.erb",
+ "lib/generators/event_calendar/templates/helper.rb.erb",
+ "lib/generators/event_calendar/templates/javascript.js",
+ "lib/generators/event_calendar/templates/jq_javascript.js",
+ "lib/generators/event_calendar/templates/migration.rb.erb",
+ "lib/generators/event_calendar/templates/model.rb.erb",
+ "lib/generators/event_calendar/templates/stylesheet.css",
+ "lib/generators/event_calendar/templates/view.html.erb",
+ "lib/tasks/event_calendar_tasks.rake",
+ "spec/event_calendar_spec.rb",
+ "spec/fixtures/models.rb",
+ "spec/spec.opts",
+ "spec/spec_helper.rb",
+ "uninstall.rb"
+ ]
+ s.homepage = %q{http://github.com/elevation/event_calendar}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.summary = %q{Rails helper for generating a calendar of events.}
+ s.test_files = [
+ "spec/event_calendar_spec.rb",
+ "spec/fixtures/models.rb",
+ "spec/spec_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
+ else
+ end
+ else
+ end
+end
+
View
77 event_calendar.gemspec
@@ -1,77 +0,0 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{event_calendar}
- s.version = "2.3.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Jeff Schuil"]
- s.date = %q{2010-11-17}
- s.description = %q{Generates a calendar with events that span more than one day.}
- s.email = %q{info@cyt.ch}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "CHANGELOG.rdoc",
- "MIT-LICENSE",
- "README.rdoc",
- "Rakefile",
- "generators/event_calendar/USAGE",
- "generators/event_calendar/event_calendar_generator.rb",
- "generators/event_calendar/lib/insert_routes.rb",
- "generators/event_calendar/templates/controller.rb.erb",
- "generators/event_calendar/templates/helper.rb.erb",
- "generators/event_calendar/templates/javascript.js",
- "generators/event_calendar/templates/jq_javascript.js",
- "generators/event_calendar/templates/migration.rb.erb",
- "generators/event_calendar/templates/model.rb.erb",
- "generators/event_calendar/templates/stylesheet.css",
- "generators/event_calendar/templates/view.html.erb",
- "lib/event_calendar.rb",
- "lib/event_calendar/calendar_helper.rb",
- "lib/event_calendar/railtie.rb",
- "lib/generators/event_calendar/USAGE",
- "lib/generators/event_calendar/event_calendar_generator.rb",
- "lib/generators/event_calendar/templates/controller.rb.erb",
- "lib/generators/event_calendar/templates/helper.rb.erb",
- "lib/generators/event_calendar/templates/javascript.js",
- "lib/generators/event_calendar/templates/jq_javascript.js",
- "lib/generators/event_calendar/templates/migration.rb.erb",
- "lib/generators/event_calendar/templates/model.rb.erb",
- "lib/generators/event_calendar/templates/stylesheet.css",
- "lib/generators/event_calendar/templates/view.html.erb",
- "lib/tasks/event_calendar_tasks.rake",
- "spec/event_calendar_spec.rb",
- "spec/fixtures/models.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://github.com/huerlisi/event_calendar}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.6}
- s.summary = %q{Event Calendar}
- s.test_files = [
- "spec/event_calendar_spec.rb",
- "spec/fixtures/models.rb",
- "spec/spec_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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<activerecord>, [">= 0"])
- else
- s.add_dependency(%q<activerecord>, [">= 0"])
- end
- else
- s.add_dependency(%q<activerecord>, [">= 0"])
- end
-end
-
Please sign in to comment.
Something went wrong with that request. Please try again.