meringue 0.3.1__py2.7.egg → 0.3.3__py2.7.egg
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- EGG-INFO/PKG-INFO +10 -1
- meringue/__init__.py +3 -3
- meringue/__init__.pyc +0 -0
- meringue/middleware.pyc +0 -0
- meringue/models.pyc +0 -0
- meringue/settings.py +11 -0
- meringue/settings.pyc +0 -0
- meringue/templatetags/meringue_base.py +14 -3
- meringue/templatetags/meringue_base.pyc +0 -0
EGG-INFO/PKG-INFO
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.1
|
|
2
2
|
Name: Meringue
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Weboven django base package
|
|
5
5
|
Home-page: https://github.com/dd/Meringue
|
|
6
6
|
Author: weboven team
|
|
@@ -55,6 +55,14 @@ Description: ========
|
|
|
55
55
|
---------------
|
|
56
56
|
|
|
57
57
|
|
|
58
|
+
0.3.2
|
|
59
|
+
-------------
|
|
60
|
+
|
|
61
|
+
* put_css/put_js:
|
|
62
|
+
|
|
63
|
+
- поправлена ссылка на .map
|
|
64
|
+
- добавлен параметр MERINGUE_LOAD_MINI в settings указывающий загружать минифицированный файл или нет (default = DEBUG)
|
|
65
|
+
|
|
58
66
|
0.3.1.alpha.4
|
|
59
67
|
-------------
|
|
60
68
|
|
|
@@ -71,6 +79,7 @@ Description: ========
|
|
|
71
79
|
* PublishModel mtime field
|
|
72
80
|
* PublishModel ctime field
|
|
73
81
|
* put_css/put_js:
|
|
82
|
+
|
|
74
83
|
- по возможности выводит минифицированный файл
|
|
75
84
|
- в min переделывает ссылку на .map
|
|
76
85
|
- переработана внутренняя составляющая в отдельный класс
|
meringue/__init__.py
CHANGED
meringue/__init__.pyc
CHANGED
|
Binary file
|
meringue/middleware.pyc
CHANGED
|
Binary file
|
meringue/models.pyc
CHANGED
|
Binary file
|
meringue/settings.py
CHANGED
meringue/settings.pyc
CHANGED
|
Binary file
|
|
@@ -70,7 +70,7 @@ class PutStatic:
|
|
|
70
70
|
def _load_static_file(self):
|
|
71
71
|
file = None
|
|
72
72
|
|
|
73
|
-
if self.load_min:
|
|
73
|
+
if self.load_min and m_settings.LOAD_MINI:
|
|
74
74
|
try:
|
|
75
75
|
file = self._load_file(os.path.join(
|
|
76
76
|
self.dir,
|
|
@@ -99,12 +99,23 @@ class PutStatic:
|
|
|
99
99
|
result = text
|
|
100
100
|
return result
|
|
101
101
|
|
|
102
|
+
|
|
102
103
|
def _fix_map_link(self, text):
|
|
104
|
+
|
|
105
|
+
def _calculate_map_link(m):
|
|
106
|
+
result = 'sourceMappingURL=%s%s'
|
|
107
|
+
if m.groupdict()['scheme']:
|
|
108
|
+
return result % (m.groupdict()['scheme'], m.groupdict()['path'])
|
|
109
|
+
|
|
110
|
+
if m.groupdict()['path'].startswith('/'):
|
|
111
|
+
return result % (settings.STATIC_URL, m.groupdict()['path'])
|
|
112
|
+
|
|
113
|
+
return result % (settings.STATIC_URL, "/".join([self.dir, m.groupdict()['path']]))
|
|
114
|
+
|
|
103
115
|
result = re.sub(
|
|
104
116
|
re.compile(ur'sourceMappingURL=(?P<scheme>https:\/\/|http:\/\/|\/\/)?(?P<path>[\w\.]+)',
|
|
105
117
|
re.UNICODE),
|
|
106
|
-
|
|
107
|
-
m.groupdict()['path']),
|
|
118
|
+
_calculate_map_link,
|
|
108
119
|
text
|
|
109
120
|
)
|
|
110
121
|
return result
|
|
Binary file
|