Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

nyancatformatter + bundler

  • Loading branch information...
commit d93f474c70e9c6215bb2a70974559ee1e947cd1a 1 parent 14c0f11
@audy authored
Showing with 15 additions and 3 deletions.
  1. +1 −1  .rspec
  2. +7 −0 Gemfile
  3. +4 −1 lib/memetron.rb
  4. +3 −1 spec/spec_helper.rb
View
2  .rspec
@@ -1 +1 @@
---colour
+--format NyanCatMusicFormatter
View
7 Gemfile
@@ -1,3 +1,10 @@
+source :rubygems
+
+group :test do
+ gem 'rspec'
+ gem 'nyan-cat-formatter'
+end
+
group :development do
gem 'jeweler'
end
View
5 lib/memetron.rb
@@ -1,6 +1,9 @@
+require 'bundler'
+Bundler.require
+
require 'memetron/meme'
-# require memes
+# require all the memes!
Dir.glob(File.join(File.dirname(__FILE__), 'memetron', 'memes', '*.rb')).each { |x| require x }
require 'memetron/matcher'
View
4 spec/spec_helper.rb
@@ -1,6 +1,8 @@
$LOAD_PATH << File.join(File.dirname(__FILE__), "lib")
-require 'rspec'
+require 'bundler'
+Bundler.require :test
+
require 'memetron'
def test_meme(meme)
Please sign in to comment.
Something went wrong with that request. Please try again.