Skip to content

Commit

Permalink
fixes #47 switch to Holders.grailsApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
tednaleid committed Jan 10, 2015
1 parent 14b02ce commit d904d4a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RedisGrailsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import grails.util.Environment

class RedisGrailsPlugin {

def version = "1.6.0"
def version = "1.6.1"
def grailsVersion = "2.0.0 > *"
def author = "Ted Naleid"
def authorEmail = "[email protected]"
Expand Down
4 changes: 3 additions & 1 deletion src/groovy/grails/plugin/redis/RedisService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
package grails.plugin.redis

import com.google.gson.Gson
import grails.util.Holders
import org.codehaus.groovy.grails.commons.GrailsApplication
import redis.clients.jedis.Jedis
import redis.clients.jedis.Pipeline
import redis.clients.jedis.Transaction
Expand All @@ -26,7 +28,7 @@ class RedisService {
public static final int KEY_DOES_NOT_EXIST = -2 // added in redis 2.8

def redisPool
def grailsApplication
GrailsApplication grailsApplication = Holders.grailsApplication

boolean transactional = false

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package grails.plugin.redis

import grails.spring.BeanBuilder
import grails.util.Holders
import org.codehaus.groovy.grails.commons.GrailsApplication
import org.junit.Before
import org.junit.Test
import redis.clients.jedis.exceptions.JedisConnectionException
Expand All @@ -12,7 +14,7 @@ import redis.clients.jedis.Transaction
class RedisServiceTests {
def redisService
def redisServiceMock
def grailsApplication
GrailsApplication grailsApplication = Holders.grailsApplication

boolean transactional = false

Expand Down
4 changes: 3 additions & 1 deletion test/integration/grails/plugin/redis/RedisTagLibTests.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package grails.plugin.redis

import grails.util.Holders
import org.codehaus.groovy.grails.commons.GrailsApplication
import org.junit.Before
import org.junit.Test

Expand All @@ -8,7 +10,7 @@ class RedisTagLibTests {
protected static CONTENTS = "expected contents"
protected static FAIL_BODY = "unexpected contents, should not have this"
def redisService
def grailsApplication
GrailsApplication grailsApplication = Holders.grailsApplication
def tagLib

@Before
Expand Down

0 comments on commit d904d4a

Please sign in to comment.