rack-backbone 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +9 -1
- data/lib/rack/backbone.rb +6 -1
- data/lib/rack/backbone/version.rb +1 -1
- metadata +1 -1
data/CHANGES.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# CH CH CH CHANGES #
|
2
2
|
|
3
|
-
## Thursday the 19th of September 2013
|
3
|
+
## Thursday the 19th of September 2013 ##
|
4
|
+
|
5
|
+
### v0.0.4 ###
|
6
|
+
|
7
|
+
* The source map URL given in the main script is unversioned, so the fallback map wasn't being found. Fixed.
|
8
|
+
|
9
|
+
----
|
10
|
+
|
11
|
+
### v0.0.3 ###
|
4
12
|
|
5
13
|
* The vendored scripts weren't in the gem because of a cheeky line in the .gitignore file. Maybe DHH got hold of it ;) Fixed now.
|
6
14
|
|
data/lib/rack/backbone.rb
CHANGED
@@ -11,6 +11,11 @@ module Rack
|
|
11
11
|
# Current file name of fallback.
|
12
12
|
BACKBONE_FILE_NAME = "backbone-#{BACKBONE_VERSION}-min.js"
|
13
13
|
|
14
|
+
# Fallback source map file name without version.
|
15
|
+
# Because the main script doesn't call
|
16
|
+
# a versioned file.
|
17
|
+
BACKBONE_SOURCE_MAP_UNVERSIONED = "backbone-min.map"
|
18
|
+
|
14
19
|
# Fallback source map file name.
|
15
20
|
BACKBONE_SOURCE_MAP = "backbone-#{BACKBONE_VERSION}-min.map"
|
16
21
|
|
@@ -81,7 +86,7 @@ STR
|
|
81
86
|
def initialize( app, options={} )
|
82
87
|
@app, @options = app, DEFAULT_OPTIONS.merge(options)
|
83
88
|
@http_path_to_backbone = ::File.join @options[:http_path], BACKBONE_FILE_NAME
|
84
|
-
@http_path_to_source_map = ::File.join @options[:http_path],
|
89
|
+
@http_path_to_source_map = ::File.join @options[:http_path], BACKBONE_SOURCE_MAP_UNVERSIONED
|
85
90
|
@organisation = options.fetch :organisation, :media_temple
|
86
91
|
end
|
87
92
|
|