I honestly don't know which version of RSpec should be installed, I just use the newest version. I've had version mismatches before, but updating RSpec usually solved it. Eventually, I'd like to remove the dependency on RSpec and just use Test::Unit.
There shouldn't be anything else required to run the tests, just that some symbologies and outputters have dependencies that you need if you're going to run their tests. It will be pretty obvious what they are if you look at the files in question.
2) Go for it!
> --
> You received this message because you are subscribed to the Google Groups "Barby" group.
> To post to this group, send email to ruby-...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-barby+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-barby?hl=en.
>
> 1) A Gemfile is probably a good idea. I'm not really up to date on all this Bundler stuff, so I don't know what the current best practises are, but I don't like the idea of hard dependencies (not everyone wants to install RMagick, for example), though a hint somewhere which gems are required for various functionality would be nice.
Yup, I get that. Typically that is done with simple environment variables in the Gemfile. Something like ENV['BARBY_USE_RMAGIC']. Or putting the gems into group like so. I'll do the later in my pull request.
group :outputter_deps do
# ...
end
> I honestly don't know which version of RSpec should be installed, I just use the newest version. I've had version mismatches before, but updating RSpec usually solved it.
I installed the latest on a new gemset and could not get the test to run. This sums up my experience. What version do you have installed now? I just did "gem install rspec" and got 2.6.0.
> Eventually, I'd like to remove the dependency on RSpec and just use Test::Unit.There shouldn't be anything else required to run the tests, just that some symbologies and outputters have dependencies that you need if you're going to run their tests. It will be pretty obvious what they are if you look at the files in question.
How about MiniTest::Spec? I've switched to that for all my standalone projects. Installs and runs fine in 1.8 and upward. If that is OK, would you be receptive to a set of pull request that does this as well?
I know touching things like Gemfiles, Rakefiles, etc are typically taboo, but if I have your blessing, this should be a good change for getting contributions as it will reduce the barrier to testing.
> 2) Go for it!
Thanks! I'll do the HTML/CSS outputter pull request after the ones above. Again, assuming that is all OK with you?
- Ken
Also, can you detail why rqrcode is vendored? Would you be acceptable to a patch that put's that in the gemspec as an official dependency to a specific version, perhaps "~> 0.3.3"?
- Ken
>
> Tore,
>
>> 1) A Gemfile is probably a good idea. I'm not really up to date on all this Bundler stuff, so I don't know what the current best practises are, but I don't like the idea of hard dependencies (not everyone wants to install RMagick, for example), though a hint somewhere which gems are required for various functionality would be nice.
>
> Yup, I get that. Typically that is done with simple environment variables in the Gemfile. Something like ENV['BARBY_USE_RMAGIC']. Or putting the gems into group like so. I'll do the later in my pull request.
>
> group :outputter_deps do
> # ...
> end
Sounds good. I don't like the idea of using env vars.
>> I honestly don't know which version of RSpec should be installed, I just use the newest version. I've had version mismatches before, but updating RSpec usually solved it.
>
> I installed the latest on a new gemset and could not get the test to run. This sums up my experience. What version do you have installed now? I just did "gem install rspec" and got 2.6.0.
I have 2.5.1 right now, and it works ok. I don't run all specs at once (I don't have JRuby), but running each at a time works fine.
>> Eventually, I'd like to remove the dependency on RSpec and just use Test::Unit.There shouldn't be anything else required to run the tests, just that some symbologies and outputters have dependencies that you need if you're going to run their tests. It will be pretty obvious what they are if you look at the files in question.
>
> How about MiniTest::Spec? I've switched to that for all my standalone projects. Installs and runs fine in 1.8 and upward. If that is OK, would you be receptive to a set of pull request that does this as well?
MiniTest yes, ::Spec no. Unnecessary complexity is my nemesis.
> I know touching things like Gemfiles, Rakefiles, etc are typically taboo, but if I have your blessing, this should be a good change for getting contributions as it will reduce the barrier to testing.
Go ahead. I haven't paid much attention to these anyway.
>> 2) Go for it!
>
> Thanks! I'll do the HTML/CSS outputter pull request after the ones above. Again, assuming that is all OK with you?
>
> - Ken
>
Yea, in this case the ~> operator on 0.3.3 (current vendored version) would mean 0.3.3 to less than 0.4.0. So when the author releases the 0.3.4 soon it wold just work, assuming they too are following a rational versioning policy.
- Ken
Interested in what you are doing here. I may be interested in contributing some hacky code for an outputter soon.
Phil
--
Phil Ayres
617-794-2330