sinatra-exstatic-assets 2.0.4 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bec5a643ad86e918bfbd10f92bed062bf2c0ff3a
4
- data.tar.gz: 4b21661b373b446c3f7b4f71a1ac1dd64e700a7f
3
+ metadata.gz: e890fc9a6623a37de61efc6f09c3684ec341dcb3
4
+ data.tar.gz: 2b8bc414cecc3afeb0a00f1cd2cc4aa5a66b2d13
5
5
  SHA512:
6
- metadata.gz: 2d586781c7646ac2e271956fe95209b94cf0297d7154f0bbd5bdebe3c1d4308b6d1fc3eada50d47ddb3f0a2b95cb9c8a8ad8f2fc600ac9a03d5f286136b70245
7
- data.tar.gz: c10669ee6705bc4885d24e5a04f37b697269bfb7991573f1960f6234be345cef80247ae2c80578855d8562ecd82ad75649ec25b1364b47c383a03516e9a7b8ed
6
+ metadata.gz: ddcf6487fe8a4d35c2e24d5f5364a28acacc1bc92b395f2f285f7c6e9543bac3ae8cd9c6d273f286e4af354f0e156ac8a456f817f5274f828a543910aea34e71
7
+ data.tar.gz: 844dafe2fb40aa786c3465a02a3d5a1c0c2289c916796d00e35a62b29ca0158d56b49523a6a70536921a5dfbf85a83941c8e2d8d7de527f800a901a97b641094
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ docs/
19
19
  coverage/
20
20
  .rbx/
21
21
  .rspec
22
+ *.noindex/
@@ -1,11 +1,21 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0.0
4
+ - 2.1.0
5
+ - 2.2.2
6
+ - jruby-19mode # JRuby in 1.9 mode
7
+ - rbx
5
8
  - ruby-head
9
+ - jruby-head
6
10
 
7
11
  # whitelist
8
12
  branches:
9
13
  only:
10
14
  - master
11
15
  - develop
16
+
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: jruby-head
20
+ - rvm: ruby-head
21
+ - rvm: rbx
data/CHANGES.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CH CH CH CHANGES! #
2
2
 
3
+ ## Wednesday the 26th of August 2015, v3.0.0 ##
4
+
5
+ - Fixed typo where `script_tag` had overwritten `script_name`.
6
+ - Improved SCRIPT_NAME handling and added spec for it.
7
+
8
+ ----
9
+
3
10
  ## Friday the 2nd of January 2015 ##
4
11
 
5
12
  ### v2.0.4 ###
data/Gemfile CHANGED
@@ -18,10 +18,11 @@ group :test do
18
18
  end
19
19
 
20
20
  group :development do
21
- gem 'json', '~> 1.7.7'
21
+ gem 'json', '~> 1.8.3'
22
22
  gem "rake"
23
- gem "wirble"
24
- gem "reek"
23
+ unless RUBY_ENGINE == 'jruby' || RUBY_ENGINE == "rbx"
24
+ gem "pry-byebug"
25
+ end
25
26
  gem 'webrick', '~> 1.3.1' # get rid of stupid warnings.
26
27
  end
27
28
 
data/README.md CHANGED
@@ -2,8 +2,12 @@
2
2
 
3
3
  ### Master branch build status ###
4
4
 
5
+ Master branch:
5
6
  [![Build Status](https://travis-ci.org/yb66/sinatra-exstatic-assets.png?branch=master)](https://travis-ci.org/yb66/sinatra-exstatic-assets)
6
7
 
8
+ Develop branch:
9
+ [![Build Status](https://travis-ci.org/yb66/sinatra-exstatic-assets.png?branch=develop)](https://travis-ci.org/yb66/sinatra-exstatic-assets)
10
+
7
11
  ### Preamble ###
8
12
 
9
13
  This is a fork/reworking of [wbzyl](https://github.com/wbzyl/sinatra-static-assets)'s library. I had many of the same requirements that the original library catered for, but some different ones too, and the beauty of open source code is you get to scratch your own itch! Many thanks to the contributors to that library for all their hard work and sharing the code.
@@ -76,7 +80,7 @@ Here's a quick example, but there are more in the `examples` directory:
76
80
  %dd This is an interesting photo
77
81
  %dl
78
82
  %a{ href: "http://www.flickr.com/photos/redfernneil/1317915651/" }
79
- = img "http://www.flickr.com/photos/redfernneil/1317915651/" width: 500, height: 250, alt: "Something about the photo"
83
+ = img "http://www.flickr.com/photos/redfernneil/1317915651/", width: 500, height: 250, alt: "Something about the photo"
80
84
 
81
85
 
82
86
  There is also more detailed documentation on each helper in the {Sinatra::Exstatic::Helpers} API docs.
@@ -8,6 +8,10 @@ module Example
8
8
  get "/" do
9
9
  erb :index
10
10
  end
11
+
12
+ get "/deeper" do
13
+ erb :index
14
+ end
11
15
 
12
16
  end
13
17
  end
@@ -6,11 +6,16 @@ module Example
6
6
  register Sinatra::Exstatic
7
7
 
8
8
  configure do
9
- set :public_folder, "public"
9
+ set :root, __dir__
10
+ set :public_folder, Proc.new { File.join(root, "public") }
10
11
  end
11
12
 
12
13
  get "/" do
13
14
  erb :index
14
15
  end
16
+
17
+ get "/deeper" do
18
+ erb :index
19
+ end
15
20
  end
16
21
  end
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Example</title>
6
- <%= favicon_tag url_options: {script_tag: false} %>
6
+ <%= favicon_tag %>
7
7
  <%= stylesheet_tag 'http://fonts.googleapis.com/css?family=Quicksand|Faster+One|Cherry+Swash:700|Titillium+Web', rel: 'stylesheet', type: 'text/css' %>
8
8
  <%= stylesheet_tag "/css/base.css" %>
9
9
  <%= stylesheet_tag "/css/screen.css" %>
@@ -132,7 +132,7 @@ module Sinatra
132
132
  # @param [String,#querystring] addr
133
133
  # @param [Hash] options
134
134
  # @option options [TrueClass] :absolute see Sinatra::Helpers#uri
135
- # @option options [TrueClass] :script_tag Whether to prepend the SCRIPT_TAG env variable.
135
+ # @option options [TrueClass] :script_name Whether to prepend the SCRIPT_NAME env variable.
136
136
  # @return [String]
137
137
  # @see Sinatra::Helpers#uri
138
138
  def sss_url_for(addr, options=nil)
@@ -140,9 +140,11 @@ module Sinatra
140
140
  opts = {timestamp: true}.merge options
141
141
  absolute = opts.delete :absolute
142
142
  absolute = false if absolute.nil?
143
- script_tag = opts.delete(:script_tag)
144
- script_tag = true if script_tag.nil? unless addr.is_uri?
145
- href = uri addr, absolute, script_tag
143
+ script_name =
144
+ !addr.is_uri? ||
145
+ opts.delete(:script_name) && addr.start_with?("/")
146
+
147
+ href = uri addr, absolute, script_name
146
148
  addr.respond_to?(:querystring) && opts[:timestamp] ?
147
149
  "#{href}#{addr.querystring}" :
148
150
  href
@@ -163,7 +165,7 @@ module Sinatra
163
165
  # @param [Hash] options
164
166
  # @option options [String] :asset_dir The directory the asset is held. Defaults to Sinatra's `public_folder` setting.
165
167
  # @option options [Hash] :url_options Options for devising the URL.
166
- # @option options [TrueClass] :script_tag Whether to prepend the SCRIPT_TAG env variable.
168
+ # @option options [TrueClass] :script_name Whether to prepend the SCRIPT_NAME env variable.
167
169
  # @return [Tag]
168
170
  def sss_stylesheet_tag(source, options = {})
169
171
  asset_dir = options.delete(:asset_dir) || settings.public_folder
@@ -276,7 +278,7 @@ module Sinatra
276
278
 
277
279
  # @param [String] source
278
280
  # @param [Hash] options
279
- # @option options [Hash] :url_options script_tag
281
+ # @option options [Hash] :url_options script_name
280
282
  # @example
281
283
  # favicon_tag
282
284
  # # => <link href="/favicon.ico" rel="icon">
@@ -1,6 +1,6 @@
1
1
  module Sinatra
2
2
  module Exstatic
3
3
  # Library version
4
- VERSION = "2.0.4"
4
+ VERSION = "3.0.0"
5
5
  end
6
6
  end
@@ -172,21 +172,43 @@ describe "Using them with a Sinatra app", :time_sensitive do
172
172
  .and_return(1367612251)
173
173
  end
174
174
  context "Main" do
175
- let(:fixture_file) { "./support/fixtures/main.txt" }
176
- before do
177
- get "/"
175
+ context "/" do
176
+ let(:fixture_file) { "./support/fixtures/main.html" }
177
+ before do
178
+ get "/"
179
+ end
180
+ it_should_behave_like "Any route"
181
+ subject { last_response.body }
182
+ it { should == expected }
183
+ end
184
+ context "/deeper" do
185
+ let(:fixture_file) { "./support/fixtures/app-deeper.html" }
186
+ before do
187
+ get "/deeper"
188
+ end
189
+ it_should_behave_like "Any route"
190
+ subject { last_response.body }
191
+ it { should == expected }
178
192
  end
179
- it_should_behave_like "Any route"
180
- subject { last_response.body }
181
- it { should == expected }
182
193
  end
183
194
  context "Sub" do
184
- let(:fixture_file) { "./support/fixtures/app2.txt" }
185
- before do
186
- get "/app2"
195
+ context "/app2/" do
196
+ let(:fixture_file) { "./support/fixtures/app2.html" }
197
+ before do
198
+ get "/app2"
199
+ end
200
+ it_should_behave_like "Any route"
201
+ subject { last_response.body }
202
+ it { should == expected }
203
+ end
204
+ context "/app2/deeper" do
205
+ let(:fixture_file) { "./support/fixtures/app2-deeper.html" }
206
+ before do
207
+ get "/app2/deeper"
208
+ end
209
+ it_should_behave_like "Any route"
210
+ subject { last_response.body }
211
+ it { should == expected }
187
212
  end
188
- it_should_behave_like "Any route"
189
- subject { last_response.body }
190
- it { should == expected }
191
213
  end
192
214
  end
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Example</title>
6
- <link href="/favicon.ico" rel="icon" />
6
+ <link href="/app2/favicon.ico" rel="icon" />
7
7
  <link charset="utf-8" href="http://fonts.googleapis.com/css?family=Quicksand|Faster+One|Cherry+Swash:700|Titillium+Web" media="screen" rel="stylesheet" type="text/css" />
8
8
  <link charset="utf-8" href="/app2/css/base.css?ts=1367612251" media="screen" rel="stylesheet" />
9
9
  <link charset="utf-8" href="/app2/css/screen.css?ts=1367612251" media="screen" rel="stylesheet" />
@@ -125,7 +125,7 @@ rel="bookmark">Usage</a>
125
125
  <code>favicon_tag</code>
126
126
  <p>Output:</p>
127
127
  <samp>
128
- &lt;link href=&quot;&#x2F;favicon.ico&quot; rel=&quot;icon&quot; &#x2F;&gt;
128
+ &lt;link href=&quot;&#x2F;app2&#x2F;favicon.ico&quot; rel=&quot;icon&quot; &#x2F;&gt;
129
129
  </samp>
130
130
  <footer><p>Also known as:
131
131
  <ul>
@@ -0,0 +1,144 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Example</title>
6
+ <link href="/app2/favicon.ico" rel="icon" />
7
+ <link charset="utf-8" href="http://fonts.googleapis.com/css?family=Quicksand|Faster+One|Cherry+Swash:700|Titillium+Web" media="screen" rel="stylesheet" type="text/css" />
8
+ <link charset="utf-8" href="/app2/css/base.css?ts=1367612251" media="screen" rel="stylesheet" />
9
+ <link charset="utf-8" href="/app2/css/screen.css?ts=1367612251" media="screen" rel="stylesheet" />
10
+ <script charset="utf-8" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
11
+
12
+ </head>
13
+
14
+ <body>
15
+ <header role='banner'>
16
+ <a href="http://www.flickr.com/photos/tjt195/12470738/" title="Greased Lightning by tarotastic, on Flickr"><img alt="Greased Lightning" height="375" src="http://farm1.staticflickr.com/10/12470738_fc0212bf8c.jpg" width="500" /></a>
17
+ <hgroup>
18
+ <h1>Sinatra Exstatic Assets</h1>
19
+ <h2>Helpers for your JS, CSS and anything static</h2>
20
+ </hgroup>
21
+ </header>
22
+
23
+ <nav>
24
+ <ul>
25
+ <li><a href="/">Main app</a></li>
26
+ <li><a href="/app2">App 2</a></li>
27
+ <li><a href="https://rubygems.org/gems/sinatra-exstatic-assets">Rubygems</a></li>
28
+ <li><a href="https://github.com/yb66/sinatra-exstatic-assets">Source code</a></li>
29
+ </ul>
30
+ </nav>
31
+ <article>
32
+ <header>
33
+ <h1>
34
+ <a href="#" title="Link to this post"
35
+ rel="bookmark">Usage</a>
36
+ </h1>
37
+ </header>
38
+ <p>Note that there is a Main App and an App2. This is to demonstrate that you can give links relative to the app, but if they are mounted with an extra prefix (using Rack#map, for example) the helper will respect that and produce the right href attribute.</p>
39
+ <section><header><h2>Installation and loading</h2></header>
40
+ <p>Start by installing:</p>
41
+ <code>gem 'sinatra-exstatic-assets'</code>
42
+ <p>Then require it in your Sinatra app.</p>
43
+ <code>require 'sinatra/exstatic_assets'</code>
44
+ </section>
45
+ <section>
46
+ <header><h2>The helpers</h2></header>
47
+ <p>Use these helpers in your views.</p>
48
+ <p>To add an attribute to a helper, pass it as an option, e.g. <code>width: "500"</code></p>
49
+ <p>Sometimes, you won't want the script tag (e.g. "/app2") prepended to the url, like in the case of a favicon. In that case you can pass in <code>url_options: {script_tag: false}</code> to the helper, e.g. <code>favicon_tag url_options: {script_tag: false}</code></p>
50
+ <section id='stylesheet_tag'>
51
+ <header>
52
+ <h3>stylesheet_tag</h3>
53
+ </header>
54
+ <p>The code:
55
+ </p>
56
+ <code>stylesheet_tag "/css/screen.css"</code>
57
+ <p>Output:</p>
58
+ <samp>
59
+ &lt;link charset=&quot;utf-8&quot; href=&quot;&#x2F;app2&#x2F;css&#x2F;screen.css?ts=1367612251&quot; media=&quot;screen&quot; rel=&quot;stylesheet&quot; &#x2F;&gt;
60
+ </samp>
61
+ <footer><p>Also known as:
62
+ <ul>
63
+ <li><code>css_tag</code></li>
64
+ <li><code>stylesheet</code></li>
65
+ </ul>
66
+ </footer>
67
+ </section>
68
+ <section id='javascript_tag'>
69
+ <header>
70
+ <h3>javascript_tag</h3>
71
+ </header>
72
+ <p>The code:
73
+ </p>
74
+ <code>javascript_tag "http://code.jquery.com/jquery-1.9.1.min.js"</code>
75
+ <p>Output:</p>
76
+ <samp>
77
+ &lt;script charset=&quot;utf-8&quot; src=&quot;http:&#x2F;&#x2F;code.jquery.com&#x2F;jquery-1.9.1.min.js&quot;&gt;&lt;&#x2F;script&gt;
78
+ </samp>
79
+ <p>The code:
80
+ </p>
81
+ <code>javascript_tag "/js/helpers.js"</code>
82
+ <p>Output:</p>
83
+ <samp>
84
+ &lt;script charset=&quot;utf-8&quot; src=&quot;&#x2F;app2&#x2F;js&#x2F;helpers.js?ts=1367612251&quot;&gt;&lt;&#x2F;script&gt;
85
+ </samp>
86
+ <footer><p>Also known as:
87
+ <ul>
88
+ <li><code>javascript_include_tag</code></li>
89
+ <li><code>js_tag</code></li>
90
+ <li><code>script_tag</code></li>
91
+ </ul>
92
+ </footer>
93
+ </section>
94
+ <section id='image_tag'>
95
+ <header>
96
+ <h3>image_tag</h3>
97
+ </header>
98
+ <p>The code:
99
+ </p>
100
+ <code>image_tag "http://farm1.staticflickr.com/10/12470738_fc0212bf8c.jpg", width: "500", height: "375", alt: "Greased Lightning"</code>
101
+ <p>Output:</p>
102
+ <samp>
103
+ &lt;img alt=&quot;Greased Lightning&quot; height=&quot;375&quot; src=&quot;http:&#x2F;&#x2F;farm1.staticflickr.com&#x2F;10&#x2F;12470738_fc0212bf8c.jpg&quot; width=&quot;500&quot; &#x2F;&gt;
104
+ </samp>
105
+ <p>The code:
106
+ </p>
107
+ <code>image_tag "/images/turnip.jpg", width: "500", height: "375", alt: "Turnip"</code>
108
+ <p>Output:</p>
109
+ <samp>
110
+ &lt;img alt=&quot;Turnip&quot; height=&quot;375&quot; src=&quot;&#x2F;app2&#x2F;images&#x2F;turnip.jpg?ts=1367612251&quot; width=&quot;500&quot; &#x2F;&gt;
111
+ </samp>
112
+ <footer><p>Also known as:
113
+ <ul>
114
+ <li><code>img_tag</code></li>
115
+ <li><code>img</code></li>
116
+ </ul>
117
+ </footer>
118
+ </section>
119
+ <section id='favicon_tag'>
120
+ <header>
121
+ <h3>favicon_tag</h3>
122
+ </header>
123
+ <p>The code:
124
+ </p>
125
+ <code>favicon_tag</code>
126
+ <p>Output:</p>
127
+ <samp>
128
+ &lt;link href=&quot;&#x2F;app2&#x2F;favicon.ico&quot; rel=&quot;icon&quot; &#x2F;&gt;
129
+ </samp>
130
+ <footer><p>Also known as:
131
+ <ul>
132
+ <li><code>favicon</code></li>
133
+ </ul>
134
+ </footer>
135
+ </section>
136
+ </section>
137
+ </article>
138
+
139
+
140
+ <footer>
141
+ <p>&copy; 2013 See the LICENCE file for more.</p>
142
+ </footer>
143
+ </body>
144
+ </html>
@@ -0,0 +1,129 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Example</title>
6
+ <link href="/favicon.ico" rel="icon" />
7
+ <link charset="utf-8" href="http://fonts.googleapis.com/css?family=Quicksand|Faster+One|Cherry+Swash:700|Titillium+Web" media="screen" rel="stylesheet" type="text/css" />
8
+ <link charset="utf-8" href="/css/base.css?ts=1367612251" media="screen" rel="stylesheet" />
9
+ <link charset="utf-8" href="/css/screen.css?ts=1367612251" media="screen" rel="stylesheet" />
10
+ <script charset="utf-8" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
11
+
12
+ </head>
13
+
14
+ <body>
15
+ <header role='banner'>
16
+ <a href="http://www.flickr.com/photos/28931095@N03/3609420787/" title="Magic Ball by Sam Bald, on Flickr"><img alt="Magic Ball" height="375" src="http://farm3.staticflickr.com/2474/3609420787_f7fc0e53c7.jpg" width="500" /></a>
17
+ <hgroup>
18
+ <h1>Sinatra Exstatic Assets</h1>
19
+ <h2>Helpers for your JS, CSS and anything static</h2>
20
+ </hgroup>
21
+ </header>
22
+
23
+ <nav>
24
+ <ul>
25
+ <li><a href="/">Main app</a></li>
26
+ <li><a href="/app2">App 2</a></li>
27
+ <li><a href="https://rubygems.org/gems/sinatra-exstatic-assets">Rubygems</a></li>
28
+ <li><a href="https://github.com/yb66/sinatra-exstatic-assets">Source code</a></li>
29
+ </ul>
30
+ </nav>
31
+ <article>
32
+ <header>
33
+ <h1>
34
+ <a href="#" title="Link to this post"
35
+ rel="bookmark">Usage</a>
36
+ </h1>
37
+ </header>
38
+ <p>Note that there is a Main App and an App2. This is to demonstrate that you can give links relative to the app, but if they are mounted with an extra prefix (using Rack#map, for example) the helper will respect that and produce the right href attribute.</p>
39
+ <section><header><h2>Installation and loading</h2></header>
40
+ <p>Start by installing:</p>
41
+ <code>gem 'sinatra-exstatic-assets'</code>
42
+ <p>Then require it in your Sinatra app.</p>
43
+ <code>require 'sinatra/exstatic_assets'</code>
44
+ </section>
45
+ <section>
46
+ <section>
47
+ <header><h2>The helpers</h2></header>
48
+ <p>Use these helpers in your views.<p>
49
+ <section id='stylesheet_tag'>
50
+ <header>
51
+ <h3>stylesheet_tag</h3>
52
+ </header>
53
+ <p>The code:
54
+ </p>
55
+ <code>stylesheet_tag "/css/screen.css"</code>
56
+ <p>Output:</p>
57
+ <samp>
58
+ &lt;link charset=&quot;utf-8&quot; href=&quot;&#x2F;css&#x2F;screen.css?ts=1367612251&quot; media=&quot;screen&quot; rel=&quot;stylesheet&quot; &#x2F;&gt;
59
+ </samp>
60
+ <footer><p>Also known as:
61
+ <ul>
62
+ <li><code>css_tag</code></li>
63
+ <li><code>stylesheet</code></li>
64
+ </ul>
65
+ </footer>
66
+ </section>
67
+ <section id='javascript_tag'>
68
+ <header>
69
+ <h3>javascript_tag</h3>
70
+ </header>
71
+ <p>The code:
72
+ </p>
73
+ <code>javascript_tag "http://code.jquery.com/jquery-1.9.1.min.js"</code>
74
+ <p>Output:</p>
75
+ <samp>
76
+ &lt;script charset=&quot;utf-8&quot; src=&quot;http:&#x2F;&#x2F;code.jquery.com&#x2F;jquery-1.9.1.min.js&quot;&gt;&lt;&#x2F;script&gt;
77
+ </samp>
78
+ <footer><p>Also known as:
79
+ <ul>
80
+ <li><code>javascript_include_tag</code></li>
81
+ <li><code>js_tag</code></li>
82
+ <li><code>script_tag</code></li>
83
+ </ul>
84
+ </footer>
85
+ </section>
86
+ <section id='image_tag'>
87
+ <header>
88
+ <h3>image_tag</h3>
89
+ </header>
90
+ <p>The code:
91
+ </p>
92
+ <code>image_tag "http://farm3.staticflickr.com/2474/3609420787_f7fc0e53c7.jpg", width: "500", height: "375", alt: "Magic Ball"</code>
93
+ <p>Output:</p>
94
+ <samp>
95
+ &lt;img alt=&quot;Magic Ball&quot; height=&quot;375&quot; src=&quot;http:&#x2F;&#x2F;farm3.staticflickr.com&#x2F;2474&#x2F;3609420787_f7fc0e53c7.jpg&quot; width=&quot;500&quot; &#x2F;&gt;
96
+ </samp>
97
+ <footer><p>Also known as:
98
+ <ul>
99
+ <li><code>img_tag</code></li>
100
+ <li><code>img</code></li>
101
+ </ul>
102
+ </footer>
103
+ </section>
104
+ <section id='favicon_tag'>
105
+ <header>
106
+ <h3>favicon_tag</h3>
107
+ </header>
108
+ <p>The code:
109
+ </p>
110
+ <code>favicon_tag</code>
111
+ <p>Output:</p>
112
+ <samp>
113
+ &lt;link href=&quot;&#x2F;favicon.ico&quot; rel=&quot;icon&quot; &#x2F;&gt;
114
+ </samp>
115
+ <footer><p>Also known as:
116
+ <ul>
117
+ <li><code>favicon</code></li>
118
+ </ul>
119
+ </footer>
120
+ </section>
121
+ </section>
122
+ </article>
123
+
124
+
125
+ <footer>
126
+ <p>&copy; 2013 See the LICENCE file for more.</p>
127
+ </footer>
128
+ </body>
129
+ </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-exstatic-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Włodek Bzyl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-02 00:00:00.000000000 Z
12
+ date: 2015-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -51,7 +51,7 @@ files:
51
51
  - examples/app2/main.rb
52
52
  - examples/app2/public/css/base.css
53
53
  - examples/app2/public/css/screen.css
54
- - examples/app2/public/favicon
54
+ - examples/app2/public/favicon.ico
55
55
  - examples/app2/public/js/helpers.js
56
56
  - examples/app2/views/index.erb
57
57
  - examples/app2/views/layout.erb
@@ -65,8 +65,10 @@ files:
65
65
  - sinatra-exstatic-assets.gemspec
66
66
  - spec/spec_helper.rb
67
67
  - spec/static_assets_spec.rb
68
- - spec/support/fixtures/app2.txt
69
- - spec/support/fixtures/main.txt
68
+ - spec/support/fixtures/app-deeper.html
69
+ - spec/support/fixtures/app2-deeper.html
70
+ - spec/support/fixtures/app2.html
71
+ - spec/support/fixtures/main.html
70
72
  - spec/support/shared/all_routes.rb
71
73
  homepage: https://github.com/yb66/sinatra-exstatic-assets
72
74
  licenses:
@@ -95,6 +97,8 @@ summary: A Sinatra extension of helpers for static assets.
95
97
  test_files:
96
98
  - spec/spec_helper.rb
97
99
  - spec/static_assets_spec.rb
98
- - spec/support/fixtures/app2.txt
99
- - spec/support/fixtures/main.txt
100
+ - spec/support/fixtures/app-deeper.html
101
+ - spec/support/fixtures/app2-deeper.html
102
+ - spec/support/fixtures/app2.html
103
+ - spec/support/fixtures/main.html
100
104
  - spec/support/shared/all_routes.rb