rutils 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +4 -0
  2. data/Rakefile.rb +128 -0
  3. data/init.rb +6 -0
  4. data/lib/rutils.rb +1 -1
  5. metadata +5 -3
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Версия 0.2.3 - 27.09.2007
2
+ * Кошмар - в новой версии rubygems изменилась семантика s.files из-за чего мы забыли все файлы в корневой директории
3
+ - включая init.rb (julik)
4
+
1
5
  Версия 0.2.2 - 24.09.2007
2
6
  * Gilenson - обрабатываем акронимы по принципу Textile (zajats, julik)
3
7
  * Gilenson - отформатирован под 2 пробела (julik)
data/Rakefile.rb ADDED
@@ -0,0 +1,128 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/testtask'
4
+ require 'rake/rdoctask'
5
+ require 'rake/packagetask'
6
+ require 'rake/gempackagetask'
7
+ require 'rake/contrib/rubyforgepublisher'
8
+ require 'fileutils'
9
+ require 'lib/rutils'
10
+
11
+ begin
12
+ require 'xforge'
13
+ rescue LoadError
14
+ end
15
+
16
+ PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
17
+ PKG_NAME = 'rutils'
18
+ PKG_VERSION = RuTils::VERSION
19
+ PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
20
+ PKG_DESTINATION = "../#{PKG_NAME}"
21
+ PKG_SUMMARY = %q{ Simple processing of russian strings }
22
+ PKG_DESCRIPTION = %q{ Allows simple processing of russian strings - transliteration, numerals as text and HTML beautification }
23
+ PKG_HOMEPAGE = 'http://rubyforge.org/projects/rutils'
24
+ PKG_EMAIL = 'me@julik.nl'
25
+ PKG_MAINTAINER = 'Julian "Julik" Tarkhanov'
26
+
27
+ RELEASE_NAME = "rutils-#{PKG_VERSION}"
28
+
29
+ RUBY_FORGE_PROJECT = "rutils"
30
+ RUBY_FORGE_USER = ENV['RUBY_FORGE_USER'] ? ENV['RUBY_FORGE_USER'] : "julik"
31
+
32
+ # нам нужна документация в Юникоде. А вы думали?
33
+ PKG_RDOC_OPTS = ['--main=README',
34
+ '--line-numbers',
35
+ '--webcvs=http://rubyforge.org/cgi-bin/viewcvs.cgi/rutils/%s?cvsroot=rutils',
36
+ '--charset=utf-8',
37
+ '--promiscuous']
38
+
39
+ task :default => [ :test ]
40
+
41
+ desc "Run all tests (requires BlueCloth, RedCloth and Rails for integration tests)"
42
+ Rake::TestTask.new("test") { |t|
43
+ t.libs << "test"
44
+ t.pattern = 'test/t_*.rb'
45
+ t.verbose = true
46
+ }
47
+
48
+ desc "Report KLOCs"
49
+ task :stats do
50
+ require 'code_statistics'
51
+ CodeStatistics.new(
52
+ ["Libraries", "lib"],
53
+ ["Units", "test"]
54
+ ).to_s
55
+ end
56
+
57
+ desc "Generate RDoc documentation"
58
+ Rake::RDocTask.new("doc") do |rdoc|
59
+ rdoc.rdoc_dir = 'doc'
60
+ rdoc.title = PKG_SUMMARY
61
+ rdoc.rdoc_files.include('README')
62
+ rdoc.rdoc_files.include('CHANGELOG')
63
+ rdoc.rdoc_files.include('TODO')
64
+ rdoc.options = PKG_RDOC_OPTS
65
+ rdoc.rdoc_files.include FileList['lib/*.rb', 'lib/**/*.rb']
66
+ end
67
+
68
+ spec = Gem::Specification.new do |s|
69
+ s.platform = Gem::Platform::RUBY
70
+ s.name = PKG_NAME
71
+ s.summary = PKG_SUMMARY
72
+ s.description = PKG_DESCRIPTION
73
+ s.version = PKG_VERSION
74
+
75
+ s.author = PKG_MAINTAINER
76
+ s.email = PKG_EMAIL
77
+ s.rubyforge_project = RUBY_FORGE_PROJECT
78
+ s.homepage = PKG_HOMEPAGE
79
+
80
+ s.has_rdoc = true
81
+ s.files = FileList["{bin,test,lib}/**/*"].exclude("rdoc").exclude(".svn").exclude(".CVS").exclude(".DS_Store").to_a +
82
+ %w(CHANGELOG init.rb Rakefile.rb README TODO)
83
+ s.require_path = "lib"
84
+ s.autorequire = "rutils"
85
+ s.test_file = "test/run_tests.rb"
86
+ s.has_rdoc = true
87
+ s.extra_rdoc_files = ["README", "TODO", "CHANGELOG"]
88
+ s.rdoc_options = PKG_RDOC_OPTS
89
+ s.executables << 'gilensize'
90
+ s.executables << 'rutilize'
91
+ end
92
+
93
+ Rake::GemPackageTask.new(spec) do |p|
94
+ p.gem_spec = spec
95
+ p.need_tar = true
96
+ p.need_zip = true
97
+ end
98
+
99
+
100
+ desc "Remove packaging products (doc and pkg) - they are not source-managed"
101
+ task :clobber do
102
+ `rm -rf ./doc`
103
+ `rm -rf ./pkg`
104
+ end
105
+
106
+ desc "Publish the new docs"
107
+ task :publish_docs => [:clobber, :doc] do
108
+ push_docs
109
+ end
110
+
111
+ desc "Push docs to servers"
112
+ task :push_docs do
113
+ user = "#{ENV['USER']}@rubyforge.org"
114
+ project = '/var/www/gforge-projects/rutils'
115
+ local_dir = 'doc'
116
+ [
117
+ Rake::SshDirPublisher.new( user, project, local_dir),
118
+ Rake::SshDirPublisher.new('julik', '~/www/code/rutils', local_dir),
119
+
120
+ ].each { |p| p.upload }
121
+ end
122
+
123
+
124
+ desc "Publish the release files to RubyForge."
125
+ task :release => [:clobber, :package] do
126
+ cvs_aware_revision = 'r_' + PKG_VERSION.gsub(/-|\./, '_')
127
+ `cvs tag #{cvs_aware_revision} .`
128
+ end
data/init.rb ADDED
@@ -0,0 +1,6 @@
1
+ =begin
2
+ Этот файл - заглушка для Rails-плагина. Если поместить rutils в папку vendor/plugins RuTils будет
3
+ автоматически вгружен в ваше Rails-приложение
4
+ =end
5
+ require File.join(File.dirname(__FILE__), 'lib', 'rutils')
6
+ RuTils::overrides = true
data/lib/rutils.rb CHANGED
@@ -6,7 +6,7 @@ module RuTils
6
6
  INSTALLATION_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../') #:nodoc:
7
7
  MAJOR = 0
8
8
  MINOR = 2
9
- TINY = 2
9
+ TINY = 3
10
10
 
11
11
  # Версия RuTils
12
12
  VERSION = [MAJOR, MINOR ,TINY].join('.') #:nodoc:
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: rutils
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.2
7
- date: 2007-09-24 00:00:00 +02:00
6
+ version: 0.2.3
7
+ date: 2007-09-27 00:00:00 +02:00
8
8
  summary: Simple processing of russian strings
9
9
  require_paths:
10
10
  - lib
@@ -58,9 +58,11 @@ files:
58
58
  - lib/transliteration/bidi.rb
59
59
  - lib/transliteration/simple.rb
60
60
  - lib/transliteration/transliteration.rb
61
+ - CHANGELOG
62
+ - init.rb
63
+ - Rakefile.rb
61
64
  - README
62
65
  - TODO
63
- - CHANGELOG
64
66
  test_files:
65
67
  - test/run_tests.rb
66
68
  rdoc_options: