lib/gurney/cli.rb in gurney_client-0.1.6 vs lib/gurney/cli.rb in gurney_client-0.2.0
- old
+ new
@@ -69,9 +69,12 @@
dependencies.concat yarn_source.dependencies || []
bundler_source = Gurney::Source::Bundler.new(gemfile_lock: read_file(g, options.hook || options.client_hook, branch, 'Gemfile.lock'))
dependencies.concat bundler_source.dependencies || []
+ ruby_version_source = Gurney::Source::RubyVersion.new(ruby_version: read_file(g, options.hook || options.client_hook, branch, '.ruby-version'))
+ dependencies.concat ruby_version_source.dependencies || []
+
dependencies.compact!
api = Gurney::Api.new(base_url: options.api_url, token: options.api_token)
api.post_dependencies(dependencies: dependencies, branch: branch, project_id: options.project_id)