getclonedata 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/getclonedata/getclonedata_clonerepo.rb +2 -7
- data/lib/getclonedata/version.rb +1 -1
- data/spec/clonerepo_spec.rb +2 -2
- data/temp.zip +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6e364139abf9d37bf10c72687438ae2d5ba1253
|
4
|
+
data.tar.gz: 651bb52e46fe82effa862dc4fbb684004e2a2ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4d10d2906526c65e88a45527a6d0f2e66795e41b715c048c08db6f16cdbbbc5da2df8cc5dd7a269c41e40b682bc4b12582eaf932907a3a4ebbf477ebde57c9c
|
7
|
+
data.tar.gz: eac4ca1562e848d896ee2ea17c6c42ce67ab8a045631287479b51b64b95c912af45e379901243ad04bf8ae015eaa38156f01b8224c73b4aa8dbfdbed5c43f709
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -11,18 +11,13 @@ module GetCloneData
|
|
11
11
|
|
12
12
|
def initialize(repo_path:)
|
13
13
|
@repo_path = repo_path
|
14
|
-
@flog = get_flog_scores
|
15
|
-
@flay = get_flay_score
|
16
|
-
@rubocop = get_rubocop_errors
|
17
|
-
@loc = get_loc
|
18
|
-
wipe
|
19
14
|
end
|
20
15
|
|
21
16
|
def self.clone(git_url:)
|
22
17
|
repo_path = self.get_repo_path(git_url: git_url)
|
23
|
-
`git clone #{git_url} #{repo_path}`
|
18
|
+
`git clone --depth=1 #{git_url} #{repo_path}`
|
24
19
|
return nil unless Dir.exists? repo_path
|
25
|
-
new(repo_path: repo_path)
|
20
|
+
new(repo_path: repo_path)
|
26
21
|
end
|
27
22
|
|
28
23
|
def self.wipe
|
data/lib/getclonedata/version.rb
CHANGED
data/spec/clonerepo_spec.rb
CHANGED
@@ -18,10 +18,10 @@ describe 'Github specifications' do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'HAPPY: should contain flog' do
|
21
|
-
@repository.
|
21
|
+
@repository.get_flog_scores.must_be_instance_of Array
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'HAPPY: should contain flay' do
|
25
|
-
@repository.
|
25
|
+
@repository.get_flay_score.must_be_instance_of Float
|
26
26
|
end
|
27
27
|
end
|
data/temp.zip
ADDED
File without changes
|
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: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renaud Jollet
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-12-
|
13
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/getclonedata/version.rb
|
162
162
|
- spec/clonerepo_spec.rb
|
163
163
|
- spec/spec_helper.rb
|
164
|
+
- temp.zip
|
164
165
|
homepage: https://github.com/Rubeasts/gitget
|
165
166
|
licenses:
|
166
167
|
- MIT
|