rutils 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Rakefile.rb +8 -2
- data/init.rb +3 -2
- data/lib/rutils.rb +6 -2
- data/lib/version.rb +1 -1
- data/test/extras/integration_rails_helpers.rb +1 -1
- metadata +7 -5
data/History.txt
CHANGED
data/Rakefile.rb
CHANGED
@@ -14,7 +14,13 @@ begin
|
|
14
14
|
Hoe::RUBY_FLAGS.replace ENV['RUBY_FLAGS'] || "-I#{%w(lib test).join(File::PATH_SEPARATOR)}" +
|
15
15
|
(Hoe::RUBY_DEBUG ? " #{RUBY_DEBUG}" : '')
|
16
16
|
|
17
|
-
|
17
|
+
#Rake::RDocTask.class_eval do
|
18
|
+
# alias_method :_odefine, :define
|
19
|
+
# def define; @options.unshift(*DOCOPTS); _odefine; end
|
20
|
+
#end
|
21
|
+
|
22
|
+
rutils = Hoe.spec('rutils') do |p|
|
23
|
+
p.version = RuTils::VERSION
|
18
24
|
p.name = "rutils"
|
19
25
|
p.author = ["Julian 'Julik' Tarkhanov", "Danil Ivanov", "Yaroslav Markin"]
|
20
26
|
p.email = ['me@julik.nl', 'yaroslav@markin.net']
|
@@ -35,7 +41,7 @@ rescue LoadError
|
|
35
41
|
desc "Run all tests (requires BlueCloth, RedCloth and Rails for integration tests)"
|
36
42
|
Rake::TestTask.new("test") do |t|
|
37
43
|
t.libs << "test"
|
38
|
-
t.pattern = 'test/
|
44
|
+
t.pattern = 'test/test_*.rb'
|
39
45
|
t.verbose = true
|
40
46
|
end
|
41
47
|
end
|
data/init.rb
CHANGED
@@ -17,10 +17,11 @@ def russan_gem_required?
|
|
17
17
|
false
|
18
18
|
end
|
19
19
|
|
20
|
-
if russan_gem_required?
|
20
|
+
RUTILS_USE_DATE_HELPERS = if russan_gem_required?
|
21
21
|
STDERR.puts "RuTils: On this version of Rails use the `russian` gem for date helper overrides instead"
|
22
|
+
false
|
22
23
|
else
|
23
|
-
|
24
|
+
true
|
24
25
|
end
|
25
26
|
|
26
27
|
# textilize и markdown
|
data/lib/rutils.rb
CHANGED
@@ -49,6 +49,10 @@ module RuTils
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
[:pluralizer, :gilenson, :datetime, :transliteration, :
|
52
|
+
[:pluralizer, :gilenson, :datetime, :transliteration, :countries].each do | submodule |
|
53
53
|
require File.join(RuTils::INSTALLATION_DIRECTORY, "lib", submodule.to_s, submodule.to_s)
|
54
|
-
end
|
54
|
+
end
|
55
|
+
|
56
|
+
unless defined?(RUTILS_USE_DATE_HELPERS) && !RUTILS_USE_DATE_HELPERS
|
57
|
+
require File.join(RuTils::INSTALLATION_DIRECTORY, "lib", "integration", "integration")
|
58
|
+
end
|
data/lib/version.rb
CHANGED
@@ -66,7 +66,7 @@ class RailsHelpersOverrideTest < Test::Unit::TestCase
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def test_html_options
|
69
|
-
if ActionView::Helpers::DateHelper::DATE_HELPERS_RECEIVE_HTML_OPTIONS
|
69
|
+
if defined?(ActionView::Helpers::DateHelper::DATE_HELPERS_RECEIVE_HTML_OPTIONS)
|
70
70
|
assert_match /id\=\"foobar\"/m, @stub.select_month(TEST_DATE, {}, :id => "foobar"),
|
71
71
|
"Хелпер select_month принимает html_options"
|
72
72
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian 'Julik' Tarkhanov
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-
|
14
|
+
date: 2009-12-20 00:00:00 +01:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
requirements:
|
23
23
|
- - ">="
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version:
|
25
|
+
version: 2.3.3
|
26
26
|
version:
|
27
27
|
description: Simple processing of russian strings
|
28
28
|
email:
|
@@ -84,6 +84,8 @@ files:
|
|
84
84
|
- test/test_transliteration.rb
|
85
85
|
has_rdoc: true
|
86
86
|
homepage: http://rutils.rubyforge.org
|
87
|
+
licenses: []
|
88
|
+
|
87
89
|
post_install_message:
|
88
90
|
rdoc_options:
|
89
91
|
- --main
|
@@ -108,9 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
110
|
requirements: []
|
109
111
|
|
110
112
|
rubyforge_project: rutils
|
111
|
-
rubygems_version: 1.3.
|
113
|
+
rubygems_version: 1.3.5
|
112
114
|
signing_key:
|
113
|
-
specification_version:
|
115
|
+
specification_version: 3
|
114
116
|
summary: Simple processing of russian strings
|
115
117
|
test_files:
|
116
118
|
- test/test_datetime.rb
|