Sha256: 0c60cbae1eef5689f7bbe593c8f80067b9cacfd86b1e94e83d015ef9aefef427
Contents?: true
Size: 256 Bytes
Versions: 2
Compression:
Stored size: 256 Bytes
Contents
begin file_path = File.absolute_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.2 | test/setup/setup_api_key.rb |
ruby-tmdb3-0.3.1 | test/setup/setup_api_key.rb |