gitload 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: eae65fffc20fb78620aab8974a15a20daacee260
4
+ data.tar.gz: 022a121055c47e217b1fd85f5dd6c445db098843
5
+ SHA512:
6
+ metadata.gz: 3f50d5f9f939f0946df260b6611a4a3f7f884fda61ecdddd0b336d393797a9eb57d9de1d53acfed46f11fd4b8a3afde3595ae2338a7beb0282b4a66d71cc1817
7
+ data.tar.gz: 312316480862831c155929f3272899e250818986fe2f0896eba4fa1d653123185dc56cd3d2e6e20ddc4ca7500bca01c754a73bb0fb1722870b8913f9d5bda048
data/Gemfile ADDED
@@ -0,0 +1,21 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ gem 'paint', '~> 1.0'
7
+ gem 'commander', '~> 4.2'
8
+ gem 'octokit', '~> 4.6'
9
+
10
+ # Add dependencies to develop your gem here.
11
+ # Include everything needed to run rake, tests, features, etc.
12
+ group :development do
13
+ require 'pp' # https://github.com/fakefs/fakefs/issues/99
14
+ gem 'rake', '~> 11.0'
15
+ gem 'rspec', '~> 3.1'
16
+ gem 'rspec-its', '~> 1.1'
17
+ gem 'fakefs', '~> 0.9.0', :require => 'fakefs/safe'
18
+ gem 'jeweler', '~> 2.0'
19
+ gem 'rake-version', '~> 1.0'
20
+ gem 'simplecov', '~> 0.12.0'
21
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2016 Alpha Hydrae
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # gitload
2
+
3
+ Easily clone all your GitHub repositories.
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/gitload.svg)](http://badge.fury.io/rb/gitload)
6
+ [![Dependency Status](https://gemnasium.com/AlphaHydrae/gitload.svg)](https://gemnasium.com/AlphaHydrae/gitload)
7
+ [![Build Status](https://travis-ci.org/AlphaHydrae/gitload.svg?branch=master)](http://travis-ci.org/AlphaHydrae/gitload)
8
+ [![Coverage Status](https://coveralls.io/repos/AlphaHydrae/gitload/badge.svg)](https://coveralls.io/r/AlphaHydrae/gitload)
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/bin/gitload ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+ require File.join(File.dirname(__FILE__), '..', 'lib', 'program')
@@ -0,0 +1,22 @@
1
+ require 'octokit'
2
+
3
+ module Gitload
4
+ module Commands
5
+ class Load
6
+ def initialize options = {}
7
+ end
8
+
9
+ def run
10
+
11
+ Octokit.configure do |c|
12
+ c.access_token = ENV['GITLOAD_TOKEN']
13
+ c.auto_paginate = true
14
+ end
15
+
16
+ repos = Octokit.repositories ENV['GITLOAD_GITHUB_USER']
17
+
18
+ puts repos.collect{ |r| r.to_attrs[:name] }
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1 @@
1
+ Dir[File.join File.dirname(__FILE__), File.basename(__FILE__, '.*'), '*.rb'].each{ |lib| require lib }
data/lib/gitload.rb ADDED
@@ -0,0 +1,8 @@
1
+ # encoding: UTF-8
2
+ require 'paint'
3
+
4
+ module Gitload
5
+ VERSION = '0.1.0'
6
+ end
7
+
8
+ Dir[File.join File.dirname(__FILE__), File.basename(__FILE__, '.*'), '*.rb'].each{ |lib| require lib }
data/lib/program.rb ADDED
@@ -0,0 +1,18 @@
1
+ require File.join File.dirname(__FILE__), 'gitload'
2
+ require 'commander/import'
3
+
4
+ program :name, 'gitload'
5
+ program :version, Gitload::VERSION
6
+ program :description, 'Easily download all your GitHub repositories.'
7
+
8
+ global_option '-c', '--config PATH', 'Use a custom configuration file (defaults to ~/.gitload.rb)'
9
+
10
+ command :load do |c|
11
+ c.syntax = 'gitload load'
12
+ c.description = 'Downloads all configured repositories (default action)'
13
+ c.action do |args,options|
14
+ Gitload::Commands::Load.new(options).run
15
+ end
16
+ end
17
+
18
+ default_command :load
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitload
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Simon Oulevay (Alpha Hydrae)
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: paint
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: commander
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: octokit
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '4.6'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '11.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '11.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-its
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: fakefs
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.9.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.9.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: jeweler
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake-version
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.12.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.12.0
153
+ description: Gitload provides a DSL to easily clone all your repositories from GitHub
154
+ and other providers.
155
+ email: git@alphahydrae.com
156
+ executables:
157
+ - gitload
158
+ extensions: []
159
+ extra_rdoc_files:
160
+ - LICENSE.txt
161
+ - README.md
162
+ files:
163
+ - Gemfile
164
+ - LICENSE.txt
165
+ - README.md
166
+ - VERSION
167
+ - bin/gitload
168
+ - lib/gitload.rb
169
+ - lib/gitload/commands.rb
170
+ - lib/gitload/commands/load.rb
171
+ - lib/program.rb
172
+ homepage: https://github.com/AlphaHydrae/gitload
173
+ licenses:
174
+ - MIT
175
+ metadata: {}
176
+ post_install_message:
177
+ rdoc_options: []
178
+ require_paths:
179
+ - lib
180
+ required_ruby_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ requirements: []
191
+ rubyforge_project:
192
+ rubygems_version: 2.5.1
193
+ signing_key:
194
+ specification_version: 4
195
+ summary: Gitload downloads your repositories.
196
+ test_files: []