Skip to content

Commit 4f9428c

Browse files
committed
Remove nested/config dependency
1 parent 6cf936b commit 4f9428c

File tree

5 files changed

+0
-38
lines changed

5 files changed

+0
-38
lines changed

candy_check.gemspec

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
1717
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
1818
spec.require_paths = ['lib']
1919

20-
spec.add_dependency 'nested_config', '~> 0.5'
2120
spec.add_dependency 'multi_json', '~> 1.10'
2221
spec.add_dependency 'google-api-client', '~> 0.8'
2322

lib/candy_check.rb

-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
require 'candy_check/version'
2-
require 'candy_check/config'
32
require 'candy_check/utils'
43
require 'candy_check/app_store'
54
require 'candy_check/play_store'
65

76
# Module to check and verify in-app receipts
87
module CandyCheck
9-
# Reads the config for this module
10-
# @return [Config]
11-
def self.config
12-
@config ||= Config.new
13-
end
14-
15-
# Configure this module
16-
# @yield [config] Allows changing the config
17-
# @yieldparam config [Config]
18-
# @return [Config]
19-
def self.configure
20-
yield config
21-
config
22-
end
238
end

lib/candy_check/config.rb

-7
This file was deleted.

spec/candy_check_spec.rb

-10
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,4 @@
66
it 'has a version' do
77
subject::VERSION.wont_be_nil
88
end
9-
it 'has a config' do
10-
subject.config.must_be_instance_of CandyCheck::Config
11-
end
12-
it 'allows configuration' do
13-
c = subject.configure do |config|
14-
config.test_value = 1
15-
end
16-
subject.config.test_value.must_equal 1
17-
c.must_be_same_as(subject.config)
18-
end
199
end

spec/spec_helper.rb

-5
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,13 @@
77
require 'minitest/around/spec'
88

99
require 'webmock/minitest'
10-
require 'nested_config/with_config'
1110

1211
require_relative 'support/with_fixtures'
1312
require_relative 'support/with_temp_file'
1413

1514
ENV['DEBUG'] && Google::APIClient.logger.level = Logger::DEBUG
1615

1716
module MiniTest
18-
class Spec
19-
include NestedConfig::WithConfig
20-
end
21-
2217
module Assertions
2318
# The first parameter must be ```true```, not coercible to true.
2419
def assert_true(obj, msg = nil)

0 commit comments

Comments
 (0)