Skip to content

Conversation

@aschuster3
Copy link

While this gem was constructed with grape and grape-swagger in mind, they are technically not necessary for non-test purposes. This will address this issue.

@aschuster3 aschuster3 force-pushed the remove-grape-dependencies branch 2 times, most recently from fcda131 to 8857d38 Compare July 5, 2016 17:16
@dblock
Copy link
Member

dblock commented Jul 7, 2016

But we do want to test compatibility, so I think you cannot remove the Gemfile part. See https://github.com/ruby-grape/grape-swagger-rails/blob/master/.travis.yml#L17 being built.

source 'https://rubygems.org'

gemspec

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Ah, good point, I'll see what can be done about moving that to the gemspec definition instead.

Copy link
Member

@dblock dblock Jul 12, 2016

Choose a reason for hiding this comment

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

I don't think you want to. This is purely for testing gem compatibility, aka the build, I would just leave it as is. The .gemspec is published to other gems. Just put it back and make sure the build passes for all these combinations.

Copy link
Author

Choose a reason for hiding this comment

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

If I add it to the Gemfile, does that also make it a dependency for the entire project? Or does just the .gemspec determine that when not compiling the project locally?

Copy link
Author

Choose a reason for hiding this comment

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

I've actually answered my own question here after reading up on it, I'll update the PR

@aschuster3 aschuster3 force-pushed the remove-grape-dependencies branch from 8857d38 to 964771c Compare July 12, 2016 13:58
@dblock
Copy link
Member

dblock commented Jul 12, 2016

This is great, merging.

@dblock dblock merged commit 39feb1d into ruby-grape:master Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants