Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosen dependencies #40

Merged
merged 4 commits into from
Jun 30, 2023
Merged

Loosen dependencies #40

merged 4 commits into from
Jun 30, 2023

Conversation

benjaminoakes
Copy link
Contributor

Closes #39

    1) SuperSpreader::SchedulerJob#next_run_at is the configured amount of time in the future
       Failure/Error: pipeline.hset(redis_key, key, value)

       TypeError:
         Unsupported command argument type: NilClass
       # ./lib/super_spreader/redis_model.rb:33:in `block (2 levels) in save'
       # ./lib/super_spreader/redis_model.rb:32:in `each'
       # ./lib/super_spreader/redis_model.rb:32:in `block in save'
       # ./lib/super_spreader/redis_model.rb:29:in `save'
       # ./spec/scheduler_job_spec.rb:94:in `block (4 levels) in <top (required)>'
       # ./spec/scheduler_job_spec.rb:93:in `block (3 levels) in <top (required)>'
       # ./spec/spec_helper.rb:62:in `block (2 levels) in <top (required)>'
@@ -91,7 +91,7 @@
describe "#next_run_at" do
it "is the configured amount of time in the future" do
travel_to(Time.new(2020, 12, 16, 0, 0, 0, 0)) do
SuperSpreader::SchedulerConfig.new(duration: 3600).save
create(:scheduler_config, duration: 3600)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see 36dcca2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this while testing locally. It's not currently possible to test that in CI, which is expected to be rectified in #17

Comment on lines -39 to +41
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rspec-rails", "~> 4.0"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "rspec-rails"
Copy link
Contributor Author

@benjaminoakes benjaminoakes Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was necessary to remove these ranges so I could test. We also don't really care about versions of development dependencies as long as we have Gemfile.lock.

@benjaminoakes benjaminoakes marked this pull request as ready for review June 29, 2023 19:07
@benjaminoakes benjaminoakes merged commit 1d06fa7 into master Jun 30, 2023
@benjaminoakes benjaminoakes deleted the benjaminoakes/loose-deps-39 branch June 30, 2023 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make dependency requirements less strict
2 participants