Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add a version.rb and a .gemspec

  • Loading branch information...
commit c91503e55748f7ebc1a617266004b5f92a679c15 1 parent 81c00e1
@kronn authored
Showing with 70 additions and 0 deletions.
  1. +32 −0 date_checkbox.gemspec
  2. +38 −0 lib/date_checkbox/version.rb
View
32 date_checkbox.gemspec
@@ -0,0 +1,32 @@
+# vim:ft=ruby:fileencoding=utf-8
+
+require File.expand_path('../lib/date_checkbox/version.rb', __FILE__)
+
+spec = Gem::Specification.new do |s|
+ s.name = "date_checkbox"
+ s.version = DateCheckbox::VERSION
+ s.date = DateCheckbox::DATE
+ s.summary = DateCheckbox::SUMMARY
+ s.description = DateCheckbox::DESCRIPTION
+
+ s.authors = ["Matthias Viehweger"]
+ s.email = 'kronn@kronn.de'
+ s.homepage = 'http://github.com/kronn/date_checkbox'
+ s.rubyforge_project = '[none]' # to supress the warning
+
+ s.require_paths = ["lib"]
+ s.files = `git ls-files`.split("\n") - ['.gitignore']
+ s.test_files = `git ls-files test`.split("\n")
+
+ s.rdoc_options = ['--charset=utf-8', '--fmt=shtml', '--all']
+ s.extra_rdoc_files = DateCheckbox::EXTRA_RDOC_FILES
+
+ s.add_dependency 'rails', '~> 3.0.0'
+
+ # for tests, needed
+ s.add_development_dependency 'mocha'
+
+ # for release and doc generation, more less optional
+ s.add_development_dependency 'rdoc', '>= 2.4.2'
+ s.add_development_dependency 'sdoc'
+end
View
38 lib/date_checkbox/version.rb
@@ -0,0 +1,38 @@
+# vim:ft=ruby:fileencoding=utf-8
+
+module DateCheckbox
+ unless defined?(VERSION)
+ # version of gem
+ VERSION = '0.0.1'
+ end
+
+ unless defined?(DATE)
+ # date of last modification of the version
+ DATE = File.mtime(__FILE__)
+ end
+
+ unless defined?(SUMMARY)
+ # Purpose in one sentence
+ SUMMARY = 'Rails-plugin to create a checkbox for datetime-attributes.'
+ end
+
+ unless defined?(DESCRIPTION)
+ # short description, see README for details
+ DESCRIPTION = <<-EOD
+This is a rails-plugin which can create a checkbox for attributes which are
+datetime-fields in the database. So, if you want to store the date when a user
+appected some terms or received some goods, but want to circumvent the need of
+selecting the proper date and time from 6 dropdowns, you can just use this
+plugin.
+
+It created some wrapper-methods on the model for the attributes you specify and
+provides a form-helper which uses these. The model-method also work with
+standard checkbox-tags
+ EOD
+ end
+
+ unless defined?(EXTRA_RDOC_FILES)
+ # list of file which should be included in rdoc
+ EXTRA_RDOC_FILES = ['README']
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.