This file contains 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
base_dst_path="/Volumes/Extra/dave/downloads" | |
for file in \ | |
BW-1161.exe milkallergy-companion-and-cookbook.pdf iPhoneConfigUtility.dmg Screenhero.zip iPhotoLibraryUpgrader.dmg join.me.zip | |
do | |
#mv $file $base_dst_path | |
ln -s $base_dst_path/$file | |
#echo -e "# file was moved on "$(date +"%Y-%m-%d %H:%M:%S")"\nopen \"$base_dst_path/$file\"" > $file.txt | |
done |
This file contains 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
#!/bin/sh | |
if git rev-parse --verify HEAD >/dev/null 2>&1; then | |
against=HEAD | |
else | |
# put the first changeset hash value in your project here (I think) | |
against=facf87a3fa1c853a7dd8dde8cba32e1fc8fde3ea | |
fi | |
for FILE in `git diff-index --name-status $against -- | cut -c3-` ; do |
This file contains 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
# Usage example: | |
# | |
# log_filename = File.join(log_path, "#{Sinatra::Base.environment.to_s}.log") | |
# $log_file = File.open(log_filename, 'a+') | |
# | |
# STDOUT.sync = true if 'yes' == ENV['API_DEBUG'] | |
# $log_file.sync = true if 'yes' == ENV['API_DEBUG'] | |
# | |
# require 'logger' | |
# $logger = Logger.new MultiIO.new(STDOUT, $log_file) |
This file contains 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
# config/routes.rb | |
BrowsercmsDemo::Application.routes.draw do | |
... | |
mount_bcms_my401k | |
mount_browsercms | |
end | |
... | |
BcmsMy401k::Engine.routes.draw do |
This file contains 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 'rubygems' | |
require 'spork' | |
#uncomment the following line to use spork with the debugger | |
#require 'spork/ext/ruby-debug' | |
... | |
require File.expand_path("./config/environment.rb") | |
... |
This file contains 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
# db/my401k.seeds.rb | |
require 'cms/data_loader' | |
extend Cms::DataLoader | |
if(Cms::Category.count == 0) | |
my401k_product_type = create_category_type(:guest, :name => 'My401k Product') | |
create_category(:about_plan, :name => 'About Plan', :category_type => my401k_product_type) | |
create_category(:manage_account, :name => 'Manage Account', :category_type => my401k_product_type) | |
create_category(:helpful_resources, :name => 'Helpful Resources', :category_type => my401k_product_type) |
This file contains 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
Feature: Content Pages | |
Editors should be able to manage their own pages | |
Background: | |
# make sure user is logged out | |
Given I am a guest | |
When I visit "/my401k/plan_sponsor/create_new_content" | |
And login as a plan sponsor | |
... |
This file contains 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
Feature: Content Pages | |
Editors should be able to manage their own pages | |
Background: | |
Given I am a guest | |
... | |
@javascript | |
Scenario: An editor saves the selected category and navigates next to select the desired lay | |
When a registered user visits "/my401k/plan_sponsor/create_new_content" |
This file contains 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
Before('@no-txn,@selenium,@culerity,@celerity') do | |
# I added this block and changed to transaction because @javascript was truncating most of my tables | |
#DatabaseCleaner.strategy = :truncation, {:except => %w[groups]} | |
DatabaseCleaner.strategy = :truncation | |
end | |
Before('@javascript') do | |
#DatabaseCleaner.strategy = :truncation, {:except => %w[groups categories category_types content_types content_type_groups bcms_my401k_layouts]} | |
DatabaseCleaner.strategy = :transaction | |
end |
This file contains 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
/* | |
updates form controls with the content of the editors | |
typically called just before persisting to the database | |
*/ | |
function CKupdate(){ | |
if(typeof(CKEDITOR) != "undefined"){ | |
for ( instance in CKEDITOR.instances ) | |
CKEDITOR.instances[instance].updateElement(); | |
} | |
} |
OlderNewer