getclonedata 0.1 → 0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da3abaebdbc7f5154ddf8d81e2224e9152427826
4
- data.tar.gz: c2ff17229504b77aa1fa3e05ef75eb433e106c5c
3
+ metadata.gz: b6e364139abf9d37bf10c72687438ae2d5ba1253
4
+ data.tar.gz: 651bb52e46fe82effa862dc4fbb684004e2a2ecb
5
5
  SHA512:
6
- metadata.gz: 378364cfda4ed03710efd27f1a31c019f089e884c92ba3747e9e9c3190cb90beae8147592bb5ad169f5001d2b9905ddbc719fbeae190b0ca0afbae788b6677c5
7
- data.tar.gz: 38d20c6d9a7c4b1122edf1e1875434fb6863525c02183d3b6281c59cad39e17d2c3b912b811d168c79b0425cad12231cf6d1e58aead6b0e6a7fabdaad934d8c2
6
+ metadata.gz: c4d10d2906526c65e88a45527a6d0f2e66795e41b715c048c08db6f16cdbbbc5da2df8cc5dd7a269c41e40b682bc4b12582eaf932907a3a4ebbf477ebde57c9c
7
+ data.tar.gz: eac4ca1562e848d896ee2ea17c6c42ce67ab8a045631287479b51b64b95c912af45e379901243ad04bf8ae015eaa38156f01b8224c73b4aa8dbfdbed5c43f709
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  coverage/
2
2
  cloned_repo_tmp/
3
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getclonedata (0.1)
4
+ getclonedata (0.2)
5
5
  cloc (~> 0.9)
6
6
  flay (~> 2.8)
7
7
  flog (~> 4.4)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  ![CI](https://api.travis-ci.org/Rubeasts/git-clone.svg?branch=master)
2
+ [![Gem Version](https://badge.fury.io/rb/getclonedata.svg)](https://badge.fury.io/rb/getclonedata)
2
3
 
3
4
  # git-clone
4
5
  Git Clone, quality script
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GetCloneData
4
- VERSION = '0.1'
4
+ VERSION = '0.2'
5
5
  end
@@ -18,10 +18,10 @@ describe 'Github specifications' do
18
18
  end
19
19
 
20
20
  it 'HAPPY: should contain flog' do
21
- @repository.flog.must_be_instance_of Array
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.flay.must_be_instance_of Float
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.1'
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-16 00:00:00.000000000 Z
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