Skip to content

Commit

Permalink
Add Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraham committed Apr 24, 2017
1 parent 8615d9f commit ddfd722
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.ruby-version
.DS_Store
pkg
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'https://rubygems.org'
gemspec
14 changes: 14 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "yajl/ffi"

# 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(__FILE__)
11 changes: 11 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -euo pipefail
IFS=$'\n\t'
set -vx

bundle install

if command -v brew; then
brew update && brew install yajl
fi
2 changes: 2 additions & 0 deletions yajl-ffi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Gem::Specification.new do |s|
s.require_path = 'lib'

s.add_dependency 'ffi', '~> 1.9'
s.add_development_dependency 'bundler', '~> 1.14'
s.add_development_dependency 'minitest', '~> 5.10'
s.add_development_dependency 'rake', '~> 10.3'

s.required_ruby_version = '>= 1.9.3'
Expand Down

0 comments on commit ddfd722

Please sign in to comment.