Sha256: ae03e00f2ee7c1c145695cf72bdd30f8895e42143c737bbb00754c974e473dd1
Contents?: true
Size: 254 Bytes
Versions: 2
Compression:
Stored size: 254 Bytes
Contents
begin file_path = File.expand_path('tmdb_api_key.txt', File.dirname(__FILE__)) File.open(file_path) do |file| Tmdb.api_key = file.read.chomp end rescue Errno::ENOENT => e $stderr.puts "You need place your api key in #{file_path}" exit end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-tmdb3-0.3.4 | test/setup/setup_api_key.rb |
ruby-tmdb3-0.3.3 | test/setup/setup_api_key.rb |