termit 3.7.0 → 3.8.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: 4867c761affc0af62bbfa348421bf272ccddd8ff
4
- data.tar.gz: b14c468f4a27289c9c1de5f6ddd12b8eec0c1b99
3
+ metadata.gz: 62699d16df9122831c16dc2416a989fe36481e2d
4
+ data.tar.gz: cedb7cbafc4fb67cdda01aff501652a6e1a600e9
5
5
  SHA512:
6
- metadata.gz: 3e7f0efea7f8110afb315e2cdf5dcf183fd6b745924bf91708cf6d260aff284ef899c0db45dd986d0b53c8dd61e085cf08befee5bcdcd47ec30c2fd225bc3287
7
- data.tar.gz: 7683b205af801e5b9ce8f1d912a9435afebdc414cb8e156ccf11c73961222806366878fac892e9cc1bc09bee297b5bafd790548edf9ccc103cf9000cd3ce9e6d
6
+ metadata.gz: 3c11f63512d5209089ebe1407201f6642e14e9c632bd644dd03aa802dedf6fb438593dfd4c44dc310415d5a9bdb2373b741484e87c3bdb71ecaf3a9a6e6b3df7
7
+ data.tar.gz: 0f3d8e1c0638b89c8b6d846341da0bd2d60b14dbee0144bf090078849c6afdaf2607578f15f685b82c874450d1104336ac979735faff15307904157fa82bf50e
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- #Termit [![Build Status](https://travis-ci.org/pawurb/termit.svg)](https://travis-ci.org/pawurb/termit) [![Gem Version](https://badge.fury.io/rb/termit.svg)](http://badge.fury.io/rb/termit) [![Coverage Status](https://coveralls.io/repos/pawurb/termit/badge.svg)](https://coveralls.io/r/pawurb/termit)
1
+ # Termit [![Build Status](https://travis-ci.org/pawurb/termit.svg)](https://travis-ci.org/pawurb/termit) [![Gem Version](https://badge.fury.io/rb/termit.svg)](http://badge.fury.io/rb/termit) [![Coverage Status](https://coveralls.io/repos/pawurb/termit/badge.svg)](https://coveralls.io/r/pawurb/termit)
2
2
 
3
3
  Termit is an easy way to translate stuff in your terminal. You can check out its node.js npm version [normit](https://github.com/pawurb/normit).
4
4
 
@@ -22,7 +22,7 @@ termit fr en "qui est votre papa?"
22
22
  => "Who's Your Daddy?"
23
23
  ```
24
24
 
25
- Parenthesis are not necessary for text data input:
25
+ Quotation marks are not necessary for text data input:
26
26
  ```bash
27
27
  termit fr ru qui est votre papa
28
28
  => "Кто твой папочка?"
@@ -25,6 +25,10 @@ module Termit
25
25
  def transform_country_code(code)
26
26
  if code == :en
27
27
  'en-US'
28
+ elsif code.to_s == "zh-CHS"
29
+ "zh-CN"
30
+ elsif code.length == 6
31
+ code
28
32
  else
29
33
  "#{code}-#{code.upcase}"
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module Termit
2
- VERSION = "3.7.0"
2
+ VERSION = "3.8.0"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency "rest-client"
21
21
  gem.add_development_dependency "rspec"
22
22
  gem.add_development_dependency "vcr"
23
- gem.add_development_dependency "webmock"
23
+ gem.add_development_dependency "webmock", "~> 2.3.2"
24
24
  gem.add_development_dependency "rake"
25
25
  gem.add_development_dependency "coveralls"
26
26
  gem.add_development_dependency "nyan-cat-formatter"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-07 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: delegate_it
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 2.3.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 2.3.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
- rubygems_version: 2.4.6
189
+ rubygems_version: 2.6.8
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: Translations with speech synthesis in your terminal