cowtech-extensions 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -15,5 +15,5 @@ http://github.com/ShogunPanda/cowtech-extensions
15
15
 
16
16
  == Copyright
17
17
 
18
- Copyright (c) 2011 Shogun. See LICENSE.txt for further details.
19
-
18
+ Copyright (C) 2011 and above Shogun <shogun_panda@me.com>.
19
+ Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
data/Rakefile CHANGED
@@ -12,6 +12,7 @@ Jeweler::Tasks.new do |gem|
12
12
  gem.authors = ["Shogun"]
13
13
  gem.version = Cowtech::Extensions::Version::STRING
14
14
  gem.add_dependency "actionpack"
15
+ gem.required_ruby_version = '>= 1.9.2'
15
16
  end
16
17
 
17
18
  Jeweler::RubygemsDotOrgTasks.new
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "cowtech-extensions"
8
- s.version = "1.4.0"
8
+ s.version = "1.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shogun"]
@@ -13,13 +13,11 @@ Gem::Specification.new do |s|
13
13
  s.description = "Several Ruby object enhancements."
14
14
  s.email = "shogun_panda@me.com"
15
15
  s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
16
  "README.rdoc"
18
17
  ]
19
18
  s.files = [
20
19
  "Gemfile",
21
20
  "Gemfile.lock",
22
- "LICENSE.txt",
23
21
  "README.rdoc",
24
22
  "Rakefile",
25
23
  "cowtech-extensions.gemspec",
@@ -36,6 +34,7 @@ Gem::Specification.new do |s|
36
34
  s.homepage = "http://github.com/ShogunPanda/cowtech-extensions"
37
35
  s.licenses = ["MIT"]
38
36
  s.require_paths = ["lib"]
37
+ s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
39
38
  s.rubygems_version = "1.8.15"
40
39
  s.summary = "Several Ruby object enhancements."
41
40
 
@@ -102,8 +102,8 @@ module Cowtech
102
102
 
103
103
  { "%a" => "short_days", "%A" => "days", "%b" => "short_months", "%B" => "months" }.each_pair do |specifier, method|
104
104
  if format.include?(specifier) then
105
- from = self.class.send('default_localized_' + method)
106
- to = self.class.send('localized_' + method)
105
+ from = self.class.send("default_localized_" + method)
106
+ to = self.class.send("localized_" + method)
107
107
  unlocal.gsub!(/(#{from.join("|")})/i) { |s| to[from.index($1)] }
108
108
  end
109
109
  end
@@ -13,7 +13,7 @@ module Cowtech
13
13
 
14
14
  module InstanceMethods
15
15
  def remove_accents
16
- self.mb_chars.normalize(:kd).gsub(/[^\-x00-\x7F]/n, '').to_s
16
+ self.mb_chars.normalize(:kd).gsub(/[^\-x00-\x7F]/n, "").to_s
17
17
  end
18
18
 
19
19
  def untitleize
@@ -11,9 +11,9 @@ module Cowtech
11
11
  module Version
12
12
  MAJOR = 1
13
13
  MINOR = 4
14
- PATCH = 0
14
+ PATCH = 1
15
15
 
16
- STRING = [MAJOR, MINOR, PATCH].compact.join('.')
16
+ STRING = [MAJOR, MINOR, PATCH].compact.join(".")
17
17
  end
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jeweler
16
- requirement: &70136363158700 !ruby/object:Gem::Requirement
16
+ requirement: &70233329303800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70136363158700
24
+ version_requirements: *70233329303800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: actionpack
27
- requirement: &70136363156920 !ruby/object:Gem::Requirement
27
+ requirement: &70233329302880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,18 +32,16 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70136363156920
35
+ version_requirements: *70233329302880
36
36
  description: Several Ruby object enhancements.
37
37
  email: shogun_panda@me.com
38
38
  executables: []
39
39
  extensions: []
40
40
  extra_rdoc_files:
41
- - LICENSE.txt
42
41
  - README.rdoc
43
42
  files:
44
43
  - Gemfile
45
44
  - Gemfile.lock
46
- - LICENSE.txt
47
45
  - README.rdoc
48
46
  - Rakefile
49
47
  - cowtech-extensions.gemspec
@@ -68,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
66
  requirements:
69
67
  - - ! '>='
70
68
  - !ruby/object:Gem::Version
71
- version: '0'
69
+ version: 1.9.2
72
70
  required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  none: false
74
72
  requirements:
data/LICENSE.txt DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 Shogun
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.