$:.unshift File.join(File.dirname(__FILE__), 'lib')

require 'regexp_parser/version'

Gem::Specification.new do |gem|
  gem.name          = 'regexp_parser'
  gem.version       = ::Regexp::Parser::VERSION

  gem.summary       = "Scanner, lexer, parser for ruby's regular expressions"
  gem.description   = 'A library for tokenizing, lexing, and parsing Ruby regular expressions.'
  gem.homepage      = 'http://github.com/ammar/regexp_parser'

  if gem.respond_to?(:metadata)
    gem.metadata    = { 'issue_tracker' => 'https://github.com/ammar/regexp_parser/issues' }
  end

  gem.authors       = ['Ammar Ali']
  gem.email         = ['ammarabuali@gmail.com']

  gem.license       = 'MIT'

  gem.require_paths = ['lib']

  gem.files         = Dir.glob('{lib,test}/**/*.rb') +
                      Dir.glob('lib/**/*.rl') +
                      %w(Gemfile Rakefile LICENSE README.md ChangeLog regexp_parser.gemspec)

  gem.test_files    = Dir.glob('test/**/*.rb')

  gem.rdoc_options  = ["--inline-source", "--charset=UTF-8"]

  gem.platform      = Gem::Platform::RUBY

  gem.required_ruby_version = '>= 1.8.7'
end

$:.unshift File.join(File.dirname(__FILE__), 'lib')

require 'regexp_parser/version'

Gem::Specification.new do |gem|
  gem.name          = 'regexp_parser'
  gem.version       = ::Regexp::Parser::VERSION

  gem.summary       = "Scanner, lexer, parser for ruby's regular expressions"
  gem.description   = 'A library for tokenizing, lexing, and parsing Ruby regular expressions.'
  gem.homepage      = 'http://github.com/ammar/regexp_parser'

  if gem.respond_to?(:metadata)
    gem.metadata    = { 'issue_tracker' => 'https://github.com/ammar/regexp_parser/issues' }
  end

  gem.authors       = ['Ammar Ali']
  gem.email         = ['ammarabuali@gmail.com']

  gem.license       = 'MIT'

  gem.require_paths = ['lib']

  gem.files         = Dir.glob('{lib,test}/**/*.rb') +
                      Dir.glob('lib/**/*.rl') +
                      %w(Gemfile Rakefile LICENSE README.md ChangeLog regexp_parser.gemspec)

  gem.test_files    = Dir.glob('test/**/*.rb')

  gem.rdoc_options  = ["--inline-source", "--charset=UTF-8"]

  gem.platform      = Gem::Platform::RUBY

  gem.required_ruby_version = '>= 1.9.1'
end

Update minimum ruby version in gemspec to 1.9.1
Update minimum ruby version in gemspec to 1.9.1
