Skip to content

Problematic Sinatra dependency #159

Closed

Description

@skalee

Issue Summary

Recently released version 4.1 introduces Sinatra ~> 1.4.7 as a dependency, and that Sinatra version depends on Rack ~> 1.5. In the result, Sendgrid-Ruby is now incompatible with Rails 5 which requires Rack ~> 2.0.

Sinatra 2 works with Rack 2.0. Two release candidates have been pushed to RubyGems already.

Technical details:

  • sendgrid-ruby Version: 4.1, master (latest commit: 59484d9)
  • Ruby Version: any

Activity

  1. added
    status: help wanted
    type: community enhancement
    type: bug
    and removed
    type: community enhancement
    on Apr 10, 2017
  2. thinkingserious commented on Apr 10, 2017

    @thinkingserious
    Contributor

    Thanks @skalee! I've added this to our backlog for further review.

    @awwa, do you have any thoughts on this one?

    Reference: http://guides.rubyonrails.org/5_0_release_notes.html (requires ruby 2.2.2+)

  3. awwa commented on Apr 19, 2017

    @awwa
    Contributor

    Hi @thinkingserious , @skalee,
    Sinatra ~> 1.4.7 is not compatible with rails 5. It is better to investigate the compatibility with sinatra 2.0 rc and rails 5 because there might be conflict any other gems. I will check.

  4. awwa commented on Apr 19, 2017

    @awwa
    Contributor

    @thinkingserious
    I checked with ruby 2.3.3 and 2.4.0. It seems no problem. All process was fine. Here is the report.

    1. Update the sendgrid-ruby.gemspec file.
    #  spec.add_dependency 'sinatra', '~> 1.4.7'
      spec.add_dependency 'sinatra', '2.0.0.rc2'
    1. Install sinatra 2.0.0.rc2.
    bundle install
    bundle update
    :
    Using sinatra 2.0.0.rc2
    :
    
    1. Test sendgrid-ruby
      All tests are fine.
    rake test
    :
    234 runs, 238 assertions, 0 failures, 0 errors, 0 skips
    
    1. Build package
    rake build
    sendgrid-ruby 4.2.1 built to pkg/sendgrid-ruby-4.2.1.gem.
    
    1. Create rails 5 sample application
    cd /path/to/workspace
    gem install rails -v 5.0.0
    1 gem installed
    rails new rails5_example
    cd rails5_example
    
    1. Add local sendgrid-ruby package to the Gemfile
    gem 'sendgrid-ruby', :path => '/Users/awwa/github/sendgrid-ruby'
    
    1. Install the local sendgrid-ruby package
    bundle install
    bundle update
    :
    Using sendgrid-ruby 4.2.1 from source at `/Users/awwa/github/sendgrid-ruby`
    :
    
    1. Run Rails
    rails s
    
    
    1. Run Sinatra
    cd sendgrid-ruby
    rackup
    :
    [2017-04-20 00:44:16] INFO  WEBrick::HTTPServer#start: pid=78410 port=9292
    
  5. gkats commented on Apr 24, 2017

    @gkats

    Hello, just experienced the same problem that @skalee mentioned. Is there a plan for a release soon? How can we help?

    Technical details:

    • sendgrid-ruby v4.3.0
    • ruby v2.3.1
    • rails v5.0.0
    • actionpack v5.0.0.1
  6. thinkingserious commented on Apr 25, 2017

    @thinkingserious
    Contributor

    Hi @gkats,

    The best way to help is with a PR.

    For now, I've added your vote to the issue to help it rise faster through our backlog.

    Thanks!

    With Best Regards,

    Elmer

  7. gkats commented on Apr 25, 2017

    @gkats

    @thinkingserious On it 😄

  8. added a commit that references this issue on May 2, 2017
  9. skalee commented on May 2, 2017

    @skalee
    ContributorAuthor

    Now the only allowed dependency is a Sinatra's release candidate, which isn't good at all. And the Rack 1.x applications compatibility is broken (that is, still popular Rails 4 won't work).

  10. thinkingserious commented on May 2, 2017

    @thinkingserious
    Contributor

    Thanks for the fix @skalee!

  11. mull commented on Jul 25, 2017

    @mull

    Why is the Sinatra dependency even there at all? It seems like that should be in a separate gem?

  12. thinkingserious commented on Jul 25, 2017

    @thinkingserious
    Contributor

    @mull,

    You are correct, in the new version of this library, we will likely break out the inbound parser into its own gem like we just did with Node.js. If you have further feedback about the this SDKs refactor, please let us know here.

    Thanks for taking the time to give us some feedback!

    With Best Regards,

    Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: help wantedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions