wolverine 0.3.2 → 0.3.3

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: c7602927911238830f5041d8ba00ff88de3447ca
4
- data.tar.gz: 5f3cc2eec430c64d681cfae3c58aea642e0dcf85
3
+ metadata.gz: 4e11cb33145dbf819b8784afc1e47dad150b8acb
4
+ data.tar.gz: cd48e18d231ed3582415f43fc6b8cf040d807038
5
5
  SHA512:
6
- metadata.gz: dba3ac022bb75bb0c1885a193328f1bb2dd12f216300e2028881a88a2a8cc8aa248225d62f2de27eebc7a5e98145e1dac9038359b924608acf680754e1180502
7
- data.tar.gz: a513734d3cd6ef1addba3dacbc1068f9f453fd4998a25a666f2e7f50e21085fd8b989bc831f5044bf91403bffa3d5cea667371a6e21a25d5450a84732f99593a
6
+ metadata.gz: c8e0973a300df1184cd4ef22b79dd7abb78934695db5db948616ca432c62e07d1e9bbaf323123d39fcf986dbfa6e7fb30bf51f803c233dd4128202c391889716
7
+ data.tar.gz: c0efc35d4162fdf2216d132f3b7667e5d8bceaa26db126080fd822a2d29b76b06c3cc781082e7fffa2aa84d4d36a7a345efdaa6dac1f46ad2d944d844bfe9c4c
@@ -58,7 +58,7 @@ class Wolverine
58
58
  end
59
59
 
60
60
  def config
61
- @config || self.class.config
61
+ @config ||= self.class.config.dup
62
62
  end
63
63
 
64
64
  def redis
@@ -1,3 +1,3 @@
1
1
  class Wolverine
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -24,4 +24,12 @@ class WolverineTest < MiniTest::Unit::TestCase
24
24
  assert_equal 'path', wolverine.config.script_path
25
25
  end
26
26
 
27
+ def test_instantiate_without_config_dups_the_default_config
28
+ Wolverine.config.redis = :redis
29
+ wolverine = Wolverine.new
30
+ assert_equal :redis, wolverine.config.redis
31
+ wolverine.config.redis = :foobar
32
+ assert_equal :foobar, wolverine.config.redis
33
+ assert_equal :redis, Wolverine.config.redis
34
+ end
27
35
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolverine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ8wDQYDVQQDDAZhZG1p
14
- bnMxFzAVBgoJkiaJk/IsZAEZFgdzaG9waWZ5MRMwEQYKCZImiZPyLGQBGRYDY29t
15
- MB4XDTE0MDUxNTIwMzM0OFoXDTE1MDUxNTIwMzM0OFowPzEPMA0GA1UEAwwGYWRt
16
- aW5zMRcwFQYKCZImiZPyLGQBGRYHc2hvcGlmeTETMBEGCgmSJomT8ixkARkWA2Nv
17
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0/81O3e1vh5smcwp2G
18
- MpLQ6q0kejQLa65bPYPxdzWA1SYOKyGfw+yR9LdFzsuKpwWzKq6zX35lj1IckWS4
19
- bNBEQzxmufUxU0XPM02haFB8fOfDJzdXsWte9Ge4IFwahwn68gpMqN+BvxL+KMYz
20
- Iut9YmN44d4LZdsENEIO5vmybuG2vYDz7R56qB0PA+Q2P2CdhymsBad2DQs69FBo
21
- uico9V6VMYYctL9lCYdzu9IXrOYNTt88suKIVzzAlHOKeN0Ng5qdztFoTR8sfxDr
22
- Ydg3KHl5n47wlpgd8R0f/4b5gGxW+v9pyJCgQnLlRu7DedVSvv7+GMtj3g9r3nhJ
23
- KqECAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFI/o
24
- maf34HXbUOQsdoLHacEKQgunMB0GA1UdEQQWMBSBEmFkbWluc0BzaG9waWZ5LmNv
25
- bTAdBgNVHRIEFjAUgRJhZG1pbnNAc2hvcGlmeS5jb20wDQYJKoZIhvcNAQEFBQAD
26
- ggEBADkK9aj5T0HPExsov4EoMWFnO+G7RQ28C30VAfKxnL2UxG6i4XMHVs6Xi94h
27
- qXFw1ec9Y2eDUqaolT3bviOk9BB197+A8Vz/k7MC6ci2NE+yDDB7HAC8zU6LAx8Y
28
- Iqvw7B/PSZ/pz4bUVFlTATif4mi1vO3lidRkdHRtM7UePSn2rUpOi0gtXBP3bLu5
29
- YjHJN7wx5cugMEyroKITG5gL0Nxtu21qtOlHX4Hc4KdE2JqzCPOsS4zsZGhgwhPs
30
- fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
31
- TConQSX2BnZdhIEYW+cKzEC/bLc=
32
- -----END CERTIFICATE-----
33
- date: 2014-06-23 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2014-09-09 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: redis
@@ -163,5 +141,15 @@ signing_key:
163
141
  specification_version: 4
164
142
  summary: Wolverine provides a simple way to run server-side redis scripts from a rails
165
143
  app
166
- test_files: []
144
+ test_files:
145
+ - test/integration/lua/util/mexists.lua
146
+ - test/integration/wolverine_integration_test.rb
147
+ - test/test_helper.rb
148
+ - test/wolverine/configuration_test.rb
149
+ - test/wolverine/lua/outer.lua
150
+ - test/wolverine/lua/shared/_inner.lua
151
+ - test/wolverine/path_component_test.rb
152
+ - test/wolverine/script_templating_test.rb
153
+ - test/wolverine/script_test.rb
154
+ - test/wolverine_test.rb
167
155
  has_rdoc:
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file