lre 0.0.1
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/.document +5 -0
 - data/.rspec +1 -0
 - data/Gemfile +13 -0
 - data/Gemfile.lock +38 -0
 - data/LICENSE.txt +20 -0
 - data/README.rdoc +19 -0
 - data/Rakefile +50 -0
 - data/VERSION +1 -0
 - data/bin/lre +3 -0
 - data/lib/lre.rb +20 -0
 - data/lib/lre/file_reload.rb +41 -0
 - data/lib/lre/rake_ext.rb +22 -0
 - data/lre.gemspec +84 -0
 - data/spec/lre_spec.rb +8 -0
 - data/spec/spec_helper.rb +12 -0
 - data/spec/test_dir/.lre +1 -0
 - data/spec/test_dir/file.rb +1 -0
 - metadata +161 -0
 
    
        data/.document
    ADDED
    
    
    
        data/.rspec
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --color
         
     | 
    
        data/Gemfile
    ADDED
    
    
    
        data/Gemfile.lock
    ADDED
    
    | 
         @@ -0,0 +1,38 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            GEM
         
     | 
| 
      
 2 
     | 
    
         
            +
              remote: http://rubygems.org/
         
     | 
| 
      
 3 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 4 
     | 
    
         
            +
                diff-lcs (1.1.2)
         
     | 
| 
      
 5 
     | 
    
         
            +
                facets (2.9.1)
         
     | 
| 
      
 6 
     | 
    
         
            +
                fattr (2.2.0)
         
     | 
| 
      
 7 
     | 
    
         
            +
                git (1.2.5)
         
     | 
| 
      
 8 
     | 
    
         
            +
                jeweler (1.5.2)
         
     | 
| 
      
 9 
     | 
    
         
            +
                  bundler (~> 1.0.0)
         
     | 
| 
      
 10 
     | 
    
         
            +
                  git (>= 1.2.5)
         
     | 
| 
      
 11 
     | 
    
         
            +
                  rake
         
     | 
| 
      
 12 
     | 
    
         
            +
                mharris_ext (1.5.0)
         
     | 
| 
      
 13 
     | 
    
         
            +
                  facets
         
     | 
| 
      
 14 
     | 
    
         
            +
                  fattr
         
     | 
| 
      
 15 
     | 
    
         
            +
                rake (0.8.7)
         
     | 
| 
      
 16 
     | 
    
         
            +
                rcov (0.9.9)
         
     | 
| 
      
 17 
     | 
    
         
            +
                rspec (2.3.0)
         
     | 
| 
      
 18 
     | 
    
         
            +
                  rspec-core (~> 2.3.0)
         
     | 
| 
      
 19 
     | 
    
         
            +
                  rspec-expectations (~> 2.3.0)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  rspec-mocks (~> 2.3.0)
         
     | 
| 
      
 21 
     | 
    
         
            +
                rspec-core (2.3.1)
         
     | 
| 
      
 22 
     | 
    
         
            +
                rspec-expectations (2.3.0)
         
     | 
| 
      
 23 
     | 
    
         
            +
                  diff-lcs (~> 1.1.2)
         
     | 
| 
      
 24 
     | 
    
         
            +
                rspec-mocks (2.3.0)
         
     | 
| 
      
 25 
     | 
    
         
            +
                watchr (0.7)
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            PLATFORMS
         
     | 
| 
      
 28 
     | 
    
         
            +
              x86-mingw32
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            DEPENDENCIES
         
     | 
| 
      
 31 
     | 
    
         
            +
              bundler (~> 1.0.0)
         
     | 
| 
      
 32 
     | 
    
         
            +
              fattr
         
     | 
| 
      
 33 
     | 
    
         
            +
              jeweler (~> 1.5.2)
         
     | 
| 
      
 34 
     | 
    
         
            +
              mharris_ext
         
     | 
| 
      
 35 
     | 
    
         
            +
              rake
         
     | 
| 
      
 36 
     | 
    
         
            +
              rcov
         
     | 
| 
      
 37 
     | 
    
         
            +
              rspec (~> 2.3.0)
         
     | 
| 
      
 38 
     | 
    
         
            +
              watchr
         
     | 
    
        data/LICENSE.txt
    ADDED
    
    | 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            Copyright (c) 2011 mharris717
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Permission is hereby granted, free of charge, to any person obtaining
         
     | 
| 
      
 4 
     | 
    
         
            +
            a copy of this software and associated documentation files (the
         
     | 
| 
      
 5 
     | 
    
         
            +
            "Software"), to deal in the Software without restriction, including
         
     | 
| 
      
 6 
     | 
    
         
            +
            without limitation the rights to use, copy, modify, merge, publish,
         
     | 
| 
      
 7 
     | 
    
         
            +
            distribute, sublicense, and/or sell copies of the Software, and to
         
     | 
| 
      
 8 
     | 
    
         
            +
            permit persons to whom the Software is furnished to do so, subject to
         
     | 
| 
      
 9 
     | 
    
         
            +
            the following conditions:
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            The above copyright notice and this permission notice shall be
         
     | 
| 
      
 12 
     | 
    
         
            +
            included in all copies or substantial portions of the Software.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         
     | 
| 
      
 15 
     | 
    
         
            +
            EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         
     | 
| 
      
 16 
     | 
    
         
            +
            MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         
     | 
| 
      
 17 
     | 
    
         
            +
            NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         
     | 
| 
      
 18 
     | 
    
         
            +
            LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         
     | 
| 
      
 19 
     | 
    
         
            +
            OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         
     | 
| 
      
 20 
     | 
    
         
            +
            WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         
     | 
    
        data/README.rdoc
    ADDED
    
    | 
         @@ -0,0 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            = lre
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Description goes here.
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            == Contributing to lre
         
     | 
| 
      
 6 
     | 
    
         
            +
             
         
     | 
| 
      
 7 
     | 
    
         
            +
            * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
         
     | 
| 
      
 8 
     | 
    
         
            +
            * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
         
     | 
| 
      
 9 
     | 
    
         
            +
            * Fork the project
         
     | 
| 
      
 10 
     | 
    
         
            +
            * Start a feature/bugfix branch
         
     | 
| 
      
 11 
     | 
    
         
            +
            * Commit and push until you are happy with your contribution
         
     | 
| 
      
 12 
     | 
    
         
            +
            * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
         
     | 
| 
      
 13 
     | 
    
         
            +
            * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            == Copyright
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            Copyright (c) 2011 mharris717. See LICENSE.txt for
         
     | 
| 
      
 18 
     | 
    
         
            +
            further details.
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
    
        data/Rakefile
    ADDED
    
    | 
         @@ -0,0 +1,50 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'rubygems'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'bundler'
         
     | 
| 
      
 3 
     | 
    
         
            +
            begin
         
     | 
| 
      
 4 
     | 
    
         
            +
              Bundler.setup(:default, :development)
         
     | 
| 
      
 5 
     | 
    
         
            +
            rescue Bundler::BundlerError => e
         
     | 
| 
      
 6 
     | 
    
         
            +
              $stderr.puts e.message
         
     | 
| 
      
 7 
     | 
    
         
            +
              $stderr.puts "Run `bundle install` to install missing gems"
         
     | 
| 
      
 8 
     | 
    
         
            +
              exit e.status_code
         
     | 
| 
      
 9 
     | 
    
         
            +
            end
         
     | 
| 
      
 10 
     | 
    
         
            +
            require 'rake'
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            require 'jeweler'
         
     | 
| 
      
 13 
     | 
    
         
            +
            Jeweler::Tasks.new do |gem|
         
     | 
| 
      
 14 
     | 
    
         
            +
              # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
         
     | 
| 
      
 15 
     | 
    
         
            +
              gem.name = "lre"
         
     | 
| 
      
 16 
     | 
    
         
            +
              gem.homepage = "http://github.com/mharris717/lre"
         
     | 
| 
      
 17 
     | 
    
         
            +
              gem.license = "MIT"
         
     | 
| 
      
 18 
     | 
    
         
            +
              gem.summary = %Q{lre}
         
     | 
| 
      
 19 
     | 
    
         
            +
              gem.description = %Q{lre}
         
     | 
| 
      
 20 
     | 
    
         
            +
              gem.email = "mharris717@gmail.com"
         
     | 
| 
      
 21 
     | 
    
         
            +
              gem.authors = ["mharris717"]
         
     | 
| 
      
 22 
     | 
    
         
            +
              # Include your dependencies below. Runtime dependencies are required when using your gem,
         
     | 
| 
      
 23 
     | 
    
         
            +
              # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
         
     | 
| 
      
 24 
     | 
    
         
            +
              #  gem.add_runtime_dependency 'jabber4r', '> 0.1'
         
     | 
| 
      
 25 
     | 
    
         
            +
              #  gem.add_development_dependency 'rspec', '> 1.2.3'
         
     | 
| 
      
 26 
     | 
    
         
            +
            end
         
     | 
| 
      
 27 
     | 
    
         
            +
            Jeweler::RubygemsDotOrgTasks.new
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            require 'rspec/core'
         
     | 
| 
      
 30 
     | 
    
         
            +
            require 'rspec/core/rake_task'
         
     | 
| 
      
 31 
     | 
    
         
            +
            RSpec::Core::RakeTask.new(:spec) do |spec|
         
     | 
| 
      
 32 
     | 
    
         
            +
              spec.pattern = FileList['spec/**/*_spec.rb']
         
     | 
| 
      
 33 
     | 
    
         
            +
            end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
            RSpec::Core::RakeTask.new(:rcov) do |spec|
         
     | 
| 
      
 36 
     | 
    
         
            +
              spec.pattern = 'spec/**/*_spec.rb'
         
     | 
| 
      
 37 
     | 
    
         
            +
              spec.rcov = true
         
     | 
| 
      
 38 
     | 
    
         
            +
            end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
            task :default => :spec
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
            require 'rake/rdoctask'
         
     | 
| 
      
 43 
     | 
    
         
            +
            Rake::RDocTask.new do |rdoc|
         
     | 
| 
      
 44 
     | 
    
         
            +
              version = File.exist?('VERSION') ? File.read('VERSION') : ""
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
              rdoc.rdoc_dir = 'rdoc'
         
     | 
| 
      
 47 
     | 
    
         
            +
              rdoc.title = "lre #{version}"
         
     | 
| 
      
 48 
     | 
    
         
            +
              rdoc.rdoc_files.include('README*')
         
     | 
| 
      
 49 
     | 
    
         
            +
              rdoc.rdoc_files.include('lib/**/*.rb')
         
     | 
| 
      
 50 
     | 
    
         
            +
            end
         
     | 
    
        data/VERSION
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            0.0.1
         
     | 
    
        data/bin/lre
    ADDED
    
    
    
        data/lib/lre.rb
    ADDED
    
    | 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'fattr'
         
     | 
| 
      
 2 
     | 
    
         
            +
            %w(file_reload rake_ext).each do |f|
         
     | 
| 
      
 3 
     | 
    
         
            +
              require File.expand_path(File.dirname(__FILE__)) + "/lre/#{f}.rb"
         
     | 
| 
      
 4 
     | 
    
         
            +
            end
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            module LRE
         
     | 
| 
      
 7 
     | 
    
         
            +
              class << self
         
     | 
| 
      
 8 
     | 
    
         
            +
                fattr(:watch_dirs) do
         
     | 
| 
      
 9 
     | 
    
         
            +
                  ["."]
         
     | 
| 
      
 10 
     | 
    
         
            +
                end
         
     | 
| 
      
 11 
     | 
    
         
            +
                def start!
         
     | 
| 
      
 12 
     | 
    
         
            +
                  dir = Dir.getwd
         
     | 
| 
      
 13 
     | 
    
         
            +
                  config_file = "#{dir}/.lre"
         
     | 
| 
      
 14 
     | 
    
         
            +
                  load(config_file) if FileTest.exist?(config_file)
         
     | 
| 
      
 15 
     | 
    
         
            +
                  FileReload.run!
         
     | 
| 
      
 16 
     | 
    
         
            +
                  require 'irb'
         
     | 
| 
      
 17 
     | 
    
         
            +
                  IRB.start
         
     | 
| 
      
 18 
     | 
    
         
            +
                end
         
     | 
| 
      
 19 
     | 
    
         
            +
              end
         
     | 
| 
      
 20 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,41 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module FileReload
         
     | 
| 
      
 2 
     | 
    
         
            +
              def self.method_missing(sym,*args,&b)
         
     | 
| 
      
 3 
     | 
    
         
            +
                Base.instance.send(sym,*args,&b)
         
     | 
| 
      
 4 
     | 
    
         
            +
              end
         
     | 
| 
      
 5 
     | 
    
         
            +
              class Base
         
     | 
| 
      
 6 
     | 
    
         
            +
                class << self
         
     | 
| 
      
 7 
     | 
    
         
            +
                  fattr(:instance) { new }
         
     | 
| 
      
 8 
     | 
    
         
            +
                end
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :script
         
     | 
| 
      
 10 
     | 
    
         
            +
                fattr(:threads) { [] }
         
     | 
| 
      
 11 
     | 
    
         
            +
                def reload_file(f)
         
     | 
| 
      
 12 
     | 
    
         
            +
                  if !FileTest.exists?(f)
         
     | 
| 
      
 13 
     | 
    
         
            +
                    puts "file doesn't exist #{f}"
         
     | 
| 
      
 14 
     | 
    
         
            +
                    return
         
     | 
| 
      
 15 
     | 
    
         
            +
                  end
         
     | 
| 
      
 16 
     | 
    
         
            +
                  #return if f =~ /watchr_script/
         
     | 
| 
      
 17 
     | 
    
         
            +
                  puts "loading #{f}"
         
     | 
| 
      
 18 
     | 
    
         
            +
                  load f 
         
     | 
| 
      
 19 
     | 
    
         
            +
                  print ">"
         
     | 
| 
      
 20 
     | 
    
         
            +
                rescue => exp
         
     | 
| 
      
 21 
     | 
    
         
            +
                  puts "error loading #{f}"
         
     | 
| 
      
 22 
     | 
    
         
            +
                  puts exp.message + "\n" + exp.backtrace.join("\n")
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
                def run!
         
     | 
| 
      
 25 
     | 
    
         
            +
                  require 'watchr'
         
     | 
| 
      
 26 
     | 
    
         
            +
                  require 'pathname'
         
     | 
| 
      
 27 
     | 
    
         
            +
                  self.script = Watchr::Script.new
         
     | 
| 
      
 28 
     | 
    
         
            +
                  script.watch(".*\.rb$") do |md| 
         
     | 
| 
      
 29 
     | 
    
         
            +
                    f = md[0]
         
     | 
| 
      
 30 
     | 
    
         
            +
                    reload_file(f)
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
                  
         
     | 
| 
      
 33 
     | 
    
         
            +
                  LRE.watch_dirs.each do |d|
         
     | 
| 
      
 34 
     | 
    
         
            +
                    c = Watchr::Controller.new(script, Watchr.handler.new)
         
     | 
| 
      
 35 
     | 
    
         
            +
                    c.base_path = d
         
     | 
| 
      
 36 
     | 
    
         
            +
                    self.threads << Thread.new { c.run }
         
     | 
| 
      
 37 
     | 
    
         
            +
                  end
         
     | 
| 
      
 38 
     | 
    
         
            +
                end
         
     | 
| 
      
 39 
     | 
    
         
            +
              end
         
     | 
| 
      
 40 
     | 
    
         
            +
            end
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
    
        data/lib/lre/rake_ext.rb
    ADDED
    
    | 
         @@ -0,0 +1,22 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'rake'
         
     | 
| 
      
 2 
     | 
    
         
            +
            module Rake
         
     | 
| 
      
 3 
     | 
    
         
            +
              class Task
         
     | 
| 
      
 4 
     | 
    
         
            +
                def actions=(x)
         
     | 
| 
      
 5 
     | 
    
         
            +
                  @actions = x
         
     | 
| 
      
 6 
     | 
    
         
            +
                end
         
     | 
| 
      
 7 
     | 
    
         
            +
              end
         
     | 
| 
      
 8 
     | 
    
         
            +
            end
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            def gt(n)
         
     | 
| 
      
 11 
     | 
    
         
            +
              t = Rake::Task[n]
         
     | 
| 
      
 12 
     | 
    
         
            +
              #puts "action size #{t.actions.size}"
         
     | 
| 
      
 13 
     | 
    
         
            +
              t.actions = t.actions[-1..-1] if t.actions.size > 1
         
     | 
| 
      
 14 
     | 
    
         
            +
              t.invoke
         
     | 
| 
      
 15 
     | 
    
         
            +
            end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            def gte(n)
         
     | 
| 
      
 18 
     | 
    
         
            +
              t = Rake::Task[n]
         
     | 
| 
      
 19 
     | 
    
         
            +
              #puts "action size #{t.actions.size}"
         
     | 
| 
      
 20 
     | 
    
         
            +
              t.actions = t.actions[-1..-1] if t.actions.size > 1
         
     | 
| 
      
 21 
     | 
    
         
            +
              t.execute
         
     | 
| 
      
 22 
     | 
    
         
            +
            end
         
     | 
    
        data/lre.gemspec
    ADDED
    
    | 
         @@ -0,0 +1,84 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Generated by jeweler
         
     | 
| 
      
 2 
     | 
    
         
            +
            # DO NOT EDIT THIS FILE DIRECTLY
         
     | 
| 
      
 3 
     | 
    
         
            +
            # Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
         
     | 
| 
      
 4 
     | 
    
         
            +
            # -*- encoding: utf-8 -*-
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            Gem::Specification.new do |s|
         
     | 
| 
      
 7 
     | 
    
         
            +
              s.name = %q{lre}
         
     | 
| 
      
 8 
     | 
    
         
            +
              s.version = "0.0.1"
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         
     | 
| 
      
 11 
     | 
    
         
            +
              s.authors = ["mharris717"]
         
     | 
| 
      
 12 
     | 
    
         
            +
              s.date = %q{2011-06-08}
         
     | 
| 
      
 13 
     | 
    
         
            +
              s.default_executable = %q{lre}
         
     | 
| 
      
 14 
     | 
    
         
            +
              s.description = %q{lre}
         
     | 
| 
      
 15 
     | 
    
         
            +
              s.email = %q{mharris717@gmail.com}
         
     | 
| 
      
 16 
     | 
    
         
            +
              s.executables = ["lre"]
         
     | 
| 
      
 17 
     | 
    
         
            +
              s.extra_rdoc_files = [
         
     | 
| 
      
 18 
     | 
    
         
            +
                "LICENSE.txt",
         
     | 
| 
      
 19 
     | 
    
         
            +
                "README.rdoc"
         
     | 
| 
      
 20 
     | 
    
         
            +
              ]
         
     | 
| 
      
 21 
     | 
    
         
            +
              s.files = [
         
     | 
| 
      
 22 
     | 
    
         
            +
                ".document",
         
     | 
| 
      
 23 
     | 
    
         
            +
                ".rspec",
         
     | 
| 
      
 24 
     | 
    
         
            +
                "Gemfile",
         
     | 
| 
      
 25 
     | 
    
         
            +
                "Gemfile.lock",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "LICENSE.txt",
         
     | 
| 
      
 27 
     | 
    
         
            +
                "README.rdoc",
         
     | 
| 
      
 28 
     | 
    
         
            +
                "Rakefile",
         
     | 
| 
      
 29 
     | 
    
         
            +
                "VERSION",
         
     | 
| 
      
 30 
     | 
    
         
            +
                "bin/lre",
         
     | 
| 
      
 31 
     | 
    
         
            +
                "lib/lre.rb",
         
     | 
| 
      
 32 
     | 
    
         
            +
                "lib/lre/file_reload.rb",
         
     | 
| 
      
 33 
     | 
    
         
            +
                "lib/lre/rake_ext.rb",
         
     | 
| 
      
 34 
     | 
    
         
            +
                "lre.gemspec",
         
     | 
| 
      
 35 
     | 
    
         
            +
                "spec/lre_spec.rb",
         
     | 
| 
      
 36 
     | 
    
         
            +
                "spec/spec_helper.rb",
         
     | 
| 
      
 37 
     | 
    
         
            +
                "spec/test_dir/.lre",
         
     | 
| 
      
 38 
     | 
    
         
            +
                "spec/test_dir/file.rb"
         
     | 
| 
      
 39 
     | 
    
         
            +
              ]
         
     | 
| 
      
 40 
     | 
    
         
            +
              s.homepage = %q{http://github.com/mharris717/lre}
         
     | 
| 
      
 41 
     | 
    
         
            +
              s.licenses = ["MIT"]
         
     | 
| 
      
 42 
     | 
    
         
            +
              s.require_paths = ["lib"]
         
     | 
| 
      
 43 
     | 
    
         
            +
              s.rubygems_version = %q{1.5.2}
         
     | 
| 
      
 44 
     | 
    
         
            +
              s.summary = %q{lre}
         
     | 
| 
      
 45 
     | 
    
         
            +
              s.test_files = [
         
     | 
| 
      
 46 
     | 
    
         
            +
                "spec/lre_spec.rb",
         
     | 
| 
      
 47 
     | 
    
         
            +
                "spec/spec_helper.rb",
         
     | 
| 
      
 48 
     | 
    
         
            +
                "spec/test_dir/file.rb"
         
     | 
| 
      
 49 
     | 
    
         
            +
              ]
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
              if s.respond_to? :specification_version then
         
     | 
| 
      
 52 
     | 
    
         
            +
                s.specification_version = 3
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
      
 54 
     | 
    
         
            +
                if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
         
     | 
| 
      
 55 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<fattr>, [">= 0"])
         
     | 
| 
      
 56 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<rake>, [">= 0"])
         
     | 
| 
      
 57 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<watchr>, [">= 0"])
         
     | 
| 
      
 58 
     | 
    
         
            +
                  s.add_runtime_dependency(%q<mharris_ext>, [">= 0"])
         
     | 
| 
      
 59 
     | 
    
         
            +
                  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
         
     | 
| 
      
 60 
     | 
    
         
            +
                  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
         
     | 
| 
      
 61 
     | 
    
         
            +
                  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
         
     | 
| 
      
 62 
     | 
    
         
            +
                  s.add_development_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 63 
     | 
    
         
            +
                else
         
     | 
| 
      
 64 
     | 
    
         
            +
                  s.add_dependency(%q<fattr>, [">= 0"])
         
     | 
| 
      
 65 
     | 
    
         
            +
                  s.add_dependency(%q<rake>, [">= 0"])
         
     | 
| 
      
 66 
     | 
    
         
            +
                  s.add_dependency(%q<watchr>, [">= 0"])
         
     | 
| 
      
 67 
     | 
    
         
            +
                  s.add_dependency(%q<mharris_ext>, [">= 0"])
         
     | 
| 
      
 68 
     | 
    
         
            +
                  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
         
     | 
| 
      
 69 
     | 
    
         
            +
                  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
         
     | 
| 
      
 70 
     | 
    
         
            +
                  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
         
     | 
| 
      
 71 
     | 
    
         
            +
                  s.add_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 72 
     | 
    
         
            +
                end
         
     | 
| 
      
 73 
     | 
    
         
            +
              else
         
     | 
| 
      
 74 
     | 
    
         
            +
                s.add_dependency(%q<fattr>, [">= 0"])
         
     | 
| 
      
 75 
     | 
    
         
            +
                s.add_dependency(%q<rake>, [">= 0"])
         
     | 
| 
      
 76 
     | 
    
         
            +
                s.add_dependency(%q<watchr>, [">= 0"])
         
     | 
| 
      
 77 
     | 
    
         
            +
                s.add_dependency(%q<mharris_ext>, [">= 0"])
         
     | 
| 
      
 78 
     | 
    
         
            +
                s.add_dependency(%q<rspec>, ["~> 2.3.0"])
         
     | 
| 
      
 79 
     | 
    
         
            +
                s.add_dependency(%q<bundler>, ["~> 1.0.0"])
         
     | 
| 
      
 80 
     | 
    
         
            +
                s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
         
     | 
| 
      
 81 
     | 
    
         
            +
                s.add_dependency(%q<rcov>, [">= 0"])
         
     | 
| 
      
 82 
     | 
    
         
            +
              end
         
     | 
| 
      
 83 
     | 
    
         
            +
            end
         
     | 
| 
      
 84 
     | 
    
         
            +
             
     | 
    
        data/spec/lre_spec.rb
    ADDED
    
    
    
        data/spec/spec_helper.rb
    ADDED
    
    | 
         @@ -0,0 +1,12 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
         
     | 
| 
      
 2 
     | 
    
         
            +
            $LOAD_PATH.unshift(File.dirname(__FILE__))
         
     | 
| 
      
 3 
     | 
    
         
            +
            require 'rspec'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'lre'
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            # Requires supporting files with custom matchers and macros, etc,
         
     | 
| 
      
 7 
     | 
    
         
            +
            # in ./support/ and its subdirectories.
         
     | 
| 
      
 8 
     | 
    
         
            +
            Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            RSpec.configure do |config|
         
     | 
| 
      
 11 
     | 
    
         
            +
              
         
     | 
| 
      
 12 
     | 
    
         
            +
            end
         
     | 
    
        data/spec/test_dir/.lre
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            puts "hello"
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            puts 'file.rb'
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,161 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: lre
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.1
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
      
 6 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 7 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 8 
     | 
    
         
            +
            - mharris717
         
     | 
| 
      
 9 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 10 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 11 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2011-06-08 00:00:00.000000000 -04:00
         
     | 
| 
      
 13 
     | 
    
         
            +
            default_executable: lre
         
     | 
| 
      
 14 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 15 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 16 
     | 
    
         
            +
              name: fattr
         
     | 
| 
      
 17 
     | 
    
         
            +
              requirement: &8160012 !ruby/object:Gem::Requirement
         
     | 
| 
      
 18 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 19 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 20 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 21 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 22 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 23 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 24 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 25 
     | 
    
         
            +
              version_requirements: *8160012
         
     | 
| 
      
 26 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 27 
     | 
    
         
            +
              name: rake
         
     | 
| 
      
 28 
     | 
    
         
            +
              requirement: &8159568 !ruby/object:Gem::Requirement
         
     | 
| 
      
 29 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 30 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 34 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 35 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 36 
     | 
    
         
            +
              version_requirements: *8159568
         
     | 
| 
      
 37 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 38 
     | 
    
         
            +
              name: watchr
         
     | 
| 
      
 39 
     | 
    
         
            +
              requirement: &8136372 !ruby/object:Gem::Requirement
         
     | 
| 
      
 40 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 41 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 42 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 43 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 44 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 45 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 46 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 47 
     | 
    
         
            +
              version_requirements: *8136372
         
     | 
| 
      
 48 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 49 
     | 
    
         
            +
              name: mharris_ext
         
     | 
| 
      
 50 
     | 
    
         
            +
              requirement: &8135844 !ruby/object:Gem::Requirement
         
     | 
| 
      
 51 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 52 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 53 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 54 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 55 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 56 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 57 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 58 
     | 
    
         
            +
              version_requirements: *8135844
         
     | 
| 
      
 59 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 60 
     | 
    
         
            +
              name: rspec
         
     | 
| 
      
 61 
     | 
    
         
            +
              requirement: &8135352 !ruby/object:Gem::Requirement
         
     | 
| 
      
 62 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 63 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 64 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 65 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 66 
     | 
    
         
            +
                    version: 2.3.0
         
     | 
| 
      
 67 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 68 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 69 
     | 
    
         
            +
              version_requirements: *8135352
         
     | 
| 
      
 70 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 71 
     | 
    
         
            +
              name: bundler
         
     | 
| 
      
 72 
     | 
    
         
            +
              requirement: &8134872 !ruby/object:Gem::Requirement
         
     | 
| 
      
 73 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 74 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 75 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 76 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 77 
     | 
    
         
            +
                    version: 1.0.0
         
     | 
| 
      
 78 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 79 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 80 
     | 
    
         
            +
              version_requirements: *8134872
         
     | 
| 
      
 81 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 82 
     | 
    
         
            +
              name: jeweler
         
     | 
| 
      
 83 
     | 
    
         
            +
              requirement: &8134092 !ruby/object:Gem::Requirement
         
     | 
| 
      
 84 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 85 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 86 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 87 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 88 
     | 
    
         
            +
                    version: 1.5.2
         
     | 
| 
      
 89 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 90 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 91 
     | 
    
         
            +
              version_requirements: *8134092
         
     | 
| 
      
 92 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 93 
     | 
    
         
            +
              name: rcov
         
     | 
| 
      
 94 
     | 
    
         
            +
              requirement: &8133468 !ruby/object:Gem::Requirement
         
     | 
| 
      
 95 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 96 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 97 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 98 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 99 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 100 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 101 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 102 
     | 
    
         
            +
              version_requirements: *8133468
         
     | 
| 
      
 103 
     | 
    
         
            +
            description: lre
         
     | 
| 
      
 104 
     | 
    
         
            +
            email: mharris717@gmail.com
         
     | 
| 
      
 105 
     | 
    
         
            +
            executables:
         
     | 
| 
      
 106 
     | 
    
         
            +
            - lre
         
     | 
| 
      
 107 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 108 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
      
 109 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 110 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 111 
     | 
    
         
            +
            files:
         
     | 
| 
      
 112 
     | 
    
         
            +
            - .document
         
     | 
| 
      
 113 
     | 
    
         
            +
            - .rspec
         
     | 
| 
      
 114 
     | 
    
         
            +
            - Gemfile
         
     | 
| 
      
 115 
     | 
    
         
            +
            - Gemfile.lock
         
     | 
| 
      
 116 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 117 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 118 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 119 
     | 
    
         
            +
            - VERSION
         
     | 
| 
      
 120 
     | 
    
         
            +
            - bin/lre
         
     | 
| 
      
 121 
     | 
    
         
            +
            - lib/lre.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            - lib/lre/file_reload.rb
         
     | 
| 
      
 123 
     | 
    
         
            +
            - lib/lre/rake_ext.rb
         
     | 
| 
      
 124 
     | 
    
         
            +
            - lre.gemspec
         
     | 
| 
      
 125 
     | 
    
         
            +
            - spec/lre_spec.rb
         
     | 
| 
      
 126 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 127 
     | 
    
         
            +
            - spec/test_dir/.lre
         
     | 
| 
      
 128 
     | 
    
         
            +
            - spec/test_dir/file.rb
         
     | 
| 
      
 129 
     | 
    
         
            +
            has_rdoc: true
         
     | 
| 
      
 130 
     | 
    
         
            +
            homepage: http://github.com/mharris717/lre
         
     | 
| 
      
 131 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 132 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 133 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 134 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 135 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 136 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 137 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 138 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 139 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 140 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 141 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 142 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 143 
     | 
    
         
            +
                  segments:
         
     | 
| 
      
 144 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 145 
     | 
    
         
            +
                  hash: 979873985
         
     | 
| 
      
 146 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 147 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 148 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 149 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 150 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 151 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 152 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 153 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 154 
     | 
    
         
            +
            rubygems_version: 1.5.2
         
     | 
| 
      
 155 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 156 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 157 
     | 
    
         
            +
            summary: lre
         
     | 
| 
      
 158 
     | 
    
         
            +
            test_files:
         
     | 
| 
      
 159 
     | 
    
         
            +
            - spec/lre_spec.rb
         
     | 
| 
      
 160 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 161 
     | 
    
         
            +
            - spec/test_dir/file.rb
         
     |