Permalink
Browse files

initial newgem files

  • Loading branch information...
1 parent f0d3115 commit 9544c631e5cbd0771f29498bacb0f2a4418d7b4b @drnic drnic committed May 18, 2008
Showing with 1,940 additions and 0 deletions.
  1. +4 −0 History.txt
  2. +88 −0 Manifest.txt
  3. +7 −0 PostInstall.txt
  4. +48 −0 README.txt
  5. +4 −0 Rakefile
  6. +73 −0 config/hoe.rb
  7. +15 −0 config/requirements.rb
  8. +6 −0 lib/codex.rb
  9. +9 −0 lib/codex/version.rb
  10. +10 −0 script/console
  11. +14 −0 script/destroy
  12. +14 −0 script/generate
  13. +1,585 −0 setup.rb
  14. +34 −0 tasks/deployment.rake
  15. +7 −0 tasks/environment.rake
  16. +9 −0 tasks/website.rake
  17. +11 −0 test/test_codex.rb
  18. +2 −0 test/test_helper.rb
View
@@ -0,0 +1,4 @@
+== 0.0.1 2008-05-19
+
+* 1 major enhancement:
+ * Initial release
View
@@ -0,0 +1,88 @@
+History.txt
+LICENSE.txt
+Manifest.txt
+PostInstall.txt
+README.markdown
+README.txt
+Rakefile
+bin/build_all.rb
+bin/postprocess_all.rb
+bin/pressie.rb
+code/control/basic_continuation.rb
+code/control/cc_throw_catch.rb
+code/control/closure_continuation.rb
+code/control/closure_continuation_2.rb
+config/hoe.rb
+config/requirements.rb
+dp.SyntaxHighlighter/CSS.html
+dp.SyntaxHighlighter/CSharp.html
+dp.SyntaxHighlighter/CollapseCode.html
+dp.SyntaxHighlighter/Cpp.html
+dp.SyntaxHighlighter/CrashTest.html
+dp.SyntaxHighlighter/Delphi.html
+dp.SyntaxHighlighter/FirstLine.html
+dp.SyntaxHighlighter/Index.html
+dp.SyntaxHighlighter/Java.html
+dp.SyntaxHighlighter/JavaScript.html
+dp.SyntaxHighlighter/NoControls.html
+dp.SyntaxHighlighter/NoGutter.html
+dp.SyntaxHighlighter/PHP.html
+dp.SyntaxHighlighter/Python.html
+dp.SyntaxHighlighter/Ruby.html
+dp.SyntaxHighlighter/SQL.html
+dp.SyntaxHighlighter/Scripts/clipboard.swf
+dp.SyntaxHighlighter/Scripts/shBrushCSharp.js
+dp.SyntaxHighlighter/Scripts/shBrushCpp.js
+dp.SyntaxHighlighter/Scripts/shBrushCss.js
+dp.SyntaxHighlighter/Scripts/shBrushDelphi.js
+dp.SyntaxHighlighter/Scripts/shBrushJScript.js
+dp.SyntaxHighlighter/Scripts/shBrushJava.js
+dp.SyntaxHighlighter/Scripts/shBrushPhp.js
+dp.SyntaxHighlighter/Scripts/shBrushPython.js
+dp.SyntaxHighlighter/Scripts/shBrushRuby.js
+dp.SyntaxHighlighter/Scripts/shBrushSql.js
+dp.SyntaxHighlighter/Scripts/shBrushVb.js
+dp.SyntaxHighlighter/Scripts/shBrushXml.js
+dp.SyntaxHighlighter/Scripts/shCore.js
+dp.SyntaxHighlighter/Scripts/shCore.uncompressed.js
+dp.SyntaxHighlighter/ShowColumns.html
+dp.SyntaxHighlighter/SmartTabs.html
+dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css
+dp.SyntaxHighlighter/Styles/TestPages.css
+dp.SyntaxHighlighter/Templates/Test.dwt
+dp.SyntaxHighlighter/VB.html
+dp.SyntaxHighlighter/XML.html
+lib/codex.rb
+lib/codex/version.rb
+lib/pressie/content.rb
+lib/pressie/pressie.rb
+lib/stylesheets/pressie.css
+lib/stylesheets/print.css
+lib/stylesheets/ruby.png
+script/console
+script/destroy
+script/generate
+setup.rb
+slides/basics.slides
+slides/building.slides
+slides/example.slides
+slides/including_code.slides
+slides/metadata.yml
+slides/table_of_contents.slides
+tasks/codex.rake
+tasks/deployment.rake
+tasks/environment.rake
+tasks/website.rake
+test/test_codex.rb
+test/test_helper.rb
+ui/default/blank.gif
+ui/default/bodybg.gif
+ui/default/framing.css
+ui/default/iepngfix.htc
+ui/default/opera.css
+ui/default/outline.css
+ui/default/pretty.css
+ui/default/print.css
+ui/default/s5-core.css
+ui/default/slides.css
+ui/default/slides.js
View
@@ -0,0 +1,7 @@
+
+For more information on codex, see http://codex.rubyforge.org
+
+NOTE: Change this information in PostInstall.txt
+You can also delete it if you don't want it.
+
+
View
@@ -0,0 +1,48 @@
+= codex
+
+* FIX (url)
+
+== DESCRIPTION:
+
+FIX (describe your package)
+
+== FEATURES/PROBLEMS:
+
+* FIX (list of features or problems)
+
+== SYNOPSIS:
+
+ FIX (code sample of usage)
+
+== REQUIREMENTS:
+
+* FIX (list of requirements)
+
+== INSTALL:
+
+* FIX (sudo gem install, anything else)
+
+== LICENSE:
+
+(The MIT License)
+
+Copyright (c) 2008 FIX
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,4 @@
+require 'config/requirements'
+require 'config/hoe' # setup Hoe + all gem configuration
+
+Dir['tasks/**/*.rake'].each { |rake| load rake }
View
@@ -0,0 +1,73 @@
+require 'codex/version'
+
+AUTHOR = 'Dr Nic Williams' # can also be an array of Authors
+EMAIL = "drnicwilliams@gmail.com"
+DESCRIPTION = "description of gem"
+GEM_NAME = 'codex' # what ppl will type to install your gem
+RUBYFORGE_PROJECT = 'codex' # The unix name for your project
+HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
+DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
+EXTRA_DEPENDENCIES = [
+# ['activesupport', '>= 1.3.1']
+] # An array of rubygem dependencies [name, version]
+
+@config_file = "~/.rubyforge/user-config.yml"
+@config = nil
+RUBYFORGE_USERNAME = "unknown"
+def rubyforge_username
+ unless @config
+ begin
+ @config = YAML.load(File.read(File.expand_path(@config_file)))
+ rescue
+ puts <<-EOS
+ERROR: No rubyforge config file found: #{@config_file}
+Run 'rubyforge setup' to prepare your env for access to Rubyforge
+ - See http://newgem.rubyforge.org/rubyforge.html for more details
+ EOS
+ exit
+ end
+ end
+ RUBYFORGE_USERNAME.replace @config["username"]
+end
+
+
+REV = nil
+# UNCOMMENT IF REQUIRED:
+# REV = YAML.load(`svn info`)['Revision']
+VERS = Codex::VERSION::STRING + (REV ? ".#{REV}" : "")
+RDOC_OPTS = ['--quiet', '--title', 'codex documentation',
+ "--opname", "index.html",
+ "--line-numbers",
+ "--main", "README",
+ "--inline-source"]
+
+class Hoe
+ def extra_deps
+ @extra_deps.reject! { |x| Array(x).first == 'hoe' }
+ @extra_deps
+ end
+end
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.new(GEM_NAME, VERS) do |p|
+ p.developer(AUTHOR, EMAIL)
+ p.description = DESCRIPTION
+ p.summary = DESCRIPTION
+ p.url = HOMEPATH
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
+ p.test_globs = ["test/**/test_*.rb"]
+ p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
+
+ # == Optional
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
+ #p.extra_deps = EXTRA_DEPENDENCIES
+
+ #p.spec_extras = {} # A hash of extra values to set in the gemspec.
+ end
+
+CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
+PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
+$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
+$hoe.rsync_args = '-av --delete --ignore-errors'
+$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
@@ -0,0 +1,15 @@
+require 'fileutils'
+include FileUtils
+
+require 'rubygems'
+%w[rake hoe newgem rubigen].each do |req_gem|
+ begin
+ require req_gem
+ rescue LoadError
+ puts "This Rakefile requires the '#{req_gem}' RubyGem."
+ puts "Installation: gem install #{req_gem} -y"
+ exit
+ end
+end
+
+$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
View
@@ -0,0 +1,6 @@
+$:.unshift(File.dirname(__FILE__)) unless
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
+
+module Codex
+
+end
@@ -0,0 +1,9 @@
+module Codex #:nodoc:
+ module VERSION #:nodoc:
+ MAJOR = 0
+ MINOR = 0
+ TINY = 1
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ end
+end
View
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+# File: script/console
+irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
+
+libs = " -r irb/completion"
+# Perhaps use a console_lib to store any extra methods I may want available in the cosole
+# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
+libs << " -r #{File.dirname(__FILE__) + '/../lib/codex.rb'}"
+puts "Loading codex gem"
+exec "#{irb} #{libs} --simple-prompt"
View
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+
+begin
+ require 'rubigen'
+rescue LoadError
+ require 'rubygems'
+ require 'rubigen'
+end
+require 'rubigen/scripts/destroy'
+
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
+RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
+RubiGen::Scripts::Destroy.new.run(ARGV)
View
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+
+begin
+ require 'rubigen'
+rescue LoadError
+ require 'rubygems'
+ require 'rubigen'
+end
+require 'rubigen/scripts/generate'
+
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
+RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
+RubiGen::Scripts::Generate.new.run(ARGV)
Oops, something went wrong.

0 comments on commit 9544c63

Please sign in to comment.