getclonedata 0.2 → 0.2.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/getclonedata/getclonedata_clonerepo.rb +10 -3
- data/lib/getclonedata/version.rb +1 -1
- metadata +1 -2
- data/temp.zip +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40a0d5c6633ff4dd9ba068b15e71c64b67463531
|
|
4
|
+
data.tar.gz: fcc1023787feda5b83fcbeeecb8d5bbf3039b966
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfe5e85353ab7b6a4e05bc211aef1f2f65ee0ae82b4785389c6fe04898cc382b3cec93e2c047a3dbe98474efe29a8d4191631dd62eb406a75712fbe4089cf6d2
|
|
7
|
+
data.tar.gz: bf2a0a6ae31207d6cf2aa2e2bb6fef1f61f222d9e70ae4f9e8db4bca5ae20462502328a27a48b757fb0be08afd9c13df2bc208b22554c3c5d95937b033b857ba
|
data/Gemfile.lock
CHANGED
|
@@ -7,6 +7,8 @@ module GetCloneData
|
|
|
7
7
|
)
|
|
8
8
|
)
|
|
9
9
|
|
|
10
|
+
@@itt = 0
|
|
11
|
+
|
|
10
12
|
attr_reader :flog, :flog, :flay, :rubocop, :loc
|
|
11
13
|
|
|
12
14
|
def initialize(repo_path:)
|
|
@@ -17,7 +19,7 @@ module GetCloneData
|
|
|
17
19
|
repo_path = self.get_repo_path(git_url: git_url)
|
|
18
20
|
`git clone --depth=1 #{git_url} #{repo_path}`
|
|
19
21
|
return nil unless Dir.exists? repo_path
|
|
20
|
-
new(repo_path: repo_path)
|
|
22
|
+
new(repo_path: repo_path)
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
def self.wipe
|
|
@@ -29,14 +31,19 @@ module GetCloneData
|
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
def self.get_repo_path(git_url:)
|
|
32
|
-
|
|
34
|
+
owner, repo = git_url.gsub('.git','').split('/')[3,4]
|
|
33
35
|
File.expand_path(
|
|
34
36
|
File.join(
|
|
35
|
-
CLONED_REPO_PATH,
|
|
37
|
+
CLONED_REPO_PATH, owner, repo, itt.to_s
|
|
36
38
|
)
|
|
37
39
|
)
|
|
38
40
|
end
|
|
39
41
|
|
|
42
|
+
def self.itt
|
|
43
|
+
@@itt = @@itt + 1
|
|
44
|
+
@@itt
|
|
45
|
+
end
|
|
46
|
+
|
|
40
47
|
def get_flog_scores
|
|
41
48
|
if Dir.exist? @repo_path
|
|
42
49
|
flog_response = `flog #{@repo_path}`.split("\n")
|
data/lib/getclonedata/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: getclonedata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Renaud Jollet
|
|
@@ -161,7 +161,6 @@ files:
|
|
|
161
161
|
- lib/getclonedata/version.rb
|
|
162
162
|
- spec/clonerepo_spec.rb
|
|
163
163
|
- spec/spec_helper.rb
|
|
164
|
-
- temp.zip
|
|
165
164
|
homepage: https://github.com/Rubeasts/gitget
|
|
166
165
|
licenses:
|
|
167
166
|
- MIT
|
data/temp.zip
DELETED
|
File without changes
|