diff --git a/Gemfile.lock b/Gemfile.lock index 428a7bd..c4f5d6b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,6 +9,7 @@ GEM specs: domain_name (0.5.20161021) unf (>= 0.0.5, < 1.0.0) + dotenv (2.1.1) http-cookie (1.0.3) domain_name (~> 0.5) mime-types (3.1) @@ -30,6 +31,7 @@ PLATFORMS DEPENDENCIES bundler (~> 1.13) + dotenv (~> 2.1.1) minitest (~> 5.8, >= 5.8.3) naver_map! rake (~> 11.2, >= 11.2.2) diff --git a/naver_map.gemspec b/naver_map.gemspec index 77aa2b9..5e9d8f3 100644 --- a/naver_map.gemspec +++ b/naver_map.gemspec @@ -35,6 +35,7 @@ Gem::Specification.new do |spec| spec.add_dependency "rest-client", "~> 2.0", ">= 2.0.0" spec.add_development_dependency "bundler", "~> 1.13" + spec.add_development_dependency "dotenv", "~> 2.1.1" spec.add_development_dependency "minitest", "~> 5.8", ">= 5.8.3" spec.add_development_dependency "rake", "~> 11.2", ">= 11.2.2" end diff --git a/test/naver_map_test.rb b/test/naver_map_test.rb index 9a287de..b064bde 100644 --- a/test/naver_map_test.rb +++ b/test/naver_map_test.rb @@ -4,7 +4,8 @@ class TestNaverMap < Minitest::Test def setup - @naver_map = NaverMap.new('9t01a7LRijYCbU1PEOlR', 'VY9dCKWgEa') + @naver_map = NaverMap.new(ENV['NAVER_MAP_CLIENT_ID'], + ENV['NAVER_MAP_CLIENT_SECRET']) end def test_address_to_coordinates