cowtech-extensions 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/Rakefile +1 -0
- data/cowtech-extensions.gemspec +2 -3
- data/lib/cowtech-extensions/datetime.rb +2 -2
- data/lib/cowtech-extensions/string.rb +1 -1
- data/lib/cowtech-extensions/version.rb +2 -2
- metadata +6 -8
- data/LICENSE.txt +0 -20
data/README.rdoc
CHANGED
@@ -15,5 +15,5 @@ http://github.com/ShogunPanda/cowtech-extensions
|
|
15
15
|
|
16
16
|
== Copyright
|
17
17
|
|
18
|
-
Copyright (
|
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
data/cowtech-extensions.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "cowtech-extensions"
|
8
|
-
s.version = "1.4.
|
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(
|
106
|
-
to = self.class.send(
|
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
|
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.
|
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: &
|
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: *
|
24
|
+
version_requirements: *70233329303800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: actionpack
|
27
|
-
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: *
|
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:
|
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.
|