russian 0.2.5 → 0.2.6

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/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.2.6 - 25.03.2010
2
+
3
+ * Minimum Rails 3.0b support: Added fourth parameter (options) defaulting to nil to Advanced backend localize method for compliance with i18n-0.3 [Nikolay V. Nemshilov]
4
+ * Минимальная поддержка Rails 3.0b: В метод localize бекенда Advanced добавлен четвертый параметр, для совместимости с i18n-0.3. По умолчанию равен nil. [Николай Немшилов]
5
+
1
6
  === 0.2.5 - 23.12.2009
2
7
 
3
8
  * Added support for multi-char substrings in Russian.transliterate [Alex Fortuna]
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 Yaroslav Markin
1
+ Copyright (c) 2008-2010 Yaroslav Markin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -28,16 +28,14 @@ h2. Что такое I18n
28
28
 
29
29
  h1. Требования
30
30
 
31
- * Ruby 1.8 (тестировалось на 1.8.6);
32
- * Для использования с Rails нужна версия не ниже 2.2;
31
+ * Ruby 1.8 (тестировалось на 1.8.7);
32
+ * Для использования с Rails нужна версия не ниже 2.2, желательно -- 2.3.5;
33
33
  * Для тестирования библиотеки вам понадобится RSpec.
34
34
 
35
35
  h1. Установка
36
36
 
37
37
  Страница Russian на github -- "http://github.com/yaroslav/russian/":http://github.com/yaroslav/russian/
38
38
 
39
- Gem можно устанавливать с "Gemcutter":http://gemcutter.org (предпочтительно) и с RubyForge.
40
-
41
39
  Для установки:
42
40
 
43
41
  @gem install russian@
@@ -50,11 +48,11 @@ h2. Ruby on Rails
50
48
 
51
49
  "Релизные" версии библиотеки для стабильных версий Rails.
52
50
 
53
- В файле @config/environment.rb@ сделайте ссылку на gem @russian@ с Gemcutter:
51
+ В файле @config/environment.rb@ сделайте ссылку на gem @russian@:
54
52
 
55
53
  <pre><code>
56
54
  Rails::Initializer.run do |config|
57
- config.gem 'russian', :source => 'http://gemcutter.org'
55
+ config.gem 'russian'
58
56
  end
59
57
  </code></pre>
60
58
 
@@ -72,6 +70,8 @@ end
72
70
 
73
71
  Для Windows можно использовать версию git, расположенную по адресу: "http://code.google.com/p/msysgit/":http://code.google.com/p/msysgit/
74
72
 
73
+ Также проверьте наличие других веток на странице russian на GutHub -- возможно, уже есть версия, уже поддерживающая последнюю нерелизную версию Rails или i18n.
74
+
75
75
  h1. Использование
76
76
 
77
77
  При загрузке Russian включает:
@@ -291,6 +291,7 @@ h1. Авторы
291
291
  * "Антона Агеева":http://blog.antage.name/
292
292
  * "Александра Семенова":http://rotuka.com/
293
293
  * "valodzka":http://github.com/valodzka
294
+ * "Николая Немшилова":http://github.com/MadRabbit
294
295
 
295
296
  Огромное спасибо:
296
297
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rubygems/specification'
5
5
  require 'date'
6
6
 
7
7
  GEM = "russian"
8
- GEM_VERSION = "0.2.5"
8
+ GEM_VERSION = "0.2.6"
9
9
  AUTHOR = "Yaroslav Markin"
10
10
  EMAIL = "yaroslav@markin.net"
11
11
  HOMEPAGE = "http://github.com/yaroslav/russian/"
@@ -29,7 +29,7 @@ module Russian
29
29
  module VERSION
30
30
  MAJOR = 0
31
31
  MINOR = 2
32
- TINY = 5
32
+ TINY = 6
33
33
 
34
34
  STRING = [MAJOR, MINOR, TINY].join('.')
35
35
  end
@@ -32,7 +32,9 @@ module I18n
32
32
  #
33
33
  # Note that it differs from <tt>localize</tt> in Simple< backend by checking for
34
34
  # "standalone" month name/day name keys in translation and using them if available.
35
- def localize(locale, object, format = :default)
35
+ #
36
+ # <tt>options</tt> parameter added for i18n-0.3 compliance.
37
+ def localize(locale, object, format = :default, options = nil)
36
38
  raise ArgumentError, "Object must be a Date, DateTime or Time object. #{object.inspect} given." unless object.respond_to?(:strftime)
37
39
 
38
40
  type = object.respond_to?(:sec) ? 'time' : 'date'
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: russian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 6
9
+ version: 0.2.6
5
10
  platform: ruby
6
11
  authors:
7
12
  - Yaroslav Markin
@@ -9,7 +14,7 @@ autorequire: russian
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-12-23 00:00:00 +03:00
17
+ date: 2010-03-25 00:00:00 +03:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -85,18 +90,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
90
  requirements:
86
91
  - - ">="
87
92
  - !ruby/object:Gem::Version
93
+ segments:
94
+ - 0
88
95
  version: "0"
89
- version:
90
96
  required_rubygems_version: !ruby/object:Gem::Requirement
91
97
  requirements:
92
98
  - - ">="
93
99
  - !ruby/object:Gem::Version
100
+ segments:
101
+ - 0
94
102
  version: "0"
95
- version:
96
103
  requirements: []
97
104
 
98
105
  rubyforge_project:
99
- rubygems_version: 1.3.5
106
+ rubygems_version: 1.3.6
100
107
  signing_key:
101
108
  specification_version: 3
102
109
  summary: Russian language support for Ruby and Rails