sinatra-assets_linker 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/sinatra/assets_linker.rb +1 -1
- data/lib/sinatra-assets_linker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mzk4OGVlMjUxYzhiZjZlNzQxMmY1MTUyZTI0OWVkOGRhNmMyNTE3OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjQ2YzZjMzIzOWVlZjE4MDhmM2U5ZDFlOTJmMDAwNzMyZjkzZTAxNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGRlNmEwMmNlYWJlYjA3OTljY2U2OWQ4NmYwYzM1OTBkMjAxZDlkMjczYjgy
|
10
|
+
MWJjN2U1MDJjM2RmYTM4OWNhMzA3NjNkNDU4NDZiNDU5MzJlMjdkNmQ1ZDk2
|
11
|
+
YmFlNmZjYTQyMmI3OGVkNTkxYTNhNjIyOWQwODZlNTRmOTY3N2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDhhZWI3ZGRhNmM4MzQ2MDE3NTdiYjdiMjI3Y2NmYzRkMmVhYmNmMjI2YTM0
|
14
|
+
ZjM0MmUzYzIyYmUwZWEzMWIzMzlmNDFhMmJkMTA5ZWY3MWEzZGQ1NzNlNGYz
|
15
|
+
OWFjNTJkYTI0N2JjNGU1OTdlNGYxNzQxZmUwOWM0YzI5OWEzMGE=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -67,10 +67,10 @@ img_uri('file.jpg') # -> http://cdn.net/img_dir/file.jpg
|
|
67
67
|
## Configuration and defaults
|
68
68
|
|
69
69
|
* :project_css_dir [stylesheets]
|
70
|
-
* :project_js_dir [
|
70
|
+
* :project_js_dir [javastripts]
|
71
71
|
* :project_rjs_dir [js]
|
72
72
|
* :project_cdn_url [nil]
|
73
|
-
* :
|
73
|
+
* :project_assets_verbose [false]
|
74
74
|
|
75
75
|
## Requirejs integration
|
76
76
|
|
@@ -29,7 +29,7 @@ module Sinatra
|
|
29
29
|
def js_uri(file_name, add_script_name = true)
|
30
30
|
js_dir = get_settings(:project_js_dir, "javascripts")
|
31
31
|
rjs_dir = get_settings(:project_rjs_dir, "js")
|
32
|
-
choosen_dir = get_settings(:project_assets_verbose, false) ?
|
32
|
+
choosen_dir = get_settings(:project_assets_verbose, false) ? js_dir : rjs_dir
|
33
33
|
generate_uri(choosen_dir, file_name, add_script_name)
|
34
34
|
end
|
35
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-assets_linker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Szymon Kopciewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|