reclone 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +35 -47
- data/.DS_Store +0 -0
- data/.gitignore +0 -12
- data/.rspec +0 -3
- data/.travis.yml +0 -6
- data/CHANGELOG.MD +0 -0
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -58
- data/LICENSE.txt +0 -21
- data/README.md +0 -44
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/reclone/cli.rb +0 -63
- data/lib/reclone/octokitty.rb +0 -27
- data/lib/reclone/user.rb +0 -10
- data/lib/reclone/version.rb +0 -3
- data/notes.md +0 -31
- data/reclone-0.1.0.gem +0 -0
- data/reclone-0.2.0.gem +0 -0
- data/reclone-0.3.0.gem +0 -0
- data/reclone-0.4.0.gem +0 -0
- data/reclone.gemspec +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c7d1950db23ac1d74e5b8e2aee05816b8a2405f121d3c9ae8b751e77fce307a
|
4
|
+
data.tar.gz: d099434d8f1e96671c4cd6c8de6e675738f27a0819bcb57a557e375aea1ff424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fbc29f8777c57f4ee263a1b76c5ec6a0e245416440b742c4f16c7941b58b550392d231079dded2b5b5cd04b0d2614d03d60931a74499b1b16af46931a4be1d5
|
7
|
+
data.tar.gz: 5cb5f3e4742617c279af92ba267af14f0b07b9d81d7980f0d3a5ad7406851a0db6904dd52167dd43024b6cb1681109f3fd4d067fdafb5aa92c54d13f7ca28786
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reclone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Dwayne Harmon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '3.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: net-ping
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,19 +67,33 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: octokit
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '4.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '4.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.1.4
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.1.4
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: dotenv
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,44 +115,18 @@ dependencies:
|
|
101
115
|
- !ruby/object:Gem::Version
|
102
116
|
version: 2.7.6
|
103
117
|
description: Re-clone your most recent 100 repos from GitHub vis SSH.
|
104
|
-
email:
|
105
|
-
- dwayne.harmon@gmail.com
|
118
|
+
email: harmon.dwayne@gmail.com
|
106
119
|
executables:
|
107
120
|
- reclone
|
108
121
|
extensions: []
|
109
122
|
extra_rdoc_files: []
|
110
123
|
files:
|
111
|
-
- ".DS_Store"
|
112
|
-
- ".gitignore"
|
113
|
-
- ".rspec"
|
114
|
-
- ".travis.yml"
|
115
|
-
- CHANGELOG.MD
|
116
|
-
- CODE_OF_CONDUCT.md
|
117
|
-
- Gemfile
|
118
|
-
- Gemfile.lock
|
119
|
-
- LICENSE.txt
|
120
|
-
- README.md
|
121
|
-
- Rakefile
|
122
|
-
- bin/console
|
123
124
|
- bin/reclone
|
124
|
-
- bin/setup
|
125
125
|
- lib/reclone.rb
|
126
|
-
- lib/reclone/cli.rb
|
127
|
-
- lib/reclone/octokitty.rb
|
128
|
-
- lib/reclone/user.rb
|
129
|
-
- lib/reclone/version.rb
|
130
|
-
- notes.md
|
131
|
-
- reclone-0.1.0.gem
|
132
|
-
- reclone-0.2.0.gem
|
133
|
-
- reclone-0.3.0.gem
|
134
|
-
- reclone-0.4.0.gem
|
135
|
-
- reclone.gemspec
|
136
126
|
homepage: https://github.com/dwyn/reclone
|
137
127
|
licenses:
|
138
128
|
- MIT
|
139
|
-
metadata:
|
140
|
-
source_code_uri: https://github.com/dwyn/reclone
|
141
|
-
changelog_uri: https://github.com/dwyn/reclone/blob/master/CODE_OF_CONDUCT.md
|
129
|
+
metadata: {}
|
142
130
|
post_install_message:
|
143
131
|
rdoc_options: []
|
144
132
|
require_paths:
|
@@ -147,15 +135,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
135
|
requirements:
|
148
136
|
- - ">="
|
149
137
|
- !ruby/object:Gem::Version
|
150
|
-
version: 2.
|
138
|
+
version: 2.5.0
|
151
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
140
|
requirements:
|
153
141
|
- - ">="
|
154
142
|
- !ruby/object:Gem::Version
|
155
143
|
version: '0'
|
156
144
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
145
|
+
rubygems_version: 3.1.4
|
158
146
|
signing_key:
|
159
147
|
specification_version: 4
|
160
|
-
summary: Re-clone
|
148
|
+
summary: Re-clone a few repos. No biggie.
|
161
149
|
test_files: []
|
data/.DS_Store
DELETED
Binary file
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/CHANGELOG.MD
DELETED
File without changes
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at dwayne.harmon@gmail.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: https://contributor-covenant.org
|
74
|
-
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
reclone (0.5.0)
|
5
|
-
dotenv (~> 2.7, >= 2.7.6)
|
6
|
-
net-ping
|
7
|
-
octokit (~> 4.0)
|
8
|
-
pry
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
addressable (2.7.0)
|
14
|
-
public_suffix (>= 2.0.2, < 5.0)
|
15
|
-
coderay (1.1.3)
|
16
|
-
diff-lcs (1.3)
|
17
|
-
dotenv (2.7.6)
|
18
|
-
faraday (1.0.1)
|
19
|
-
multipart-post (>= 1.2, < 3)
|
20
|
-
method_source (1.0.0)
|
21
|
-
multipart-post (2.1.1)
|
22
|
-
net-ping (2.0.8)
|
23
|
-
octokit (4.18.0)
|
24
|
-
faraday (>= 0.9)
|
25
|
-
sawyer (~> 0.8.0, >= 0.5.3)
|
26
|
-
pry (0.13.1)
|
27
|
-
coderay (~> 1.1)
|
28
|
-
method_source (~> 1.0)
|
29
|
-
public_suffix (4.0.5)
|
30
|
-
rake (12.3.3)
|
31
|
-
rspec (3.9.0)
|
32
|
-
rspec-core (~> 3.9.0)
|
33
|
-
rspec-expectations (~> 3.9.0)
|
34
|
-
rspec-mocks (~> 3.9.0)
|
35
|
-
rspec-core (3.9.2)
|
36
|
-
rspec-support (~> 3.9.3)
|
37
|
-
rspec-expectations (3.9.2)
|
38
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
-
rspec-support (~> 3.9.0)
|
40
|
-
rspec-mocks (3.9.1)
|
41
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.9.0)
|
43
|
-
rspec-support (3.9.3)
|
44
|
-
sawyer (0.8.2)
|
45
|
-
addressable (>= 2.3.5)
|
46
|
-
faraday (> 0.8, < 2.0)
|
47
|
-
|
48
|
-
PLATFORMS
|
49
|
-
ruby
|
50
|
-
|
51
|
-
DEPENDENCIES
|
52
|
-
bundler (~> 2.1.4)
|
53
|
-
rake (~> 12.0)
|
54
|
-
reclone!
|
55
|
-
rspec (~> 3.0)
|
56
|
-
|
57
|
-
BUNDLED WITH
|
58
|
-
2.1.4
|
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2020 dwieb
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
# Reclone
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/reclone`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'reclone'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install reclone
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/<github username>/reclone. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/<github username>/reclone/blob/master/CODE_OF_CONDUCT.md).
|
36
|
-
|
37
|
-
|
38
|
-
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
41
|
-
|
42
|
-
## Code of Conduct
|
43
|
-
|
44
|
-
Everyone interacting in the Reclone project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/<github username>/reclone/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "reclone"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/lib/reclone/cli.rb
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
class Reclone::CLI
|
2
|
-
attr_accessor :current_user
|
3
|
-
|
4
|
-
def call
|
5
|
-
up?
|
6
|
-
puts "Hiya friend"; sleep 0.5
|
7
|
-
log_in
|
8
|
-
recloner
|
9
|
-
end
|
10
|
-
|
11
|
-
# Internet connection check
|
12
|
-
def up?
|
13
|
-
if Net::Ping::External.new("www.google.com").ping? != true
|
14
|
-
puts "You need an internet connection to run this program..."
|
15
|
-
puts "As if I needed to tell you that."; sleep 1
|
16
|
-
puts "Good bye for now, human."
|
17
|
-
exit
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def directory_exists?(directory)
|
22
|
-
Dir.exists?(directory)
|
23
|
-
end
|
24
|
-
|
25
|
-
def log_in
|
26
|
-
puts "Please enter your Github user name."
|
27
|
-
user_name = gets.strip.to_s
|
28
|
-
@current_user = User.new(user_name)
|
29
|
-
|
30
|
-
if user_name == "exit"
|
31
|
-
exit!
|
32
|
-
elsif @current_user.user_info
|
33
|
-
puts "Oh hayyy, I found you!"
|
34
|
-
else
|
35
|
-
puts "I'm having a hard time locating that username."
|
36
|
-
puts "Please try again."
|
37
|
-
log_in
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
def recloner
|
42
|
-
puts "Remember, the next step will clone repositories in"
|
43
|
-
puts "in your present working directory."
|
44
|
-
puts "Make sure you are in the right place before doing the thing."
|
45
|
-
puts " "
|
46
|
-
puts "Shall I do the thing?"
|
47
|
-
|
48
|
-
user_input = gets.strip
|
49
|
-
|
50
|
-
if user_input == "yes"|| user_input == "y" || user_input == 'yis' ||user_input == "yeth"
|
51
|
-
current_user.repos.each do |repo|
|
52
|
-
if !directory_exists?(repo[:full_name])
|
53
|
-
`git clone #{repo[:ssh_url]}`
|
54
|
-
end
|
55
|
-
end
|
56
|
-
elsif user_input == "no"|| user_input == "n" || user_input == "nah"
|
57
|
-
puts "Thanks for stopping by, I guess?"
|
58
|
-
exit
|
59
|
-
else
|
60
|
-
recloner
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
data/lib/reclone/octokitty.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
class Octokitty
|
2
|
-
#! Do I need this class?
|
3
|
-
attr_reader :client, :repo_call
|
4
|
-
|
5
|
-
def initialize
|
6
|
-
@client = Octokit::Client.new(access_token: ENV["GIT_PAT"], auto_traversal: true, per_page: 100)
|
7
|
-
end
|
8
|
-
|
9
|
-
def user_config(user_name)
|
10
|
-
begin
|
11
|
-
user = @client.user(user_name)
|
12
|
-
rescue
|
13
|
-
user = nil
|
14
|
-
end
|
15
|
-
user
|
16
|
-
end
|
17
|
-
|
18
|
-
def repo_config(user)
|
19
|
-
@client.repos(user, {sort: "created", direction: "desc"})
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
#! Handling 404's from octokit: http://rubylearning.com/satishtalim/ruby_exceptions.html
|
24
|
-
#! https://github.com/octokit/octokit.rb#pagination
|
25
|
-
#! https://developer.github.com/v3/repos/
|
26
|
-
#! https://www.rubydoc.info/github/octokit/octokit.rb/Octokit/Client/Search#search_code-instance_method
|
27
|
-
#! http://docs2.lfe.io/guides/traversing-with-pagination/
|
data/lib/reclone/user.rb
DELETED
data/lib/reclone/version.rb
DELETED
data/notes.md
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
Documentation: https://bundler.io/guides/creating_gem.html
|
2
|
-
|
3
|
-
Reclone
|
4
|
-
|
5
|
-
- user runs `reclone` via terminal (duh)
|
6
|
-
- gets username?
|
7
|
-
-- check to see if user name exists
|
8
|
-
- gets password
|
9
|
-
- gets repo range (50 or 100 most recent repos)
|
10
|
-
-- potential cap on range depending github api
|
11
|
-
|
12
|
-
- gets directory to clone to
|
13
|
-
-- check to see if repo exists?
|
14
|
-
|
15
|
-
|
16
|
-
- clones them bishes
|
17
|
-
-- if just one clone, ask the user to clone manually
|
18
|
-
-- let user know if repo range is outside of api rate limiting
|
19
|
-
|
20
|
-
Potential classes
|
21
|
-
- cli class
|
22
|
-
refer to old code for idea?
|
23
|
-
|
24
|
-
- user class
|
25
|
-
#user_name
|
26
|
-
checks api class to see if user_name exists?
|
27
|
-
|
28
|
-
|
29
|
-
#directory?
|
30
|
-
|
31
|
-
- github api?
|
data/reclone-0.1.0.gem
DELETED
Binary file
|
data/reclone-0.2.0.gem
DELETED
Binary file
|
data/reclone-0.3.0.gem
DELETED
Binary file
|
data/reclone-0.4.0.gem
DELETED
Binary file
|
data/reclone.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
require_relative 'lib/reclone/version'
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = "reclone"
|
5
|
-
spec.version = Reclone::VERSION
|
6
|
-
spec.authors = ["dwieb"]
|
7
|
-
spec.email = ["dwayne.harmon@gmail.com"]
|
8
|
-
|
9
|
-
spec.summary = %q{Re-clone your most recent 100 repos from GitHub vis SSH.}
|
10
|
-
spec.description = %q{Re-clone your most recent 100 repos from GitHub vis SSH.}
|
11
|
-
|
12
|
-
spec.homepage = "https://github.com/dwyn/reclone"
|
13
|
-
spec.license = "MIT"
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
15
|
-
|
16
|
-
# spec.metadata["allowed_push_host"] = "https://google.com'"
|
17
|
-
|
18
|
-
# spec.metadata["homepage_uri"] = spec.homepage
|
19
|
-
spec.metadata["source_code_uri"] = "https://github.com/dwyn/reclone"
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com/dwyn/reclone/blob/master/CODE_OF_CONDUCT.md"
|
21
|
-
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
-
end
|
27
|
-
# spec.bindir = "exe"
|
28
|
-
# spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.executables = ["reclone"]
|
30
|
-
spec.require_paths = ["lib"]
|
31
|
-
|
32
|
-
#* Added Gems
|
33
|
-
spec.add_development_dependency "bundler", "~> 2.1.4"
|
34
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
-
# spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
-
spec.add_dependency "octokit", "~> 4.0"
|
37
|
-
spec.add_dependency "net-ping"
|
38
|
-
spec.add_dependency "pry"
|
39
|
-
# spec.add_dependency "clamp"
|
40
|
-
# spec.add_dependency "git", '~> 1.3'
|
41
|
-
spec.add_dependency "dotenv", '~> 2.7', '>= 2.7.6'
|
42
|
-
end
|