wtf_lang 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/wtf_lang.gemspec CHANGED
@@ -1,71 +1,19 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{wtf_lang}
8
- s.version = "0.3.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["nashby"]
12
- s.date = %q{2011-05-12}
13
- s.description = %q{Can't stop dreaming about an easy language detector? Just use wtf_lang!}
14
- s.email = %q{younash@gmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".document",
21
- "Gemfile",
22
- "Gemfile.lock",
23
- "LICENSE.txt",
24
- "README.md",
25
- "Rakefile",
26
- "lib/wtf_lang.rb",
27
- "lib/wtf_lang/api.rb",
28
- "lib/wtf_lang/core_ext/extension.rb",
29
- "lib/wtf_lang/core_ext/string.rb",
30
- "lib/wtf_lang/core_ext/symbol.rb",
31
- "lib/wtf_lang/language.rb",
32
- "lib/wtf_lang/languages.rb",
33
- "lib/wtf_lang/version.rb",
34
- "test/helper.rb",
35
- "test/test_wtf_lang.rb",
36
- "wtf_lang.gemspec"
37
- ]
38
- s.homepage = %q{http://github.com/nashby/wtf_lang}
39
- s.licenses = ["MIT"]
40
- s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.6.2}
42
- s.summary = %q{An awesome language detector}
43
-
44
- if s.respond_to? :specification_version then
45
- s.specification_version = 3
46
-
47
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
- s.add_runtime_dependency(%q<json>, [">= 0"])
49
- s.add_development_dependency(%q<shoulda>, [">= 0"])
50
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
51
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
52
- s.add_development_dependency(%q<rcov>, [">= 0"])
53
- s.add_runtime_dependency(%q<json>, [">= 0"])
54
- else
55
- s.add_dependency(%q<json>, [">= 0"])
56
- s.add_dependency(%q<shoulda>, [">= 0"])
57
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
58
- s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
59
- s.add_dependency(%q<rcov>, [">= 0"])
60
- s.add_dependency(%q<json>, [">= 0"])
61
- end
62
- else
63
- s.add_dependency(%q<json>, [">= 0"])
64
- s.add_dependency(%q<shoulda>, [">= 0"])
65
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
66
- s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
67
- s.add_dependency(%q<rcov>, [">= 0"])
68
- s.add_dependency(%q<json>, [">= 0"])
69
- end
70
- end
71
-
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/wtf_lang/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Vasiliy Ermolovich"]
6
+ gem.email = "younash@gmail.com"
7
+ gem.description = %q{An awesome language detector}
8
+ gem.summary = %q{Can't stop dreaming about an easy language detector? Just use wtf_lang!}
9
+ gem.homepage = "https://github.com/nashby/wtf_lang"
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = "wtf_lang"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = WtfLang::VERSION
17
+
18
+ gem.add_dependency('json')
19
+ end
metadata CHANGED
@@ -1,20 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wtf_lang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - nashby
8
+ - Vasiliy Ermolovich
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-05-12 00:00:00.000000000 +03:00
13
- default_executable:
12
+ date: 2012-03-03 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: json
17
- requirement: &9611340 !ruby/object:Gem::Requirement
16
+ requirement: &24200160 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,76 +21,20 @@ dependencies:
22
21
  version: '0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *9611340
26
- - !ruby/object:Gem::Dependency
27
- name: shoulda
28
- requirement: &9610872 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: *9610872
37
- - !ruby/object:Gem::Dependency
38
- name: bundler
39
- requirement: &9610380 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ~>
43
- - !ruby/object:Gem::Version
44
- version: 1.0.0
45
- type: :development
46
- prerelease: false
47
- version_requirements: *9610380
48
- - !ruby/object:Gem::Dependency
49
- name: jeweler
50
- requirement: &9609936 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ~>
54
- - !ruby/object:Gem::Version
55
- version: 1.6.0
56
- type: :development
57
- prerelease: false
58
- version_requirements: *9609936
59
- - !ruby/object:Gem::Dependency
60
- name: rcov
61
- requirement: &9609504 !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ! '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- type: :development
68
- prerelease: false
69
- version_requirements: *9609504
70
- - !ruby/object:Gem::Dependency
71
- name: json
72
- requirement: &9609192 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- type: :runtime
79
- prerelease: false
80
- version_requirements: *9609192
81
- description: Can't stop dreaming about an easy language detector? Just use wtf_lang!
24
+ version_requirements: *24200160
25
+ description: An awesome language detector
82
26
  email: younash@gmail.com
83
27
  executables: []
84
28
  extensions: []
85
- extra_rdoc_files:
86
- - LICENSE.txt
87
- - README.md
29
+ extra_rdoc_files: []
88
30
  files:
89
- - .document
31
+ - .gitignore
32
+ - .travis.yml
90
33
  - Gemfile
91
- - Gemfile.lock
92
34
  - LICENSE.txt
93
35
  - README.md
94
36
  - Rakefile
37
+ - cassettes/translation_api.yml
95
38
  - lib/wtf_lang.rb
96
39
  - lib/wtf_lang/api.rb
97
40
  - lib/wtf_lang/core_ext/extension.rb
@@ -100,13 +43,11 @@ files:
100
43
  - lib/wtf_lang/language.rb
101
44
  - lib/wtf_lang/languages.rb
102
45
  - lib/wtf_lang/version.rb
103
- - test/helper.rb
104
- - test/test_wtf_lang.rb
46
+ - test/test_helper.rb
47
+ - test/wtf_lang_test.rb
105
48
  - wtf_lang.gemspec
106
- has_rdoc: true
107
- homepage: http://github.com/nashby/wtf_lang
108
- licenses:
109
- - MIT
49
+ homepage: https://github.com/nashby/wtf_lang
50
+ licenses: []
110
51
  post_install_message:
111
52
  rdoc_options: []
112
53
  require_paths:
@@ -119,17 +60,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
60
  version: '0'
120
61
  segments:
121
62
  - 0
122
- hash: -450518063
63
+ hash: -3921418247367457731
123
64
  required_rubygems_version: !ruby/object:Gem::Requirement
124
65
  none: false
125
66
  requirements:
126
67
  - - ! '>='
127
68
  - !ruby/object:Gem::Version
128
69
  version: '0'
70
+ segments:
71
+ - 0
72
+ hash: -3921418247367457731
129
73
  requirements: []
130
74
  rubyforge_project:
131
- rubygems_version: 1.6.2
75
+ rubygems_version: 1.8.6
132
76
  signing_key:
133
77
  specification_version: 3
134
- summary: An awesome language detector
78
+ summary: Can't stop dreaming about an easy language detector? Just use wtf_lang!
135
79
  test_files: []
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/Gemfile.lock DELETED
@@ -1,24 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- git (1.2.5)
5
- jeweler (1.6.0)
6
- bundler (~> 1.0.0)
7
- git (>= 1.2.5)
8
- rake
9
- json (1.5.1)
10
- json (1.5.1-x86-mingw32)
11
- rake (0.8.7)
12
- rcov (0.9.9)
13
- shoulda (2.11.3)
14
-
15
- PLATFORMS
16
- ruby
17
- x86-mingw32
18
-
19
- DEPENDENCIES
20
- bundler (~> 1.0.0)
21
- jeweler (~> 1.6.0)
22
- json
23
- rcov
24
- shoulda
data/test/helper.rb DELETED
@@ -1,18 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'test/unit'
11
- require 'shoulda'
12
-
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'wtf_lang'
16
-
17
- class Test::Unit::TestCase
18
- end
@@ -1,46 +0,0 @@
1
- #encoding: utf-8
2
-
3
- require 'helper'
4
-
5
- class TestWtfLang < Test::Unit::TestCase
6
- should "return en language" do
7
- assert_equal "en", "ruby is so awesome!".lang
8
- end
9
-
10
- should "return ru language" do
11
- assert_equal "ru", "руби такой крутой!".lang
12
- end
13
-
14
- should "return jp language" do
15
- assert_equal "ja", "ルビーはとても素晴らしいです!".lang
16
- end
17
-
18
- should "return eo language" do
19
- assert_equal "eo", "Eĥoŝanĝo ĉiŭĵaŭde!".lang
20
- end
21
-
22
- should "return esperanto language" do
23
- assert_equal "esperanto", "Esperanton ĉiuj parolos!".full_lang
24
- end
25
-
26
- should "return full language name" do
27
- assert_equal "russian", "руби такой крутой!".full_lang
28
- end
29
-
30
- should "return assert language" do
31
- assert "ruby is so awesome!".en?
32
- end
33
-
34
- should "return assert with full language name" do
35
- assert "ruby is so awesome!".english?
36
- end
37
-
38
- should "return confidence" do
39
- assert "руби такой крутой!".lang_confidence.kind_of? Array
40
- end
41
-
42
- should "return en language for symbol" do
43
- assert_equal "en", :"ruby is so awesome!".lang
44
- end
45
-
46
- end