beginning_open_source 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 608e964bb0fa9a4d7c06862cd0ecff7bf8e01dd5
4
- data.tar.gz: bac37d1e954555f1c3fe04932c98861f7acd5b72
3
+ metadata.gz: ef1ba9213f2d881962f8a6b0a69bff34ade0368c
4
+ data.tar.gz: 176f76da63bc4b6ccae960384ddd92e358bbd6bc
5
5
  SHA512:
6
- metadata.gz: 8189fd3b00eb9b1ee2ac04c8fa1e40312df7855613b843ab0a07f65bebda3777577fed44db4d6fb7a726db612992d83bcb6e919792a83409d381b509b0f8cf77
7
- data.tar.gz: b5620a35b2e3145d732de3fe8dcb521c07ee7ec0acb882952f2570b11e15afde20dab3587f6957f2c9094369c589c5b0c7f8608bcf8231ddf464cc1b5409e154
6
+ metadata.gz: ac15ccab391158c09434cde03c01a2993c7cffea927647cd4b27c15a62da346c51cc325b243c744f87cc9f89649c76462b2aba531a6445be3d0d3505224ce1ee
7
+ data.tar.gz: a492f11c05691104cf758d3d0b69fa549b0c407fa0253548cd503d87471b3c574bc59b1fa58e96e6a572c2b962fac6ea8509215af0fdd3bc34c48d611007f993
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /lib/this_will_be_secrets_file.rb
11
- notes.md
11
+ notes.md
12
+ /lib/secrets.rb
Binary file
@@ -2,6 +2,15 @@ require_relative "beginning_open_source/version"
2
2
  require_relative "beginning_open_source/github_api.rb"
3
3
  require_relative "beginning_open_source/issues.rb"
4
4
 
5
+ File.open("../lib/secrets.rb", 'w'){|f| f.write("class BeginningOpenSource::GithubApi
6
+ def self.token
7
+ 'PASTE_TOKEN_HERE_AS_STRING'
8
+ end
9
+
10
+ def self.agent
11
+ 'PASTE_GITHUB_USERNAME_HERE_AS_STRING'
12
+ end
13
+ end")}
5
14
 
6
15
  require_relative "secrets.rb"
7
16
  require_relative "cli"
@@ -1,3 +1,3 @@
1
1
  module BeginningOpenSource
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/cli.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  class BeginningOpenSource::CLI
2
2
 
3
3
  def call
4
- # generate_secret_file
5
4
  welcome
6
5
  list_beginner_issues
7
6
  search_issues
@@ -15,19 +14,6 @@ class BeginningOpenSource::CLI
15
14
  puts "With this tool, you can find issues on github by label".blue
16
15
  end
17
16
 
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
23
-
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
30
-
31
17
  def list_beginner_issues #by default, it will return issues in github repos with 1 star or more
32
18
  get_and_print('beginner')
33
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beginning_open_source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Morris
@@ -96,6 +96,7 @@ files:
96
96
  - LICENSE.txt
97
97
  - README.md
98
98
  - Rakefile
99
+ - beginning_open_source-0.1.1.gem
99
100
  - beginning_open_source.gemspec
100
101
  - bin/beginning-open-source
101
102
  - bin/console
@@ -105,7 +106,6 @@ files:
105
106
  - lib/beginning_open_source/issues.rb
106
107
  - lib/beginning_open_source/version.rb
107
108
  - lib/cli.rb
108
- - lib/secrets.rb
109
109
  homepage: https://github.com/c1505/beginning-open-source
110
110
  licenses:
111
111
  - MIT
data/lib/secrets.rb DELETED
@@ -1,9 +0,0 @@
1
- class BeginningOpenSource::GithubApi
2
- def self.token
3
- 'PASTE_TOKEN_HERE_AS_STRING'
4
- end
5
-
6
- def self.agent
7
- 'PASTE_GITHUB_USERNAME_HERE_AS_STRING'
8
- end
9
- end