[Checkins] SVN: hurry.jquery/trunk/ Move from hurry.resource to fanstatic.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Fri Nov 26 11:52:31 EST 2010


Log message for revision 118611:
  Move from hurry.resource to fanstatic.

Changed:
  U   hurry.jquery/trunk/buildout.cfg
  U   hurry.jquery/trunk/setup.py
  U   hurry.jquery/trunk/src/hurry/jquery/jquery.txt
  U   hurry.jquery/trunk/src/hurry/jquery/prepare.py

-=-
Modified: hurry.jquery/trunk/buildout.cfg
===================================================================
--- hurry.jquery/trunk/buildout.cfg	2010-11-26 16:15:48 UTC (rev 118610)
+++ hurry.jquery/trunk/buildout.cfg	2010-11-26 16:52:31 UTC (rev 118611)
@@ -2,17 +2,21 @@
 develop = .
 parts = scripts test
 versions = versions
+extensions = mr.developer
+auto-checkout = fanstatic
 
+[sources]
+fanstatic = hg http://bitbucket.org/faassen/fanstatic
+
 [versions]
 zest.releaser = 3.15
 
 [scripts]
 recipe = zc.recipe.egg
-eggs = 
+eggs =
     hurry.jquery
     zest.releaser
 
 [test]
 recipe = zc.recipe.testrunner
-defaults = ['--tests-pattern', '^f?tests$', '-v']
 eggs = hurry.jquery

Modified: hurry.jquery/trunk/setup.py
===================================================================
--- hurry.jquery/trunk/setup.py	2010-11-26 16:15:48 UTC (rev 118610)
+++ hurry.jquery/trunk/setup.py	2010-11-26 16:52:31 UTC (rev 118611)
@@ -20,7 +20,7 @@
 setup(
     name='hurry.jquery',
     version=version,
-    description="hurry.resource style resources for jQuery.",
+    description="fanstatic style resources for jQuery.",
     long_description=long_description,
     classifiers=[],
     keywords='',
@@ -34,7 +34,7 @@
     zip_safe=False,
     install_requires=[
         'setuptools',
-        'hurry.resource >= 0.10',
+        'fanstatic',
         ],
     entry_points={
         'console_scripts': [
@@ -46,11 +46,8 @@
         'zest.releaser.releaser.after_checkout': [
             'prepare = hurry.jquery.prepare:tag_entrypoint',
             ],
-        'hurry.resource.libraries': [
+        'fanstatic.libraries': [
             'jquery = hurry.jquery:jquery_lib',
             ],
         },
-    extras_require={
-        'zopesupport': ['hurry.zoperesource'],
-        },
     )

Modified: hurry.jquery/trunk/src/hurry/jquery/jquery.txt
===================================================================
--- hurry.jquery/trunk/src/hurry/jquery/jquery.txt	2010-11-26 16:15:48 UTC (rev 118610)
+++ hurry.jquery/trunk/src/hurry/jquery/jquery.txt	2010-11-26 16:52:31 UTC (rev 118611)
@@ -4,26 +4,17 @@
 
 Here are some basic tests for hurry.jquery.
 
-Let's set up a way to render URLs; typically the framework has already
-done this::
-
-  >>> class Plugin(object):
-  ...   def get_library_url(self, library):
-  ...     return 'http://localhost/static/%s' % (library.name)
-  >>> from hurry.resource import register_plugin
-  >>> register_plugin(Plugin())
-
 Render the inclusion::
 
-  >>> from hurry.resource import NeededInclusions
+  >>> from fanstatic import NeededInclusions
   >>> from hurry.jquery import jquery
-  >>> needed = NeededInclusions()
+  >>> needed = NeededInclusions(base_url='http://localhost')
   >>> needed.need(jquery)
   >>> print needed.render()
-  <script type="text/javascript" src="http://localhost/static/jquery_lib/jquery-1.4.3.js"></script>
+  <script type="text/javascript" src="http://localhost/fanstatic/jquery_lib/jquery-1.4.3.js"></script>
 
-  >>> needed.mode('minified')
+  >>> needed._mode = 'minified'
   >>> print needed.render()
-  <script type="text/javascript" src="http://localhost/static/jquery_lib/jquery-1.4.3.min.js"></script>
+  <script type="text/javascript" src="http://localhost/fanstatic/jquery_lib/jquery-1.4.3.min.js"></script>
 
 """

Modified: hurry.jquery/trunk/src/hurry/jquery/prepare.py
===================================================================
--- hurry.jquery/trunk/src/hurry/jquery/prepare.py	2010-11-26 16:15:48 UTC (rev 118610)
+++ hurry.jquery/trunk/src/hurry/jquery/prepare.py	2010-11-26 16:52:31 UTC (rev 118611)
@@ -17,7 +17,7 @@
 import urllib2
 import urlparse
 
-from hurry.resource import generate_code, ResourceInclusion, Library
+from fanstatic import generate_code, ResourceInclusion, Library
 
 BASEURL = "http://code.jquery.com/"
 VERSION = '1.4.3'
@@ -72,4 +72,4 @@
     if data['name'] != 'hurry.jquery':
         return
     prepare_jquery(data['tagdir'] + '/src/hurry/jquery')
-    
+



More information about the checkins mailing list