Skip to content

Commit f3292f4

Browse files
unknownunknown
authored andcommitted
brand new repo
0 parents  commit f3292f4

31 files changed

+2530
-0
lines changed

History.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
== 0.0.1 2008-04-08
2+
3+
* 1 major enhancement:
4+
* Initial release

License.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2008 FIXME full name
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.

Manifest.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
History.txt
2+
License.txt
3+
Manifest.txt
4+
README.txt
5+
Rakefile
6+
config/hoe.rb
7+
config/requirements.rb
8+
lib/stories.rb
9+
lib/stories/version.rb
10+
log/debug.log
11+
script/console
12+
script/console.cmd
13+
script/destroy
14+
script/destroy.cmd
15+
script/generate
16+
script/generate.cmd
17+
script/txt2html
18+
script/txt2html.cmd
19+
setup.rb
20+
spec/spec.opts
21+
spec/spec_helper.rb
22+
spec/stories_spec.rb
23+
tasks/deployment.rake
24+
tasks/environment.rake
25+
tasks/rspec.rake
26+
tasks/website.rake
27+
website/index.html
28+
website/index.txt
29+
website/javascripts/rounded_corners_lite.inc.js
30+
website/stylesheets/screen.css
31+
website/template.html.erb

README.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
= stories
2+
3+
* FIX (url)
4+
5+
== DESCRIPTION:
6+
7+
FIX (describe your package)
8+
9+
== FEATURES/PROBLEMS:
10+
11+
* FIX (list of features or problems)
12+
13+
== SYNOPSIS:
14+
15+
FIX (code sample of usage)
16+
17+
== REQUIREMENTS:
18+
19+
* FIX (list of requirements)
20+
21+
== INSTALL:
22+
23+
* FIX (sudo gem install, anything else)
24+
25+
== LICENSE:
26+
27+
(The MIT License)
28+
29+
Copyright (c) 2008 FIX
30+
31+
Permission is hereby granted, free of charge, to any person obtaining
32+
a copy of this software and associated documentation files (the
33+
'Software'), to deal in the Software without restriction, including
34+
without limitation the rights to use, copy, modify, merge, publish,
35+
distribute, sublicense, and/or sell copies of the Software, and to
36+
permit persons to whom the Software is furnished to do so, subject to
37+
the following conditions:
38+
39+
The above copyright notice and this permission notice shall be
40+
included in all copies or substantial portions of the Software.
41+
42+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
43+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
44+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
45+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
46+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
47+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
48+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'config/requirements'
2+
require 'config/hoe' # setup Hoe + all gem configuration
3+
4+
Dir['tasks/**/*.rake'].each { |rake| load rake }

config/hoe.rb

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
require 'stories/version'
2+
3+
AUTHOR = 'FIXME full name' # can also be an array of Authors
4+
EMAIL = "FIXME email"
5+
DESCRIPTION = "description of gem"
6+
GEM_NAME = 'stories' # what ppl will type to install your gem
7+
RUBYFORGE_PROJECT = 'stories' # The unix name for your project
8+
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9+
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10+
11+
@config_file = "~/.rubyforge/user-config.yml"
12+
@config = nil
13+
RUBYFORGE_USERNAME = "unknown"
14+
def rubyforge_username
15+
unless @config
16+
begin
17+
@config = YAML.load(File.read(File.expand_path(@config_file)))
18+
rescue
19+
puts <<-EOS
20+
ERROR: No rubyforge config file found: #{@config_file}
21+
Run 'rubyforge setup' to prepare your env for access to Rubyforge
22+
- See http://newgem.rubyforge.org/rubyforge.html for more details
23+
EOS
24+
exit
25+
end
26+
end
27+
RUBYFORGE_USERNAME.replace @config["username"]
28+
end
29+
30+
31+
REV = nil
32+
# UNCOMMENT IF REQUIRED:
33+
# REV = YAML.load(`svn info`)['Revision']
34+
VERS = Stories::VERSION::STRING + (REV ? ".#{REV}" : "")
35+
RDOC_OPTS = ['--quiet', '--title', 'stories documentation',
36+
"--opname", "index.html",
37+
"--line-numbers",
38+
"--main", "README",
39+
"--inline-source"]
40+
41+
class Hoe
42+
def extra_deps
43+
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
44+
@extra_deps
45+
end
46+
end
47+
48+
# Generate all the Rake tasks
49+
# Run 'rake -T' to see list of generated tasks (from gem root directory)
50+
$hoe = Hoe.new(GEM_NAME, VERS) do |p|
51+
p.developer(AUTHOR, EMAIL)
52+
p.description = DESCRIPTION
53+
p.summary = DESCRIPTION
54+
p.url = HOMEPATH
55+
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
56+
p.test_globs = ["test/**/test_*.rb"]
57+
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
58+
59+
# == Optional
60+
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
61+
#p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
62+
63+
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
64+
65+
end
66+
67+
CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
68+
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
69+
$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
70+
$hoe.rsync_args = '-av --delete --ignore-errors'

config/requirements.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'fileutils'
2+
include FileUtils
3+
4+
require 'rubygems'
5+
%w[rake hoe newgem rubigen].each do |req_gem|
6+
begin
7+
require req_gem
8+
rescue LoadError
9+
puts "This Rakefile requires the '#{req_gem}' RubyGem."
10+
puts "Installation: gem install #{req_gem} -y"
11+
exit
12+
end
13+
end
14+
15+
$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))

lib/stories.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$:.unshift(File.dirname(__FILE__)) unless
2+
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3+
4+
module Stories
5+
6+
end

lib/stories/version.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module Stories #:nodoc:
2+
module VERSION #:nodoc:
3+
MAJOR = 0
4+
MINOR = 0
5+
TINY = 1
6+
7+
STRING = [MAJOR, MINOR, TINY].join('.')
8+
end
9+
end

log/debug.log

Whitespace-only changes.

0 commit comments

Comments
 (0)