Skip to content

Commit

Permalink
Remove extended_email_reply_parser dependency (#1002)
Browse files Browse the repository at this point in the history
* Remove `extended_email_reply_parser` dependency

For some reason `extended_email_reply_parser` was added as a dependency to the main `bullet_train` gem even though it's not used anywhere in `core` or in the starter repo.

It _is_ used by `bullet_train-conversations` and is declared as a dependency there, so we don't need it here.

`extended_email_reply_parser` relies on `charlock_holmes` which is notoriously finicky to install due to native extensions. Removing this dependency should eliminate one of the big problems that people often run into when first setting up Bullet Train.

Fixes #999

* Oops missed one

* Need to define another teplate method

* linter
  • Loading branch information
jagthedrummer authored Dec 30, 2024
1 parent 02d80ec commit 33c2218
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 92 deletions.
8 changes: 0 additions & 8 deletions bullet_train-api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -197,7 +196,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -226,14 +224,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-fields/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -197,7 +196,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -229,14 +227,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-incoming_webhooks/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -205,7 +204,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -234,14 +232,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
factory_bot_rails (6.4.4)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-integrations-stripe/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -215,7 +214,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -244,14 +242,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-outgoing_webhooks/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -204,7 +203,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -233,14 +231,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-sortable/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -203,7 +202,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -232,14 +230,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,8 @@ def create
def update
raise "This is a template method that needs to be implemented by controllers including LoadsAndAuthorizesResource."
end

def destroy
raise "This is a template method that needs to be implemented by controllers including LoadsAndAuthorizesResource."
end
end
8 changes: 0 additions & 8 deletions bullet_train-super_scaffolding/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -197,7 +196,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -226,14 +224,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-themes-light/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -212,7 +211,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -241,14 +239,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-themes-tailwind_css/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -204,7 +203,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -233,14 +231,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train-themes/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -197,7 +196,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -227,14 +225,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
8 changes: 0 additions & 8 deletions bullet_train/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ PATH
commonmarker (>= 1.0.0)
devise
devise-pwned_password
extended_email_reply_parser
fastimage
figaro
hiredis
Expand Down Expand Up @@ -219,7 +218,6 @@ GEM
railties (>= 5.2)
thread-local (>= 1.1.0)
cancancan (3.6.1)
charlock_holmes (0.7.9)
chronic (0.10.2)
cloudinary (2.2.0)
faraday (>= 2.0.1, < 3.0.0)
Expand Down Expand Up @@ -252,14 +250,8 @@ GEM
doorkeeper (5.8.1)
railties (>= 5)
drb (2.2.1)
email_reply_parser (0.5.11)
erubi (1.13.1)
event_stream_parser (1.0.0)
extended_email_reply_parser (0.5.1)
activesupport
charlock_holmes
email_reply_parser (~> 0.5.9)
mail
factory_bot (6.5.0)
activesupport (>= 5.0.0)
faraday (2.12.2)
Expand Down
3 changes: 0 additions & 3 deletions bullet_train/bullet_train.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ Gem::Specification.new do |spec|
# Allow users to supply content with markdown formatting. Powers our markdown() view helper.
spec.add_dependency "commonmarker", ">= 1.0.0"

# Extract the body from emails received using action inbox.
spec.add_dependency "extended_email_reply_parser" # TODO ➡️ `bullet_train-conversations`

# OpenAI
spec.add_dependency "ruby-openai"

Expand Down
1 change: 0 additions & 1 deletion bullet_train/lib/bullet_train.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
require "figaro"
require "valid_email"
require "commonmarker"
require "extended_email_reply_parser"
require "pagy"
require "devise/pwned_password"
require "openai"
Expand Down

0 comments on commit 33c2218

Please sign in to comment.