Skip to content

Commit

Permalink
Removed unnecessary settings and added some metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
richmarr committed May 8, 2012
1 parent 6472d5e commit 74d22bf
Showing 1 changed file with 44 additions and 47 deletions.
91 changes: 44 additions & 47 deletions MailchimpGrailsPlugin.groovy
Original file line number Diff line number Diff line change
@@ -1,56 +1,53 @@
import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
import co.happyinc.MailchimpService

class MailchimpGrailsPlugin {
// the plugin version
def version = "0.1"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.7 > *"
// the other plugins this plugin depends on
def dependsOn = [:]
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-app/views/error.gsp"
]

// TODO Fill in these fields
def author = "Your name"
def authorEmail = ""
def title = "Plugin summary/headline"
def description = '''\\
Brief description of the plugin.
// the plugin version
def version = "0.0.2"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.7 > *"
// the other plugins this plugin depends on
def dependsOn = [:]
def loadAfter = ['services']
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-app/views/error.gsp"
]

// TODO Fill in these fields
def author = "Richard Marr"
def authorEmail = ""
def title = "Grails Mailchimp Plugin"
def description = '''\\
Simple API wrapper for the Mailchimp API 1.3 and Mailchimp STS API 1.0
'''

// URL to the plugin's documentation
def documentation = "http://grails.org/plugin/mailchimp"

def doWithWebDescriptor = { xml ->
// TODO Implement additions to web.xml (optional), this event occurs before
}

def doWithSpring = {
def apiUrl = CH.config.mailchimp.apiUrl ?: 'https://api.mailchimp.com:443/1.3/'
def encoding = CH.config.mailchimp.encoding ?: 'UTF-8'

mailchimpService(MailchimpService) {
apiKey = CH.config.mailchimp.apiKey
defaultListId = CH.config.mailchimp.defaultListId
}
// URL to the plugin's documentation
def documentation = "http://grails.org/plugin/mailchimp"

def doWithWebDescriptor = { xml ->
// TODO Implement additions to web.xml (optional), this event occurs before
}

def doWithSpring = {
}

def doWithDynamicMethods = { ctx ->
// TODO Implement registering dynamic methods to classes (optional)
}
def doWithDynamicMethods = { ctx ->
// TODO Implement registering dynamic methods to classes (optional)
}

def doWithApplicationContext = { applicationContext ->
// TODO Implement post initialization spring config (optional)
}
def doWithApplicationContext = { applicationContext ->
// TODO Implement post initialization spring config (optional)
}

def onChange = { event ->
// TODO Implement code that is executed when any artefact that this plugin is
// watching is modified and reloaded. The event contains: event.source,
// event.application, event.manager, event.ctx, and event.plugin.
}
def onChange = { event ->
// TODO Implement code that is executed when any artefact that this plugin is
// watching is modified and reloaded. The event contains: event.source,
// event.application, event.manager, event.ctx, and event.plugin.
}

def onConfigChange = { event ->
// TODO Implement code that is executed when the project configuration changes.
// The event is the same as for 'onChange'.
}
def onConfigChange = { event ->
// TODO Implement code that is executed when the project configuration changes.
// The event is the same as for 'onChange'.
}
}

0 comments on commit 74d22bf

Please sign in to comment.