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 'rspec' | |
require 'webmock/rspec' | |
WebMock.disable_net_connect! | |
require 'httparty' | |
class MyClass | |
include HTTParty |
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
/* jshint esnext: true */ | |
import Ember from 'ember'; | |
// When mixed into an Ember.Component class, actions can be explicitly or implicitly delegated to the parent. | |
// In general this makes the most sense for an app-level component, where actions are not mututated as they bubble | |
// up to higher levels. | |
export default Ember.Mixin.create({ | |
// When true, all actions will be implicitly passed on to the parent |
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
EmberApp.prototype._processedTemplatesTree = function () { | |
var addonTrees = this.addonTreesFor('templates'); | |
var mergedTemplates = mergeTrees(addonTrees.concat(this.trees.templates), { | |
overwrite: true, | |
description: 'TreeMerger (templates)' | |
}); | |
var standardTemplates = pickFiles(mergedTemplates, { | |
srcDir: '/', | |
destDir: this.name + '/templates' |
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
`import Ember from 'ember'` | |
`import Resolver from 'ember/resolver'` | |
Resolver.reopen | |
normalize: (fullName) -> | |
_name = @_super(fullName) | |
if _name.match(/\/-/) | |
_name = _name.replace('/-', '/_') | |
_name |
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
# Copyright (c) 2012, HipByte SPRL and contributors | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# 2. Redistributions in binary form must reproduce the above copyright notice, | |
# this list of conditions and the following disclaimer in the documentation |
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
# TODO RM bug prevents the real version due to undefines I believe | |
class BlankSlate < BasicObject | |
def self.reveal(arg) | |
# NOP | |
end | |
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
source 'https://rubygems.org' | |
gem 'colorize' | |
# RubyMotion unaware gems | |
group :lotion do | |
gem 'parslet' | |
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
# http://fullware.net/2012/01/14/install-ruby-debug-gems-for-rbenv/ | |
export ruby_include=$HOME/.rbenv/versions/1.9.2-p290 | |
gem install ruby-debug19 -- --with-ruby-include=$ruby_include | |
gem install ruby-debug-base19 -- --with-ruby-include=$ruby_include | |
gem install ruby-debug-base19x -- --with-ruby-include=$ruby_include | |
gem install ruby-debug-ide19 -- --with-ruby-include=$ruby_include | |
gem install ruby-debug-ide -- --with-ruby-include=$ruby_include |