Skip to content

Commit 0c95644

Browse files
author
Anthony Bouch
committed
Initial commit.
0 parents  commit 0c95644

13 files changed

+142
-0
lines changed

.document

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-
2+
ChangeLog.textile
3+
LICENSE.txt

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
doc/
2+
pkg/

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--colour --format documentation

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--markup textile --title "partial-date Documentation" --protected

ChangeLog.tt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
h3. 0.1.0 / 2012-05-26
2+
3+
* Initial release:
4+

LICENSE.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2012 tony
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.tt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
h1. partial-date
2+
3+
* "Homepage":https://github.com/58bits/partial-date#readme
4+
* "Issues":https://github.com/58bits/partial-date/issues
5+
* "Documentation":http://rubydoc.info/gems/partial-date/frames
6+
7+
h2. Description
8+
9+
TODO: Description
10+
11+
h2. Features
12+
13+
h2. Examples
14+
15+
bc.
16+
require 'partial/date'
17+
18+
h2. Requirements
19+
20+
h2. Install
21+
22+
bc.
23+
$ gem install partial-date
24+
25+
h2. Copyright
26+
27+
Copyright (c) 2012 tony
28+
29+
See {file:LICENSE.txt} for details.

Rakefile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# encoding: utf-8
2+
3+
require 'rubygems'
4+
require 'rake'
5+
6+
begin
7+
gem 'rubygems-tasks', '~> 0.2'
8+
require 'rubygems/tasks'
9+
10+
Gem::Tasks.new
11+
rescue LoadError => e
12+
warn e.message
13+
warn "Run `gem install rubygems-tasks` to install 'rubygems/tasks'."
14+
end
15+
16+
begin
17+
gem 'rspec', '~> 2.4'
18+
require 'rspec/core/rake_task'
19+
20+
RSpec::Core::RakeTask.new
21+
rescue LoadError => e
22+
task :spec do
23+
abort "Please run `gem install rspec` to install RSpec."
24+
end
25+
end
26+
27+
task :test => :spec
28+
task :default => :spec
29+
30+
begin
31+
gem 'yard', '~> 0.7'
32+
require 'yard'
33+
34+
YARD::Rake::YardocTask.new
35+
rescue LoadError => e
36+
task :yard do
37+
abort "Please run `gem install yard` to install YARD."
38+
end
39+
end
40+
task :doc => :yard

lib/partial/date.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'partial/date/version'

lib/partial/date/version.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Partial
2+
module Date
3+
# partial-date version
4+
VERSION = "0.1.0"
5+
end
6+
end

partial-date.gemspec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- encoding: utf-8 -*-
2+
3+
require File.expand_path('../lib/partial/date/version', __FILE__)
4+
5+
Gem::Specification.new do |gem|
6+
gem.name = "partial-date"
7+
gem.version = Partial::Date::VERSION
8+
gem.summary = %q{TODO: Summary}
9+
gem.description = %q{TODO: Description}
10+
gem.license = "MIT"
11+
gem.authors = ["tony"]
12+
gem.homepage = "https://github.com/58bits/partial-date#readme"
13+
14+
gem.files = `git ls-files`.split($/)
15+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17+
gem.require_paths = ["lib"]
18+
19+
gem.add_development_dependency "rubygems-tasks", "~> 0.2"
20+
gem.add_development_dependency "rspec", "~> 2.4"
21+
gem.add_development_dependency "yard", "~> 0.7"
22+
end

spec/date_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'spec_helper'
2+
require 'partial/date'
3+
4+
describe Partial::Date do
5+
it "should have a VERSION constant" do
6+
subject.const_get('VERSION').should_not be_empty
7+
end
8+
end

spec/spec_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
gem 'rspec', '~> 2.4'
2+
require 'rspec'
3+
require 'partial/date/version'
4+
5+
include Partial::Date

0 commit comments

Comments
 (0)