titleize 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d23bd4aaf4922bbfdbba7ad91b0bd57daa75168b
4
+ data.tar.gz: e93492421eb2d77d6c800a84fad3e48149d0f9f3
5
+ SHA512:
6
+ metadata.gz: 589bf779b36bc2054b8ff5f16fbd9143f9acd3fd09a554107c3148e148b638a811ee31d8c17ecc1f833408e9bb84e468454734aa09765bfb2f3a68f394442807
7
+ data.tar.gz: 225be00a67a79bd7e7a0a630e8af2794137dfef719c553c202502086e45fb68c10f4b14e68f02501b16a9c1a25b7be574d350f8f5b64e476bb56940bacb65b03
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.4.0 / 2016-02-04
2
+
3
+ * check for the presence of ActiveSupport::Inflector instead of just ActiveSupport [Connor Prussin]
4
+
1
5
  === 1.3.0 / 2013-03-07
2
6
 
3
7
  * add String#titleize! [Scott Pullen]
@@ -1,3 +1,3 @@
1
1
  module Titleize
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
data/lib/titleize.rb CHANGED
@@ -82,7 +82,7 @@ class String
82
82
  # "notes on a scandal" # => "Notes on a Scandal"
83
83
  # "the good german" # => "The Good German"
84
84
  def titleize(opts={})
85
- if defined? ActiveSupport
85
+ if defined? ActiveSupport::Inflector
86
86
  ActiveSupport::Inflector.titleize(self, opts)
87
87
  else
88
88
  Titleize.titleize(self)
@@ -96,7 +96,7 @@ class String
96
96
  alias_method :titlecase!, :titleize!
97
97
  end
98
98
 
99
- if defined? ActiveSupport
99
+ if defined? ActiveSupport::Inflector
100
100
  module ActiveSupport::Inflector
101
101
  extend self
102
102
 
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: titleize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
5
- prerelease:
4
+ version: 1.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Grant Hollingworth
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
11
+ date: 2016-02-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.13'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.13'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Adds String#titleize for creating properly capitalized titles. Replaces
@@ -51,7 +46,7 @@ executables: []
51
46
  extensions: []
52
47
  extra_rdoc_files: []
53
48
  files:
54
- - .gitignore
49
+ - ".gitignore"
55
50
  - Gemfile
56
51
  - History.txt
57
52
  - README.md
@@ -63,27 +58,26 @@ files:
63
58
  - titleize.gemspec
64
59
  homepage: http://rubygems.org/gems/titleize
65
60
  licenses: []
61
+ metadata: {}
66
62
  post_install_message:
67
63
  rdoc_options: []
68
64
  require_paths:
69
65
  - lib
70
66
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
67
  requirements:
73
- - - ! '>='
68
+ - - ">="
74
69
  - !ruby/object:Gem::Version
75
70
  version: '0'
76
71
  required_rubygems_version: !ruby/object:Gem::Requirement
77
- none: false
78
72
  requirements:
79
- - - ! '>='
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: 1.3.6
82
76
  requirements: []
83
77
  rubyforge_project: titleize
84
- rubygems_version: 1.8.23
78
+ rubygems_version: 2.2.2
85
79
  signing_key:
86
- specification_version: 3
80
+ specification_version: 4
87
81
  summary: Adds String#titleize for creating properly capitalized titles.
88
82
  test_files:
89
83
  - spec/spec_helper.rb