Skip to content

Commit

Permalink
rubygems-test support + rbx spec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
janlelis committed Feb 3, 2011
1 parent 47053c6 commit e59b367
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 11 deletions.
Empty file added .gemtest
Empty file.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
*.rbc
Rakefile.compiled.rbc
*.swp *.swp
*~ *~
pkg pkg
3 changes: 3 additions & 0 deletions CHANGELOG.rdoc
@@ -1,3 +1,6 @@
== 0.2.3 / 0.2.4
* Support for rubygems-test <gem-testers.org>

== 0.2.2 == 0.2.2
* Always return inspected string (even when errors happen) and endless-loop protection * Always return inspected string (even when errors happen) and endless-loop protection
* Recognize active record class descriptions * Recognize active record class descriptions
Expand Down
12 changes: 7 additions & 5 deletions Gemfile
@@ -1,7 +1,9 @@
source :rubygems source :rubygems


group :dev do gemspec
gem 'rspec'
gem 'rspec-core' #group :dev do
gem 'zucker', '>=9' # gem 'rspec'
end # gem 'rspec-core'
# gem 'zucker', '>=9'
#end
6 changes: 6 additions & 0 deletions Gemfile.lock
@@ -1,3 +1,8 @@
PATH
remote: .
specs:
wirb (0.2.4)

GEM GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
Expand All @@ -19,4 +24,5 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
rspec rspec
rspec-core rspec-core
wirb!
zucker (>= 9) zucker (>= 9)
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -3,6 +3,7 @@ require 'rake/rdoctask'
require 'fileutils' require 'fileutils'
require "rspec/core/rake_task" require "rspec/core/rake_task"
task :default => :spec task :default => :spec
task :test => :spec


RSpec::Core::RakeTask.new(:spec) do |t| RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = [ t.rspec_opts = [
Expand Down
2 changes: 1 addition & 1 deletion lib/wirb/version.rb
@@ -1,3 +1,3 @@
module Wirb module Wirb
VERSION = '0.2.2' VERSION = '0.2.4'
end end
6 changes: 4 additions & 2 deletions spec/spec_helper.rb
@@ -1,5 +1,7 @@
require File.dirname(__FILE__) + '/../lib/wirb' unless defined? Wirb #require File.dirname(__FILE__) + '/../lib/wirb' unless defined? Wirb
require File.dirname(__FILE__) + '/../lib/wirb/wp' #require File.dirname(__FILE__) + '/../lib/wirb/wp'
require 'wirb'
require 'wirb/wp'
require 'zucker/engine' require 'zucker/engine'
require 'zucker/version' require 'zucker/version'


Expand Down
4 changes: 2 additions & 2 deletions spec/tokenizer_nested_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe tokenizer(__FILE__) do describe tokenizer(__FILE__) do
after :each do check_value end after :each do check_value end


please do check [2,'sdf',:hallosfe, /34jf3/, [[[[]]]], {{5=> "4"} => {Set.new => binding}}] please do check [2,'sdf',:hallosfe, /34jf3/, [[[[]]]], {{5=> "4"} => {Set.new => Object.new}}]
tokens.should be_like [ tokens.should be_like [
[:open_array, "["], [:open_array, "["],
[:number, "2"], [:number, "2"],
Expand Down Expand Up @@ -52,7 +52,7 @@
[:close_object, ">"], [:close_object, ">"],
[:refers, "=>"], [:refers, "=>"],
[:open_object, "#<"], [:open_object, "#<"],
[:object_class, "Binding"], [:object_class, "Object"],
[:object_description_prefix, ":"], [:object_description_prefix, ":"],
[:object_addr, OBJECT_ID], [:object_addr, OBJECT_ID],
[:close_object, ">"], [:close_object, ">"],
Expand Down
5 changes: 4 additions & 1 deletion wirb.gemspec
Expand Up @@ -12,7 +12,10 @@ Gem::Specification.new do |s|
s.description = "Colorizes your irb results. It's based on Wirble but only provides result highlighting. Just call Wirb.start and enjoy the colors ;)." s.description = "Colorizes your irb results. It's based on Wirble but only provides result highlighting. Just call Wirb.start and enjoy the colors ;)."
s.required_rubygems_version = '>= 1.3.6' s.required_rubygems_version = '>= 1.3.6'
s.required_ruby_version = '>= 1.8.7' s.required_ruby_version = '>= 1.8.7'
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile wirb.gemspec} s.files = Dir.glob(%w[{lib,test,spec}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile wirb.gemspec .gemtest}
s.extra_rdoc_files = ["README.rdoc", "COPYING"] s.extra_rdoc_files = ["README.rdoc", "COPYING"]
s.license = 'MIT' s.license = 'MIT'
s.add_development_dependency 'rspec'
s.add_development_dependency 'rspec-core'
s.add_development_dependency 'zucker', '>=9'
end end

0 comments on commit e59b367

Please sign in to comment.