raykit 0.0.361 → 0.0.362
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.
- checksums.yaml +4 -4
- data/lib/raykit/git/repository.rb +29 -0
- data/lib/raykit/nunit.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 4803d18fb5a110d2a7a4109baacbb60f5bd0cecd90d484a2d1c856ae90c4ac14
         | 
| 4 | 
            +
              data.tar.gz: 3a093936b0c035952b2f142f28e43ec182f82b11d9632999ae802fd69f313200
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8a4b64179090fbc77bb7d14689159785676930c1794f53398e5b3806d489ed8e41b258a7590270c350100e3c5dbe84697bfb2e7d0da2bb3afda233896a2463ad
         | 
| 7 | 
            +
              data.tar.gz: 47affc594e3896924e07c4edc7d67201d7146adf9171ff1310af191c2c93bc72472f52f8844b20453b6eb579e945e19de056c3152022c18fb25e0a7416c6fc6c
         | 
| @@ -101,6 +101,35 @@ module Raykit | |
| 101 101 | 
             
                    end
         | 
| 102 102 | 
             
                    false
         | 
| 103 103 | 
             
                  end
         | 
| 104 | 
            +
             | 
| 105 | 
            +
                  def self.work_pull(url)
         | 
| 106 | 
            +
                    repo = Raykit::Git::Repository.new(url)
         | 
| 107 | 
            +
                    work_dir = repo.get_dev_dir("work")
         | 
| 108 | 
            +
                    repo.clone(work_dir) if !Dir.exist?(work_dir)
         | 
| 109 | 
            +
                    Dir.chdir(work_dir) do
         | 
| 110 | 
            +
                      run("git pull")
         | 
| 111 | 
            +
                    end
         | 
| 112 | 
            +
                  end
         | 
| 113 | 
            +
             | 
| 114 | 
            +
                  def self.work_integrate(url)
         | 
| 115 | 
            +
                    repo = Raykit::Git::Repository.new(url)
         | 
| 116 | 
            +
                    work_dir = repo.get_dev_dir("work")
         | 
| 117 | 
            +
                    repo.clone(work_dir) if !Dir.exist?(work_dir)
         | 
| 118 | 
            +
                    Dir.chdir(work_dir) do
         | 
| 119 | 
            +
                      run("git pull")
         | 
| 120 | 
            +
                      run("rake integrate")
         | 
| 121 | 
            +
                    end
         | 
| 122 | 
            +
                  end
         | 
| 123 | 
            +
             | 
| 124 | 
            +
                  def self.work(url, cmd)
         | 
| 125 | 
            +
                    repo = Raykit::Git::Repository.new(url)
         | 
| 126 | 
            +
                    work_dir = repo.get_dev_dir("work")
         | 
| 127 | 
            +
                    repo.clone(work_dir) if !Dir.exist?(work_dir)
         | 
| 128 | 
            +
                    Dir.chdir(work_dir) do
         | 
| 129 | 
            +
                      run("git pull")
         | 
| 130 | 
            +
                      run(cmd)
         | 
| 131 | 
            +
                    end
         | 
| 132 | 
            +
                  end
         | 
| 104 133 | 
             
                end
         | 
| 105 134 | 
             
              end
         | 
| 106 135 | 
             
            end
         | 
    
        data/lib/raykit/nunit.rb
    CHANGED
    
    | @@ -3,7 +3,7 @@ module Raykit | |
| 3 3 | 
             
                def self.nunit3console_path(version)
         | 
| 4 4 | 
             
                  # C:\Users\lparslow\.nuget\packages\nunit.consolerunner\3.15.0\tools
         | 
| 5 5 | 
             
                  path = "#{Environment.home_dir}/.nuget/packages/nunit.consolerunner/#{version}/tools"
         | 
| 6 | 
            -
                  if Dir. | 
| 6 | 
            +
                  if Dir.exist?(path)
         | 
| 7 7 | 
             
                    path
         | 
| 8 8 | 
             
                  else
         | 
| 9 9 | 
             
                    ""
         |