On Sunday, January 5, 2014 11:06:46 AM UTC-8, Robb Shecter wrote:
>
> I have custom matchers for testing web services such as checking the SSL 
> certificate installation. I'm not quite sure how to best name this:
>
>
>    - rspec-webservice?
>    - rspec-matchers-webservice?
>    - rspec_webservice?
>    - rspec-dogweather?  (My github name)
>
> ... or something else? The naming 
> guidelines<http://guides.rubygems.org/name-your-gem/> don't 
> quite seem to address this case:
>
> rspec-webservice seems correct because I am "adding functionality to 
> another gem". But this will correspond to the gem residing in 
> RSpec::Webservice, and I'm not the maintainer of RSpec, and so a naming 
> conflict can arise.
>
> rspec-matchers-webservice is a possibility because that seems to be how 
> the RSpec library itself is 
> organized<http://www.google.com/url?q=http%3A%2F%2Frubydoc.info%2Fgems%2Frspec-expectations%2FRSpec%2FMatchers&sa=D&sntz=1&usg=AFQjCNHZHoo9lH9hO7XCcE75aO0c_-MzgA>
> .
>
> rspec_webservice is a safe option, because it will simply be in its own 
> root namespace (RSpecWebservice), and conflicts will be ruled out because 
> the rubygems system will ensure that this name cannot be used for another 
> gem.
>
>  rspec-dogweather because it doesn't greedily use a generic term?
>

If your library is meant to only provide matchers (and not other 
functionality), I'd recommend `rspec-webservice_matchers` (with the 
`RSpec::WebserviceMatchers` namespace).  This is simliar to the recently 
extacted https://github.com/rspec/rspec-collection_matchers gem.

HTH,
Myron

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/9dd2f79a-d761-4504-930d-916ce3a6a5f4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to