Skip to content

Commit

Permalink
Merge pull request #70 from AirHelp/drop_dotenv
Browse files Browse the repository at this point in the history
Drop dotenv
  • Loading branch information
rapsad authored Jun 17, 2024
2 parents 2c03a6e + 049bdc6 commit e51caa9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.9.0] - 2024-03-12

- Eliminate the dependency on `dotenv`. However, the application will still load `dotenv` if it is available.

## [1.4.0] - 2020-04-18

- Introduce server middlewares (#31)
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
PATH
remote: .
specs:
eventboss (1.8.1)
eventboss (1.9.0)
aws-sdk-sns (>= 1.1.0)
aws-sdk-sqs (>= 1.3.0)
dotenv (~> 2.1, >= 2.1.1)
rexml (~> 3.0)

GEM
remote: https://rubygems.org/
specs:
aws-eventstream (1.3.0)
aws-partitions (1.894.0)
aws-partitions (1.896.0)
aws-sdk-core (3.191.3)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
Expand All @@ -26,7 +25,7 @@ GEM
aws-sigv4 (1.8.0)
aws-eventstream (~> 1, >= 1.0.2)
diff-lcs (1.5.0)
dotenv (2.8.1)
dotenv (3.1.0)
jmespath (1.6.2)
rake (13.0.6)
rexml (3.2.8)
Expand All @@ -51,6 +50,7 @@ PLATFORMS

DEPENDENCIES
bundler (>= 1)
dotenv (~> 3.1)
eventboss!
rake (>= 10.0)
rspec (~> 3.0)
Expand Down
2 changes: 1 addition & 1 deletion eventboss.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Gem::Specification.new do |spec|

spec.add_dependency "aws-sdk-sqs", ">= 1.3.0"
spec.add_dependency "aws-sdk-sns", ">= 1.1.0"
spec.add_dependency "dotenv", "~> 2.1", ">= 2.1.1"
spec.add_dependency "rexml", "~> 3.0"

spec.add_development_dependency "dotenv", "~> 3.1"
spec.add_development_dependency "bundler", ">= 1"
spec.add_development_dependency 'rake', '>= 10.0'
spec.add_development_dependency "rspec", "~> 3.0"
Expand Down
8 changes: 5 additions & 3 deletions lib/eventboss/cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require 'rubygems'
require 'dotenv'
begin
require 'dotenv'
Dotenv.load
rescue LoadError
end
require 'optparse'
require 'yaml'
require 'erb'
Expand Down Expand Up @@ -36,8 +40,6 @@ def run
private

def boot_system
Dotenv.load

require 'rails'
if ::Rails::VERSION::MAJOR < 4
require File.expand_path('config/environment.rb')
Expand Down
2 changes: 1 addition & 1 deletion lib/eventboss/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Eventboss
VERSION = "1.8.1"
VERSION = "1.9.0"
end

0 comments on commit e51caa9

Please sign in to comment.