rubyrun 0.9.0 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/README +50 -50
  2. data/bin/Rakefile +11 -0
  3. data/docs/{rubyrun-0.9.0.htm → rubyrun-0.9.5.htm} +2262 -2669
  4. data/docs/{rubyrun-0.9.0.pdf → rubyrun-0.9.5.pdf} +0 -0
  5. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/colorschememapping.xml +0 -0
  6. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/filelist.xml +1 -1
  7. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/header.htm +10 -13
  8. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image001.jpg +0 -0
  9. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image002.jpg +0 -0
  10. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image003.jpg +0 -0
  11. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image004.jpg +0 -0
  12. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image005.jpg +0 -0
  13. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image006.jpg +0 -0
  14. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image007.jpg +0 -0
  15. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image008.jpg +0 -0
  16. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image009.jpg +0 -0
  17. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image010.jpg +0 -0
  18. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image011.jpg +0 -0
  19. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image012.jpg +0 -0
  20. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image013.jpg +0 -0
  21. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image014.jpg +0 -0
  22. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image015.jpg +0 -0
  23. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image016.jpg +0 -0
  24. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image017.png +0 -0
  25. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image018.jpg +0 -0
  26. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image019.jpg +0 -0
  27. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image020.jpg +0 -0
  28. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image021.jpg +0 -0
  29. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/image022.png +0 -0
  30. data/docs/{rubyrun-0.9.0_files → rubyrun-0.9.5_files}/themedata.thmx +0 -0
  31. data/ext/extconf.rb +2 -1
  32. data/ext/{rubyrunnative__.bundle → rubyrunnative__ppc-darwin.bundle} +0 -0
  33. data/ext/{rubyrunnative__i386.bundle → rubyrunnative__x86-darwin.bundle} +0 -0
  34. data/ext/{rubyrunnative__linux.so → rubyrunnative__x86-linux.so} +0 -0
  35. data/ext/{rubyrunnative__.so → rubyrunnative__x86-mswin32.so} +0 -0
  36. data/lib/rubyrun/rubyrun.rb +2 -78
  37. data/lib/rubyrun/rubyrun_boot__.rb +79 -0
  38. data/lib/rubyrun/rubyrun_commander__.rb +6 -6
  39. data/lib/rubyrun/rubyrun_globals.rb +2 -1
  40. data/lib/rubyrun/rubyrun_initializer__.rb +34 -7
  41. data/lib/rubyrun/rubyrun_instrumentor__.rb +3 -3
  42. data/lib/rubyrun/rubyrun_monitor__.rb +2 -1
  43. data/lib/rubyrun/rubyrun_utils__.rb +7 -4
  44. metadata +48 -45
  45. data/Rakefile +0 -274
  46. data/bin/confgure +0 -2
  47. data/lib/rubyrunm.rb +0 -10
data/Rakefile DELETED
@@ -1,274 +0,0 @@
1
- require 'rubygems'
2
- Gem::manage_gems
3
-
4
- require 'rake/gempackagetask'
5
- require 'rake/packagetask'
6
- require 'rake/rdoctask'
7
- require 'rake/testtask'
8
- require 'ftools'
9
-
10
-
11
-
12
- PKG_NAME = "rubyrun"
13
- PKG_VERSION = "0.9.0"
14
-
15
- #TODO
16
- # COLLAPSE THE SVN FILE STRUCTURE INTO FLAT HIERARchy and
17
- # package the gem
18
-
19
- PRG_FILES = FileList[
20
- "Rakefile", "README", "LICENSE",
21
- "lib/**/*",
22
- "bin/**/*",
23
- "ext/**/*",
24
- "test/**/*",
25
- "docs/**/*",
26
- "etc/**/*",
27
- "html/**/*"
28
-
29
- ]
30
-
31
- # Don't need this as rake is smart, but just include it for safety
32
- PRG_FILES.exclude(%r(\.log$))
33
-
34
-
35
-
36
- nativeFiles = ["lib/rubyrun/rubyrunnative__.so", "lib/rubyrun/rubyrunnative__.bundle", "lib/rubyrun/rubyrunnative__linux.so"]
37
-
38
- p "Current Dir: " + Dir.pwd
39
-
40
- # File.safe_unlink(nativeFiles)
41
-
42
- # Call from a function; Once initialized spec is caching the previous file
43
- # values and trying to package them. As we don't want previous values to be
44
- # cached, calling it from function
45
-
46
- def generateGemSpec()
47
-
48
- spec = Gem::Specification.new do |s|
49
- s.name = PKG_NAME
50
- s.version = PKG_VERSION
51
- s.author = "RubySophic Inc"
52
- s.email = "info@rubysophic.com"
53
- s.homepage = "http://www.rubysophic.com"
54
- s.files = PRG_FILES
55
- s.require_path = '.'
56
- s.autorequire = "rubyrunm"
57
- s.has_rdoc = true
58
- s.extra_rdoc_files = ["README"]
59
- s.summary = "Software to diagnose and tune Ruby and Rails based applications"
60
- s.rubyforge_project = "rubyrunce"
61
- s.description = <<-EOF
62
- rubyrun is diagnostic software provided by RubySophic Inc to diagnose
63
- Ruby and Ruby/Rails based applications problems
64
-
65
- For more information, refer to the document in docs/RubyRun.htm bundled
66
- with the gem on usage, support, license etc
67
- EOF
68
-
69
- #s.files = FileList["{lib, test, ext}/**/*"].exclude("rdoc").to_a
70
-
71
- s.require_paths << "lib"
72
- s.require_paths << "lib/rubyrun"
73
-
74
- end
75
-
76
- return spec
77
-
78
- end
79
-
80
-
81
- task :buildwin do
82
-
83
- Dir.foreach("lib/rubyrun") { | file |
84
- if ((file =~ /rubyrunnative__.*/) != nil )
85
- p "Filename: " + file
86
- File.delete("lib/rubyrun/"+ file) if File.exist?("lib/rubyrun/"+ file)
87
- end
88
- }
89
-
90
- sleep 5
91
-
92
- File.copy("ext/rubyrunnative__.so", "lib/rubyrun/rubyrunnative__.so")
93
-
94
- sleep 5
95
-
96
- spec = generateGemSpec()
97
-
98
- Gem::manage_gems
99
- spec.platform = 'i586-mswin32'
100
- # spec.files << "lib/rubyrun/rubyrunnative__.so"
101
-
102
- builder = Gem::Builder.new(spec)
103
-
104
- builder.build
105
-
106
- Dir.foreach(Dir.pwd) { | file |
107
- if ((file =~ /.*\.gem/) != nil )
108
- File.move(file, "pkg")
109
- end
110
- }
111
-
112
- end
113
-
114
- task :buildlinux do
115
-
116
- Dir.foreach("lib/rubyrun") { | file |
117
- if ((file =~ /rubyrunnative__.*/) != nil )
118
- p "Filename: " + file
119
- File.delete("lib/rubyrun/"+ file) if File.exist?("lib/rubyrun/"+ file)
120
- end
121
- }
122
-
123
- sleep 5
124
-
125
- File.copy("ext/rubyrunnative__linux.so", "lib/rubyrun/rubyrunnative__.so")
126
-
127
- sleep 5
128
-
129
- spec = generateGemSpec()
130
-
131
- Gem::manage_gems
132
- spec.platform = 'i586-linux'
133
-
134
- builder = Gem::Builder.new(spec)
135
-
136
- builder.build
137
-
138
- Dir.foreach(Dir.pwd) { | file |
139
- if ((file =~ /.*\.gem/) != nil )
140
- File.move(file, "pkg")
141
- end
142
- }
143
-
144
- end
145
-
146
- task :buildosx_ppc do
147
-
148
- Dir.foreach("lib/rubyrun") { | file |
149
- if ((file =~ /rubyrunnative__.*/) != nil )
150
- p "Filename: " + file
151
- File.delete("lib/rubyrun/"+ file) if File.exist?("lib/rubyrun/"+ file)
152
- end
153
- }
154
-
155
- sleep 5
156
-
157
- File.copy("ext/rubyrunnative__.bundle", "lib/rubyrun/rubyrunnative__.bundle")
158
-
159
- sleep 5
160
-
161
- spec = generateGemSpec()
162
-
163
- Gem::manage_gems
164
- spec.platform = 'powerpc-darwin'
165
-
166
- builder = Gem::Builder.new(spec)
167
-
168
- builder.build
169
-
170
- Dir.foreach(Dir.pwd) { | file |
171
- if ((file =~ /.*\.gem/) != nil )
172
- File.move(file, "pkg")
173
- end
174
- }
175
-
176
-
177
- end
178
-
179
- task :buildosx_x86 do
180
-
181
- Dir.foreach("lib/rubyrun") { | file |
182
- if ((file =~ /rubyrunnative__.*/) != nil )
183
- p "Filename: " + file
184
- File.delete("lib/rubyrun/"+ file) if File.exist?("lib/rubyrun/"+ file)
185
- end
186
- }
187
-
188
- sleep 5
189
-
190
- File.copy("ext/rubyrunnative__i386.bundle", "lib/rubyrun/rubyrunnative__.bundle")
191
-
192
- sleep 5
193
-
194
- spec = generateGemSpec()
195
-
196
- Gem::manage_gems
197
- spec.platform = "i586-darwin"
198
-
199
- builder = Gem::Builder.new(spec)
200
-
201
- builder.build
202
-
203
- Dir.foreach(Dir.pwd) { | file |
204
- if ((file =~ /.*\.gem/) != nil )
205
- File.move(file, "pkg")
206
- end
207
- }
208
-
209
-
210
- end
211
-
212
- task :buildrubygem do
213
-
214
- Dir.foreach("lib/rubyrun") { | file |
215
- if ((file =~ /rubyrunnative__.*/) != nil )
216
- p "Filename: " + file
217
- File.delete("lib/rubyrun/"+ file)
218
- end
219
- }
220
-
221
- Gem::manage_gems
222
-
223
- spec = generateGemSpec()
224
-
225
- spec.extensions = ["ext/extconf.rb"]
226
- #s.test_file = "test/main_test.rb"
227
- spec.platform = Gem::Platform::RUBY
228
-
229
- builder = Gem::Builder.new(spec)
230
-
231
- builder.build
232
-
233
- Dir.foreach(Dir.pwd) { | file |
234
- if ((file =~ /.*\.gem/) != nil )
235
- File.move(file, "pkg")
236
- end
237
- }
238
-
239
- end
240
-
241
- task :default => [:test]
242
-
243
- Rake::TestTask.new(:test) do |t|
244
- t.test_files = FileList['test/*.rb']
245
- end
246
-
247
- task :upload do
248
- sh "scp -r html/* rubyrun@rubyforge.org:/var/www/gforge-projects/rubyrun"
249
- end
250
-
251
-
252
- desc "Create the RDOC html files"
253
-
254
- rd = Rake::RDocTask.new("rdoc") { |rdoc|
255
- rdoc.rdoc_dir = 'html'
256
- rdoc.title = "RubyRun"
257
- rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
258
- rdoc.rdoc_files.include('README', 'LICENSE')
259
- rdoc.rdoc_files.include('lib/**/*.rb')
260
- rdoc.rdoc_files.include('test/**/*.rb')
261
- }
262
-
263
-
264
- desc "Publish RubyRun Release to RubyForge"
265
-
266
- task :release => [ :package ] do
267
- require 'rubyforge'
268
-
269
- packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
270
-
271
- rubyforge = RubyForge.new
272
- rubyforge.login
273
- rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
274
- end
data/bin/confgure DELETED
@@ -1,2 +0,0 @@
1
- echo "Enter Working Dir"
2
- read workDir
data/lib/rubyrunm.rb DELETED
@@ -1,10 +0,0 @@
1
- require 'rubyrun'
2
- require 'rubyrun_buffer_mgr__'
3
- require 'rubyrun_dad__'
4
- require 'rubyrun_globals'
5
- require 'rubyrun_instrumentor__'
6
- require 'rubyrun_monitor__'
7
- require 'rubyrun_rss__'
8
- require 'rubyrun_tracer__'
9
- require 'rubyrun_utils__'
10
-