-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Make rails-autoscale-* gems wrappers around judoscale-*, simpl…
…ify requires & gemspecs (#209) * Use `require_relative` in gemspecs Stop messing with the load path, use the same approach `bundle gem` generated gems are using now with `require_relative`, and add the `frozen_string_literal` pragma as well. * Make rails-autoscale-* require judoscale-* base lib file Instead of directly requiring judoscale/* files, make it require the base judoscale-* lib file, and leave the work of requiring judoscale/* files to judoscale-* itself. This is more flexible as it allows judoscale-* to have extra code/setup if necessary (as it happens with judoscale-ruby for instance, which rails-autoscale-core is currently requiring), and might allow us to make rails-autoscale-* gems to be more like shims that depend on judoscale-* in the future. * Make rails-autoscale-* depend sole on their judoscale-* counterpart The rails-autoscale-* gems will be shims on top of judoscale-* gems, simply depending on / requiring them going forward. We only include the rails-autoscale-* files on the gem via gemspec now, and the specific `version.rb` file for each, since that's necessary for the dependency / gemspec setup. This means the judoscale-* gems can now dictate the dependencies without us having to update both judoscale-* and rails-autoscale-* versions. * Further simplify judoscale-* and rails-autoscale-* spec files Use Ruby's `Dir` to list all files under `lib/`, and partition them based on whether they match `rails-autoscale` for each lib. In other words, the judoscale-* libs will get all files that don't match `rails-autoscale`, while the rails-autoscale-* libs will get all files that match `rails-autoscale`, which should really only be the main entry point that delegates back to the respective `judoscale-*` version. Now for rails-autoscale-* libs, the gemspec lists the matching judoscale-* library, it will only include the main lib/rails-autoscale* entrypoint file, which should simply require the respective judoscale-* file, making the rails-autoscale-* libs simpler shims that wrap the judoscale-* ones. This also simplifies the judoscale-* gemspecs to list only the lib/* files, rather than a few others that were previously included but weren't necessary. (like Gemfile, Rakefile, gemspecs.) * Remove required Ruby version from rails-autoscale* gemspecs Let judoscale-* gemspecs define that, since the rails-autoscale-* depends on them, they'll follow/honor the same required Ruby version.
- Loading branch information
1 parent
c570ca6
commit e80d504
Showing
29 changed files
with
99 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/delayed_job" | ||
require "judoscale-delayed_job" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/good_job" | ||
require "judoscale-good_job" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/que" | ||
require "judoscale-que" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/rack" | ||
require "judoscale-rack" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/rails" | ||
require "judoscale-rails" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/resque" | ||
require "judoscale-resque" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/shoryuken" | ||
require "judoscale-shoryuken" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require "judoscale/sidekiq" | ||
require "judoscale-sidekiq" |
Oops, something went wrong.