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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae866565827f5fcdd91168b27ffce5f1e0ea3121
4
- data.tar.gz: 0e6537c4e0c0ab0510c7487aec66c5c8c5c48de3
3
+ metadata.gz: aec1682c9a5171c85a7bbef991c45422daf69865
4
+ data.tar.gz: 66d9c0d9568291af74bf47e8e1a553fc85bfcefe
5
5
  SHA512:
6
- metadata.gz: c6ec81346c1409a8ac31a02598eebdada6eec3b1a3a76e6d46ad434b05cb23c6d3db26ed94de43f01eab537b5daf634defbb9d250ad09ecebcc59fb98bfb5724
7
- data.tar.gz: 63dfe4fed71d80a52b6c941c6cf58a5148ab6554ccc004356efc2e3b4b9edc03bcb1f8e8facebc22cd063f95f4b6a39edc7dfb4bde5b90267d518c8a659bf3a3
6
+ metadata.gz: 2bfd93b604a3e5c6c59e366bfca88e3486fb0a2f74bab1c58a01214262b93237f2934077fb1699ebdb7f5b736f425fcd653a883423a61e47ab8e038c62becb12
7
+ data.tar.gz: 6d7aa2700031db056fca52dd48c61deac1b5b6a815f329306f44d23885ed726b68cbf9c677dbe45db71d29abcbab194e6b58b7912e1dd3e4ab2b99430d4aeb6d
@@ -11,3 +11,4 @@ require_relative 'core/version'
11
11
  require_relative 'core/resource_switcher'
12
12
  require_relative 'core/syslog'
13
13
  require_relative 'core/language_error'
14
+ require_relative 'core/language_code'
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Core
3
- VERSION = '2.3.0'
3
+ VERSION = '2.4.0'
4
4
  end
5
5
  end
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.3.0
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: 2014-11-26 00:00:00.000000000 Z
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