coderunner 0.16.3 → 0.16.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coderunner.gemspec +2 -2
- data/lib/coderunner/instance_methods.rb +1 -1
- data/lib/coderunner/repository.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48ef89e2719338787837d791ffa8b67c9af92fd6
|
4
|
+
data.tar.gz: f54fcf7bc92604734999337fbc65df2cb9345d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06147321ddd9921574cdd737b799d5ee84c10df11e36659e3570fbdd3540d258aa7c298bcfe916c3e4a27b554019ec5da2511bca029a4a3e140500de13976bc
|
7
|
+
data.tar.gz: 266129dd759a3459ac0fe4e235cdb3a58078e3969799e64e941a6ffe09f733260c54ee3166edd6846bf65ce8f74ec355eab237b54f102ac3bda59c818c30d20c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.16.
|
1
|
+
0.16.4
|
data/coderunner.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: coderunner 0.16.
|
5
|
+
# stub: coderunner 0.16.4 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "coderunner"
|
10
|
-
s.version = "0.16.
|
10
|
+
s.version = "0.16.4"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
@@ -1574,7 +1574,7 @@ EOF
|
|
1574
1574
|
if is_in_repo?
|
1575
1575
|
repo = Repository.open_in_subfolder(@root_folder)
|
1576
1576
|
Dir.chdir(@root_folder){
|
1577
|
-
repo.deleted_in_folder(Dir.pwd).each{|k,f| repo.
|
1577
|
+
repo.deleted_in_folder(Dir.pwd).each{|k,f| repo.remove(repo.dir.to_s + '/' + f.path)}
|
1578
1578
|
}
|
1579
1579
|
repo.autocommit("Deleted simulations with ids #{ids} in folder #{repo.relative_path(@root_folder)}")
|
1580
1580
|
end
|
@@ -31,17 +31,17 @@ class CodeRunner
|
|
31
31
|
# without the need for a central server which all
|
32
32
|
# working directories have access to.
|
33
33
|
class Repository < Git::Base
|
34
|
-
# Create a coderunner repo, which consists of a
|
35
|
-
# twin set of a bare repo and a clone of that
|
36
|
-
# repo. folder must end in '.cr.git'
|
37
|
-
#
|
38
34
|
def self.url_regex
|
39
35
|
(/(?:ssh:\/\/)?(?<namehost>[^\/:]+):?(?<folder>.*$)/)
|
40
36
|
end
|
41
37
|
def self.bare_ext_reg
|
42
38
|
/\.cr\.git$/
|
43
39
|
end
|
44
|
-
|
40
|
+
|
41
|
+
# Create a coderunner repo, which consists of a
|
42
|
+
# twin set of a bare repo and a clone of that
|
43
|
+
# repo. folder must end in '.cr.git'
|
44
|
+
#
|
45
45
|
def self.init(folder)
|
46
46
|
if folder =~ /\.git$/
|
47
47
|
raise "Please do not add '.git' to the end of #{folder}. Two repositories will be created: a bare repo ending in .cr.git and a clone of this bare repo"
|