gitload 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48e731fecdfd2821556dc88703efa85eff63ab2b21b94995fbec011e2cde06fe
4
- data.tar.gz: 40194bfde09fb0ac2a14ba0c9b395fd2a8277f864a6bfe2a8d1171901d7b0054
3
+ metadata.gz: 2337d67ace4bece0d684c5b298fdce235493395ec5fccda0c8e0cefa4c9cc49a
4
+ data.tar.gz: a7e573af2df43a2067e109844f6716c39220fa6a2c032c1ec3971c47d6794972
5
5
  SHA512:
6
- metadata.gz: 43cf8195ccecbd4bf42e3832eaa66c4d788836244e774c301a9b18f757d2ede69602cd4e975d82927cf2a20af776f112a4434a9ffb43a4baf675d62c18aad154
7
- data.tar.gz: a8e999a40a3731eadafb6241bf771cf6152798294ee51f1b6e2b96c25507c1093f103792a7c7fc759ff4f5fc3f5e4c5c1e46c445de80738f1d5549c48c2c52ea
6
+ metadata.gz: 5e4498fb08beccd988bed5675e74315d06bcb2f43228732b94de99867844a0c1d17b3a90602743a3a41c01f57d63a38bdab2304b14104ff781fec440442cad69
7
+ data.tar.gz: 25a95f1da442a433e536d694e9a6a8a1b6673fb0ec9be7bb5693c2262b1830d067cb0e432c1098d24fa6120f3670795e67b13cf7b2799439694c1d22bdcbda11
data/Gemfile CHANGED
@@ -22,4 +22,5 @@ group :development do
22
22
  gem 'jeweler', '~> 2.0'
23
23
  gem 'rake-version', '~> 1.0'
24
24
  gem 'simplecov', '~> 0.16.1'
25
+ gem 'coveralls', '~> 0.8.22', require: false
25
26
  end
data/README.md CHANGED
@@ -4,4 +4,4 @@ Easily clone all your GitHub repositories.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/gitload.svg)](http://badge.fury.io/rb/gitload)
6
6
  [![Build Status](https://travis-ci.org/AlphaHydrae/gitload.svg?branch=master)](http://travis-ci.org/AlphaHydrae/gitload)
7
- [![Coverage Status](https://coveralls.io/repos/AlphaHydrae/gitload/badge.svg)](https://coveralls.io/r/AlphaHydrae/gitload)
7
+ [![Coverage Status](https://coveralls.io/repos/github/AlphaHydrae/gitload/badge.svg?branch=master)](https://coveralls.io/github/AlphaHydrae/gitload?branch=master)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -2,7 +2,7 @@
2
2
  require 'paint'
3
3
 
4
4
  module Gitload
5
- VERSION = '1.0.2'
5
+ VERSION = '1.0.3'
6
6
  end
7
7
 
8
8
  require 'gitload/command_line'
@@ -20,16 +20,10 @@ module Gitload
20
20
  puts 'Loading GitLab projects...'
21
21
  data = @config.load_or_cache_data 'gitlab' do
22
22
 
23
- page = 1
24
23
  projects = []
25
24
 
26
- res = Gitlab.projects(membership: true, per_page: 100)
27
- projects += res.collect(&:to_h)
28
-
29
- while res.has_next_page?
30
- page += 1
31
- puts "Loading GitLab projects (page #{page})..."
32
- projects += res.next_page.collect(&:to_h)
25
+ Gitlab.projects(membership: true, per_page: 100).auto_paginate do |project|
26
+ projects << project.to_h
33
27
  end
34
28
 
35
29
  Utils.stringify_keys(projects)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitload
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Oulevay (Alpha Hydrae)
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-09 00:00:00.000000000 Z
11
+ date: 2020-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paint
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: 0.16.1
195
+ - !ruby/object:Gem::Dependency
196
+ name: coveralls
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 0.8.22
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 0.8.22
195
209
  description: Gitload provides a DSL to easily clone all your repositories from GitHub
196
210
  and other providers.
197
211
  email: git@alphahydrae.com
@@ -224,7 +238,7 @@ homepage: https://github.com/AlphaHydrae/gitload
224
238
  licenses:
225
239
  - MIT
226
240
  metadata: {}
227
- post_install_message:
241
+ post_install_message:
228
242
  rdoc_options: []
229
243
  require_paths:
230
244
  - lib
@@ -239,8 +253,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
253
  - !ruby/object:Gem::Version
240
254
  version: '0'
241
255
  requirements: []
242
- rubygems_version: 3.0.3
243
- signing_key:
256
+ rubygems_version: 3.1.2
257
+ signing_key:
244
258
  specification_version: 4
245
259
  summary: Gitload downloads your repositories.
246
260
  test_files: []