mack 0.7.1 → 0.7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/lib/mack/runner_helpers/session.rb +5 -3
- data/lib/mack/version.rb +1 -1
- data/lib/mack/view_helpers/link_helpers.rb +4 -5
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
=== 0.7.1.1
|
2
|
+
* [#163] Fixed jQuery code is being generated with double quotes instead of single quotes
|
3
|
+
* [#162] Fixed View helpers for mack-javascript aren't being required
|
4
|
+
* [#158] Fixed Turning off sessions throws an Error
|
5
|
+
* [#155] Fixed invalid javascript tag
|
6
|
+
|
1
7
|
=== 0.7.1
|
2
8
|
* [#153] Emails with just a single 'part' are now being sent correctly.
|
3
9
|
* [#147] Added :confirm to button helpers.
|
@@ -23,10 +23,12 @@ module Mack
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def complete(request, response, cookies)
|
26
|
-
|
27
|
-
|
26
|
+
if app_config.mack.use_sessions
|
27
|
+
unless response.redirection?
|
28
|
+
request.session.delete(:tell)
|
29
|
+
end
|
30
|
+
Mack::SessionStore.set(request.session.id, request, response, cookies)
|
28
31
|
end
|
29
|
-
Mack::SessionStore.set(request.session.id, request, response, cookies) if app_config.mack.use_sessions
|
30
32
|
end
|
31
33
|
|
32
34
|
private
|
data/lib/mack/version.rb
CHANGED
@@ -118,19 +118,18 @@ module Mack
|
|
118
118
|
end
|
119
119
|
|
120
120
|
#
|
121
|
-
# Generate Javascript tag (<
|
121
|
+
# Generate Javascript tag (<script src="/javascripts/foo.js?1241225" type="text/javascript" />)
|
122
122
|
#
|
123
123
|
# If distributed_site_domain is specified, it will be used.
|
124
124
|
#
|
125
|
-
def javascript(files
|
125
|
+
def javascript(files)
|
126
126
|
files = [files].flatten
|
127
|
-
|
128
|
-
|
127
|
+
|
129
128
|
link = ""
|
130
129
|
files.each do |name|
|
131
130
|
file_name = !name.to_s.end_with?(".js") ? "#{name}.js" : "#{name}"
|
132
131
|
resource = "/javascripts/#{file_name}"
|
133
|
-
link += "<
|
132
|
+
link += "<script src=\"#{get_resource_root(resource)}#{resource}?#{Time.now.to_i}\" type=\"text/javascript\"></script>\n"
|
134
133
|
end
|
135
134
|
return link
|
136
135
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.1
|
4
|
+
version: 0.7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-09-
|
12
|
+
date: 2008-09-14 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.7.1
|
33
|
+
version: 0.7.1.1
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: application_configuration
|