Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add gemspec

  • Loading branch information...
commit 0d8633126975893c68b749753bde9e64a3e2ab5a 1 parent b5ca306
@siuying authored
View
2  Gemfile
@@ -5,6 +5,8 @@ gem "ruby_parser", "~> 2.3.1"
group :development do
gem "rspec", "~> 2.9.0"
+ gem "rake", "~> 1.1"
+ gem "echoe"
gem "autotest"
gem "pry"
end
View
13 README.md
@@ -4,13 +4,22 @@ An experiment on real time visualize development tool, inspired by
[Bret Victor's Inventing on Principle](http://vimeo.com/36579366)
talk and [@ermau C# Implementation](https://github.com/ermau/Instant).
-## Demo
+## Install as gem
+
+ gem install instant
+
+ require 'instant'
+
+ runner = Instant::Runner.new
+ runner.run "def hello(a); a = 10 + a; end; hello(20)"
+
+## Run a demo
![](http://f.cl.ly/items/0m2o252A3n1C032R2s0X/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202012-04-19%20%E4%B8%8A%E5%8D%8812.23.58.png)
You can run it live at [instant-ruby.herokuapp.com](http://instant-ruby.herokuapp.com).
-## Run Locally
+## Run locally
bundle install
foreman start
View
14 Rakefile
@@ -0,0 +1,14 @@
+require 'rubygems'
+require 'rake'
+require 'echoe'
+
+Echoe.new('instant', '0.0.1') do |p|
+ p.description = "Generate a unique token with Active Record."
+ p.url = "http://github.com/ryanb/uniquify"
+ p.author = "Ryan Bates"
+ p.email = "ryan@railscasts.com"
+ p.ignore_pattern = ["tmp/*", "script/*"]
+ p.development_dependencies = []
+end
+
+Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
View
19 instant.gemspec
@@ -0,0 +1,19 @@
+$LOAD_PATH << File.expand_path("../lib", __FILE__)
+require "instant/version"
+
+Gem::Specification.new do |s|
+ s.name = "instant"
+ s.version = Instant::VERSION
+ s.authors = ["Francis Chong"]
+ s.email = ["francis@ignition.hk"]
+ s.homepage = "https://github.com/siuying/instant"
+ s.summary = %q{An experiment on real time visualize development tool.}
+ s.description = %q{An experiment on real time visualize development tool, inspired by Bret Victor's Inventing on Principle talk and @ermau C# Implementation.}
+
+ s.files = `git ls-files`.split("\n").reject {|f| f =~ /^(?:spec|views|public|lib\/instant\/sinatra)\// } # Ignore spec/views/sinatra files
+ s.test_files = `git ls-files -- spec/*`.split("\n")
+ s.require_paths = ["lib"]
+
+ s.add_runtime_dependency "ruby2ruby", "~> 1.3.1"
+ s.add_runtime_dependency "ruby_parser", "~> 2.3.1"
+end
View
3  lib/instant/version.rb
@@ -0,0 +1,3 @@
+module Instant
+ VERSION = "0.0.1"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.