debuggie 0.9.0 → 1.0.0

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/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # A sample Gemfile
2
+ source :gemcutter
3
+
4
+ if RUBY_VERSION < "1.9"
5
+ gem "ruby-debug"
6
+ else
7
+ gem "ruby-debug19", :require => "ruby-debug"
8
+ end
9
+
10
+ group :test do
11
+ gem "rspec"
12
+ gem "rcov"
13
+ end
@@ -0,0 +1,30 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ columnize (0.3.1)
5
+ diff-lcs (1.1.2)
6
+ linecache (0.43)
7
+ rcov (0.9.8)
8
+ rspec (2.0.1)
9
+ rspec-core (~> 2.0.1)
10
+ rspec-expectations (~> 2.0.1)
11
+ rspec-mocks (~> 2.0.1)
12
+ rspec-core (2.0.1)
13
+ rspec-expectations (2.0.1)
14
+ diff-lcs (>= 1.1.2)
15
+ rspec-mocks (2.0.1)
16
+ rspec-core (~> 2.0.1)
17
+ rspec-expectations (~> 2.0.1)
18
+ ruby-debug (0.10.3)
19
+ columnize (>= 0.1)
20
+ ruby-debug-base (~> 0.10.3.0)
21
+ ruby-debug-base (0.10.3)
22
+ linecache (>= 0.3)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ rcov
29
+ rspec
30
+ ruby-debug
@@ -8,15 +8,11 @@ Gem install it or configure it in your *test* enviroment:
8
8
 
9
9
  gem install debuggie
10
10
 
11
- If you are using ruby 1.8.x:
11
+ Bundle install the dependency (ruby-debug or ruby-debug19):
12
12
 
13
- gem install ruby-debug
13
+ gem install bundler
14
+ bundle install
14
15
 
15
- Or ruby 1.9.x:
16
-
17
- gem install ruby-debug19
18
-
19
-
20
16
  = Using it
21
17
 
22
18
  Invoke debug in your dsl chain call:
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ begin
10
10
  gem.email = "guilherme.silveira@caelum.com.br"
11
11
  gem.homepage = "http://github.com/guilhermesilveira/debuggie"
12
12
  gem.authors = ["guilherme silveira"]
13
- gem.version = "0.9.0"
13
+ gem.version = "1.0.0"
14
14
  gem.add_development_dependency "rspec", ">= 1.2.9"
15
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
16
  end
@@ -19,7 +19,17 @@ rescue LoadError
19
19
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
20
  end
21
21
 
22
- task :default => :rdoc
22
+ require 'rspec'
23
+ require 'rspec/core'
24
+ require 'rspec/core/rake_task'
25
+ RSpec::Core::RakeTask.new(:spec) do |t|
26
+ # t.spec_files = FileList['spec_*.rb']
27
+ t.rspec_opts = ['--colour', '--format progress']
28
+ end
29
+
30
+ task :spec => :check_dependencies
31
+
32
+ task :default => :spec
23
33
 
24
34
  require 'rake/rdoctask'
25
35
  Rake::RDocTask.new do |rdoc|
@@ -0,0 +1,57 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{debuggie}
8
+ s.version = "1.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["guilherme silveira"]
12
+ s.date = %q{2010-10-30}
13
+ s.description = %q{A one liner debugger helper}
14
+ s.email = %q{guilherme.silveira@caelum.com.br}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "debuggie.gemspec",
28
+ "lib/core_ext/object.rb",
29
+ "lib/debuggie.rb",
30
+ "spec/debuggie_spec.rb",
31
+ "spec/spec.opts",
32
+ "spec/spec_helper.rb"
33
+ ]
34
+ s.homepage = %q{http://github.com/guilhermesilveira/debuggie}
35
+ s.rdoc_options = ["--charset=UTF-8"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = %q{1.3.7}
38
+ s.summary = %q{A one liner debugger helper}
39
+ s.test_files = [
40
+ "spec/debuggie_spec.rb",
41
+ "spec/spec_helper.rb"
42
+ ]
43
+
44
+ if s.respond_to? :specification_version then
45
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
+ s.specification_version = 3
47
+
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
50
+ else
51
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
55
+ end
56
+ end
57
+
@@ -1,7 +1,11 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
+ class Heaven
4
+ end
5
+
3
6
  describe "Debuggie" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
7
+ it "rocks" do
8
+ Heaven.should_receive :debugger
9
+ Heaven.debug
6
10
  end
7
11
  end
@@ -1,9 +1,5 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
  require 'debuggie'
4
- require 'spec'
5
- require 'spec/autorun'
6
-
7
- Spec::Runner.configure do |config|
8
-
9
- end
4
+ require 'rspec'
5
+ require 'rspec/autorun'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debuggie
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
+ - 1
7
8
  - 0
8
- - 9
9
9
  - 0
10
- version: 0.9.0
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - guilherme silveira
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-24 00:00:00 -02:00
18
+ date: 2010-10-30 00:00:00 -02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,9 +46,12 @@ extra_rdoc_files:
46
46
  files:
47
47
  - .document
48
48
  - .gitignore
49
+ - Gemfile
50
+ - Gemfile.lock
49
51
  - LICENSE
50
52
  - README.rdoc
51
53
  - Rakefile
54
+ - debuggie.gemspec
52
55
  - lib/core_ext/object.rb
53
56
  - lib/debuggie.rb
54
57
  - spec/debuggie_spec.rb