10797: Fix ruby warnings.
authorTom Clegg <tom@curoverse.com>
Wed, 4 Jan 2017 16:19:54 +0000 (11:19 -0500)
committerTom Clegg <tom@curoverse.com>
Wed, 4 Jan 2017 16:19:54 +0000 (11:19 -0500)
sdk/cli/arvados-cli.gemspec
sdk/ruby/arvados.gemspec

index 0e11f9639d1aa2b233bffe08356986b1a0e5fe0b..0eeee57e7ffb36a4881b6029942b644297e5502e 100644 (file)
@@ -1,4 +1,4 @@
-if not File.exists?('/usr/bin/git') then
+if not File.exist?('/usr/bin/git') then
   STDERR.puts "\nGit binary not found, aborting. Please install git and run gem build from a checked out copy of the git repository.\n\n"
   exit
 end
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
   s.authors     = ["Arvados Authors"]
   s.email       = 'gem-dev@curoverse.com'
   #s.bindir      = '.'
-  s.licenses    = ['Apache License, Version 2.0']
+  s.licenses    = ['Apache-2.0']
   s.files       = ["bin/arv", "bin/arv-run-pipeline-instance",
                    "bin/arv-crunch-job", "bin/arv-tag", "bin/crunch-job",
                    "LICENSE-2.0.txt"]
index 2c4e60eeb8f1e664e2a4ed62879381fbb75d6e01..84e24f4d3ba13acf5728b0c8c0cdfae1634105e7 100644 (file)
@@ -1,4 +1,4 @@
-if not File.exists?('/usr/bin/git') then
+if not File.exist?('/usr/bin/git') then
   STDERR.puts "\nGit binary not found, aborting. Please install git and run gem build from a checked out copy of the git repository.\n\n"
   exit
 end
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
   s.description = "Arvados client library, git commit #{git_hash}"
   s.authors     = ["Arvados Authors"]
   s.email       = 'gem-dev@curoverse.com'
-  s.licenses    = ['Apache License, Version 2.0']
+  s.licenses    = ['Apache-2.0']
   s.files       = ["lib/arvados.rb", "lib/arvados/google_api_client.rb",
                    "lib/arvados/collection.rb", "lib/arvados/keep.rb",
                    "README", "LICENSE-2.0.txt"]