opener-core 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/core.rb +1 -0
- data/lib/opener/core/language_code.rb +14 -0
- data/lib/opener/core/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aec1682c9a5171c85a7bbef991c45422daf69865
|
4
|
+
data.tar.gz: 66d9c0d9568291af74bf47e8e1a553fc85bfcefe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bfd93b604a3e5c6c59e366bfca88e3486fb0a2f74bab1c58a01214262b93237f2934077fb1699ebdb7f5b736f425fcd653a883423a61e47ab8e038c62becb12
|
7
|
+
data.tar.gz: 6d7aa2700031db056fca52dd48c61deac1b5b6a815f329306f44d23885ed726b68cbf9c677dbe45db71d29abcbab194e6b58b7912e1dd3e4ab2b99430d4aeb6d
|
data/lib/opener/core.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Opener
|
2
|
+
module Core
|
3
|
+
module LanguageCode
|
4
|
+
##
|
5
|
+
# Converts a language code to a valid Ruby constant name.
|
6
|
+
#
|
7
|
+
# @return [String]
|
8
|
+
#
|
9
|
+
def self.constant_name(code)
|
10
|
+
return code.gsub(/\W+/, '_').upcase
|
11
|
+
end
|
12
|
+
end # LanguageCode
|
13
|
+
end # Core
|
14
|
+
end # Opener
|
data/lib/opener/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- LICENSE.txt
|
104
104
|
- README.md
|
105
105
|
- lib/opener/core.rb
|
106
|
+
- lib/opener/core/language_code.rb
|
106
107
|
- lib/opener/core/language_error.rb
|
107
108
|
- lib/opener/core/resource_switcher.rb
|
108
109
|
- lib/opener/core/syslog.rb
|