Conversation
|
Any comment anyone? I'll leave it here a couple of days just in case. |
|
I'll have a quick look in the morning! |
|
Hi @elhu, did you had time to have a look at this? |
elhu
left a comment
There was a problem hiding this comment.
Just a couple questions/comments, everything looks good to me otherwise.
|
|
||
| Gem::Specification.new do |spec| | ||
| spec.name = "ruby-push-notifications" | ||
| spec.version = RubyPushNotifications::VERSION |
There was a problem hiding this comment.
Just curious, what's the motivation behind removing the version file?
There was a problem hiding this comment.
To avoid having to require the gem's files in this file. It is a recommendation I took from ruby gems.org
| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
| spec.require_paths = ['lib'] | ||
|
|
||
| spec.add_dependency 'activesupport', '~> 4.2' |
There was a problem hiding this comment.
Why do we depend on activesupport exactly?
There was a problem hiding this comment.
I think it is a dependency that builder gem brings. I had to fix it because the current version is 5.x and it is not compatible with Ruby <= 2.1.x
There was a problem hiding this comment.
Hmm, weird, there's nothing about activesupport in builder's dependencies: https://rubygems.org/gems/builder.
I think forcing the requirement here is a bad idea, since projects using rails 5 depend on activesupport ~> 5.0.
If it's for test purpose, we need to have a build matrix with different version of activesupport depending on the ruby version.
I did something like that in https://github.com/elhu/peastash.
If we actually need it at runtime and not just in specs, we need to:
- Figure out where it comes from
- See if we can't just leave the dependency there and let bundler sort it out
There was a problem hiding this comment.
Ok, so I've just discovered it is a factory_girl's dependency so I assume we should do the build matrix you suggest
There was a problem hiding this comment.
Then it might be simpler to just register the dependency as a dev-time dependency, no?
spec.add_development_dependency 'activesupport', '~> 4.2'
This way, this requirement is for dev only and has no impact on people trying to add the gem to their projects?
c539eca to
38270b4
Compare
38270b4 to
d147478
Compare
|
Cool, this looks much better. /cc @elhu |
Uh oh!
There was an error while loading. Please reload this page.