Skip to content

Commit 1af67f1

Browse files
author
Brandon Black
committed
🔥-ing boxen remnants
1 parent dcd51eb commit 1af67f1

14 files changed

Lines changed: 21 additions & 21 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ app:
2424
- mongo
2525
- memcached
2626
environment:
27-
- BOXEN_REDIS_URL=redis://redis:6379
28-
- BOXEN_MONGODB_HOST=mongo
29-
- BOXEN_MEMCACHED_URL=memcached:11211
27+
- REDIS_URL=redis://redis:6379
28+
- MONGODB_HOST=mongo
29+
- MEMCACHED_URL=memcached:11211
3030
bundle_cache:
3131
container_name: flipper_bundle_cache
3232
image: busybox

examples/mongo/basic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
require 'flipper/adapters/mongo'
99
Mongo::Logger.logger.level = Logger::INFO
10-
collection = Mongo::Client.new(["127.0.0.1:#{ENV["BOXEN_MONGODB_PORT"] || 27017}"], :database => 'testing')['flipper']
10+
collection = Mongo::Client.new(["127.0.0.1:#{ENV["MONGODB_PORT"] || 27017}"], :database => 'testing')['flipper']
1111
adapter = Flipper::Adapters::Mongo.new(collection)
1212
flipper = Flipper.new(adapter)
1313

examples/mongo/internals.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
require 'flipper/adapters/mongo'
1010
Mongo::Logger.logger.level = Logger::INFO
11-
collection = Mongo::Client.new(["127.0.0.1:#{ENV["BOXEN_MONGODB_PORT"] || 27017}"], :database => 'testing')['flipper']
11+
collection = Mongo::Client.new(["127.0.0.1:#{ENV["MONGODB_PORT"] || 27017}"], :database => 'testing')['flipper']
1212
adapter = Flipper::Adapters::Mongo.new(collection)
1313
flipper = Flipper.new(adapter)
1414

examples/redis/basic.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
require 'flipper/adapters/redis'
99
options = {}
10-
if ENV['BOXEN_REDIS_URL']
11-
options[:url] = ENV['BOXEN_REDIS_URL']
10+
if ENV['REDIS_URL']
11+
options[:url] = ENV['REDIS_URL']
1212
end
1313
client = Redis.new(options)
1414
adapter = Flipper::Adapters::Redis.new(client)

examples/redis/internals.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
require 'flipper/adapters/redis'
1010

1111
options = {}
12-
if ENV['BOXEN_REDIS_URL']
13-
options[:url] = ENV['BOXEN_REDIS_URL']
12+
if ENV['REDIS_URL']
13+
options[:url] = ENV['REDIS_URL']
1414
end
1515
client = Redis.new(options)
1616
adapter = Flipper::Adapters::Redis.new(client)

examples/redis/namespaced.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
require 'flipper/adapters/redis'
1616
options = {url: 'redis://127.0.0.1:6379'}
17-
if ENV['BOXEN_REDIS_URL']
18-
options[:url] = ENV['BOXEN_REDIS_URL']
17+
if ENV['REDIS_URL']
18+
options[:url] = ENV['REDIS_URL']
1919
end
2020
client = Redis.new(options)
2121
namespaced_client = Redis::Namespace.new(:flipper_namespace, redis: client)

spec/flipper/adapters/dalli_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
RSpec.describe Flipper::Adapters::Dalli do
77
let(:memory_adapter) { Flipper::Adapters::Memory.new }
8-
let(:cache) { Dalli::Client.new(ENV['BOXEN_MEMCACHED_URL'] || '127.0.0.1:11211') }
8+
let(:cache) { Dalli::Client.new(ENV['MEMCACHED_URL'] || '127.0.0.1:11211') }
99
let(:adapter) { described_class.new(memory_adapter, cache) }
1010
let(:flipper) { Flipper.new(adapter) }
1111

spec/flipper/adapters/mongo_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
RSpec.describe Flipper::Adapters::Mongo do
88
subject { described_class.new(collection) }
99

10-
let(:host) { ENV['BOXEN_MONGODB_HOST'] || '127.0.0.1' }
11-
let(:port) { ENV['BOXEN_MONGODB_PORT'] || 27017 }
10+
let(:host) { ENV['MONGODB_HOST'] || '127.0.0.1' }
11+
let(:port) { ENV['MONGODB_PORT'] || 27017 }
1212

1313
let(:client) do
1414
Mongo::Client.new(["#{host}:#{port}"], server_selection_timeout: 1, database: 'testing')

spec/flipper/adapters/redis_cache_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
let(:client) do
88
options = {}
99

10-
options[:url] = ENV['BOXEN_REDIS_URL'] if ENV['BOXEN_REDIS_URL']
10+
options[:url] = ENV['REDIS_URL'] if ENV['REDIS_URL']
1111

1212
Redis.new(options)
1313
end
1414

1515
let(:memory_adapter) { Flipper::Adapters::Memory.new }
16-
let(:cache) { Redis.new(url: ENV.fetch('BOXEN_REDIS_URL', 'redis://localhost:6379')) }
16+
let(:cache) { Redis.new(url: ENV.fetch('REDIS_URL', 'redis://localhost:6379')) }
1717
let(:adapter) { described_class.new(memory_adapter, cache) }
1818
let(:flipper) { Flipper.new(adapter) }
1919

spec/flipper/adapters/redis_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
let(:client) do
77
options = {}
88

9-
options[:url] = ENV['BOXEN_REDIS_URL'] if ENV['BOXEN_REDIS_URL']
9+
options[:url] = ENV['REDIS_URL'] if ENV['REDIS_URL']
1010

1111
Redis.new(options)
1212
end

0 commit comments

Comments
 (0)