rmm5t-yarg 0.1.2 → 0.1.3
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/lib/yarg.rb +1 -1
 - data/lib/yarg/file_actions.rb +2 -1
 - data/test/test_helper.rb +1 -1
 - data/yarg.gemspec +3 -3
 - metadata +2 -2
 
    
        data/lib/yarg.rb
    CHANGED
    
    
    
        data/lib/yarg/file_actions.rb
    CHANGED
    
    | 
         @@ -45,7 +45,8 @@ module Yarg 
     | 
|
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
                def apply_templates
         
     | 
| 
       47 
47 
     | 
    
         
             
                  self.templates.each do |path|
         
     | 
| 
       48 
     | 
    
         
            -
                     
     | 
| 
      
 48 
     | 
    
         
            +
                    everything_including_dotfiles = "{.[!.]*,*}"
         
     | 
| 
      
 49 
     | 
    
         
            +
                    sources = Dir.glob(File.join(File.expand_path(path), everything_including_dotfiles))
         
     | 
| 
       49 
50 
     | 
    
         
             
                    FileUtils.cp_r(sources, ".", :verbose => true)
         
     | 
| 
       50 
51 
     | 
    
         
             
                  end
         
     | 
| 
       51 
52 
     | 
    
         
             
                end
         
     | 
    
        data/test/test_helper.rb
    CHANGED
    
    | 
         @@ -78,7 +78,7 @@ class Test::Unit::TestCase 
     | 
|
| 
       78 
78 
     | 
    
         
             
                Dir.stubs(:glob)
         
     | 
| 
       79 
79 
     | 
    
         
             
                Dir.stubs(:glob).with("public/index.html").returns(%w(public/index.html))
         
     | 
| 
       80 
80 
     | 
    
         
             
                Dir.stubs(:glob).with("public/dispatch.*").returns(%w(public/dispatch.cgi public/dispatch.fcgi public/dispatch.rb))
         
     | 
| 
       81 
     | 
    
         
            -
                Dir.stubs(:glob).with("/tmp/.yarg.d/rails 
     | 
| 
      
 81 
     | 
    
         
            +
                Dir.stubs(:glob).with("/tmp/.yarg.d/rails/{.[!.]*,*}").returns(["/tmp/.yarg.d/rails"])
         
     | 
| 
       82 
82 
     | 
    
         
             
                File.stubs(:delete)
         
     | 
| 
       83 
83 
     | 
    
         
             
                FileUtils.stubs(:cp_r)
         
     | 
| 
       84 
84 
     | 
    
         
             
              end
         
     | 
    
        data/yarg.gemspec
    CHANGED
    
    | 
         @@ -2,11 +2,11 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            Gem::Specification.new do |s|
         
     | 
| 
       4 
4 
     | 
    
         
             
              s.name = %q{yarg}
         
     | 
| 
       5 
     | 
    
         
            -
              s.version = "0.1. 
     | 
| 
      
 5 
     | 
    
         
            +
              s.version = "0.1.3"
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
              s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
         
     | 
| 
       8 
8 
     | 
    
         
             
              s.authors = ["Ryan McGeary"]
         
     | 
| 
       9 
     | 
    
         
            -
              s.date = %q{2008-11- 
     | 
| 
      
 9 
     | 
    
         
            +
              s.date = %q{2008-11-18}
         
     | 
| 
       10 
10 
     | 
    
         
             
              s.default_executable = %q{yarg}
         
     | 
| 
       11 
11 
     | 
    
         
             
              s.description = %q{Yet Another Ruby Generator: Customize existing project generators to fit your personality.}
         
     | 
| 
       12 
12 
     | 
    
         
             
              s.email = %q{}
         
     | 
| 
         @@ -18,7 +18,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       18 
18 
     | 
    
         
             
              s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Yarg", "--main", "README.markdown"]
         
     | 
| 
       19 
19 
     | 
    
         
             
              s.require_paths = ["lib"]
         
     | 
| 
       20 
20 
     | 
    
         
             
              s.rubyforge_project = %q{yarg}
         
     | 
| 
       21 
     | 
    
         
            -
              s.rubygems_version = %q{1.3. 
     | 
| 
      
 21 
     | 
    
         
            +
              s.rubygems_version = %q{1.3.1}
         
     | 
| 
       22 
22 
     | 
    
         
             
              s.summary = %q{Yet Another Ruby Generator}
         
     | 
| 
       23 
23 
     | 
    
         
             
              s.test_files = ["test/file_actions_test.rb", "test/rails_test.rb", "test/scm_test.rb", "test/test_helper.rb"]
         
     | 
| 
       24 
24 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rmm5t-yarg
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Ryan McGeary
         
     | 
| 
         @@ -9,7 +9,7 @@ autorequire: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date: 2008-11- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2008-11-18 00:00:00 -08:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: yarg
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |