titleize 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in titleize.gemspec
4
+ gemspec
data/Rakefile CHANGED
@@ -1,16 +1,6 @@
1
- # -*- ruby -*-
2
-
3
- require 'rubygems'
4
- require 'hoe'
5
- require './lib/titleize.rb'
1
+ require 'bundler'
6
2
  require 'spec/rake/spectask'
7
-
8
- Hoe.plugin :git
9
-
10
- Hoe.spec "titleize" do
11
- developer "Grant Hollingworth", "grant@antiflux.org"
12
- remote_rdoc_dir = "" # Release to root
13
- end
3
+ Bundler::GemHelper.install_tasks
14
4
 
15
5
  desc "Run all specs"
16
6
  Spec::Rake::SpecTask.new('spec') do |t|
@@ -19,5 +9,3 @@ Spec::Rake::SpecTask.new('spec') do |t|
19
9
  end
20
10
 
21
11
  task :default => [:spec]
22
-
23
- # vim: syntax=Ruby
@@ -6,7 +6,6 @@
6
6
  #
7
7
  # If loaded in a Rails environment, it modifies Inflector.titleize.
8
8
  module Titleize
9
- VERSION = '1.2.0'
10
9
  SMALL_WORDS = %w{a an and as at but by en for if in of on or the to v v. via vs vs.}
11
10
 
12
11
  extend self
@@ -0,0 +1,3 @@
1
+ module Titleize
2
+ VERSION = "1.2.1"
3
+ end
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "titleize/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "titleize"
7
+ s.version = Titleize::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Grant Hollingworth"]
10
+ s.email = ["grant@antiflux.org"]
11
+ s.homepage = "http://rubygems.org/gems/titleize"
12
+ s.summary = "Adds String#titleize for creating properly capitalized titles."
13
+ s.description = "#{s.summary} Replaces ActiveSupport::Inflector.titleize if ActiveSupport is present."
14
+
15
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.3.6") if s.respond_to? :required_rubygems_version=
16
+ s.rubyforge_project = "titleize"
17
+
18
+ s.add_development_dependency "rspec", "~> 1.3"
19
+ s.add_development_dependency "rake"
20
+
21
+ s.files = `git ls-files`.split("\n")
22
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
+ s.require_paths = ["lib"]
25
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: titleize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Grant Hollingworth
@@ -15,96 +15,67 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-22 00:00:00 -04:00
18
+ date: 2011-04-15 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rubyforge
22
+ name: rspec
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  hash: 9
30
30
  segments:
31
- - 2
32
- - 0
31
+ - 1
33
32
  - 3
34
- version: 2.0.3
33
+ version: "1.3"
35
34
  type: :development
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
38
- name: gemcutter
37
+ name: rake
39
38
  prerelease: false
40
39
  requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ">="
44
43
  - !ruby/object:Gem::Version
45
- hash: 11
44
+ hash: 3
46
45
  segments:
47
46
  - 0
48
- - 5
49
- - 0
50
- version: 0.5.0
47
+ version: "0"
51
48
  type: :development
52
49
  version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: hoe
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 27
62
- segments:
63
- - 2
64
- - 5
65
- - 0
66
- version: 2.5.0
67
- type: :development
68
- version_requirements: *id003
69
- description: |-
70
- Adds String#titleize for creating properly capitalized titles.
71
- It can be called as Titleize.titleize or "a string".titleize. It is also
72
- aliased as titlecase.
73
-
74
- The list of "small words" which are not capped comes from the New York Times
75
- Manual of Style, plus 'vs' and 'v'.
76
-
77
- If loaded in a Rails environment, it modifies Inflector.titleize.
78
-
79
- Based on TitleCase.pl by John Gruber.
80
- http://daringfireball.net/2008/05/title_case
50
+ description: Adds String#titleize for creating properly capitalized titles. Replaces ActiveSupport::Inflector.titleize if ActiveSupport is present.
81
51
  email:
82
52
  - grant@antiflux.org
83
53
  executables: []
84
54
 
85
55
  extensions: []
86
56
 
87
- extra_rdoc_files:
88
- - History.txt
89
- - Manifest.txt
90
- - README.txt
57
+ extra_rdoc_files: []
58
+
91
59
  files:
60
+ - .gitignore
61
+ - Gemfile
92
62
  - History.txt
93
63
  - Manifest.txt
94
64
  - README.txt
95
65
  - Rakefile
96
66
  - lib/titleize.rb
67
+ - lib/titleize/version.rb
97
68
  - spec/spec.opts
98
- - spec/titleize_spec.rb
99
69
  - spec/spec_helper.rb
70
+ - spec/titleize_spec.rb
71
+ - titleize.gemspec
100
72
  has_rdoc: true
101
73
  homepage: http://rubygems.org/gems/titleize
102
74
  licenses: []
103
75
 
104
76
  post_install_message:
105
- rdoc_options:
106
- - --main
107
- - README.txt
77
+ rdoc_options: []
78
+
108
79
  require_paths:
109
80
  - lib
110
81
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -121,16 +92,20 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
92
  requirements:
122
93
  - - ">="
123
94
  - !ruby/object:Gem::Version
124
- hash: 3
95
+ hash: 23
125
96
  segments:
126
- - 0
127
- version: "0"
97
+ - 1
98
+ - 3
99
+ - 6
100
+ version: 1.3.6
128
101
  requirements: []
129
102
 
130
103
  rubyforge_project: titleize
131
104
  rubygems_version: 1.3.7
132
105
  signing_key:
133
106
  specification_version: 3
134
- summary: Adds String#titleize for creating properly capitalized titles
135
- test_files: []
136
-
107
+ summary: Adds String#titleize for creating properly capitalized titles.
108
+ test_files:
109
+ - spec/spec.opts
110
+ - spec/spec_helper.rb
111
+ - spec/titleize_spec.rb