diff --git a/.env_example b/.env_example new file mode 100644 index 0000000..3b40d0b --- /dev/null +++ b/.env_example @@ -0,0 +1,5 @@ +RAILS_FEDEX_KEY=n7O7Ukp3IRndmsRJ +RAILS_FEDEX_PASSWORD=DSYpaZjRndmWeHPbJnPCrJiQl +RAILS_FEDEX_ACCOUNT=555999555 +RAILS_FEDEX_METER=555888555 +RAILS_FEDEX_MODE=TEST diff --git a/.gitignore b/.gitignore index 871e943..64cb6d8 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,6 @@ *.swp .byebug_history + +# Developer's test environment settings +.env diff --git a/Gemfile b/Gemfile index 73f4981..496885a 100644 --- a/Gemfile +++ b/Gemfile @@ -71,6 +71,8 @@ group :development do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug' + gem 'dotenv-rails' # easy ENV setup + # Access an IRB console on exception pages or by using <%= console %> in views gem 'web-console', '~> 2.0' diff --git a/Gemfile.lock b/Gemfile.lock index 654f33b..cf1dd64 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -72,6 +72,10 @@ GEM coffee-script-source (1.12.2) concurrent-ruby (1.0.3) debug_inspector (0.0.2) + dotenv (2.2.1) + dotenv-rails (2.2.1) + dotenv (= 2.2.1) + railties (>= 3.2, < 5.2) erubis (2.7.0) execjs (2.7.0) faker (1.4.2) @@ -234,6 +238,7 @@ DEPENDENCIES bootstrap3-datetimepicker-rails (~> 4.0.0) byebug coffee-rails (~> 4.1.0) + dotenv-rails faker (= 1.4.2) fedex! guard @@ -263,4 +268,4 @@ RUBY VERSION ruby 2.1.10p492 BUNDLED WITH - 1.15.1 + 1.15.4