iso-639 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +1 -1
- data/Gemfile +13 -0
- data/Gemfile.lock +36 -0
- data/{README.md → README.markdown} +0 -0
- data/Rakefile +24 -35
- data/VERSION +1 -1
- data/iso-639.gemspec +34 -29
- data/test/helper.rb +19 -0
- data/test/test_ISO_639.rb +1 -1
- metadata +97 -56
- data/.gitignore +0 -5
- data/test/test_helper.rb +0 -10
data/.document
CHANGED
data/Gemfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
source "http://rubygems.org"
|
|
2
|
+
# Add dependencies required to use your gem here.
|
|
3
|
+
# Example:
|
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
|
5
|
+
|
|
6
|
+
# Add dependencies to develop your gem here.
|
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
|
8
|
+
group :development, :test do
|
|
9
|
+
gem "jeweler", "~> 1.8.4"
|
|
10
|
+
gem "mocha", ">= 0"
|
|
11
|
+
gem "rdoc", "~> 3.12"
|
|
12
|
+
gem "shoulda", ">= 0"
|
|
13
|
+
end
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: http://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
activesupport (3.2.8)
|
|
5
|
+
i18n (~> 0.6)
|
|
6
|
+
multi_json (~> 1.0)
|
|
7
|
+
git (1.2.5)
|
|
8
|
+
i18n (0.6.1)
|
|
9
|
+
jeweler (1.8.4)
|
|
10
|
+
bundler (~> 1.0)
|
|
11
|
+
git (>= 1.2.5)
|
|
12
|
+
rake
|
|
13
|
+
rdoc
|
|
14
|
+
json (1.7.5)
|
|
15
|
+
metaclass (0.0.1)
|
|
16
|
+
mocha (0.12.7)
|
|
17
|
+
metaclass (~> 0.0.1)
|
|
18
|
+
multi_json (1.3.6)
|
|
19
|
+
rake (0.9.2.2)
|
|
20
|
+
rdoc (3.12)
|
|
21
|
+
json (~> 1.4)
|
|
22
|
+
shoulda (3.3.2)
|
|
23
|
+
shoulda-context (~> 1.0.1)
|
|
24
|
+
shoulda-matchers (~> 1.4.1)
|
|
25
|
+
shoulda-context (1.0.1)
|
|
26
|
+
shoulda-matchers (1.4.1)
|
|
27
|
+
activesupport (>= 3.0.0)
|
|
28
|
+
|
|
29
|
+
PLATFORMS
|
|
30
|
+
ruby
|
|
31
|
+
|
|
32
|
+
DEPENDENCIES
|
|
33
|
+
jeweler (~> 1.8.4)
|
|
34
|
+
mocha
|
|
35
|
+
rdoc (~> 3.12)
|
|
36
|
+
shoulda
|
|
File without changes
|
data/Rakefile
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
1
3
|
require 'rubygems'
|
|
4
|
+
require 'bundler'
|
|
5
|
+
begin
|
|
6
|
+
Bundler.setup(:default, :development)
|
|
7
|
+
rescue Bundler::BundlerError => e
|
|
8
|
+
$stderr.puts e.message
|
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
|
10
|
+
exit e.status_code
|
|
11
|
+
end
|
|
2
12
|
require 'rake'
|
|
3
13
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
end
|
|
16
|
-
rescue LoadError
|
|
17
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
|
14
|
+
require 'jeweler'
|
|
15
|
+
Jeweler::Tasks.new do |gem|
|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
|
17
|
+
gem.name = "iso-639"
|
|
18
|
+
gem.homepage = "http://github.com/alphabetum/pandoc-ruby"
|
|
19
|
+
gem.license = "MIT"
|
|
20
|
+
gem.summary = %Q{ISO 639-1 and ISO 639-2 language code entries and convenience methods}
|
|
21
|
+
gem.description = %Q{ISO 639-1 and ISO 639-2 language code entries and convenience methods}
|
|
22
|
+
gem.email = "hi@williammelody.com"
|
|
23
|
+
gem.authors = ["William Melody"]
|
|
24
|
+
# dependencies defined in Gemfile
|
|
18
25
|
end
|
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
|
19
27
|
|
|
20
28
|
require 'rake/testtask'
|
|
21
29
|
Rake::TestTask.new(:test) do |test|
|
|
@@ -24,30 +32,11 @@ Rake::TestTask.new(:test) do |test|
|
|
|
24
32
|
test.verbose = true
|
|
25
33
|
end
|
|
26
34
|
|
|
27
|
-
begin
|
|
28
|
-
require 'rcov/rcovtask'
|
|
29
|
-
Rcov::RcovTask.new do |test|
|
|
30
|
-
test.libs << 'test'
|
|
31
|
-
test.pattern = 'test/**/test_*.rb'
|
|
32
|
-
test.verbose = true
|
|
33
|
-
end
|
|
34
|
-
rescue LoadError
|
|
35
|
-
task :rcov do
|
|
36
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
task :test => :check_dependencies
|
|
41
|
-
|
|
42
35
|
task :default => :test
|
|
43
36
|
|
|
44
|
-
require '
|
|
37
|
+
require 'rdoc/task'
|
|
45
38
|
Rake::RDocTask.new do |rdoc|
|
|
46
|
-
|
|
47
|
-
version = File.read('VERSION')
|
|
48
|
-
else
|
|
49
|
-
version = ""
|
|
50
|
-
end
|
|
39
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
51
40
|
|
|
52
41
|
rdoc.rdoc_dir = 'rdoc'
|
|
53
42
|
rdoc.title = "ISO-639 #{version}"
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0
|
|
1
|
+
0.1.0
|
data/iso-639.gemspec
CHANGED
|
@@ -1,54 +1,59 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
|
-
s.name =
|
|
8
|
-
s.version = "0.0
|
|
7
|
+
s.name = "iso-639"
|
|
8
|
+
s.version = "0.1.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["William Melody"]
|
|
12
|
-
s.date =
|
|
13
|
-
s.description =
|
|
14
|
-
s.email =
|
|
12
|
+
s.date = "2012-11-01"
|
|
13
|
+
s.description = "ISO 639-1 and ISO 639-2 language code entries and convenience methods"
|
|
14
|
+
s.email = "hi@williammelody.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"LICENSE",
|
|
17
|
-
|
|
17
|
+
"README.markdown"
|
|
18
18
|
]
|
|
19
19
|
s.files = [
|
|
20
20
|
".document",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
"Gemfile",
|
|
22
|
+
"Gemfile.lock",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.markdown",
|
|
25
|
+
"Rakefile",
|
|
26
|
+
"VERSION",
|
|
27
|
+
"iso-639.gemspec",
|
|
28
|
+
"lib/iso-639.rb",
|
|
29
|
+
"test/helper.rb",
|
|
30
|
+
"test/test_ISO_639.rb"
|
|
30
31
|
]
|
|
31
|
-
s.homepage =
|
|
32
|
-
s.
|
|
32
|
+
s.homepage = "http://github.com/alphabetum/pandoc-ruby"
|
|
33
|
+
s.licenses = ["MIT"]
|
|
33
34
|
s.require_paths = ["lib"]
|
|
34
|
-
s.rubygems_version =
|
|
35
|
-
s.summary =
|
|
36
|
-
s.test_files = [
|
|
37
|
-
"test/test_helper.rb",
|
|
38
|
-
"test/test_ISO_639.rb"
|
|
39
|
-
]
|
|
35
|
+
s.rubygems_version = "1.8.24"
|
|
36
|
+
s.summary = "ISO 639-1 and ISO 639-2 language code entries and convenience methods"
|
|
40
37
|
|
|
41
38
|
if s.respond_to? :specification_version then
|
|
42
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
43
39
|
s.specification_version = 3
|
|
44
40
|
|
|
45
|
-
if Gem::Version.new(Gem::
|
|
46
|
-
s.add_development_dependency(%q<
|
|
41
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
42
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
43
|
+
s.add_development_dependency(%q<mocha>, [">= 0"])
|
|
44
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
|
45
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
|
47
46
|
else
|
|
48
|
-
s.add_dependency(%q<
|
|
47
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
48
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
|
49
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
|
50
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
49
51
|
end
|
|
50
52
|
else
|
|
51
|
-
s.add_dependency(%q<
|
|
53
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
54
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
|
56
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
52
57
|
end
|
|
53
58
|
end
|
|
54
59
|
|
data/test/helper.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
require 'mocha'
|
|
13
|
+
|
|
14
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
15
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
16
|
+
require 'iso-639'
|
|
17
|
+
|
|
18
|
+
class Test::Unit::TestCase
|
|
19
|
+
end
|
data/test/test_ISO_639.rb
CHANGED
metadata
CHANGED
|
@@ -1,84 +1,125 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iso-639
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
- 0
|
|
7
|
-
- 0
|
|
8
|
-
- 3
|
|
9
|
-
version: 0.0.3
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
prerelease:
|
|
10
6
|
platform: ruby
|
|
11
|
-
authors:
|
|
7
|
+
authors:
|
|
12
8
|
- William Melody
|
|
13
9
|
autorequire:
|
|
14
10
|
bindir: bin
|
|
15
11
|
cert_chain: []
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
date: 2012-11-01 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: jeweler
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 1.8.4
|
|
22
|
+
type: :development
|
|
22
23
|
prerelease: false
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ~>
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 1.8.4
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: mocha
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
30
38
|
type: :development
|
|
31
|
-
|
|
39
|
+
prerelease: false
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: rdoc
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
50
|
+
requirements:
|
|
51
|
+
- - ~>
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '3.12'
|
|
54
|
+
type: :development
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ~>
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '3.12'
|
|
62
|
+
- !ruby/object:Gem::Dependency
|
|
63
|
+
name: shoulda
|
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
66
|
+
requirements:
|
|
67
|
+
- - ! '>='
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
type: :development
|
|
71
|
+
prerelease: false
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
none: false
|
|
74
|
+
requirements:
|
|
75
|
+
- - ! '>='
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0'
|
|
32
78
|
description: ISO 639-1 and ISO 639-2 language code entries and convenience methods
|
|
33
79
|
email: hi@williammelody.com
|
|
34
80
|
executables: []
|
|
35
|
-
|
|
36
81
|
extensions: []
|
|
37
|
-
|
|
38
|
-
extra_rdoc_files:
|
|
82
|
+
extra_rdoc_files:
|
|
39
83
|
- LICENSE
|
|
40
|
-
- README.
|
|
41
|
-
files:
|
|
84
|
+
- README.markdown
|
|
85
|
+
files:
|
|
42
86
|
- .document
|
|
43
|
-
-
|
|
87
|
+
- Gemfile
|
|
88
|
+
- Gemfile.lock
|
|
44
89
|
- LICENSE
|
|
45
|
-
- README.
|
|
90
|
+
- README.markdown
|
|
46
91
|
- Rakefile
|
|
47
92
|
- VERSION
|
|
48
93
|
- iso-639.gemspec
|
|
49
94
|
- lib/iso-639.rb
|
|
95
|
+
- test/helper.rb
|
|
50
96
|
- test/test_ISO_639.rb
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
licenses: []
|
|
55
|
-
|
|
97
|
+
homepage: http://github.com/alphabetum/pandoc-ruby
|
|
98
|
+
licenses:
|
|
99
|
+
- MIT
|
|
56
100
|
post_install_message:
|
|
57
|
-
rdoc_options:
|
|
58
|
-
|
|
59
|
-
require_paths:
|
|
101
|
+
rdoc_options: []
|
|
102
|
+
require_paths:
|
|
60
103
|
- lib
|
|
61
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
|
+
none: false
|
|
106
|
+
requirements:
|
|
107
|
+
- - ! '>='
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
segments:
|
|
66
111
|
- 0
|
|
67
|
-
|
|
68
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
version: "0"
|
|
112
|
+
hash: 2442761226781882380
|
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
|
+
none: false
|
|
115
|
+
requirements:
|
|
116
|
+
- - ! '>='
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: '0'
|
|
75
119
|
requirements: []
|
|
76
|
-
|
|
77
120
|
rubyforge_project:
|
|
78
|
-
rubygems_version: 1.
|
|
121
|
+
rubygems_version: 1.8.24
|
|
79
122
|
signing_key:
|
|
80
123
|
specification_version: 3
|
|
81
124
|
summary: ISO 639-1 and ISO 639-2 language code entries and convenience methods
|
|
82
|
-
test_files:
|
|
83
|
-
- test/test_helper.rb
|
|
84
|
-
- test/test_ISO_639.rb
|
|
125
|
+
test_files: []
|
data/test/test_helper.rb
DELETED