summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Doubrovkine (dB.) @dblockdotorg <dblock@dblock.org>2015-10-23 07:16:07 -0400
committerDaniel Doubrovkine (dB.) @dblockdotorg <dblock@dblock.org>2015-10-23 07:16:07 -0400
commitf0e5eac1997946975c447b388889dd9675b41ce9 (patch)
tree5c92cca913397bb111ab0435d8775a49fe7a910f
parentac68241cbca41d083713df2c455e5a9914541913 (diff)
parent635d7c8923abd539e2d261d003e47f7007ae0e7e (diff)
downloadhashie-f0e5eac1997946975c447b388889dd9675b41ce9.tar.gz
Merge pull request #315 from pboling/modernize-gem
Default bin scripts from bundle gem command: bin/console and bin/setup
-rw-r--r--CHANGELOG.md1
-rwxr-xr-xbin/console14
-rwxr-xr-xbin/setup7
3 files changed, 22 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1d1ba16..57323f9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
* [#306](https://github.com/intridea/hashie/pull/306): Added `Hashie::Extensions::Dash::Coercion` - [@marshall-lee](https://github.com/marshall-lee).
* [#310](https://github.com/intridea/hashie/pull/310): Fixed `Hashie::Extensions::SafeAssignment` bug with private methods - [@marshall-lee](https://github.com/marshall-lee).
* [#313](https://github.com/intridea/hashie/pull/313): Restrict pending spec to only Ruby versions 2.2.0-2.2.2 - [@pboling](https://github.com/pboling).
+* [#315](https://github.com/intridea/hashie/pull/315): Default `bin/` scripts: `console` and `setup` - [@pboling](https://github.com/pboling).
## 3.4.2 (6/2/2015)
diff --git a/bin/console b/bin/console
new file mode 100755
index 0000000..5704fda
--- /dev/null
+++ b/bin/console
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+
+require "bundler/setup"
+require "hashie"
+
+# 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
diff --git a/bin/setup b/bin/setup
new file mode 100755
index 0000000..b65ed50
--- /dev/null
+++ b/bin/setup
@@ -0,0 +1,7 @@
+#!/bin/bash
+set -euo pipefail
+IFS=$'\n\t'
+
+bundle install
+
+# Do any other automated setup that you need to do here