rugex 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/bin/rugex CHANGED
@@ -1,2 +1,3 @@
1
1
  #! /usr/bin/env ruby
2
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
2
3
  require 'rugex'
data/lib/rugex/string.rb CHANGED
@@ -1,5 +1,5 @@
1
- require 'lib/rugex/print'
2
- require 'lib/rugex/regex'
1
+ require 'rugex/print'
2
+ require 'rugex/regex'
3
3
 
4
4
  class EmptyRegexError < Exception; end
5
5
 
data/lib/rugex.rb CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  require 'rubygems'
7
7
  require 'thor'
8
- require 'lib/rugex/string'
8
+ require 'rugex/string'
9
9
 
10
10
  module Rugex
11
11
  class Base < Thor
12
- ARGV.insert(0, 'string') if (ARGV[0] =~ /-./) == nil
12
+ ARGV.unshift 'string' if (ARGV[0] =~ /-./) == nil
13
13
 
14
14
  desc '<text> <regex>', 'show the match text using regular expression'
15
15
  def string(text, regex_string)
data/rugex.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rugex}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Lucas Caton"]
12
- s.date = %q{2011-01-30}
12
+ s.date = %q{2011-01-31}
13
13
  s.default_executable = %q{rugex}
14
14
  s.description = %q{A CLI to test regular expressions on Ruby}
15
15
  s.email = %q{lucascaton@gmail.com}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugex
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lucas Caton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-30 00:00:00 -02:00
18
+ date: 2011-01-31 00:00:00 -02:00
19
19
  default_executable: rugex
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency