Skip to content

Commit

Permalink
Completely remove dotenv support, fix rake tasks path resolving, set …
Browse files Browse the repository at this point in the history
…active support as runtime dependency
  • Loading branch information
danielvysotskyi committed Jul 3, 2024
1 parent eae164c commit c2072fd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 78 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ gem "rake", "~> 13.0"
gem "rubyzip", "~> 2.3", ">= 2.3.2"

group :test, :development do
gem "dotenv-rails", "~> 3.1"
gem "pry"
gem "rspec", "~> 3.0"
gem "rubocop", "~> 1.21"
Expand Down
72 changes: 1 addition & 71 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
localize_ruby_client (0.2.0)
activesupport (~> 7.1.2)
activesupport
httparty (~> 0.21.0)
jwt (~> 2.8, >= 2.8.1)
openssl (~> 3.1)
Expand All @@ -12,22 +12,6 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actionpack (7.1.3.2)
actionview (= 7.1.3.2)
activesupport (= 7.1.3.2)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.3.2)
activesupport (= 7.1.3.2)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (7.1.3.2)
base64
bigdecimal
Expand All @@ -41,45 +25,25 @@ GEM
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.7)
builder (3.2.4)
coderay (1.1.3)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crass (1.0.6)
diff-lcs (1.5.1)
dotenv (3.1.0)
dotenv-rails (3.1.0)
dotenv (= 3.1.0)
railties (>= 6.1)
drb (2.2.1)
erubi (1.12.0)
httparty (0.21.0)
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.12.0)
rdoc
reline (>= 0.4.2)
json (2.7.1)
jwt (2.8.1)
base64
language_server-protocol (3.17.0.3)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
method_source (1.1.0)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.22.3)
multi_xml (0.6.0)
mutex_m (0.2.0)
nokogiri (1.16.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
racc (~> 1.4)
openssl (3.2.0)
parallel (1.24.0)
parser (3.3.0.5)
Expand All @@ -88,39 +52,10 @@ GEM
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
psych (5.1.2)
stringio
racc (1.7.3)
rack (2.2.8.1)
rack-session (1.0.2)
rack (< 3)
rack-test (2.1.0)
rack (>= 1.3)
rackup (1.0.0)
rack (< 3)
webrick
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.3.2)
actionpack (= 7.1.3.2)
activesupport (= 7.1.3.2)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.1.0)
rdoc (6.6.2)
psych (>= 4.0.0)
regexp_parser (2.9.0)
reline (0.4.3)
io-console (~> 0.5)
rexml (3.2.6)
rspec (3.13.0)
rspec-core (~> 3.13.0)
Expand Down Expand Up @@ -150,21 +85,16 @@ GEM
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
stringio (3.1.0)
thor (1.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
webrick (1.8.1)
zeitwerk (2.6.13)

PLATFORMS
ruby
x86_64-darwin-22

DEPENDENCIES
activesupport (~> 7.1.2)
dotenv-rails (~> 3.1)
httparty (~> 0.21.0)
jwt (~> 2.8)
localize_ruby_client!
Expand Down
2 changes: 1 addition & 1 deletion lib/client/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Client
# It automatically loads rake tasks provided by the gem.
class Railtie < Rails::Railtie
rake_tasks do
load "lib/tasks/localize_ruby_client.rake"
load File.expand_path("../tasks/localize_ruby_client.rake", __dir__)
end
end
end
1 change: 0 additions & 1 deletion lib/tasks/localize_ruby_client.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require "localize_ruby_client"
require "active_support/time"
require "dotenv"

namespace :localize_ruby_client do # rubocop:disable Metrics/BlockLength
desc "Upload file to Localize API"
Expand Down
7 changes: 4 additions & 3 deletions localize_ruby_client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

# register a new dependency of your gem
spec.add_dependency "activesupport", "~> 7.1.2"
# use available version of activesupport from target project
spec.add_runtime_dependency "activesupport"

spec.add_dependency "httparty", "~> 0.21.0"
spec.add_dependency "jwt", "~> 2.8", ">= 2.8.1"
spec.add_dependency "openssl", "~> 3.1"
spec.add_dependency "rake", "~> 13.0"
spec.add_dependency "rubyzip", "~> 2.3"

spec.add_development_dependency "dotenv-rails", "~> 3.1"
spec.add_development_dependency "pry"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rubocop", "~> 1.21"

Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require "localize_ruby_client"
require "active_support/core_ext"
require "dotenv"
require "pry"

RSpec.configure do |config|
Expand Down

0 comments on commit c2072fd

Please sign in to comment.