mirror_github 0.0.1.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mirror_github/github.rb +5 -2
- data/lib/mirror_github/version.rb +1 -1
- data/mirror_github.gemspec +2 -2
- metadata +63 -75
data/lib/mirror_github/github.rb
CHANGED
@@ -20,9 +20,12 @@ module MirrorGithub
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# Return a list of the current repositories for an organization
|
23
|
-
def repositories
|
23
|
+
def repositories(limit = 100000)
|
24
24
|
return [] unless org
|
25
|
-
|
25
|
+
|
26
|
+
# Github defaults to paginating with 30 repos per page. This is really not what we want
|
27
|
+
# when we're trying to back up all of our repos!
|
28
|
+
JSON::parse(connection["orgs/#{org}/repos?per_page=#{limit}"].get).collect do |repo_hash|
|
26
29
|
Repository.new(:ssh_url => repo_hash['ssh_url'],
|
27
30
|
:private => repo_hash['private'],
|
28
31
|
:created_at => repo_hash["created_at"],
|
data/mirror_github.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "mirror_github"
|
7
7
|
s.version = MirrorGithub::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["Casey Dreier"]
|
10
|
-
s.email = ["casey.dreier@gmail.com"]
|
9
|
+
s.authors = ["Casey Dreier", "Leon Miller-Out"]
|
10
|
+
s.email = ["casey.dreier@gmail.com", "leon@singlebrook.com"]
|
11
11
|
s.homepage = "https://github.com/singlebrook/mirror_github"
|
12
12
|
s.summary = %q{Command-line library for mirroring an Organization's GitHub repositories}
|
13
13
|
s.description = %q{Command-line library for mirroring an Organization's GitHub repositories}
|
metadata
CHANGED
@@ -1,76 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mirror_github
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
- 1
|
11
|
-
version: 0.0.1.1
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Casey Dreier
|
9
|
+
- Leon Miller-Out
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-02-18 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: rest-client
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
version: "0"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
34
23
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: json_pure
|
38
24
|
prerelease: false
|
39
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
26
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: json_pure
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
48
39
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: fakeweb
|
52
40
|
prerelease: false
|
53
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
42
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: fakeweb
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
62
55
|
type: :development
|
63
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
64
63
|
description: Command-line library for mirroring an Organization's GitHub repositories
|
65
|
-
email:
|
64
|
+
email:
|
66
65
|
- casey.dreier@gmail.com
|
67
|
-
|
66
|
+
- leon@singlebrook.com
|
67
|
+
executables:
|
68
68
|
- mirror_github
|
69
69
|
extensions: []
|
70
|
-
|
71
70
|
extra_rdoc_files: []
|
72
|
-
|
73
|
-
files:
|
71
|
+
files:
|
74
72
|
- .gitignore
|
75
73
|
- BSD-LICENSE
|
76
74
|
- Gemfile
|
@@ -92,39 +90,29 @@ files:
|
|
92
90
|
- test/github_test.rb
|
93
91
|
- test/repository_test.rb
|
94
92
|
- test/test_helper.rb
|
95
|
-
has_rdoc: true
|
96
93
|
homepage: https://github.com/singlebrook/mirror_github
|
97
|
-
licenses:
|
94
|
+
licenses:
|
98
95
|
- BSD
|
99
96
|
post_install_message:
|
100
97
|
rdoc_options: []
|
101
|
-
|
102
|
-
require_paths:
|
98
|
+
require_paths:
|
103
99
|
- lib
|
104
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
101
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
110
|
-
|
111
|
-
- 0
|
112
|
-
version: "0"
|
113
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ! '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
107
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
119
|
-
segments:
|
120
|
-
- 0
|
121
|
-
version: "0"
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
122
112
|
requirements: []
|
123
|
-
|
124
113
|
rubyforge_project: mirror_github
|
125
|
-
rubygems_version: 1.
|
114
|
+
rubygems_version: 1.8.23
|
126
115
|
signing_key:
|
127
116
|
specification_version: 3
|
128
117
|
summary: Command-line library for mirroring an Organization's GitHub repositories
|
129
118
|
test_files: []
|
130
|
-
|