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 CHANGED
@@ -1,6 +1,14 @@
1
1
  # CH CH CH CHANGES #
2
2
 
3
- ## Thursday the 19th of September 2013, v0.0.3 ##
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
 
@@ -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], BACKBONE_SOURCE_MAP
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
 
@@ -2,7 +2,7 @@ module Rack
2
2
  class Backbone
3
3
 
4
4
  # the version of this library
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.4"
6
6
 
7
7
  # the version of Backbone it supports.
8
8
  BACKBONE_VERSION = "1.0.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-backbone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: