lib/hrw/api.rb in hrw-0.2.1 vs lib/hrw/api.rb in hrw-0.2.2
- old
+ new
@@ -27,15 +27,16 @@
end
# Submit dependencies to server
#
# @param [Array] dependencies
+ # @param [String] pkg_manager
# @return [String] Checksum for those dependencies
- def submit(dependencies)
+ def submit(dependencies, pkg_manager)
body = {
hash: _calc_hash(dependencies),
pkg_manager: {
- name: :rubygems
+ name: pkg_manager
},
packages: dependencies
}
res = HTTP.post(@submit_url, json: body)
\ No newline at end of file