Skip to content

Commit 2ff066b

Browse files
committed
Install toolkit for the GitHub API
1 parent b6a214e commit 2ff066b

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GITHUB_ACCESS_TOKEN=GITHUB_ACCESS_TOKEN

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
!/tmp/.keep
1515

1616
.byebug_history
17+
.env
1718

1819
# Ignore master key for decrypting credentials and more.
1920
/config/master.key

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ gem 'mongoid', '~> 6.4.0'
2222
# Reduces boot times through caching; required in config/boot.rb
2323
gem 'bootsnap', '>= 1.1.0', require: false
2424

25+
# Toolkit for the GitHub API
26+
gem "octokit", "~> 4.0"
27+
2528
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
2629
gem 'rack-cors'
2730

@@ -31,6 +34,9 @@ group :development, :test do
3134

3235
# Use RSpec for specs
3336
gem 'rspec-rails', '>= 3.5.0'
37+
38+
# Secure load env vars
39+
gem 'dotenv-rails'
3440
end
3541

3642
group :development do

Gemfile.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ GEM
4242
i18n (>= 0.7, < 2)
4343
minitest (~> 5.1)
4444
tzinfo (~> 1.1)
45+
addressable (2.6.0)
46+
public_suffix (>= 2.0.2, < 4.0)
4547
arel (9.0.0)
4648
bootsnap (1.4.4)
4749
msgpack (~> 1.0)
@@ -54,7 +56,13 @@ GEM
5456
concurrent-ruby (1.1.5)
5557
crass (1.0.4)
5658
diff-lcs (1.3)
59+
dotenv (2.7.5)
60+
dotenv-rails (2.7.5)
61+
dotenv (= 2.7.5)
62+
railties (>= 3.2, < 6.1)
5763
erubi (1.8.0)
64+
faraday (0.15.4)
65+
multipart-post (>= 1.2, < 3)
5866
ffi (1.11.1)
5967
ffi (1.11.1-java)
6068
ffi (1.11.1-x64-mingw32)
@@ -88,6 +96,7 @@ GEM
8896
msgpack (1.3.1-java)
8997
msgpack (1.3.1-x64-mingw32)
9098
msgpack (1.3.1-x86-mingw32)
99+
multipart-post (2.1.1)
91100
nio4r (2.4.0)
92101
nio4r (2.4.0-java)
93102
nokogiri (1.10.4)
@@ -97,6 +106,9 @@ GEM
97106
mini_portile2 (~> 2.4.0)
98107
nokogiri (1.10.4-x86-mingw32)
99108
mini_portile2 (~> 2.4.0)
109+
octokit (4.14.0)
110+
sawyer (~> 0.8.0, >= 0.5.3)
111+
public_suffix (3.1.1)
100112
puma (3.12.1)
101113
puma (3.12.1-java)
102114
rack (2.0.7)
@@ -149,6 +161,9 @@ GEM
149161
rspec-support (~> 3.8.0)
150162
rspec-support (3.8.2)
151163
ruby_dep (1.5.0)
164+
sawyer (0.8.2)
165+
addressable (>= 2.3.5)
166+
faraday (> 0.8, < 2.0)
152167
spring (2.1.0)
153168
spring-watcher-listen (2.0.1)
154169
listen (>= 2.7, < 4.0)
@@ -183,8 +198,10 @@ PLATFORMS
183198
DEPENDENCIES
184199
bootsnap (>= 1.1.0)
185200
byebug
201+
dotenv-rails
186202
listen (>= 3.0.5, < 3.2)
187203
mongoid (~> 6.4.0)
204+
octokit (~> 4.0)
188205
puma (~> 3.11)
189206
rack-cors
190207
rails (~> 5.2.0)

0 commit comments

Comments
 (0)