-
The new rake task assets:clean removes precompiled assets. [fxn]
-
Application and plugin generation run bundle install unless
--skip-gemfileor--skip-bundle. [fxn] -
Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]
-
Template generation for jdbcpostgresql #jruby [Vishnu Atrai]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def humanize secs | |
| [[60, :seconds], [60, :minutes], [24, :hours], [1000, :days]].inject([]){ |s, (count, name)| | |
| if secs > 0 | |
| secs, n = secs.divmod(count) | |
| s.unshift "#{n.to_i} #{name}" | |
| end | |
| s | |
| }.join(' ') | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id":"dbauser", | |
| "uid":506, | |
| "comment":"DBA User", | |
| "shell":"/bin/bash", | |
| "groups": [ | |
| "sysadm", | |
| "dba" | |
| ], | |
| "ssh_key": "XXXXXXXXXX" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file "config/setup_load_paths.rb", <<FILE | |
| # based on http://blog.ninjahideout.com/posts/the-path-to-better-rvm-and-passenger-integration | |
| if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm') | |
| begin | |
| rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) | |
| rvm_lib_path = File.join(rvm_path, 'lib') | |
| $LOAD_PATH.unshift rvm_lib_path | |
| require 'rvm' | |
| RVM.use_from_path! File.dirname(File.dirname(__FILE__)) | |
| rescue LoadError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # baseline REE environment settings for server environments | |
| # http://www.rubyenterpriseedition.com/documentation.html#_garbage_collector_performance_tuning | |
| ## ruby defaults | |
| # RUBY_HEAP_MIN_SLOTS=10000 | |
| # RUBY_HEAP_SLOTS_INCREMENT=10000 | |
| # RUBY_HEAP_SLOTS_GROWTH_FACTOR=1.8 | |
| # RUBY_GC_MALLOC_LIMIT=8000000 | |
| # RUBY_HEAP_FREE_MIN=4096 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## place this file to same directory of `Vagrantfile' then simply require "snap.rb" in Vagrantfile | |
| module Snap | |
| module VBox | |
| class SnapShot | |
| require "forwardable" | |
| extend Forwardable | |
| def_delegators :@snap, :name, :uuid, :time_stamp | |
| @@snaps = [] | |
| class << self |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe "HistoryItems" do | |
| before(:each) {login_as :user} | |
| describe "GET /history_items" do | |
| it "works!" do | |
| visit history_items_path | |
| response.should be_success | |
| end | |
| end |
This gist is no longer valid. Please see Compass-Rails for instructions on how to install.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Ever had a mysqldump of utf8 data stored in latin1 tables, dumped in utf8 and | |
| munged with windows cp1252? | |
| If so this is your friend. Just pipe it through this little baby and spare | |
| yourself hours of unicode hell- it'll take your dirt and spit out clean utf8. | |
| You can also import it and use it in your python code. |