exclude

validates_inclusion_of :in => [true, false] is allowing Strings and Fixnums

I have this validation in my model: validates_inclusion_of :imported, :in => [true, false] but still allows Strings and Fixnums. This Shoulda macro returns 2 failures: should_not_allow_values_for :imported, "blah", 42 and I've checked that the macro isn't at fault by doing this in a test: @item.imported = 42 assert [email protected] ...

Selecting the certain resource files into WAR from the default src/main/resources location with Maven

I am trying to control which files make into the WAR package that is created by mvn package goal. Specifically, I want to exclude some files from the default src/main/resources folder for each package (I am trying to do builds/package for different environments). I tried using maven-war-plugin but failed. If I add this configuration (fo...

subversion include directory exclude files

I want to include a directory when I do my imports but exclude any files that might be in it. how can this be done? ie: include cache dir, but exclude all the cache files in it. in my global-ignores I have tried cache and cache/*, the former just excluded the entire cache dir - expected. and the later included everything. am I clos...

Small regex exclude problem.

Guys i have a small and frankly stupid problem, so here it is... I have a text that could possibly include words,numbers etc. All i want is to match the numbers inside brackets, but withtout matching them like this: Lorem 43 ipsum dolor 1 sit amet (355) some other text. All i want to match is the number 355, but since there are ...

Regex exclude help?

Can anyone help me out with a Regex that will exclude words that are inside: title = "EXCLUDE ANYTHING HERE" THANKS! ...

What effect does rdiff-backup's --exclude option have on previous increments?

Using rdiff-backup, a reverse-incremental backup tool, if I use the --exclude option to exclude some files that were previously included in earlier increments (older backups), what effect will it have? ...

ANT - how to use exclude, excludesfile with javac?

Looked at several post on stackoverflow as well as other sources (online + ANT definition guide book) but none of them helped so far. I can't exclude the file from compiling. I have just one file that wants to exclude from compiling and ANT documentation is not really telling the detail. I'm trying to exclude HTMLParser.java from compil...

Exclude list item with jQuery not

How can I exclude the placeholder from being hovered? HTML: <ul class="listing"> <li><p>red</p></li> <li><p>green</p></li> <li><p>blue</p></li> <li id="li-placeholder"><p>placeholder</p></li> </ul>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ ...

MSBuild ItemGroup Include/Exclude pattern issue

Problem: an ItemGroups array isn't correctly build based on the value passed in the exclude attribute. If you run this scrip it creates some sample file then tries to create an array called TheFiles based on the Include/Exclude attributes, problem is when the Exclude is anything other than hardcoded or a very simple property it gets it ...

Cucumber Step Definition Regex Exclude Help

I need some help with a regular expression in a Cucumber step definition file. Many of my steps are of the type: Given I am on the search page I use this general pattern for most of my step definitions, and use the default Webrat regex to pick it up that looks like this: Given /^(?:|I )am on (.+)$/ do |page_name| visit path_to(p...

Rails Functional Test - excluding method from setup

This should be simple but I can't find any examples. I have standard functional tests in my rails 3 application (descending from ActionController::TestCase) that look like: test "see if 1+1=2" do .... end and at the top I have a setup method: setup do ...... end How do I exclude a method? I.e. setup :except => "see if 1+1=2" do...