lib/dev/config.rb in shiprocket_api-0.7.0 vs lib/dev/config.rb in shiprocket_api-0.8.0
- old
+ new
@@ -1,8 +1,9 @@
-require "dotenv/load"
+require 'dotenv/load'
def set_config
ShiprocketAPI.configure do |config|
- config.email = ENV["SHIPROCKET_API_EMAIL"]
- config.password = ENV["SHIPROCKET_API_PASSWORD"]
+ config.email = ENV['SHIPROCKET_API_EMAIL']
+ config.password = ENV['SHIPROCKET_API_PASSWORD']
+ config.cache = ActiveSupport::Cache::MemoryStore.new
end
-end
\ No newline at end of file
+end