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
account_params = dict( | |
name = params['company']['name'], | |
email = params['from'], | |
first_name = params.get('first_name', 'First'), | |
last_name = params.get('last_name', 'Last'), | |
currency_code = params['currency'], | |
address = dict( | |
street1 = params['company']['street'], | |
city = params['company']['city'], | |
province = params['company']['state'], |
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 'twitter' | |
class AllTweets | |
attr_accessor :tweets | |
def initialize(username, config) | |
@username = username | |
@config = config | |
@tweets = [] |
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
{ | |
"directory": "vendor" | |
} |
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
module RelationExtensions | |
extend ActiveSupport::Concern | |
included do | |
# -- Constants ------------------------------------------------------------ | |
# -- Attributes ----------------------------------------------------------- | |
attr_accessor :relation_identifier, :relation_position | |
# -- AR Extensions -------------------------------------------------------- |
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
guard 'minitest' do | |
# with Minitest::Unit | |
watch(%r|^test/(.*)\/?test_(.*)\.rb|) | |
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" } | |
watch(%r|^test/test_helper\.rb|) { "test" } | |
# Rails 4 - App Files | |
watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/controllers/#{m[1]}_test.rb" } | |
watch(%r|^app/helpers/(.*)\.rb|) { |m| "test/helpers/#{m[1]}_test.rb" } |
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
<p>blah blah content blah blah - this is shown on the outside</p><!--break--> | |
<p>inside article content not shown on the front</p> |
NewerOlder