Skip to content

Commit

Permalink
#185829263 : remove rack depdency (#47)
Browse files Browse the repository at this point in the history
* remove rack depdency

up to user to install rack.

* add dependency to moesifapi 2.0.2 and less restrictive

* Update Gemfile.lock

* Update Gemfile.lock
  • Loading branch information
xinghengwang authored Aug 14, 2023
1 parent aa229a6 commit a623c4d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 40 deletions.
45 changes: 9 additions & 36 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
PATH
remote: .
specs:
moesif_rack (2.0.1)
moesif_api (~> 2.0.1)
rack (~> 3.0.8, >= 2.0.0)
moesif_rack (2.0.2)
moesif_api (~> 2, >= 2.0.2)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.4)
public_suffix (>= 2.0.2, < 6.0)
connection_pool (2.4.1)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
faraday (2.7.4)
faraday (2.7.10)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
Expand All @@ -22,44 +17,22 @@ GEM
net-http-persistent (~> 4.0)
faraday-retry (2.2.0)
faraday (~> 2.0)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
json (2.6.3)
json_mapper (0.2.1)
json (>= 1.4.3)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2023.0218.1)
moesif_api (2.0.1)
faraday (~> 2.7, >= 2.6)
faraday-net_http_persistent (~> 2.0, >= 2.0.1)
faraday-retry (~> 2.2.0, >= 2.0.0)
json_mapper (~> 0.2, >= 0.2.1)
moesif_unirest (~> 1.1.6)
net-http-persistent (~> 4.0, >= 4.0.1)
moesif_unirest (1.1.6)
addressable (~> 2.8, >= 2.8.0)
json (~> 2.6, >= 2.6.1)
rest-client (~> 2.1, >= 2.1.0)
moesif_api (2.0.2)
faraday (~> 2)
faraday-net_http_persistent (~> 2)
faraday-retry (~> 2)
json_mapper (~> 0)
net-http-persistent (~> 4)
net-http-persistent (4.0.2)
connection_pool (~> 2.2)
netrc (0.11.0)
power_assert (2.0.3)
public_suffix (5.0.1)
rack (3.0.8)
rake (13.0.6)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
ruby2_keywords (0.0.5)
test-unit (3.6.1)
power_assert
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)

PLATFORMS
arm64-darwin-21
Expand Down
2 changes: 1 addition & 1 deletion lib/moesif_rack/moesif_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(app, options = {})
@app = app
raise 'application_id required for Moesif Middleware' unless options['application_id']

@api_client = MoesifApi::MoesifAPIClient.new(options['application_id'], 'moesif-rack/2.0.1')
@api_client = MoesifApi::MoesifAPIClient.new(options['application_id'], 'moesif-rack/2.0.2')
@api_controller = @api_client.api

@api_version = options['api_version']
Expand Down
5 changes: 2 additions & 3 deletions moesif_rack.gemspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
Gem::Specification.new do |s|
s.name = 'moesif_rack'
s.version = '2.0.1'
s.version = '2.0.2'
s.summary = 'moesif_rack'
s.description = 'Rack/Rails middleware to log API calls to Moesif API analytics and monitoring'
s.authors = ['Moesif, Inc', 'Xing Wang']
s.email = '[email protected]'
s.homepage = 'https://moesif.com'
s.license = 'Apache-2.0'
s.add_development_dependency('test-unit', '~> 3.5', '>= 3.5.0')
s.add_dependency('moesif_api', '~> 2.0.1')
s.add_dependency('rack', '~> 3.0.8', '>= 2.0.0')
s.add_dependency('moesif_api', '~> 2', '>= 2.0.2')
s.required_ruby_version = '>= 2.6'
s.files = Dir['{bin,lib,moesif_capture_outgoing,man,test,spec}/**/*', 'README*', 'LICENSE*']
s.require_paths = ['lib']
Expand Down

0 comments on commit a623c4d

Please sign in to comment.