Skip to content

Commit

Permalink
Use pry instead of IRB
Browse files Browse the repository at this point in the history
- Replace auto-generated single-quotes with double-quotes
  • Loading branch information
jacobsimeon committed Feb 21, 2016
1 parent fec4fdf commit 65f7f44
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Gemfile
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
source "https://rubygems.org"

# Specify your gem's dependencies in rouge-rails.gemspec
# Specify your gem"s dependencies in rouge-rails.gemspec
gemspec
11 changes: 2 additions & 9 deletions bin/console
Expand Up @@ -3,12 +3,5 @@
require "bundler/setup"
require "rouge/rails"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

require "irb"
IRB.start
require "pry"
Pry.start
17 changes: 4 additions & 13 deletions rouge-rails.gemspec
@@ -1,27 +1,17 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rouge/rails/version'
require "rouge/rails/version"

Gem::Specification.new do |spec|
spec.name = "rouge-rails"
spec.version = Rouge::Rails::VERSION
spec.authors = ["Jacob Morris"]
spec.email = ["jacob.s.morris@gmail.com"]

spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
spec.description = %q{TODO: Write a longer description or delete this line.}
spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.summary = %q{Simple template handler for rouge code samples}
spec.license = "MIT"

# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
# delete this section to allow pushing this gem to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
else
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand All @@ -30,4 +20,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.11"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "pry"
end
4 changes: 2 additions & 2 deletions spec/rouge/rails_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
require "spec_helper"

describe Rouge::Rails do
it 'has a version number' do
it "has a version number" do
expect(Rouge::Rails::VERSION).not_to be nil
end

Expand Down

0 comments on commit 65f7f44

Please sign in to comment.