Permalink
Browse files

v0.2 Release

  • Loading branch information...
1 parent 4924d25 commit e9ab623c0edc4b0d0713f5fe1a2cd4bef1b1c7d1 @boatmeme committed May 15, 2012
Showing with 1,125 additions and 148 deletions.
  1. +5 −0 README.md
  2. +1 −1 RandomGrailsPlugin.groovy
  3. +6 −6 application.properties
  4. +2 −0 grails-app/conf/Config.groovy
  5. +3 −23 grails-app/conf/DataSource.groovy
  6. 0 grails-app/i18n/messages.properties
  7. +1 −1 grails-app/services/com/memetix/random/RandomService.groovy
  8. +4 −4 grails-app/taglib/com/memetix/random/RandomTagLib.groovy
  9. +26 −0 plugin.xml
  10. +7 −8 test/projects/random_test/application.properties
  11. +4 −21 test/projects/random_test/grails-app/conf/DataSource.groovy
  12. +16 −25 test/projects/random_test/web-app/WEB-INF/applicationContext.xml
  13. +1 −1 test/projects/random_test/web-app/WEB-INF/sitemesh.xml
  14. +17 −8 test/projects/random_test/web-app/WEB-INF/tld/c.tld
  15. +8 −8 test/projects/random_test/web-app/WEB-INF/tld/fmt.tld
  16. +109 −0 test/projects/random_test/web-app/css/errors.css
  17. +82 −0 test/projects/random_test/web-app/css/mobile.css
  18. BIN test/projects/random_test/web-app/images/apple-touch-icon-retina.png
  19. BIN test/projects/random_test/web-app/images/apple-touch-icon.png
  20. +16 −25 web-app/WEB-INF/applicationContext.xml
  21. +1 −1 web-app/WEB-INF/sitemesh.xml
  22. +17 −8 web-app/WEB-INF/tld/c.tld
  23. +8 −8 web-app/WEB-INF/tld/fmt.tld
  24. +109 −0 web-app/css/errors.css
  25. +591 −0 web-app/css/main.css
  26. +82 −0 web-app/css/mobile.css
  27. BIN web-app/images/apple-touch-icon-retina.png
  28. BIN web-app/images/apple-touch-icon.png
  29. BIN web-app/images/favicon.ico
  30. BIN web-app/images/grails_logo.jpg
  31. BIN web-app/images/grails_logo.png
  32. BIN web-app/images/leftnav_btm.png
  33. BIN web-app/images/leftnav_midstretch.png
  34. BIN web-app/images/leftnav_top.png
  35. BIN web-app/images/skin/database_add.png
  36. BIN web-app/images/skin/database_delete.png
  37. BIN web-app/images/skin/database_edit.png
  38. BIN web-app/images/skin/database_save.png
  39. BIN web-app/images/skin/database_table.png
  40. BIN web-app/images/skin/exclamation.png
  41. BIN web-app/images/skin/house.png
  42. BIN web-app/images/skin/information.png
  43. BIN web-app/images/skin/shadow.jpg
  44. BIN web-app/images/skin/sorted_asc.gif
  45. BIN web-app/images/skin/sorted_desc.gif
  46. BIN web-app/images/spinner.gif
  47. BIN web-app/images/springsource.png
  48. +9 −0 web-app/js/application.js
View
@@ -379,6 +379,11 @@ Future versions should include:
# Change Log
+## v0.2 - 2012.05.15
+
+* Upgraded to Grails 2.0.3
+* Set transactional = false in RandomService
+
## v0.1 - 2011.06.17
* Initial release
@@ -1,6 +1,6 @@
class RandomGrailsPlugin {
// the plugin version
- def version = "0.1"
+ def version = "0.2"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.1 > *"
// the other plugins this plugin depends on
View
@@ -1,6 +1,6 @@
-#Grails Metadata file
-#Thu Jun 16 15:01:24 MDT 2011
-app.grails.version=1.3.7
-app.name=random
-plugins.tomcat=1.3.7
-plugins.hibernate=1.3.7
+#Grails Metadata file
+#Tue May 15 14:29:01 MDT 2012
+app.grails.version=2.0.3
+app.name=random
+plugins.release=1.0.1
+plugins.tomcat=2.0.3
@@ -22,3 +22,5 @@ log4j = {
warn 'org.mortbay.log'
}
+grails.views.default.codec="none" // none, html, base64
+grails.views.gsp.encoding="UTF-8"
@@ -1,32 +1,12 @@
-dataSource {
- pooled = true
- driverClassName = "org.hsqldb.jdbcDriver"
- username = "sa"
- password = ""
-}
-hibernate {
- cache.use_second_level_cache = true
- cache.use_query_cache = true
- cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
-}
// environment specific settings
environments {
development {
- dataSource {
- dbCreate = "create-drop" // one of 'create', 'create-drop','update'
- url = "jdbc:hsqldb:mem:devDB"
- }
+
}
test {
- dataSource {
- dbCreate = "update"
- url = "jdbc:hsqldb:mem:testDb"
- }
+
}
production {
- dataSource {
- dbCreate = "update"
- url = "jdbc:hsqldb:file:prodDb;shutdown=true"
- }
+
}
}
No changes.
@@ -34,7 +34,7 @@ class RandomService implements InitializingBean {
def grailsApplication
def defaultRNG
- static transactional = true
+ static transactional = false
void afterPropertiesSet() {
defaultRNG = grailsApplication?.config?.random?.generator?.default ? RandomNumberGenerator.fromString(grailsApplication?.config?.random?.generator?.default.toString()): RandomNumberGenerator.MERSENNE_TWISTER
@@ -33,8 +33,8 @@ class RandomTagLib {
static returnObjectForTags = ['shuffle','draw']
def nextInteger = { attrs ->
- def floor = attrs?.floor as int;
- def ceiling = attrs?.ceiling as int;
+ def floor = attrs?.floor as Integer;
+ def ceiling = attrs?.ceiling as Integer;
def rng = attrs?.rng ? RandomNumberGenerator.fromString(attrs.rng.toString()) : randomService.defaultRNG
def random
@@ -51,8 +51,8 @@ class RandomTagLib {
}
def nextLong = { attrs ->
- def floor = attrs?.floor as long;
- def ceiling = attrs?.ceiling as long;
+ def floor = attrs?.floor as Long;
+ def ceiling = attrs?.ceiling as Long;
def rng = attrs?.rng ? RandomNumberGenerator.fromString(attrs.rng.toString()) : randomService.defaultRNG
def random
View
@@ -0,0 +1,26 @@
+<plugin name='random' version='0.2' grailsVersion='1.1 &gt; *'>
+ <author>Jonathan Griggs</author>
+ <authorEmail>jonathan.griggs@gmail.com</authorEmail>
+ <title>Random - Better Random Number Generation for Grails</title>
+ <description>\
+A plugin that wraps the high-performance, statistically sound Uncommons Maths Pseudorandom Number Generators
+</description>
+ <documentation>http://grails.org/plugin/random</documentation>
+ <type>RandomGrailsPlugin</type>
+ <resources>
+ <resource>com.memetix.random.RandomController</resource>
+ <resource>com.memetix.random.RandomService</resource>
+ <resource>com.memetix.random.RandomTagLib</resource>
+ </resources>
+ <repositories>
+ <repository name='grailsCentral' url='http://plugins.grails.org' />
+ <repository name='http://repo.grails.org/grails/plugins' url='http://repo.grails.org/grails/plugins/' />
+ <repository name='http://repo.grails.org/grails/core' url='http://repo.grails.org/grails/core/' />
+ <repository name='grailsCore' url='http://svn.codehaus.org/grails/trunk/grails-plugins' />
+ <repository name='mavenCentral' url='http://repo1.maven.org/maven2/' />
+ </repositories>
+ <dependencies />
+ <plugins />
+ <runtimePluginRequirements />
+ <behavior />
+</plugin>
@@ -1,8 +1,7 @@
-#Grails Metadata file
-#Thu Jun 16 15:31:58 MDT 2011
-app.grails.version=1.3.7
-app.name=random_test
-app.servlet.version=2.4
-app.version=0.1
-plugins.hibernate=1.3.7
-plugins.tomcat=1.3.7
+#Grails Metadata file
+#Tue May 15 14:18:58 MDT 2012
+app.grails.version=2.0.3
+app.name=random_test
+app.servlet.version=2.4
+app.version=0.1
+plugins.tomcat=2.0.3
@@ -1,32 +1,15 @@
dataSource {
- pooled = true
- driverClassName = "org.hsqldb.jdbcDriver"
- username = "sa"
- password = ""
-}
-hibernate {
- cache.use_second_level_cache = true
- cache.use_query_cache = true
- cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
+
}
// environment specific settings
environments {
development {
- dataSource {
- dbCreate = "create-drop" // one of 'create', 'create-drop','update'
- url = "jdbc:hsqldb:mem:devDB"
- }
+
}
test {
- dataSource {
- dbCreate = "update"
- url = "jdbc:hsqldb:mem:testDb"
- }
+
}
production {
- dataSource {
- dbCreate = "update"
- url = "jdbc:hsqldb:file:prodDb;shutdown=true"
- }
+
}
}
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
Oops, something went wrong.

0 comments on commit e9ab623

Please sign in to comment.