beginning_open_source 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/README.md +3 -3
- data/beginning_open_source.gemspec +5 -2
- data/bin/beginning-open-source +3 -1
- data/lib/beginning_open_source/version.rb +1 -1
- data/lib/cli.rb +12 -13
- data/lib/secrets.rb +9 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 608e964bb0fa9a4d7c06862cd0ecff7bf8e01dd5
|
4
|
+
data.tar.gz: bac37d1e954555f1c3fe04932c98861f7acd5b72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8189fd3b00eb9b1ee2ac04c8fa1e40312df7855613b843ab0a07f65bebda3777577fed44db4d6fb7a726db612992d83bcb6e919792a83409d381b509b0f8cf77
|
7
|
+
data.tar.gz: b5620a35b2e3145d732de3fe8dcb521c07ee7ec0acb882952f2570b11e15afde20dab3587f6957f2c9094369c589c5b0c7f8608bcf8231ddf464cc1b5409e154
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
A tool to find beginner friendly open source issues to work on.
|
4
4
|
|
5
|
-
**NOTE:** Unless you provide a github token to authenicate, your search results will only return repository descriptions and stars once per hour due to github api restrictions". Please only generate a public token as this application only accesses public data. Instructions to generate a github token are here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/ .
|
6
|
-
|
7
5
|
###Other resources for finding beginner friendly open source projects*:
|
8
6
|
|
9
7
|
http://www.agileventures.org/
|
@@ -45,10 +43,12 @@ Or install it yourself as:
|
|
45
43
|
|
46
44
|
## Usage
|
47
45
|
|
48
|
-
|
46
|
+
type beginning-open-source into the command line to execute the program
|
49
47
|
|
50
48
|
## Development
|
51
49
|
|
50
|
+
**NOTE:** Unless you provide a github token to authenicate, your search results will only return repository descriptions and stars once per hour due to github api restrictions". Please only generate a public token as this application only accesses public data. Instructions to generate a github token are here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/ . When developing, you can paste your username and public token into the secrets.rb file.
|
51
|
+
|
52
52
|
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.
|
53
53
|
|
54
54
|
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).
|
@@ -19,8 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
-
spec.bindir = "exe"
|
23
|
-
spec.
|
22
|
+
# spec.bindir = "exe" #should this be bin?
|
23
|
+
spec.bindir = "bin" #should this be bin?
|
24
|
+
|
25
|
+
# spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } this was the default, but wasn't working. trying as below
|
26
|
+
spec.executables = ["beginning-open-source"]
|
24
27
|
spec.require_paths = ["lib"]
|
25
28
|
|
26
29
|
spec.add_development_dependency "bundler", "~> 1.10"
|
data/bin/beginning-open-source
CHANGED
@@ -1,3 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
2
|
+
require_relative '../lib/beginning_open_source' #gem isn't loading this. try changing
|
3
|
+
# require 'beginning_open_source'
|
4
|
+
#changing from require to require relative works when executing from bin folder. try to package again
|
3
5
|
BeginningOpenSource::CLI.new.call
|
data/lib/cli.rb
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
class BeginningOpenSource::CLI
|
2
2
|
|
3
3
|
def call
|
4
|
-
generate_secret_file
|
4
|
+
# generate_secret_file
|
5
5
|
welcome
|
6
|
-
puts "**Caution**\n
|
7
|
-
If you don't provide a github token to authenicate, your search results will only return repository descriptions and stars once per hour due to github api restrictions".yellow
|
8
6
|
list_beginner_issues
|
9
7
|
search_issues
|
10
8
|
goodbye
|
@@ -17,17 +15,18 @@ class BeginningOpenSource::CLI
|
|
17
15
|
puts "With this tool, you can find issues on github by label".blue
|
18
16
|
end
|
19
17
|
|
20
|
-
def generate_secret_file
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
# def generate_secret_file #i don't know what will happen when this is packaged as gem. make sure the filename is secrets.rb when committing
|
19
|
+
# File.open("../lib/secrets.rb", 'w'){|f| f.write("class BeginningOpenSource::GithubApi
|
20
|
+
# def self.token
|
21
|
+
# 'PASTE_TOKEN_HERE_AS_STRING'
|
22
|
+
# end
|
25
23
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
end
|
24
|
+
# def self.agent
|
25
|
+
# 'PASTE_GITHUB_USERNAME_HERE_AS_STRING'
|
26
|
+
# end
|
27
|
+
# end")}
|
28
|
+
# end
|
29
|
+
#this doesn't work when packaged as a gem
|
31
30
|
|
32
31
|
def list_beginner_issues #by default, it will return issues in github repos with 1 star or more
|
33
32
|
get_and_print('beginner')
|
data/lib/secrets.rb
ADDED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beginning_open_source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Morris
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
@@ -83,7 +83,8 @@ dependencies:
|
|
83
83
|
description: A tool to find beginner friendly open source issues to work on.
|
84
84
|
email:
|
85
85
|
- coreym247@gmail.com
|
86
|
-
executables:
|
86
|
+
executables:
|
87
|
+
- beginning-open-source
|
87
88
|
extensions: []
|
88
89
|
extra_rdoc_files: []
|
89
90
|
files:
|
@@ -104,6 +105,7 @@ files:
|
|
104
105
|
- lib/beginning_open_source/issues.rb
|
105
106
|
- lib/beginning_open_source/version.rb
|
106
107
|
- lib/cli.rb
|
108
|
+
- lib/secrets.rb
|
107
109
|
homepage: https://github.com/c1505/beginning-open-source
|
108
110
|
licenses:
|
109
111
|
- MIT
|