publicity 0.0.3 → 0.0.4
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.
- data/README.md +1 -20
- data/lib/publicity/prompt.rb +15 -1
- data/lib/publicity/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,22 +1,3 @@
|
|
1
1
|
# Publicity
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Install it by executing:
|
8
|
-
|
9
|
-
$ gem install publicity
|
10
|
-
|
11
|
-
## Usage
|
12
|
-
|
13
|
-
Execute `publicity` from any directory and follow the command-line prompt,
|
14
|
-
answering any questions until everything is done.
|
15
|
-
|
16
|
-
## Contributing
|
17
|
-
|
18
|
-
1. Fork it
|
19
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
20
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
21
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
22
|
-
5. Create new Pull Request
|
3
|
+
The canonical readme now lives [on the wiki](https://github.com/hackreactor/curriculum/wiki/Job-searching:-Publicizing-your-Hack-Reactor-repos).
|
data/lib/publicity/prompt.rb
CHANGED
@@ -259,9 +259,23 @@ EOS
|
|
259
259
|
result = Array.new
|
260
260
|
|
261
261
|
@github.repos.list do |repo|
|
262
|
+
# If the repo isn't a fork, we need to skip it. This prevents us from
|
263
|
+
# inadvertently trying to access a repo on which a user has been
|
264
|
+
# granted collaborator status, but hasn't forked.
|
265
|
+
unless repo.fork
|
266
|
+
next
|
267
|
+
end
|
268
|
+
|
262
269
|
# The version of repo that comes with github.repos.list only has a
|
263
270
|
# limited subset of the repo's metadata--get the full version
|
264
|
-
|
271
|
+
#
|
272
|
+
# TODO: This is jank. Jesus, please fix this. Rescue any errors and
|
273
|
+
# just skip to the next repo.
|
274
|
+
begin
|
275
|
+
repo = @github.repos.get(@username, repo[:name])
|
276
|
+
rescue
|
277
|
+
next
|
278
|
+
end
|
265
279
|
|
266
280
|
# If the repo is still private and it's a fork of a Hack Reactor repo,
|
267
281
|
# it qualifies for liberation
|
data/lib/publicity/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: publicity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|