Skip to content

Commit

Permalink
Renamed gem from number_to_words_ru to numbers_and_words.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Mar 22, 2012
1 parent 14dfcb0 commit aa67a01
Show file tree
Hide file tree
Showing 26 changed files with 55 additions and 55 deletions.
20 changes: 10 additions & 10 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
== Number_to_words_ru
== numbers_and_words

Перевод чисел в слова при помощи библиотеки I18n.

Expand Down Expand Up @@ -64,27 +64,27 @@ Convert numbers to words using I18n library.
== Установка
Для установки:

gem install number_to_words_ru
gem install numbers_and_words

=== Ruby on Rails
Существует два варианта использования number_to_words вместе с Rails:
Существует два варианта использования numbers_and_words вместе с Rails:

1. Установка gem

==== Rails 3
В файле Gemfile сделайте ссылку на gem number_to_words_ru:
В файле Gemfile сделайте ссылку на gem numbers_and_words:

gem 'number_to_words'
gem 'numbers_and_words'

Чтобы установить gem, используйте команду

bundle install

==== Rails 2
В файле config/environment.rb сделайте ссылку на gem number_to_words_ru:
В файле config/environment.rb сделайте ссылку на gem numbers_and_words:

Rails::Initializer.run do |config|
config.gem 'number_to_words_ru'
config.gem 'numbers_and_words'
end

Чтобы установить gem, используйте команду
Expand All @@ -93,13 +93,13 @@ Convert numbers to words using I18n library.

2. Установка плагина

Для того, чтобы установить number_to_words_ru как плагин к Rails, используйте команду
Для того, чтобы установить numbers_and_words как плагин к Rails, используйте команду

script/plugin install git://github.com/kslazarev/number_to_words_ru.git
script/plugin install git://github.com/kslazarev/numbers_and_words.git

==== Использование в irb

require 'number_to_words'
require 'numbers_and_words'

== Автор

Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ end
require 'rake/gempackagetask'
require 'rubygems/specification'

GEM = "number_to_words_ru"
GEM = "numbers_and_words"
GEM_VERSION = "0.2.3"
AUTHOR = "Kirill Lazarev"
EMAIL = "k.s.lazarev@gmail.com"
HOMEPAGE = "http://github.com/kslazarev/number_to_words_ru"
HOMEPAGE = "http://github.com/kslazarev/numbers_and_words"
SUMMARY = "Simple convert number to russian words using I18N."
LICENSE = "MIT"

Expand Down
2 changes: 0 additions & 2 deletions lib/number_to_words_ru/array_additions.rb

This file was deleted.

3 changes: 0 additions & 3 deletions lib/number_to_words_ru/strategies.rb

This file was deleted.

3 changes: 0 additions & 3 deletions lib/number_to_words_ru/translations_helpers.rb

This file was deleted.

12 changes: 6 additions & 6 deletions lib/number_to_words_ru.rb → lib/numbers_and_words.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
require 'initializers/i18n'
require 'active_support/inflector'

require 'number_to_words_ru/translations_helpers'
require 'number_to_words_ru/strategies'
require 'number_to_words_ru/array_additions'
require 'number_to_words_ru/figures_array'
require 'numbers_and_words/translations_helpers'
require 'numbers_and_words/strategies'
require 'numbers_and_words/array_additions'
require 'numbers_and_words/figures_array'

require 'number_to_words_ru/core_ext/integer'
require 'number_to_words_ru/core_ext/array'
require 'numbers_and_words/core_ext/integer'
require 'numbers_and_words/core_ext/array'

module I18nInitialization
extend self
Expand Down
2 changes: 2 additions & 0 deletions lib/numbers_and_words/array_additions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'numbers_and_words/array_additions/helpers'
require 'numbers_and_words/array_additions/validations'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions lib/numbers_and_words/strategies.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require 'numbers_and_words/strategies/base'
require 'numbers_and_words/strategies/ru'
require 'numbers_and_words/strategies/en'
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions lib/numbers_and_words/translations_helpers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require 'numbers_and_words/translations_helpers/base'
require 'numbers_and_words/translations_helpers/ru'
require 'numbers_and_words/translations_helpers/en'
28 changes: 0 additions & 28 deletions number_to_words_ru.gemspec

This file was deleted.

28 changes: 28 additions & 0 deletions numbers_and_words.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = "numbers_and_words"
s.version = "0.2.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Kirill Lazarev"]
s.autorequire = "numbers_and_words"
s.date = "2011-12-15"
s.description = "Simple convert number to russian words using I18N."
s.email = "k.s.lazarev@gmail.com"
s.files = ["lib/initializers", "lib/initializers/i18n.rb", "lib/locales", "lib/locales/numbers.en.yml", "lib/locales/numbers.ru.yml", "lib/locales/plurals.rb", "lib/numbers_and_words", "lib/numbers_and_words/array_additions", "lib/numbers_and_words/array_additions/helpers.rb", "lib/numbers_and_words/array_additions/validations.rb", "lib/numbers_and_words/array_additions.rb", "lib/numbers_and_words/core_ext", "lib/numbers_and_words/core_ext/array.rb", "lib/numbers_and_words/core_ext/integer.rb", "lib/numbers_and_words/figures_array.rb", "lib/numbers_and_words/pluralization.rb", "lib/numbers_and_words/strategies", "lib/numbers_and_words/strategies/base.rb", "lib/numbers_and_words/strategies/en.rb", "lib/numbers_and_words/strategies/ru.rb", "lib/numbers_and_words/strategies.rb", "lib/numbers_and_words/translations_helpers", "lib/numbers_and_words/translations_helpers/base.rb", "lib/numbers_and_words/translations_helpers/en.rb", "lib/numbers_and_words/translations_helpers/ru.rb", "lib/numbers_and_words/translations_helpers.rb", "lib/numbers_and_words.rb", "spec/numbers_and_words", "spec/numbers_and_words/array", "spec/numbers_and_words/array/ru_spec.rb", "spec/numbers_and_words/integer", "spec/numbers_and_words/integer/ru_spec.rb", "spec/spec_helper.rb"]
s.homepage = "http://github.com/kslazarev/numbers_and_words"
s.licenses = ["MIT"]
s.require_paths = ["lib"]
s.rubygems_version = "1.8.10"
s.summary = "Simple convert number to russian words using I18N."

if s.respond_to? :specification_version then
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
end
end
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$TESTING=true
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require 'number_to_words_ru'
require 'numbers_and_words'

RSpec.configure do
include TranslationsHelpers::Base
Expand Down

0 comments on commit aa67a01

Please sign in to comment.