get 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b65d91c034544c94bc5f69f130fd281ea846d32d
4
- data.tar.gz: 3ba99734b8435d50b2fb2372e798b26860dec7db
3
+ metadata.gz: bb6e0933eec0ac7c61fcc951da3564137a95e2d8
4
+ data.tar.gz: 03c155d336602fa8bbaf389d9c569975595e390b
5
5
  SHA512:
6
- metadata.gz: ae40513b32b4063b5bfe7c2d2bcf025e107eeba4aa87013402b298d6601f09815755e1967c0db38c436e92290444820f06034b20a6b6b4b5f6e5541213c136aa
7
- data.tar.gz: f99002ee16cdd582571be08ea99512dc2eaa6a9e4e9ff661ba9322b5741d75040a27e899eeee37d76201a6c8fd68180e14ea25e08a06d5f15a6e0f117dcf0a26
6
+ metadata.gz: 5a592613a78a139bd1b430dcabdd18bc71b079736de17b8221b38193261c001fcc4bb0911ac054c6f7b94dcabab490d3d87551ada970cd8a7481cd41842eaccb
7
+ data.tar.gz: c82d46d167cfe7df7a2b6ffda5072f9c0566fa5671a2e77d5b75b59aa20f15d38492cd29358bd7d29a6420d6a80917a1b8ab9203ba16f18511d691cfa6fbb229
@@ -30,5 +30,10 @@ module Get
30
30
  def development_mode
31
31
  Horza.configure { |config| config.development_mode = true }
32
32
  end
33
+
34
+ def set_namespaces(namespaces)
35
+ raise ::Get::Errors::Base.new('namespaces must be an array') unless namespaces.is_a? Array
36
+ Horza.configure { |config| config.namespaces = namespaces }
37
+ end
33
38
  end
34
39
  end
data/spec/get_spec.rb CHANGED
@@ -67,6 +67,22 @@ describe Get do
67
67
  end
68
68
  end
69
69
 
70
+ context 'namespaces' do
71
+ before do
72
+ Get.reset
73
+ Get.configure do |config|
74
+ config.set_adapter('my_adapter')
75
+ config.set_namespaces [GetSpec]
76
+ end
77
+ end
78
+ after do
79
+ Get.reset
80
+ end
81
+ it 'sets Horza to development mode' do
82
+ expect(Horza.configuration.namespaces).to eq [GetSpec]
83
+ end
84
+ end
85
+
70
86
  context '#adapter' do
71
87
  context 'when the adapter is set' do
72
88
  it 'returns the correct adapter class' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-08 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: horza
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.1
19
+ version: 0.3.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.1
26
+ version: 0.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement