Skip to content

Commit 53d6769

Browse files
segiddinssimi
authored andcommitted
Revert "Add compact index support for private sources"
This reverts commit c5f0947.
1 parent c5f0947 commit 53d6769

23 files changed

+29
-733
lines changed

.rubocop-bundler.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Lint/UnusedMethodArgument:
1818
Lint/UriEscapeUnescape:
1919
Enabled: true
2020

21+
2122
# Style
2223

2324
Layout/EndAlignment:
@@ -91,10 +92,7 @@ Style/SpecialGlobalVars:
9192
Enabled: false
9293

9394
Naming/VariableNumber:
94-
EnforcedStyle: "snake_case"
95-
AllowedIdentifiers:
96-
- sha256
97-
- capture3
95+
EnforcedStyle: 'snake_case'
9896

9997
Naming/MemoizedInstanceVariableName:
10098
Enabled: false

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ group :linting do
2222
end
2323

2424
group :test do
25-
gem "gem_server_conformance", "~> 0.1.4"
2625
gem "mock_redis"
2726
end

docs/gemstash-configuration.5.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ Boolean values `true` or `false`
221221
`:fetch_timeout`
222222

223223
This is the number of seconds to allow for fetching a gem from upstream.
224-
It covers establishing the connection and receiving the response.
225-
Fetching gems over a slow connection may cause timeout errors. If you
226-
experience timeout errors, you may want to increase this value. The
227-
default is `20` seconds.
224+
It covers establishing the connection and receiving the response. Fetching
225+
gems over a slow connection may cause timeout errors. If you experience
226+
timeout errors, you may want to increase this value. The default is `20`
227+
seconds.
228228

229229
## Default value
230230

@@ -239,10 +239,10 @@ Integer value with a minimum of `1`
239239
`:open_timeout`
240240

241241
The timeout setting for opening the connection to an upstream gem
242-
server. On high-latency networks, even establishing the connection to an
243-
upstream gem server can take a while. If you experience connection
244-
failures instead of timeout errors, you may want to increase this value.
245-
The default is `2` seconds.
242+
server. On high-latency networks, even establishing the connection
243+
to an upstream gem server can take a while. If you experience
244+
connection failures instead of timeout errors, you may want to
245+
increase this value. The default is `2` seconds.
246246

247247
## Default value
248248

gemstash.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ you push your own private gems as well."
3232
spec.required_ruby_version = ">= 3.1"
3333

3434
spec.add_runtime_dependency "activesupport", ">= 4.2", "< 8"
35-
spec.add_runtime_dependency "compact_index", "~> 0.15.0"
3635
spec.add_runtime_dependency "dalli", ">= 3.2.3", "< 4"
3736
spec.add_runtime_dependency "faraday", ">= 1", "< 3"
3837
spec.add_runtime_dependency "faraday_middleware", "~> 1.0"

lib/gemstash.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module Gemstash
77
autoload :DB, "gemstash/db"
88
autoload :Cache, "gemstash/cache"
99
autoload :CLI, "gemstash/cli"
10-
autoload :CompactIndexBuilder, "gemstash/compact_index_builder"
1110
autoload :Configuration, "gemstash/configuration"
1211
autoload :Dependencies, "gemstash/dependencies"
1312
autoload :Env, "gemstash/env"

lib/gemstash/cache.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ def set_dependency(scope, gem, value)
4343

4444
def invalidate_gem(scope, gem)
4545
@client.delete("deps/v1/#{scope}/#{gem}")
46-
if scope == "private"
47-
Gemstash::SpecsBuilder.invalidate_stored
48-
Gemstash::CompactIndexBuilder.invalidate_stored(gem)
49-
end
46+
Gemstash::SpecsBuilder.invalidate_stored if scope == "private"
5047
end
5148
end
5249

lib/gemstash/cli/info.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ class Info < Gemstash::CLI::Base
1212
def run
1313
prepare
1414
list_config
15-
16-
# Gemstash::DB
17-
# Gemstash::Env.current.db.dump_schema_migration(same_db: true)
1815
end
1916

2017
private

lib/gemstash/compact_index_builder.rb

Lines changed: 0 additions & 257 deletions
This file was deleted.

lib/gemstash/db.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module DB
1010
Sequel::Model.db = Gemstash::Env.current.db
1111
Sequel::Model.raise_on_save_failure = true
1212
Sequel::Model.plugin :timestamps, update_on_create: true
13-
Sequel::Model.db.extension :schema_dumper
1413
autoload :Authorization, "gemstash/db/authorization"
1514
autoload :CachedRubygem, "gemstash/db/cached_rubygem"
1615
autoload :Dependency, "gemstash/db/dependency"

0 commit comments

Comments
 (0)