Sha256: 23645a1d9a373bfd68ba4b014783362d80fb50953a050c22841f91767ab0607f

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "mongoid-friendly-timestamps/version"

Gem::Specification.new do |s|
  s.name        = "mongoid-friendly-timestamps"
  s.version     = Mongoid::Friendly::Timestamps::VERSION
  s.platform    = Gem::Platform::RUBY
  s.authors     = ["Lee Henson"]
  s.email       = ["lee.m.henson@gmail.com"]
  s.homepage    = "http://www.musicglue.com"
  s.summary     = %q{Human-readable, precise mongoid timestamps}
  s.description = %q{Adds a 'friendly_timestamp' method with which you can define a pair of linked 
timestamp fields (one a raw float for precision, the other a human-readable string). For example:

class MyDocument
  include Mongoid::Document
  include Mongoid::Friendly::Timestamps

  friendly_timestamp :timestamp, :friendly_timestamp
end

doc = MyDocument.new
doc.timestamp = Time.now
# doc.friendly_timestamp == Time.now in 'dd-mmm-yyyy hh:mm:ss.nnnnnnnnn' format}

  s.rubyforge_project = "mongoid-friendly-timestamps"

  s.files         = `git ls-files`.split("\n")
  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  s.require_paths = ["lib"]

  s.add_dependency 'activesupport', '~> 3.0.0'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-friendly-timestamps-0.0.1 mongoid-friendly-timestamps.gemspec