kyanite 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/0_rake_test.bat +2 -1
- data/1_rake_install_gem.bat +1 -1
- data/4_ruby_script_console.bat +2 -1
- data/Div +0 -0
- data/History.txt +2 -0
- data/License.txt +0 -0
- data/Manifest.txt +2 -14
- data/README.txt +4 -0
- data/Rakefile.rb +32 -30
- data/init.rb +0 -0
- data/lib/kyanite.rb +3 -3
- data/lib/kyanite/array.rb +0 -0
- data/lib/kyanite/array/array.rb +5 -31
- data/lib/kyanite/array/array2.rb +0 -0
- data/lib/kyanite/array/matrix2.rb +0 -0
- data/lib/kyanite/array_of_enumerables.rb +0 -0
- data/lib/kyanite/array_of_numerics.rb +0 -0
- data/lib/kyanite/array_of_strings.rb +0 -0
- data/lib/kyanite/basics.rb +0 -0
- data/lib/kyanite/dictionary.rb +2 -3
- data/lib/kyanite/enumerable.rb +0 -0
- data/lib/kyanite/enumerable/enumerable_enumerables.rb +1 -0
- data/lib/kyanite/enumerable/enumerable_numerics.rb +1 -1
- data/lib/kyanite/enumerable/enumerable_strings.rb +1 -0
- data/lib/kyanite/enumerable/structure.rb +5 -1
- data/lib/kyanite/general.rb +0 -0
- data/lib/kyanite/general/callerutils.rb +0 -0
- data/lib/kyanite/general/classutils.rb +4 -4
- data/lib/kyanite/general/kernel.rb +9 -12
- data/lib/kyanite/general/nil.rb +3 -1
- data/lib/kyanite/general/object.rb +2 -5
- data/lib/kyanite/general/true_false.rb +0 -0
- data/lib/kyanite/general/undoable.rb +0 -0
- data/lib/kyanite/hash.rb +8 -13
- data/lib/kyanite/matrix2.rb +0 -0
- data/lib/kyanite/nil.rb +0 -0
- data/lib/kyanite/numeric.rb +0 -0
- data/lib/kyanite/numeric/float.rb +0 -0
- data/lib/kyanite/numeric/integer.rb +0 -0
- data/lib/kyanite/numeric/numeric.rb +0 -0
- data/lib/kyanite/operation.rb +0 -0
- data/lib/kyanite/operation/call_tracker.rb +0 -0
- data/lib/kyanite/operation/rake.rb +0 -0
- data/lib/kyanite/operation/regexp.rb +0 -0
- data/lib/kyanite/operation/unit_test.rb +2 -5
- data/lib/kyanite/optimizer.rb +0 -1
- data/lib/kyanite/rake.rb +0 -0
- data/lib/kyanite/range.rb +0 -0
- data/lib/kyanite/set.rb +0 -1
- data/lib/kyanite/string.rb +1 -1
- data/lib/kyanite/string/cast.rb +0 -0
- data/lib/kyanite/string/chars.rb +24 -28
- data/lib/kyanite/string/chars_const.rb +12 -12
- data/lib/kyanite/string/diff.rb +0 -0
- data/lib/kyanite/string/div.rb +0 -0
- data/lib/kyanite/string/include.rb +0 -0
- data/lib/kyanite/string/list.rb +0 -0
- data/lib/kyanite/string/nested.rb +0 -0
- data/lib/kyanite/string/random.rb +1 -0
- data/lib/kyanite/string/split.rb +0 -0
- data/lib/kyanite/symbol.rb +0 -0
- data/lib/kyanite/tree.rb +51 -16
- data/lib/kyanite/undoable.rb +0 -0
- data/lib/kyanite/unit_test.rb +0 -0
- data/script/{console → console.rb} +0 -0
- data/smart_load_path.rb +6 -0
- data/test/_start_all.rb +3 -0
- data/test/array/test_array.rb +2 -9
- data/test/array/test_matrix2.rb +1 -5
- data/test/enumerable/test_enumerable_enumerables.rb +1 -4
- data/test/enumerable/test_enumerable_numerics.rb +35 -38
- data/test/enumerable/test_enumerable_strings.rb +1 -4
- data/test/enumerable/test_structure.rb +1 -4
- data/test/general/test_classutils.rb +1 -4
- data/test/general/test_nil.rb +1 -4
- data/test/general/test_object.rb +1 -3
- data/test/general/test_true_false.rb +1 -4
- data/test/numeric/test_numeric_integer.rb +1 -3
- data/test/string/test_cast.rb +2 -4
- data/test/string/test_chars.rb +19 -20
- data/test/string/test_diff.rb +2 -4
- data/test/string/test_list.rb +3 -4
- data/test/string/test_nested.rb +2 -4
- data/test/string/test_split.rb +2 -4
- data/test/test_dictionary.rb +2 -3
- data/test/test_hash.rb +2 -3
- data/test/test_optimizer.rb +2 -3
- data/test/test_range.rb +2 -3
- data/test/test_set.rb +17 -16
- data/test/test_tree.rb +9 -7
- metadata +105 -89
- data/config/website.yml +0 -2
- data/lib/kyanite/smart_load_path.rb +0 -2
- data/lib/kyanite/string/mgsub.rb +0 -39
- data/script/console.cmd +0 -1
- data/script/destroy +0 -14
- data/script/destroy.cmd +0 -1
- data/script/generate +0 -14
- data/script/generate.cmd +0 -1
- data/script/txt2html +0 -82
- data/script/txt2html.cmd +0 -1
- data/tasks/deployment.rake +0 -92
- data/tasks/documentation.rake +0 -28
- data/tasks/environment.rake +0 -7
data/script/txt2html.cmd
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@ruby script/txt2html %*
|
data/tasks/deployment.rake
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
|
2
|
-
# Task :install_gem_no_doc
|
3
|
-
#
|
4
|
-
desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
|
5
|
-
task :install_gem_no_doc => [:clean, :package] do
|
6
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
|
7
|
-
end
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
# Task :publish_docs korrigieren
|
12
|
-
#
|
13
|
-
remove_task :publish_docs
|
14
|
-
desc 'Publish RDoc to RubyForge.'
|
15
|
-
task :publish_docs => [:clean, :docs] do
|
16
|
-
#task :publish_docs do
|
17
|
-
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
|
18
|
-
host = "#{config["username"]}@rubyforge.org"
|
19
|
-
remote_dir = "/var/www/gforge-projects/#{$hoe.rubyforge_name}"
|
20
|
-
local_dir = 'doc'
|
21
|
-
sh %{rsync #{$hoe.rsync_args} #{local_dir}/ #{host}:#{remote_dir}}
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
# Task :release korrigieren
|
27
|
-
# no explicit version needed
|
28
|
-
#
|
29
|
-
remove_task :release
|
30
|
-
desc 'Package and upload the actual version to rubyforge.'
|
31
|
-
task :release => [:clean, :package] do |t|
|
32
|
-
pkg = "pkg/#{$hoe.name}-#{Kyanite::VERSION}"
|
33
|
-
rf = RubyForge.new.configure
|
34
|
-
puts "Logging in"
|
35
|
-
rf.login
|
36
|
-
c = rf.userconfig
|
37
|
-
c["release_notes"] = $hoe.description if $hoe.description
|
38
|
-
c["release_changes"] = $hoe.changes if $hoe.changes
|
39
|
-
c["preformatted"] = true
|
40
|
-
|
41
|
-
files = ["#{pkg}.tgz", "#{pkg}.gem"].compact
|
42
|
-
puts "Releasing #{$hoe.name} #{Kyanite::VERSION}"
|
43
|
-
rf.add_release $hoe.rubyforge_name, $hoe.name, Kyanite::VERSION, *files
|
44
|
-
end
|
45
|
-
|
46
|
-
|
47
|
-
# Task :post_news korrigieren
|
48
|
-
#
|
49
|
-
remove_task :post_news
|
50
|
-
desc 'Post news to rubyforge.'
|
51
|
-
task :post_news do
|
52
|
-
require 'rubyforge'
|
53
|
-
rf = RubyForge.new.configure
|
54
|
-
rf.login
|
55
|
-
rf.post_news( $hoe.rubyforge_name,
|
56
|
-
"#{$hoe.name} #{Kyanite::VERSION} Released", # subject
|
57
|
-
"#{$hoe.description}\n\nCheck at http://#{$hoe.rubyforge_name}.rubyforge.org".rdoc_to_markdown
|
58
|
-
)
|
59
|
-
puts "News posted to rubyforge"
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
# Task :deploy
|
70
|
-
# alles auf einmal
|
71
|
-
#
|
72
|
-
desc 'publish_docs, release, post_news'
|
73
|
-
task :deploy => [:publish_docs, :sleep_5, :release, :sleep_5, :post_news, :sleep_5 ] do
|
74
|
-
puts
|
75
|
-
puts "#{$hoe.name}-#{Kyanite::VERSION} deployed."
|
76
|
-
puts "Check at http://#{$hoe.rubyforge_name}.rubyforge.org"
|
77
|
-
# puts "Remember to create SVN tag:"
|
78
|
-
# puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
79
|
-
# "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
80
|
-
# puts "Suggested comment:"
|
81
|
-
# puts "Tagging release #{CHANGES}"
|
82
|
-
end
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
namespace :manifest do
|
88
|
-
desc 'Recreate Manifest.txt to include ALL files'
|
89
|
-
task :refresh do
|
90
|
-
`rake check_manifest | patch -p0 > Manifest.txt`
|
91
|
-
end
|
92
|
-
end
|
data/tasks/documentation.rake
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
# ----------------------------------------------------------------------------------------------
|
3
|
-
# Documentation
|
4
|
-
#
|
5
|
-
# http://github.com/mislav/hanna/tree/master
|
6
|
-
|
7
|
-
# instead of 'rake/rdoctask':
|
8
|
-
require 'hanna/rdoctask'
|
9
|
-
|
10
|
-
desc 'Generate RDoc documentation for Kyanite'
|
11
|
-
Rake::RDocTask.new do |rdoc|
|
12
|
-
rdoc.rdoc_dir = 'doc'
|
13
|
-
rdoc.title = "Kyanite - #{$hoe.summary}"
|
14
|
-
|
15
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
16
|
-
rdoc.rdoc_files.include('test/**/test_*.rb')
|
17
|
-
rdoc.rdoc_files.include('README.txt', 'License.txt', 'Div')
|
18
|
-
|
19
|
-
rdoc.rdoc_files.exclude('lib/kyanite/array/array2')
|
20
|
-
rdoc.rdoc_files.exclude('lib/kyanite/array/matrix2')
|
21
|
-
rdoc.rdoc_files.exclude('lib/kyanite/operation/call_tracker')
|
22
|
-
#rdoc.rdoc_files.exclude('lib/kyanite.rb')
|
23
|
-
rdoc.options += [
|
24
|
-
'-SNapUq',
|
25
|
-
'-w4',
|
26
|
-
'--charset=utf8',
|
27
|
-
]
|
28
|
-
end
|