ukrainian 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +33 -0
- data/Rakefile +60 -0
- data/VERSION.yml +4 -0
- data/lib/ukrainian/backend/simple.rb +24 -0
- data/lib/ukrainian/locale/acitvesupport.yml +11 -0
- data/lib/ukrainian/locale/actionview.yml +122 -0
- data/lib/ukrainian/locale/activerecord.yml +47 -0
- data/lib/ukrainian/locale/datetime.yml +26 -0
- data/lib/ukrainian/locale/formtastic.yml +8 -0
- data/lib/ukrainian/locale/pluralize.rb +18 -0
- data/lib/ukrainian.rb +21 -0
- data/test/test_helper.rb +10 -0
- data/test/ukrainian_test.rb +7 -0
- data/ukrainian.gemspec +72 -0
- metadata +92 -0
data/.document
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 romanvbabenko
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
= Ukrainian
|
2
|
+
|
3
|
+
Ukrainian language support for Ruby & Ruby and Rails | Підтримка української мови для Ruby та Ruby on Rails
|
4
|
+
|
5
|
+
= Що це і кому це може знадобиться?
|
6
|
+
|
7
|
+
Ukrainian - бібліотека повноцінної підтримки української мови(форматування дати та часу, плюралізації та інтернаціоналізації вцілому)
|
8
|
+
|
9
|
+
= Процес встановлення
|
10
|
+
|
11
|
+
$ sudo gem install romanvbabenko-ukrainian
|
12
|
+
|
13
|
+
config/environment.rb
|
14
|
+
|
15
|
+
config.gem "romanvbabenko-ukrainian", :lib => "ukrainian",
|
16
|
+
:source => "http://gems.github.com", :version => ">= 0.2.1"
|
17
|
+
|
18
|
+
config.i18n.default_locale = :uk
|
19
|
+
|
20
|
+
= Ruby on Rails
|
21
|
+
|
22
|
+
Пакет мість в собі переклади стандартних бібліотек: ActionView, ActiveRecord, ActiveSupport, а також підтримку плюралізаціх для таких методів як *distance_of_time_in_words* та *distance_of_time_in_words_to_now*
|
23
|
+
|
24
|
+
= Сторонні пакети
|
25
|
+
|
26
|
+
Крім стандартних бібліотек Ruby on Rails підтримуються також переклади пакетів сторонніх розробників:
|
27
|
+
* {justinfrench/formtastic}[http://github.com/justinfrench/formtastic/tree/master]
|
28
|
+
|
29
|
+
Якщо у вас я власні переклади чи зауваження, то напишіть мені повідомлення через github, або на поштову скріньку {romanvbabenko@gmail.com}[mailto:romanvbabenko@gmail.com]
|
30
|
+
|
31
|
+
= Copyright
|
32
|
+
|
33
|
+
Copyright (c) 2009 {Roman V. Babenko}[http://romanvbabenko.com]. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "ukrainian"
|
8
|
+
gem.summary = "Ukrainian language support for Ruby and Rails"
|
9
|
+
gem.email = "romanvbabenko@gmail.com"
|
10
|
+
gem.description = "Ukrainian language support for Ruby and Rails"
|
11
|
+
gem.homepage = "http://github.com/romanvbabenko/ukrainian"
|
12
|
+
gem.authors = ["romanvbabenko"]
|
13
|
+
gem.files.include FileList['lib/**/*']
|
14
|
+
gem.add_development_dependency "thoughtbot-shoulda"
|
15
|
+
gem.add_dependency "i18n"
|
16
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
|
+
end
|
18
|
+
|
19
|
+
rescue LoadError
|
20
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
21
|
+
end
|
22
|
+
|
23
|
+
require 'rake/testtask'
|
24
|
+
Rake::TestTask.new(:test) do |test|
|
25
|
+
test.libs << 'lib' << 'test'
|
26
|
+
test.pattern = 'test/**/*_test.rb'
|
27
|
+
test.verbose = true
|
28
|
+
end
|
29
|
+
|
30
|
+
begin
|
31
|
+
require 'rcov/rcovtask'
|
32
|
+
Rcov::RcovTask.new do |test|
|
33
|
+
test.libs << 'test'
|
34
|
+
test.pattern = 'test/**/*_test.rb'
|
35
|
+
test.verbose = true
|
36
|
+
end
|
37
|
+
rescue LoadError
|
38
|
+
task :rcov do
|
39
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
task :default => :test
|
45
|
+
|
46
|
+
require 'rake/rdoctask'
|
47
|
+
Rake::RDocTask.new do |rdoc|
|
48
|
+
if File.exist?('VERSION.yml')
|
49
|
+
config = YAML.load(File.read('VERSION.yml'))
|
50
|
+
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
51
|
+
else
|
52
|
+
version = ""
|
53
|
+
end
|
54
|
+
|
55
|
+
rdoc.rdoc_dir = 'rdoc'
|
56
|
+
rdoc.title = "ukrainian #{version}"
|
57
|
+
rdoc.rdoc_files.include('README*')
|
58
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
59
|
+
end
|
60
|
+
|
data/VERSION.yml
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module I18n
|
2
|
+
module Backend
|
3
|
+
class Simple
|
4
|
+
protected
|
5
|
+
def pluralize(locale, entry, count)
|
6
|
+
return entry unless entry.is_a?(Hash) and count
|
7
|
+
key = :zero if count == 0 && entry.has_key?(:zero)
|
8
|
+
locale_pluralize = lookup(locale, :pluralize)
|
9
|
+
if locale_pluralize && locale_pluralize.respond_to?(:call)
|
10
|
+
key ||= locale_pluralize.call(count)
|
11
|
+
else
|
12
|
+
key ||= default_pluralizer(count)
|
13
|
+
end
|
14
|
+
raise InvalidPluralizationData.new(entry, count) unless entry.has_key?(key)
|
15
|
+
entry[key]
|
16
|
+
end
|
17
|
+
|
18
|
+
def default_pluralizer(count)
|
19
|
+
count == 1 ? :one : :other
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
@@ -0,0 +1,122 @@
|
|
1
|
+
uk:
|
2
|
+
number:
|
3
|
+
# Used in number_with_delimiter()
|
4
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
5
|
+
format:
|
6
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
|
7
|
+
separator: ","
|
8
|
+
# Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
|
9
|
+
delimiter: " "
|
10
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00)
|
11
|
+
precision: 3
|
12
|
+
|
13
|
+
# Used in number_to_currency()
|
14
|
+
currency:
|
15
|
+
format:
|
16
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
|
17
|
+
format: "%n %u"
|
18
|
+
unit: "грн."
|
19
|
+
# These three are to override number.format and are optional
|
20
|
+
separator: ","
|
21
|
+
delimiter: " "
|
22
|
+
precision: 2
|
23
|
+
|
24
|
+
# Used in number_to_percentage()
|
25
|
+
percentage:
|
26
|
+
format:
|
27
|
+
# These three are to override number.format and are optional
|
28
|
+
# separator:
|
29
|
+
delimiter: ""
|
30
|
+
# precision:
|
31
|
+
|
32
|
+
# Used in number_to_precision()
|
33
|
+
precision:
|
34
|
+
format:
|
35
|
+
# These three are to override number.format and are optional
|
36
|
+
# separator:
|
37
|
+
delimiter: ""
|
38
|
+
# precision:
|
39
|
+
|
40
|
+
# Used in number_to_human_size()
|
41
|
+
human:
|
42
|
+
format:
|
43
|
+
# These three are to override number.format and are optional
|
44
|
+
# separator:
|
45
|
+
delimiter: ""
|
46
|
+
precision: 1
|
47
|
+
storage_units:
|
48
|
+
# Storage units output formatting.
|
49
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
50
|
+
format: "%n %u"
|
51
|
+
units:
|
52
|
+
byte:
|
53
|
+
one: "байт"
|
54
|
+
few: "байти"
|
55
|
+
many: "байтів"
|
56
|
+
other: "байту"
|
57
|
+
kb: "кБ"
|
58
|
+
mb: "МБ"
|
59
|
+
gb: "ГБ"
|
60
|
+
tb: "ТБ"
|
61
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
62
|
+
datetime:
|
63
|
+
distance_in_words:
|
64
|
+
half_a_minute: "півхвилини"
|
65
|
+
less_than_x_seconds:
|
66
|
+
one: "менше {{count}} секунди"
|
67
|
+
few: "менше {{count}} секунд"
|
68
|
+
many: "менше {{count}} секунд"
|
69
|
+
other: "менше {{count}} секунди"
|
70
|
+
x_seconds:
|
71
|
+
one: "{{count}} секунда"
|
72
|
+
few: "{{count}} секунди"
|
73
|
+
many: "{{count}} секунд"
|
74
|
+
other: "{{count}} секунди"
|
75
|
+
less_than_x_minutes:
|
76
|
+
one: "менше {{count}} хвилини"
|
77
|
+
few: "менше {{count}} хвилин"
|
78
|
+
many: "менше {{count}} хвилин"
|
79
|
+
other: "менше {{count}} хвилини"
|
80
|
+
x_minutes:
|
81
|
+
one: "{{count}} хвилина"
|
82
|
+
few: "{{count}} хвилини"
|
83
|
+
many: "{{count}} хвилин"
|
84
|
+
other: "{{count}} хвилини"
|
85
|
+
about_x_hours:
|
86
|
+
one: "близько {{count}} година"
|
87
|
+
few: "близько {{count}} години"
|
88
|
+
many: "близько {{count}} годин"
|
89
|
+
other: "близько {{count}} години"
|
90
|
+
x_days:
|
91
|
+
one: "{{count}} день"
|
92
|
+
few: "{{count}} дні"
|
93
|
+
many: "{{count}} днів"
|
94
|
+
other: "{{count}} дня"
|
95
|
+
about_x_months:
|
96
|
+
one: "близько {{count}} місяця"
|
97
|
+
few: "близько {{count}} місяців"
|
98
|
+
many: "близько {{count}} місяців"
|
99
|
+
other: "близько {{count}} місяця"
|
100
|
+
x_months:
|
101
|
+
one: "{{count}} місяць"
|
102
|
+
few: "{{count}} місяці"
|
103
|
+
many: "{{count}} місяців"
|
104
|
+
other: "{{count}} місяця"
|
105
|
+
about_x_years:
|
106
|
+
one: "близько {{count}} року"
|
107
|
+
few: "близько {{count}} років"
|
108
|
+
many: "близько {{count}} років"
|
109
|
+
other: "близько {{count}} року"
|
110
|
+
over_x_years:
|
111
|
+
one: "більше {{count}} року"
|
112
|
+
few: "більше {{count}} років"
|
113
|
+
many: "більше {{count}} років"
|
114
|
+
other: "більше {{count}} року"
|
115
|
+
prompts:
|
116
|
+
year: "Рік"
|
117
|
+
month: "Місяць"
|
118
|
+
day: "День"
|
119
|
+
hour: "Година"
|
120
|
+
minute: "Хвилина"
|
121
|
+
second: "Секунда"
|
122
|
+
|
@@ -0,0 +1,47 @@
|
|
1
|
+
uk:
|
2
|
+
activerecord:
|
3
|
+
errors:
|
4
|
+
template:
|
5
|
+
header:
|
6
|
+
one: "{{model}} не збережено через {{count}} помилку"
|
7
|
+
few: "{{model}} не збережено через {{count}} помилки"
|
8
|
+
many: "{{model}} не збережено через {{count}} помилок"
|
9
|
+
other: "{{model}} не збережено через {{count}} помилки"
|
10
|
+
# The variable :count is also available
|
11
|
+
body: "Помилки виявлено в таких полях:"
|
12
|
+
|
13
|
+
# The values :model, :attribute and :value are always available for interpolation
|
14
|
+
# The value :count is available when applicable. Can be used for pluralization.
|
15
|
+
messages:
|
16
|
+
inclusion: "не включено до переліку"
|
17
|
+
exclusion: "зарезервовано"
|
18
|
+
invalid: "недійсний"
|
19
|
+
confirmation: "не збігається з підтвердженням"
|
20
|
+
accepted: "має бути прийнятий"
|
21
|
+
empty: "не може бути пустим"
|
22
|
+
blank: "не може містити тільки пробіли"
|
23
|
+
too_long:
|
24
|
+
one: "занадто довгий (максимум {{count}} знак)"
|
25
|
+
few: "занадто довгий (максимум {{count}} знаки)"
|
26
|
+
many: "занадто довгий (максимум {{count}} знаків)"
|
27
|
+
other: "занадто довгий (максимум {{count}} знаку)"
|
28
|
+
too_short:
|
29
|
+
one: "занадто короткий (мінімум {{count}} знак)"
|
30
|
+
few: "занадто короткий (мінімум {{count}} знаки)"
|
31
|
+
many: "занадто короткий (мінімум {{count}} знаків)"
|
32
|
+
other: "занадто короткий (мінімум {{count}} знаку)"
|
33
|
+
wrong_length:
|
34
|
+
one: "неправильна довжина (має бути {{count}} знак)"
|
35
|
+
few: "неправильна довжина (має бути {{count}} знаки)"
|
36
|
+
many: "неправильна довжина (має бути {{count}} знаків)"
|
37
|
+
other: "неправильна довжина (має бути {{count}} знаку)"
|
38
|
+
taken: "вже зайнятий"
|
39
|
+
not_a_number: "не число"
|
40
|
+
greater_than: "має бути більше ніж {{count}}"
|
41
|
+
greater_than_or_equal_to: "має бути більше ніж або дорівнювати {{count}}"
|
42
|
+
equal_to: "має дорівнювати {{count}}"
|
43
|
+
less_than: "має бути менше ніж {{count}}"
|
44
|
+
less_than_or_equal_to: "має бути менше ніж або дорівнювати {{count}}"
|
45
|
+
odd: "має бути непарним"
|
46
|
+
even: "має бути парним"
|
47
|
+
# Append your own errors here or at the model/attributes scope.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
uk:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
# Use the strftime parameters for formats.
|
5
|
+
# When no format has been given, it uses default.
|
6
|
+
# You can provide other formats here if you like!
|
7
|
+
default: "%d.%m.%Y"
|
8
|
+
short: "%d %b"
|
9
|
+
long: "%d %B %Y"
|
10
|
+
|
11
|
+
day_names: [неділя, понеділок, вівторок, середа, четвер, "п'ятниця", субота]
|
12
|
+
abbr_day_names: [нд., пн., вт., ср., чт., пт., сб.]
|
13
|
+
|
14
|
+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
15
|
+
month_names: [~, Січень, Лютий, Березень, Квітень, Травень, Червень, Липень, Серпень, Вересень, Жовтень, Листопад, Грудень]
|
16
|
+
abbr_month_names: [~, січ., лют., бер., квіт., трав., черв., лип., серп., вер., жовт., лист., груд.]
|
17
|
+
# Used in date_select and datime_select.
|
18
|
+
order: [ :day, :month, :year ]
|
19
|
+
|
20
|
+
time:
|
21
|
+
formats:
|
22
|
+
default: "%a, %d %b %Y, %H:%M:%S %z"
|
23
|
+
short: "%d %b, %H:%M"
|
24
|
+
long: "%d %B %Y, %H:%M"
|
25
|
+
am: "до полудня"
|
26
|
+
pm: "по полудні"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
:uk => {
|
3
|
+
:pluralize => lambda { |n|
|
4
|
+
modulo10 = n.modulo(10)
|
5
|
+
modulo100 = n.modulo(100)
|
6
|
+
|
7
|
+
if modulo10 == 1 && modulo100 != 11
|
8
|
+
:one
|
9
|
+
elsif (modulo10 == 2 || modulo10 == 3 || modulo10 == 4) && !(modulo100 == 12 || modulo100 == 13 || modulo100 == 14)
|
10
|
+
:few
|
11
|
+
elsif modulo10 == 0 || (modulo10 == 5 || modulo10 == 6 || modulo10 == 7 || modulo10 == 8 || modulo10 == 9) || (modulo100 == 11 || modulo100 == 12 || modulo100 == 13 || modulo100 == 14)
|
12
|
+
:many
|
13
|
+
else
|
14
|
+
:other
|
15
|
+
end
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
data/lib/ukrainian.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'ukrainian/backend/simple')
|
2
|
+
require 'i18n'
|
3
|
+
|
4
|
+
module Ukrainian
|
5
|
+
extend self
|
6
|
+
|
7
|
+
def init_i18n
|
8
|
+
I18n.load_path.unshift(*locale_files)
|
9
|
+
end
|
10
|
+
|
11
|
+
protected
|
12
|
+
def locale_path
|
13
|
+
File.join(File.dirname(__FILE__), 'ukrainian', 'locale', '**/*')
|
14
|
+
end
|
15
|
+
|
16
|
+
def locale_files
|
17
|
+
Dir[locale_path]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
Ukrainian.init_i18n
|
data/test/test_helper.rb
ADDED
data/ukrainian.gemspec
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
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{ukrainian}
|
8
|
+
s.version = "0.2.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["romanvbabenko"]
|
12
|
+
s.date = %q{2009-08-20}
|
13
|
+
s.description = %q{Ukrainian language support for Ruby and Rails}
|
14
|
+
s.email = %q{romanvbabenko@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION.yml",
|
26
|
+
"lib/ukrainian.rb",
|
27
|
+
"lib/ukrainian.rb",
|
28
|
+
"lib/ukrainian/backend/simple.rb",
|
29
|
+
"lib/ukrainian/backend/simple.rb",
|
30
|
+
"lib/ukrainian/locale/acitvesupport.yml",
|
31
|
+
"lib/ukrainian/locale/acitvesupport.yml",
|
32
|
+
"lib/ukrainian/locale/actionview.yml",
|
33
|
+
"lib/ukrainian/locale/actionview.yml",
|
34
|
+
"lib/ukrainian/locale/activerecord.yml",
|
35
|
+
"lib/ukrainian/locale/activerecord.yml",
|
36
|
+
"lib/ukrainian/locale/datetime.yml",
|
37
|
+
"lib/ukrainian/locale/datetime.yml",
|
38
|
+
"lib/ukrainian/locale/formtastic.yml",
|
39
|
+
"lib/ukrainian/locale/formtastic.yml",
|
40
|
+
"lib/ukrainian/locale/pluralize.rb",
|
41
|
+
"lib/ukrainian/locale/pluralize.rb",
|
42
|
+
"test/test_helper.rb",
|
43
|
+
"test/ukrainian_test.rb",
|
44
|
+
"ukrainian.gemspec"
|
45
|
+
]
|
46
|
+
s.has_rdoc = true
|
47
|
+
s.homepage = %q{http://github.com/romanvbabenko/ukrainian}
|
48
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
49
|
+
s.require_paths = ["lib"]
|
50
|
+
s.rubygems_version = %q{1.3.2}
|
51
|
+
s.summary = %q{Ukrainian language support for Ruby and Rails}
|
52
|
+
s.test_files = [
|
53
|
+
"test/test_helper.rb",
|
54
|
+
"test/ukrainian_test.rb"
|
55
|
+
]
|
56
|
+
|
57
|
+
if s.respond_to? :specification_version then
|
58
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
59
|
+
s.specification_version = 3
|
60
|
+
|
61
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
62
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
63
|
+
s.add_runtime_dependency(%q<i18n>, [">= 0"])
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
66
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
67
|
+
end
|
68
|
+
else
|
69
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
70
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
71
|
+
end
|
72
|
+
end
|
metadata
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ukrainian
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- romanvbabenko
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-08-20 00:00:00 +03:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: thoughtbot-shoulda
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: i18n
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
description: Ukrainian language support for Ruby and Rails
|
36
|
+
email: romanvbabenko@gmail.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- LICENSE
|
43
|
+
- README.rdoc
|
44
|
+
files:
|
45
|
+
- .document
|
46
|
+
- .gitignore
|
47
|
+
- LICENSE
|
48
|
+
- README.rdoc
|
49
|
+
- Rakefile
|
50
|
+
- VERSION.yml
|
51
|
+
- lib/ukrainian.rb
|
52
|
+
- lib/ukrainian/backend/simple.rb
|
53
|
+
- lib/ukrainian/locale/acitvesupport.yml
|
54
|
+
- lib/ukrainian/locale/actionview.yml
|
55
|
+
- lib/ukrainian/locale/activerecord.yml
|
56
|
+
- lib/ukrainian/locale/datetime.yml
|
57
|
+
- lib/ukrainian/locale/formtastic.yml
|
58
|
+
- lib/ukrainian/locale/pluralize.rb
|
59
|
+
- test/test_helper.rb
|
60
|
+
- test/ukrainian_test.rb
|
61
|
+
- ukrainian.gemspec
|
62
|
+
has_rdoc: true
|
63
|
+
homepage: http://github.com/romanvbabenko/ukrainian
|
64
|
+
licenses: []
|
65
|
+
|
66
|
+
post_install_message:
|
67
|
+
rdoc_options:
|
68
|
+
- --charset=UTF-8
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: "0"
|
76
|
+
version:
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: "0"
|
82
|
+
version:
|
83
|
+
requirements: []
|
84
|
+
|
85
|
+
rubyforge_project:
|
86
|
+
rubygems_version: 1.3.5
|
87
|
+
signing_key:
|
88
|
+
specification_version: 3
|
89
|
+
summary: Ukrainian language support for Ruby and Rails
|
90
|
+
test_files:
|
91
|
+
- test/test_helper.rb
|
92
|
+
- test/ukrainian_test.rb
|