half-pipe 0.3.0.beta.1 → 0.3.0.beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/half-pipe.rb +6 -0
- data/lib/half-pipe/version.rb +1 -1
- metadata +2 -3
- data/app/helpers/half_pipe_helper.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0c8aab6cd5b95dadaab3d7941542ffa699c0b79
|
4
|
+
data.tar.gz: c2d994df685f1502f4a9dfa49f1ff6ec6d7a26e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7b23a49c65551dc8f56f4ab81cf36b7f819f17d2aae44772406064e7a089f95ab6a038aadbe6e0260852b5e8adf2fd678e5a4f458a242ed7d4ad00dfbea49cc
|
7
|
+
data.tar.gz: 00fdf6017fc0ef6d8ef69bd4079a9a45cdb51cf640e2b9ca5eb6b1534f84ef3d7db2b73799b09c8c0b6be7d73f4c0951c3853b8eea5bc0e371d5820790e588e9
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+

|
2
2
|
|
3
3
|
[](http://waffle.io/d-i/half-pipe)
|
4
4
|
|
@@ -10,9 +10,9 @@ Half Pipe is a generator to get you up and running quickly with a Grunt setup fo
|
|
10
10
|
|
11
11
|
This initial release assumes you have been using [Grunt.js](http://www.gruntjs.com) in non-Rails apps and would like to start using it in Rails as well. It uses [Bower](http://bower.io) for dependency management, [RequireJS](http://www.requirejs.org) for Javascript modules and Sass for CSS. If you use alternatives to these tools, we'd love to [hear from you][issue].
|
12
12
|
|
13
|
-
##
|
13
|
+
## Beta Version
|
14
14
|
|
15
|
-
**NOTE** This README refers to the
|
15
|
+
**NOTE** This README refers to the beta version of Half Pipe. I highly recommend using the beta and following this README, but if you are on the 0.2 version please see [the previous README](https://github.com/d-i/half-pipe/blob/4a68659f215f939f7da9d3e5e8756c7f31a86177/README.md).
|
16
16
|
|
17
17
|
## We Want Feedback
|
18
18
|
|
@@ -25,7 +25,7 @@ Half Pipe is still in the early stages of development. The workflow has been ext
|
|
25
25
|
The Half Pipe gem is mostly a vehicle to bring a nice Grunt workflow into your Rails app. To set it up, add the following to your Gemfile:
|
26
26
|
|
27
27
|
```
|
28
|
-
gem 'half-pipe', '~>0.3.0.
|
28
|
+
gem 'half-pipe', '~>0.3.0.beta'
|
29
29
|
```
|
30
30
|
|
31
31
|
After you install the gem, you can run `rails g half_pipe:install` to setup the Grunt workflow. This will configure your app for node.js, copy over the Grunt setup, install node modules and run `grunt build:public`.
|
data/lib/half-pipe.rb
CHANGED
@@ -2,6 +2,12 @@ require "half-pipe/version"
|
|
2
2
|
|
3
3
|
if defined?(Rails)
|
4
4
|
require "half-pipe/rails"
|
5
|
+
|
6
|
+
ActionView::Helpers::AssetUrlHelper::ASSET_PUBLIC_DIRECTORIES.tap do |dirs|
|
7
|
+
dirs[:image] = '/assets/images'
|
8
|
+
dirs[:javascript] = '/assets/scripts'
|
9
|
+
dirs[:stylesheet] = '/assets/styles'
|
10
|
+
end
|
5
11
|
end
|
6
12
|
|
7
13
|
require "rack/half-pipe"
|
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.3.0.beta.
|
4
|
+
version: 0.3.0.beta.2
|
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-
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -51,7 +51,6 @@ files:
|
|
51
51
|
- README.md
|
52
52
|
- ROADMAP.md
|
53
53
|
- Rakefile
|
54
|
-
- app/helpers/half_pipe_helper.rb
|
55
54
|
- examples/todomvc-rails/.bowerrc
|
56
55
|
- examples/todomvc-rails/.gitignore
|
57
56
|
- examples/todomvc-rails/.jshintrc
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module HalfPipeHelper
|
2
|
-
|
3
|
-
def javascript_include_tag(source, options={})
|
4
|
-
base = File.basename(source)
|
5
|
-
source = File.join("/assets", "scripts", base)
|
6
|
-
super source, options
|
7
|
-
end
|
8
|
-
|
9
|
-
def image_tag(source, options={})
|
10
|
-
base = File.basename(source)
|
11
|
-
source = File.join("/assets", "images", base)
|
12
|
-
super(source, options)
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|