Month names are either three letters, or the entire name.
You could extract that method from the source, modify the patterns to fit your needs, then overwrite that method, along with submitting it as a patch so the tweak gets added to future revisions of the gem.
'cd CCS/868MHz\ -\ Unrestricted\ CCS\ Platinum && make clean Chron IC_868MHz.out' I do my main development under Linux but it's also tested and working under Windows.
Checkout latest code from github: git clone git://github.com/Aperture Labs Ltd/Chron Start CCStudio and import the project from the CCS sub-folder of the repo: File/Import.../Existing CCS Eclipse Projects Build: Project/Build Project Note that if you don't want to go to the trouble of building from source, I've included the current 433 and 868 compiled versions in the '433MHz - Unrestricted CCS Platinum' and '868MHz - Unrestricted CCS Platinum' directories.
So, question: I've scaffolded DB with following structure: create_table(:products) do |t| t.column :title, :string t.column :description, :text t.column :imageurl, :string t.column :price, :decimal, :default = 2 t.column :date, :date end Then I'm trying to validate input data; everything is great, but I can't validate input :date. (Don't ask why I'm trying to validate date - I'm just trying to have some practice.) def validate date_pattern = /^[0-9][-][0-9][-][0-9]$/ errors.add(:date, "Date must be formatted YYYY-MM-DD #") if date.nil? This will also make certain the dates are valid, and will accept things like 07-10-10 as well. There is no info about Date.parse() in my Ruby book.
|y))\b/i %w[j ja jan janu january f fe feb febr february]do |m| puts "# =? it's some magical Perl code using a little known module called Regexp:: Assemble, that I dearly miss in Ruby.
diabolically good and closely tied to how Perl does things, and makes my head hurt when I read through it, otherwise I'd have ported it.
ruby-on-rails,ruby,rspec,activemodel,rails-i18n What seems to work is adding these lines to my spec_helper: require 'i18n' I18n.config.enforce_available_locales = true Because my tests don't use Rails, the Application class goes untouched, so enforce_available_locales must go in the spec_helper itself.
The first line gets rid of the uninitialized constant error....