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: c8320c78751a0859e14e464daf98a1df81b9834d
4
- data.tar.gz: 53a5705861ec0f78dd35a3be32ec7d8e7dd0da14
3
+ metadata.gz: da42b09573b07ed2e9a8fa708cea91b0f370dfc9
4
+ data.tar.gz: 7a5766cca2a6877eb8e391b4385b01de93c47c48
5
5
  SHA512:
6
- metadata.gz: 6df438586c47a93b17d423a08527a018d9e217425da8144e60879f1bcb3f11c1f1511bfd4b7f92bb51ca850b4e1759e160847eaedef2e71a1551cc3b4f6dea66
7
- data.tar.gz: cf4c9619d7f7ec7a96efd63c57bd2130b4018992bc547dd3b1dc3b2998414118ace29f98de273173a21fc5ddfd956a070fbfded5521b769a466eb07fca95d598
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
- root = if Rails.application.config.half_pipe.serve_assets then "components/requirejs" else "scripts" end
5
- javascript_include_tag "/#{root}/require.js", { data: { main: script } }
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: "oral-health",
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', 'copy', 'requirejs']);
62
+ grunt.registerTask('build', ['jshint', 'sass', 'cssmin', 'requirejs']);
63
63
 
64
64
  };
65
65
 
@@ -1,5 +1,5 @@
1
1
  module Half
2
2
  module Pipe
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2013-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass