Skip to content

Commit

Permalink
Merge pull request #174 from pocke/Add_rack_as_a_dependency
Browse files Browse the repository at this point in the history
Add rack as a dependency
  • Loading branch information
pocke committed Jul 25, 2021
2 parents 334c7c5 + 13325a7 commit 4538fdf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ target :app do
library 'singleton'
library 'tsort'

library 'rack'

library 'activesupport'
library 'actionpack'
library 'activejob'
Expand Down
2 changes: 2 additions & 0 deletions Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ target :lib do
library 'singleton'
library 'tsort'

library 'rack'

library 'activesupport'
library 'actionpack'
library 'activejob'
Expand Down
11 changes: 7 additions & 4 deletions bin/gem_rbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'securerandom'
require 'pathname'

TOKEN = ENV.fetch('GITHUB_TOKEN')
VERSION = "6.0.3.2"
VERSION = "6.0"

def req(query)
http = Net::HTTP.new("api.github.com", 443)
Expand Down Expand Up @@ -50,11 +50,14 @@ class QueryBuilder
end
end

gems = %w[activesupport actionpack activejob activemodel actionview activerecord railties]
gems = %w[activesupport actionpack activejob activemodel actionview activerecord railties].map do |gem|
"main:gems/#{gem}/#{VERSION}"
end
gems.push 'main:gems/rack/2.2.2'

builder = QueryBuilder.new
gems.each do |gem|
path = "main:gems/#{gem}/#{VERSION}"
gems.each do |path|
gem = path[%r!^main:gems/(\w+)!, 1]
builder.add(<<~GRAPHQL, { 'path' => path })
#{gem}:repository(owner: "ruby", name: "gem_rbs_collection") {
object(expression: $path) {
Expand Down
2 changes: 2 additions & 0 deletions bin/rbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ exec(
# Require stdlibs
'-rlogger', '-rpathname', '-rmutex_m', '-rdate', '-rmonitor', '-rsingleton', '-rtsort',
"--repo=#{repo}",
# Require dependencies in ruby/gem_rbs_collection repo
'-rrack',
# Require Rails libraries
v('-ractivesupport'), v('-ractionpack'), v('-ractivejob'), v('-ractivemodel'), v('-ractionview'), v('-ractiverecord'), v('-rrailties'),
# Load signatures that are bundled in rbs_rails
Expand Down
2 changes: 2 additions & 0 deletions test/app/Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ target :app do
library 'singleton'
library 'tsort'

library 'rack'

library 'activesupport'
library 'actionpack'
library 'activejob'
Expand Down

0 comments on commit 4538fdf

Please sign in to comment.