half-pipe 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da42b09573b07ed2e9a8fa708cea91b0f370dfc9
|
4
|
+
data.tar.gz: 7a5766cca2a6877eb8e391b4385b01de93c47c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0dc219c017d26d22c17b29dd2d69b9bfa517600e9c4038459e3b686dbff5ee955fd53dd765553751abda1a5bd2cf789fd233b25d48c9026fd4a4520a2fc32be
|
7
|
+
data.tar.gz: 6d831c4268a33e158f24a59c77d5d0249da3abd35ee50112560257a5299ce19994bb0bc9813c58594b81fd1c50333a6dc99de012acb1a37524fcb269f62e8431
|
@@ -1,8 +1,12 @@
|
|
1
1
|
module HalfPipeHelper
|
2
2
|
|
3
3
|
def requirejs_include_tag(script, options={})
|
4
|
-
|
5
|
-
|
4
|
+
script, options = if Rails.application.config.half_pipe.serve_assets
|
5
|
+
["/components/requirejs/require.js", { data: { main: "/scripts/application.js" } }]
|
6
|
+
else
|
7
|
+
["/scripts/application.js", {}]
|
8
|
+
end
|
9
|
+
javascript_include_tag script, options
|
6
10
|
end
|
7
11
|
|
8
12
|
end
|
@@ -36,7 +36,7 @@ module.exports = function(grunt) {
|
|
36
36
|
almond: true,
|
37
37
|
baseUrl: "app/scripts",
|
38
38
|
mainConfigFile: "app/scripts/application.js",
|
39
|
-
name: "
|
39
|
+
name: "<%= main_module_name %>",
|
40
40
|
out: "public/scripts/application.js",
|
41
41
|
wrap: true
|
42
42
|
}
|
@@ -59,7 +59,7 @@ module.exports = function(grunt) {
|
|
59
59
|
grunt.registerTask('default', 'build');
|
60
60
|
|
61
61
|
// Build task.
|
62
|
-
grunt.registerTask('build', ['jshint', 'sass', 'cssmin', '
|
62
|
+
grunt.registerTask('build', ['jshint', 'sass', 'cssmin', 'requirejs']);
|
63
63
|
|
64
64
|
};
|
65
65
|
|
data/lib/half-pipe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: half-pipe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Fiorini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|