ruby-debug-ide 0.4.17.beta5 → 0.4.17.beta6

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.
data/Rakefile CHANGED
@@ -1,112 +1,45 @@
1
1
  require 'rubygems'
2
2
 
3
- require 'rake/gempackagetask'
3
+ require 'bundler/gem_tasks'
4
4
  require 'rake/rdoctask'
5
5
  require 'rake/testtask'
6
- require 'lib/ruby-debug/version'
7
- require 'date'
8
6
 
9
7
  desc 'Default: run unit tests.'
10
8
  task :default => [:test]
11
9
 
12
- # ------- Default Package ----------
13
- RUBY_DEBUG_IDE_VERSION = Debugger::IDE_VERSION
14
-
15
- FILES = FileList[
16
- # 'CHANGES',
17
- # 'ChangeLog',
18
- # 'ChangeLog.archive',
19
- 'MIT-LICENSE',
20
- 'Rakefile',
21
- 'bin/*',
22
- 'lib/**/*',
23
- # 'test/**/*',
24
- 'ext/mkrf_conf.rb'
25
- ]
26
-
27
- ide_spec = Gem::Specification.new do |spec|
28
- spec.name = "ruby-debug-ide"
29
-
30
- spec.homepage = "http://rubyforge.org/projects/debug-commons/"
31
- spec.summary = "IDE interface for ruby-debug."
32
- spec.description = <<-EOF
33
- An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
34
- EOF
35
-
36
- spec.version = RUBY_DEBUG_IDE_VERSION
37
-
38
- spec.author = "Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team"
39
- spec.email = "rubymine-feedback@jetbrains.com"
40
- spec.platform = Gem::Platform::RUBY
41
- spec.require_path = "lib"
42
- spec.bindir = "bin"
43
- spec.executables = ["rdebug-ide"]
44
- spec.files = FILES.to_a
45
-
46
- spec.extensions << "ext/mkrf_conf.rb" unless ENV['NO_EXT']
47
- spec.add_dependency("rake", ">= 0.8.1")
48
-
49
- spec.required_ruby_version = '>= 1.8.2'
50
- spec.date = DateTime.now
51
- spec.rubyforge_project = 'debug-commons'
52
-
53
- # rdoc
54
- spec.has_rdoc = false
55
- end
56
-
57
- # Rake task to build the default package
58
- Rake::GemPackageTask.new(ide_spec) do |pkg|
59
- pkg.need_tar = true
60
- end
61
-
62
10
  # Unit tests
63
11
  Rake::TestTask.new do |t|
64
12
  t.libs << "test"
65
13
  t.libs << "test-base"
66
- t.pattern = 'test/*_test.rb'
14
+ t.pattern = 'test/**/*_test.rb'
67
15
  t.verbose = true
68
16
  t.warning = false
69
17
  end
70
18
 
71
-
72
- desc "Create a GNU-style ChangeLog via svn2cl"
73
- task :ChangeLog do
74
- system("svn2cl --authors=svn2cl_usermap svn://rubyforge.org/var/svn/debug-commons/ruby-debug-ide/trunk -o ChangeLog")
75
- end
76
-
77
- #desc "Publish ruby-debug to RubyForge."
78
- #task :publish do
79
- # require 'rake/contrib/sshpublisher'
80
- #
81
- # # Get ruby-debug path
82
- # ruby_debug_path = File.expand_path(File.dirname(__FILE__))
83
- #
84
- # publisher = Rake::SshDirPublisher.new("kent@rubyforge.org",
85
- # "/var/www/gforge-projects/ruby-debug", ruby_debug_path)
86
- #end
87
- #
88
- #desc "Clear temp files"
89
- #task :clean do
90
- # cd "ext" do
91
- # if File.exists?("Makefile")
92
- # sh "make clean"
93
- # rm "Makefile"
94
- # end
95
- # end
96
- #end
97
- #
98
- ## --------- RDoc Documentation ------
99
- #desc "Generate rdoc documentation"
100
- #Rake::RDocTask.new("rdoc") do |rdoc|
101
- # rdoc.rdoc_dir = 'doc'
102
- # rdoc.title = "ruby-debug"
103
- # # Show source inline with line numbers
104
- # rdoc.options << "--inline-source" << "--line-numbers"
105
- # # Make the readme file the start page for the generated html
106
- # rdoc.options << '--main' << 'README'
107
- # rdoc.rdoc_files.include('bin/**/*',
108
- # 'lib/**/*.rb',
109
- # 'ext/**/ruby_debug.c',
110
- # 'README',
111
- # 'LICENSE')
112
- #end
19
+ desc "Create a ChangeLog"
20
+ # simple rake task to output a changelog between two commits, tags ...
21
+ # output is formatted simply, commits are grouped under each author name
22
+ desc "generate changelog with nice clean output"
23
+ task :changelog, :since_c, :until_c do |t,args|
24
+ since_c = args[:since_c] || `git tag | head -1`.chomp
25
+ until_c = args[:until_c]
26
+ cmd=`git log --pretty='format:%ci::%an <%ae>::%s::%H' #{since_c}..#{until_c}`
27
+
28
+ entries = Hash.new
29
+ changelog_content = String.new
30
+
31
+ cmd.split("\n").each do |entry|
32
+ date, author, subject, hash = entry.chomp.split("::")
33
+ entries[author] = Array.new unless entries[author]
34
+ day = date.split(" ").first
35
+ entries[author] << "#{subject} (#{hash})" unless subject =~ /Merge/
36
+ end
37
+
38
+ # generate clean output
39
+ entries.keys.each do |author|
40
+ changelog_content += author + "\n"
41
+ entries[author].reverse.each { |entry| changelog_content += " * #{entry}\n" }
42
+ end
43
+
44
+ puts changelog_content
45
+ end
File without changes
@@ -109,7 +109,8 @@ module Debugger
109
109
  @proceed.wait(@mutex)
110
110
  end
111
111
 
112
- bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode)
112
+ abs_prog_script = File.expand_path(Debugger::PROG_SCRIPT)
113
+ bt = debug_load(abs_prog_script, options.stop, options.load_mode)
113
114
  if bt && !bt.is_a?(SystemExit)
114
115
  $stderr.print bt.backtrace.map{|l| "\t#{l}"}.join("\n"), "\n"
115
116
  $stderr.print "Uncaught exception: #{bt}\n"
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Debugger
2
- IDE_VERSION='0.4.17.beta5'
2
+ IDE_VERSION='0.4.17.beta6'
3
3
  end
@@ -163,7 +163,7 @@ module Debugger
163
163
  value_str = $1
164
164
  end
165
165
  end
166
- value_str = "[Binary Data]" if value_str.is_binary_data?
166
+ value_str = "[Binary Data]" if (value_str.respond_to?('is_binary_data?') && value_str.is_binary_data?)
167
167
  print("<variable name=\"%s\" kind=\"%s\" value=\"%s\" type=\"%s\" hasChildren=\"%s\" objectId=\"%#+x\"/>",
168
168
  CGI.escapeHTML(name), kind, CGI.escapeHTML(value_str), value.class,
169
169
  has_children, value.respond_to?(:object_id) ? value.object_id : value.id)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-ide
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196321
4
+ hash: 62196327
5
5
  prerelease: 7
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 17
10
10
  - beta
11
- - 5
12
- version: 0.4.17.beta5
11
+ - 6
12
+ version: 0.4.17.beta6
13
13
  platform: ruby
14
14
  authors:
15
15
  - Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team
@@ -17,12 +17,9 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-04-27 00:00:00 +04:00
21
- default_executable:
20
+ date: 2011-07-18 00:00:00 Z
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
- name: rake
25
- prerelease: false
26
23
  requirement: &id001 !ruby/object:Gem::Requirement
27
24
  none: false
28
25
  requirements:
@@ -34,8 +31,10 @@ dependencies:
34
31
  - 8
35
32
  - 1
36
33
  version: 0.8.1
37
- type: :runtime
34
+ name: rake
35
+ prerelease: false
38
36
  version_requirements: *id001
37
+ type: :runtime
39
38
  description: |
40
39
  An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
41
40
 
@@ -47,8 +46,12 @@ extensions:
47
46
  extra_rdoc_files: []
48
47
 
49
48
  files:
49
+ - CHANGES
50
+ - ChangeLog
51
+ - ChangeLog.archive
50
52
  - MIT-LICENSE
51
53
  - Rakefile
54
+ - ext/mkrf_conf.rb
52
55
  - bin/rdebug-ide
53
56
  - lib/ruby-debug/command.rb
54
57
  - lib/ruby-debug/commands/breakpoints.rb
@@ -74,9 +77,7 @@ files:
74
77
  - lib/ruby-debug/version.rb
75
78
  - lib/ruby-debug/xml_printer.rb
76
79
  - lib/ruby-debug-ide.rb
77
- - ext/mkrf_conf.rb
78
- has_rdoc: true
79
- homepage: http://rubyforge.org/projects/debug-commons/
80
+ homepage: https://github.com/JetBrains/ruby-debug-ide
80
81
  licenses: []
81
82
 
82
83
  post_install_message:
@@ -109,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
110
  requirements: []
110
111
 
111
112
  rubyforge_project: debug-commons
112
- rubygems_version: 1.5.0
113
+ rubygems_version: 1.8.5
113
114
  signing_key:
114
115
  specification_version: 3
115
116
  summary: IDE interface for ruby-debug.