Permalink
Browse files

Rename to titlecase from title_case for consistancy

  • Loading branch information...
1 parent c09291c commit a7c54e3caf54a4eb721e63092d81c9c4eb1b6a8d @jlindley committed May 21, 2008
Showing with 27 additions and 2,815 deletions.
  1. +4 −4 Manifest.txt
  2. +1 −1 PostInstall.txt
  3. +2 −2 README.markdown
  4. +2 −2 README.txt
  5. +3 −3 config/hoe.rb
  6. +3 −3 lib/{title_case.rb → titlecase.rb}
  7. +1 −1 lib/{title_case → titlecase}/version.rb
  8. BIN pkg/title_case-0.0.2.gem
  9. BIN pkg/title_case-0.0.2.tgz
  10. +0 −4 pkg/title_case-0.0.2/History.txt
  11. +0 −20 pkg/title_case-0.0.2/License.txt
  12. +0 −28 pkg/title_case-0.0.2/Manifest.txt
  13. +0 −3 pkg/title_case-0.0.2/PostInstall.txt
  14. +0 −61 pkg/title_case-0.0.2/README.markdown
  15. +0 −4 pkg/title_case-0.0.2/Rakefile
  16. +0 −75 pkg/title_case-0.0.2/config/hoe.rb
  17. +0 −15 pkg/title_case-0.0.2/config/requirements.rb
  18. +0 −101 pkg/title_case-0.0.2/lib/title_case.rb
  19. +0 −9 pkg/title_case-0.0.2/lib/title_case/version.rb
  20. +0 −10 pkg/title_case-0.0.2/script/console
  21. +0 −14 pkg/title_case-0.0.2/script/destroy
  22. +0 −14 pkg/title_case-0.0.2/script/generate
  23. +0 −82 pkg/title_case-0.0.2/script/txt2html
  24. +0 −1,585 pkg/title_case-0.0.2/setup.rb
  25. +0 −1 pkg/title_case-0.0.2/spec/spec.opts
  26. +0 −10 pkg/title_case-0.0.2/spec/spec_helper.rb
  27. +0 −34 pkg/title_case-0.0.2/tasks/deployment.rake
  28. +0 −7 pkg/title_case-0.0.2/tasks/environment.rake
  29. +0 −21 pkg/title_case-0.0.2/tasks/rspec.rake
  30. +0 −17 pkg/title_case-0.0.2/tasks/website.rake
  31. +0 −27 pkg/title_case-0.0.2/title_case.gemspec
  32. +0 −11 pkg/title_case-0.0.2/website/index.html
  33. +0 −83 pkg/title_case-0.0.2/website/index.txt
  34. +0 −285 pkg/title_case-0.0.2/website/javascripts/rounded_corners_lite.inc.js
  35. +0 −138 pkg/title_case-0.0.2/website/stylesheets/screen.css
  36. +0 −48 pkg/title_case-0.0.2/website/template.html.erb
  37. +2 −2 script/console
  38. +2 −2 script/txt2html
  39. +1 −1 spec/spec_helper.rb
  40. +0 −81 spec/title_case_spec.rb
  41. 0 pkg/title_case-0.0.2/spec/title_case_spec.rb → spec/titlecase_spec.rb
  42. +6 −6 title_case.gemspec → titlecase.gemspec
View
@@ -6,21 +6,21 @@ README.markdown
Rakefile
config/hoe.rb
config/requirements.rb
-lib/title_case.rb
-lib/title_case/version.rb
+lib/titlecase.rb
+lib/titlecase/version.rb
script/console
script/destroy
script/generate
script/txt2html
setup.rb
spec/spec.opts
spec/spec_helper.rb
-spec/title_case_spec.rb
+spec/titlecase_spec.rb
tasks/deployment.rake
tasks/environment.rake
tasks/rspec.rake
tasks/website.rake
-title_case.gemspec
+titlecase.gemspec
website/index.html
website/index.txt
website/javascripts/rounded_corners_lite.inc.js
View
@@ -1,3 +1,3 @@
-For more information on title_case, see http://github.com/jlindley/title_case
+For more information on titlecase, see http://github.com/jlindley/title_case
View
@@ -4,7 +4,7 @@ TITLE CASE
A port of John Gruber's title casing script to Ruby.
2008-05-21 Jim Lindley http://jimlindley.com
-http://github.com/jlindley/title_case
+http://github.com/jlindley/titlecase
Original Perl Source: http://daringfireball.net/projects/titlecase/TitleCase.pl
@@ -30,7 +30,7 @@ USAGE
Either create a new instance of TitleClass with the string as an argument, or use the monkeypatched #titlecase method on string objects.
require 'rubygems'
- require 'title_case'
+ require 'titlecase'
TitleCase.new("my little string").to_s #=> "My Little String"
"a boat, a duck: a bit too much".titlecase #=> "A Boat, a Duck: A Bit Too Much"
View
@@ -4,7 +4,7 @@ TITLE CASE
A port of John Gruber's title casing script to Ruby.
2008-05-21 Jim Lindley http://jimlindley.com
-http://github.com/jlindley/title_case
+http://github.com/jlindley/titlecase
Original Perl Source: http://daringfireball.net/projects/titlecase/TitleCase.pl
@@ -30,7 +30,7 @@ USAGE
Either create a new instance of TitleClass with the string as an argument, or use the monkeypatched #titlecase method on string objects.
require 'rubygems'
- require 'title_case'
+ require 'titlecase'
TitleCase.new("my little string").to_s #=> "My Little String"
"a boat, a duck: a bit too much".titlecase #=> "A Boat, a Duck: A Bit Too Much"
View
@@ -1,11 +1,11 @@
-require 'title_case/version'
+require 'titlecase/version'
AUTHOR = 'Jim Lindley' # can also be an array of Authors
EMAIL = "jim@jimlindley.com"
DESCRIPTION = "Title Case for Strings"
-GEM_NAME = 'title_case' # what ppl will type to install your gem
+GEM_NAME = 'titlecase' # what ppl will type to install your gem
-RUBYFORGE_PROJECT = 'title_case'
+RUBYFORGE_PROJECT = 'titlecase'
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
@@ -26,7 +26,7 @@ def initialize(string)
end
def to_s
- @title_case_string
+ @titlecase_string
end
def original
@@ -48,7 +48,7 @@ def self.small_words_re
private
def convert
- @title_case_string = ""
+ @titlecase_string = ""
@raw_string.each_line do |line|
line.split(/( [:.;?!][ ] | (?:[ ]|^)["“] )/ux).each do |sub_phrase|
@@ -65,7 +65,7 @@ def convert
sub_phrase.gsub!(/\b(#{TitleCase.small_words_re})[[:punct:]]*\Z/u){|small| small.capitalize }
sub_phrase = special_cases(sub_phrase)
- @title_case_string << sub_phrase
+ @titlecase_string << sub_phrase
end
end
end
@@ -2,7 +2,7 @@ class TitleCase #:nodoc:
module VERSION #:nodoc:
MAJOR = 0
MINOR = 0
- TINY = 2
+ TINY = 3
STRING = [MAJOR, MINOR, TINY].join('.')
end
View
Binary file not shown.
View
Binary file not shown.
@@ -1,4 +0,0 @@
-== 0.0.1 2008-05-21
-
-* 1 major enhancement:
- * Initial release
@@ -1,20 +0,0 @@
-Copyright (c) 2008 John Gruber (original Perl), Jim Lindley (ruby port)
-
-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.
@@ -1,28 +0,0 @@
-History.txt
-License.txt
-Manifest.txt
-PostInstall.txt
-README.markdown
-Rakefile
-config/hoe.rb
-config/requirements.rb
-lib/title_case.rb
-lib/title_case/version.rb
-script/console
-script/destroy
-script/generate
-script/txt2html
-setup.rb
-spec/spec.opts
-spec/spec_helper.rb
-spec/title_case_spec.rb
-tasks/deployment.rake
-tasks/environment.rake
-tasks/rspec.rake
-tasks/website.rake
-title_case.gemspec
-website/index.html
-website/index.txt
-website/javascripts/rounded_corners_lite.inc.js
-website/stylesheets/screen.css
-website/template.html.erb
@@ -1,3 +0,0 @@
-
-For more information on title_case, see http://github.com/jlindley/title_case
-
@@ -1,61 +0,0 @@
-TITLE CASE
-===
-
-A port of John Gruber's title casing script to Ruby.
-2008-05-21 Jim Lindley http://jimlindley.com
-
-http://github.com/jlindley/title_case
-
-Original Perl Source: http://daringfireball.net/projects/titlecase/TitleCase.pl
-
-This filter changes all words to Title Caps, and attempts to be clever
-about *un*capitalizing small words like a/an/the in the input.
-
-The list of "small words" which are not capped comes from
-the New York Times Manual of Style, plus 'vs' and 'v'.
-
-John Gruber
-http://daringfireball.net/
-10 May 2008
-
-INSTALL:
----
-
-Download the tarball for now, will be mirrored to ruby forge shortly.
-
-
-USAGE
----
-
-Either create a new instance of TitleClass with the string as an argument, or use the monkeypatched #titlecase method on string objects.
-
- require 'rubygems'
- require 'title_case'
- TitleCase.new("my little string").to_s #=> "My Little String"
- "a boat, a duck: a bit too much".titlecase #=> "A Boat, a Duck: A Bit Too Much"
-
-LICENSE:
----
-
-(The MIT License)
-
-Copyright (c) 2008 John Gruber, Jim Lindley
-
-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.
@@ -1,4 +0,0 @@
-require 'config/requirements'
-require 'config/hoe' # setup Hoe + all gem configuration
-
-Dir['tasks/**/*.rake'].each { |rake| load rake }
@@ -1,75 +0,0 @@
-require 'title_case/version'
-
-AUTHOR = 'Jim Lindley' # can also be an array of Authors
-EMAIL = "jim@jimlindley.com"
-DESCRIPTION = "Title Case for Strings"
-GEM_NAME = 'title_case' # what ppl will type to install your gem
-
-RUBYFORGE_PROJECT = 'title_case'
-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 = TitleCase::VERSION::STRING + (REV ? ".#{REV}" : "")
-RDOC_OPTS = ['--quiet', '--title', 'TitleCase 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 ""
@@ -1,15 +0,0 @@
-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]))
Oops, something went wrong.

0 comments on commit a7c54e3

Please sign in to comment.