Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use method_source instead of sourcify

  • Loading branch information...
commit f223a8fce5b4b8d9d904ec0188377eb4d3ff94a3 1 parent f2bd0d9
@qrush authored
View
16 Gemfile.lock
@@ -2,30 +2,20 @@ PATH
remote: .
specs:
m (0.0.1)
- ruby_parser (~> 2.3.1)
- sourcify (~> 0.5)
+ method_source (~> 0.6.7)
GEM
remote: https://rubygems.org/
specs:
activesupport (3.1.3)
multi_json (~> 1.0)
- file-tail (1.0.8)
- tins (~> 0.3)
+ method_source (0.6.7)
+ ruby_parser (>= 2.3.1)
multi_json (1.0.4)
rake (0.9.2.2)
- ruby2ruby (1.3.1)
- ruby_parser (~> 2.0)
- sexp_processor (~> 3.0)
ruby_parser (2.3.1)
sexp_processor (~> 3.0)
sexp_processor (3.0.9)
- sourcify (0.5.0)
- file-tail (>= 1.0.5)
- ruby2ruby (>= 1.2.5)
- ruby_parser (>= 2.0.5)
- sexp_processor (>= 3.0.5)
- tins (0.3.6)
PLATFORMS
ruby
View
2  README.md
@@ -1,6 +1,6 @@
# m
-`m` stands :metal: (metal), which is a better test/unit test runner. @sferik took `t` so this was the next best option.
+`m` stands for :metal: (metal), which is a better test/unit test runner. @sferik took `t` so this was the next best option.
## Usage
View
3  lib/m.rb
@@ -1,8 +1,7 @@
require "forwardable"
require "ostruct"
-require "ruby_parser"
-require "sourcify"
+require "method_source"
require "m/runner"
require "m/test"
View
2  lib/m/test.rb
@@ -3,7 +3,7 @@ class Test < Struct.new(:name, :start_line, :end_line)
def self.new_from_object_and_method(suite, test_method)
method = suite.method(test_method)
start_line = method.source_location.last
- end_line = method.to_source.split("\n").size + start_line - 1
+ end_line = method.source.split("\n").size + start_line - 1
new(test_method, start_line, end_line)
end
View
5 m.gemspec
@@ -1,7 +1,7 @@
Gem::Specification.new do |gem|
gem.authors = ["Nick Quaranto"]
gem.email = ["nick@quaran.to"]
- gem.homepage = ""
+ gem.homepage = "https://github.com/qrush/m"
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.files = `git ls-files`.split("\n")
@@ -10,8 +10,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.version = "0.0.1"
- gem.add_runtime_dependency "ruby_parser", "~> 2.3.1"
- gem.add_runtime_dependency "sourcify", "~> 0.5"
+ gem.add_runtime_dependency "method_source", "~> 0.6.7"
gem.add_development_dependency "rake"
gem.add_development_dependency "activesupport"
Please sign in to comment.
Something went wrong with that request. Please try again.