kyanite 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. data/.gemtest +0 -0
  2. data/0_rake_test.bat +2 -1
  3. data/1_rake_install_gem.bat +1 -1
  4. data/4_ruby_script_console.bat +2 -1
  5. data/Div +0 -0
  6. data/History.txt +2 -0
  7. data/License.txt +0 -0
  8. data/Manifest.txt +2 -14
  9. data/README.txt +4 -0
  10. data/Rakefile.rb +32 -30
  11. data/init.rb +0 -0
  12. data/lib/kyanite.rb +3 -3
  13. data/lib/kyanite/array.rb +0 -0
  14. data/lib/kyanite/array/array.rb +5 -31
  15. data/lib/kyanite/array/array2.rb +0 -0
  16. data/lib/kyanite/array/matrix2.rb +0 -0
  17. data/lib/kyanite/array_of_enumerables.rb +0 -0
  18. data/lib/kyanite/array_of_numerics.rb +0 -0
  19. data/lib/kyanite/array_of_strings.rb +0 -0
  20. data/lib/kyanite/basics.rb +0 -0
  21. data/lib/kyanite/dictionary.rb +2 -3
  22. data/lib/kyanite/enumerable.rb +0 -0
  23. data/lib/kyanite/enumerable/enumerable_enumerables.rb +1 -0
  24. data/lib/kyanite/enumerable/enumerable_numerics.rb +1 -1
  25. data/lib/kyanite/enumerable/enumerable_strings.rb +1 -0
  26. data/lib/kyanite/enumerable/structure.rb +5 -1
  27. data/lib/kyanite/general.rb +0 -0
  28. data/lib/kyanite/general/callerutils.rb +0 -0
  29. data/lib/kyanite/general/classutils.rb +4 -4
  30. data/lib/kyanite/general/kernel.rb +9 -12
  31. data/lib/kyanite/general/nil.rb +3 -1
  32. data/lib/kyanite/general/object.rb +2 -5
  33. data/lib/kyanite/general/true_false.rb +0 -0
  34. data/lib/kyanite/general/undoable.rb +0 -0
  35. data/lib/kyanite/hash.rb +8 -13
  36. data/lib/kyanite/matrix2.rb +0 -0
  37. data/lib/kyanite/nil.rb +0 -0
  38. data/lib/kyanite/numeric.rb +0 -0
  39. data/lib/kyanite/numeric/float.rb +0 -0
  40. data/lib/kyanite/numeric/integer.rb +0 -0
  41. data/lib/kyanite/numeric/numeric.rb +0 -0
  42. data/lib/kyanite/operation.rb +0 -0
  43. data/lib/kyanite/operation/call_tracker.rb +0 -0
  44. data/lib/kyanite/operation/rake.rb +0 -0
  45. data/lib/kyanite/operation/regexp.rb +0 -0
  46. data/lib/kyanite/operation/unit_test.rb +2 -5
  47. data/lib/kyanite/optimizer.rb +0 -1
  48. data/lib/kyanite/rake.rb +0 -0
  49. data/lib/kyanite/range.rb +0 -0
  50. data/lib/kyanite/set.rb +0 -1
  51. data/lib/kyanite/string.rb +1 -1
  52. data/lib/kyanite/string/cast.rb +0 -0
  53. data/lib/kyanite/string/chars.rb +24 -28
  54. data/lib/kyanite/string/chars_const.rb +12 -12
  55. data/lib/kyanite/string/diff.rb +0 -0
  56. data/lib/kyanite/string/div.rb +0 -0
  57. data/lib/kyanite/string/include.rb +0 -0
  58. data/lib/kyanite/string/list.rb +0 -0
  59. data/lib/kyanite/string/nested.rb +0 -0
  60. data/lib/kyanite/string/random.rb +1 -0
  61. data/lib/kyanite/string/split.rb +0 -0
  62. data/lib/kyanite/symbol.rb +0 -0
  63. data/lib/kyanite/tree.rb +51 -16
  64. data/lib/kyanite/undoable.rb +0 -0
  65. data/lib/kyanite/unit_test.rb +0 -0
  66. data/script/{console → console.rb} +0 -0
  67. data/smart_load_path.rb +6 -0
  68. data/test/_start_all.rb +3 -0
  69. data/test/array/test_array.rb +2 -9
  70. data/test/array/test_matrix2.rb +1 -5
  71. data/test/enumerable/test_enumerable_enumerables.rb +1 -4
  72. data/test/enumerable/test_enumerable_numerics.rb +35 -38
  73. data/test/enumerable/test_enumerable_strings.rb +1 -4
  74. data/test/enumerable/test_structure.rb +1 -4
  75. data/test/general/test_classutils.rb +1 -4
  76. data/test/general/test_nil.rb +1 -4
  77. data/test/general/test_object.rb +1 -3
  78. data/test/general/test_true_false.rb +1 -4
  79. data/test/numeric/test_numeric_integer.rb +1 -3
  80. data/test/string/test_cast.rb +2 -4
  81. data/test/string/test_chars.rb +19 -20
  82. data/test/string/test_diff.rb +2 -4
  83. data/test/string/test_list.rb +3 -4
  84. data/test/string/test_nested.rb +2 -4
  85. data/test/string/test_split.rb +2 -4
  86. data/test/test_dictionary.rb +2 -3
  87. data/test/test_hash.rb +2 -3
  88. data/test/test_optimizer.rb +2 -3
  89. data/test/test_range.rb +2 -3
  90. data/test/test_set.rb +17 -16
  91. data/test/test_tree.rb +9 -7
  92. metadata +105 -89
  93. data/config/website.yml +0 -2
  94. data/lib/kyanite/smart_load_path.rb +0 -2
  95. data/lib/kyanite/string/mgsub.rb +0 -39
  96. data/script/console.cmd +0 -1
  97. data/script/destroy +0 -14
  98. data/script/destroy.cmd +0 -1
  99. data/script/generate +0 -14
  100. data/script/generate.cmd +0 -1
  101. data/script/txt2html +0 -82
  102. data/script/txt2html.cmd +0 -1
  103. data/tasks/deployment.rake +0 -92
  104. data/tasks/documentation.rake +0 -28
  105. data/tasks/environment.rake +0 -7
data/script/txt2html.cmd DELETED
@@ -1 +0,0 @@
1
- @ruby script/txt2html %*
@@ -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
@@ -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
@@ -1,7 +0,0 @@
1
- task :ruby_env do
2
- RUBY_APP = if RUBY_PLATFORM =~ /java/
3
- "jruby"
4
- else
5
- "ruby"
6
- end unless defined? RUBY_APP
7
- end