Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
target
out
*.log
.idea/
*.iml
8 changes: 3 additions & 5 deletions KnockoutjsGrailsPlugin.groovy
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class KnockoutjsGrailsPlugin {
def koStable='1.2.1'
def koUnstable='1.3.0rc'

def koStable='2.0.0'

String groupId = 'br.com.geocontrol.grails.plugin.ko'
// the plugin version
def version = koStable
def version = koStable + '.0'
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.0 > *"
// the other plugins this plugin depends on
Expand All @@ -20,7 +19,6 @@ class KnockoutjsGrailsPlugin {
def title = "Knockoutjs for Grails"
def description = """Provides necessary Javascript files for using Knockoutjs (http://knockoutjs.com/) with grails.
Stable knockoutjs version: ${koStable}
Unstable knockoutjs version: ${koUnstable}
"""

// URL to the plugin's documentation
Expand Down
4 changes: 2 additions & 2 deletions application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Grails Metadata file
#Sun Aug 28 20:22:46 BRT 2011
app.grails.version=1.3.7
#Tue Feb 07 09:31:05 CET 2012
app.grails.version=2.0.0
app.name=knockoutjs
26 changes: 0 additions & 26 deletions grails-app/conf/BuildConfig.groovy

This file was deleted.

26 changes: 0 additions & 26 deletions grails-app/conf/Config.groovy

This file was deleted.

32 changes: 0 additions & 32 deletions grails-app/conf/DataSource.groovy

This file was deleted.

9 changes: 0 additions & 9 deletions grails-app/conf/KnockoutPluginResources.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ GrailsPluginManager pluginManager = appCtx.pluginManager
GrailsPlugin plugin = pluginManager.getGrailsPlugin(pluginName)

String koStableVersion = plugin.instance.koStable
String koUnstableVersion = plugin.instance.koUnstable

String stableFileName = "knockout-${koStableVersion}.js"
String stableDevFileName = "knockout-${koStableVersion}.debug.js"
String unstableFileName = "knockout-${koUnstableVersion}.js"
String unstableDevFileName = "knockout-${koUnstableVersion}.debug.js"

modules = {
'knockout' {
Expand All @@ -29,10 +26,4 @@ modules = {
'knockout-dev' {
resource id: 'js', url:[plugin: pluginName, dir: 'js/knockoutjs', file: stableDevFileName], disposition: 'head'
}
'knockout-unstable' {
resource id: 'js', url:[plugin: pluginName, dir: 'js/knockoutjs', file: unstableFileName], disposition: 'head'
}
'knockout-unstable-dev' {
resource id: 'js', url:[plugin: pluginName, dir: 'js/knockoutjs', file: unstableDevFileName], disposition: 'head'
}
}
13 changes: 0 additions & 13 deletions grails-app/conf/UrlMappings.groovy

This file was deleted.

13 changes: 6 additions & 7 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<plugin name='knockoutjs' version='1.2.1' grailsVersion='1.3.0 &gt; *'>
<plugin name='knockoutjs' version='(koStable + .0)' grailsVersion='1.3.0 &gt; *'>
<author>Igor Aguiar Rodrigues</author>
<authorEmail>igor@geocontrol.com.br</authorEmail>
<title>Knockoutjs for Grails</title>
<description>Provides necessary Javascript files for using Knockoutjs (http://knockoutjs.com/) with grails.
Stable knockoutjs version: 1.2.1
Unstable knockoutjs version: 1.3-20110826
Stable knockoutjs version: $koStable
</description>
<documentation>http://grails.org/plugin/grails-knockoutjs</documentation>
<type>KnockoutjsGrailsPlugin</type>
<resources>
<resource>BuildConfig</resource>
<resource>Config</resource>
<resource>DataSource</resource>
<resource>KnockoutPluginResources</resource>
<resource>UrlMappings</resource>
<resource>br.com.geocontrol.grails.plugin.ko.KoTagLib</resource>
</resources>
<repositories />
<dependencies />
<plugins />
<runtimePluginRequirements />
<behavior />
</plugin>
41 changes: 16 additions & 25 deletions web-app/WEB-INF/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,28 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem

<bean id="grailsApplication" class="org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean">
<description>Grails application factory bean</description>
<property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
<property name="grailsResourceLoader" ref="grailsResourceLoader" />
<property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
<property name="grailsResourceLoader" ref="grailsResourceLoader" />
</bean>

<bean id="pluginManager" class="org.codehaus.groovy.grails.plugins.GrailsPluginManagerFactoryBean">
<description>A bean that manages Grails plugins</description>
<property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
<property name="application" ref="grailsApplication" />
<property name="grailsDescriptor" value="/WEB-INF/grails.xml" />
<property name="application" ref="grailsApplication" />
</bean>

<bean id="grailsConfigurator" class="org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator">
<constructor-arg>
<ref bean="grailsApplication" />
</constructor-arg>
<property name="pluginManager" ref="pluginManager" />
</bean>
<bean id="grailsConfigurator" class="org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator">
<constructor-arg>
<ref bean="grailsApplication" />
</constructor-arg>
<property name="pluginManager" ref="pluginManager" />
</bean>

<bean id="grailsResourceLoader" class="org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean">
<property name="grailsResourceHolder" ref="grailsResourceHolder" />
</bean>
<bean id="grailsResourceLoader" class="org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean" />

<bean id="grailsResourceHolder" scope="prototype" class="org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder">
<property name="resources">
<value>classpath*:**/grails-app/**/*.groovy</value>
</property>
</bean>

<bean id="characterEncodingFilter"
class="org.springframework.web.filter.CharacterEncodingFilter">
<property name="encoding">
<value>utf-8</value>
</property>
</bean>
<bean id="characterEncodingFilter" class="org.springframework.web.filter.CharacterEncodingFilter">
<property name="encoding">
<value>utf-8</value>
</property>
</bean>
</beans>
2 changes: 1 addition & 1 deletion web-app/WEB-INF/sitemesh.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parser content-type="text/html;charset=ISO-8859-1"
class="org.codehaus.groovy.grails.web.sitemesh.GrailsHTMLPageParser" />
<parser content-type="text/html;charset=UTF-8"
class="org.codehaus.groovy.grails.web.sitemesh.GrailsHTMLPageParser" />
class="org.codehaus.groovy.grails.web.sitemesh.GrailsHTMLPageParser" />
</page-parsers>

<decorator-mappers>
Expand Down
25 changes: 17 additions & 8 deletions web-app/WEB-INF/tld/c.tld
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>JSTL 1.1 core library</description>
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">

<description>JSTL 1.2 core library</description>
<display-name>JSTL core</display-name>
<tlib-version>1.1</tlib-version>
<tlib-version>1.2</tlib-version>
<short-name>c</short-name>
<uri>http://java.sun.com/jsp/jstl/core</uri>

Expand Down Expand Up @@ -74,7 +74,7 @@ not the body content should be processed.
<description>
Name of the exported scoped variable for the
resulting value of the test condition. The type
of the scoped variable is Boolean.
of the scoped variable is Boolean.
</description>
<name>var</name>
<required>false</required>
Expand Down Expand Up @@ -174,6 +174,9 @@ Collection of items to iterate over.
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.Object</type>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
Expand Down Expand Up @@ -253,6 +256,9 @@ String of tokens to iterate over.
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<deferred-value>
<type>java.lang.String</type>
</deferred-value>
</attribute>
<attribute>
<description>
Expand Down Expand Up @@ -322,7 +328,7 @@ visibility.
<tag>
<description>
Like &lt;%= ... &gt;, but for expressions.
</description>
</description>
<name>out</name>
<tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
<body-content>JSP</body-content>
Expand Down Expand Up @@ -467,6 +473,9 @@ Expression to be evaluated.
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<deferred-value>
<type>java.lang.Object</type>
</deferred-value>
</attribute>
<attribute>
<description>
Expand Down
16 changes: 8 additions & 8 deletions web-app/WEB-INF/tld/fmt.tld
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>JSTL 1.1 i18n-capable formatting library</description>
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">

<description>JSTL 1.2 i18n-capable formatting library</description>
<display-name>JSTL fmt</display-name>
<tlib-version>1.1</tlib-version>
<tlib-version>1.2</tlib-version>
<short-name>fmt</short-name>
<uri>http://java.sun.com/jsp/jstl/fmt</uri>

Expand Down Expand Up @@ -55,7 +55,7 @@ and may contain a two-letter (upper-case)
country code (as defined by ISO-3166).
Language and country codes must be
separated by hyphen (-) or underscore
(_).
(_).
</description>
<name>value</name>
<required>true</required>
Expand Down Expand Up @@ -496,7 +496,7 @@ Date and/or time to be formatted.
<description>
Specifies whether the time, the date, or both
the time and date components of the given
date are to be formatted.
date are to be formatted.
</description>
<name>type</name>
<required>false</required>
Expand Down
Loading