slim-grunt-helpers 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66aac7b8f9dd3c5fe219e1be98ad6b3663020782
4
- data.tar.gz: 8925791b026acd526ff6252f3300f9d218bc2b4e
3
+ metadata.gz: 315d6025a167f6f995b9c2d74ebb9c7bb99c82fd
4
+ data.tar.gz: 14a2f8191e24d58ba91e37318c3d602446a1999d
5
5
  SHA512:
6
- metadata.gz: 1554c2ce726454148dcef5cb19ee9456cd4d5eddf669fd68c9e7ce9b9f55a8a1d002f58e71085d18c54e756b91fc31671e45dbbbdc47b5e10212d837fe44bc69
7
- data.tar.gz: f1f583ebf185b6335c4f1729e5ee9a3c098e819bd3ace0450b8d61c3d0a1a27d3d2cc69611f76e3b9a84723272b752dacba066e66815bebb22b074c8bf3e5d57
6
+ metadata.gz: 100f857e035308ebd030d55031920926828a8e4c0ee9da85ba7c52bf356d63ecc6fc11452af8832b1aa41a808a8095df9354051f95e5fc4e1b9399c1b3f5c68e
7
+ data.tar.gz: 0f6fc5657d2d6d386cc08f833f61f45115546024cede06dc31749b8614306bca6477f01ad4396534896ea1144b39c908cac17ce0351cd3a7dc1a64438241d1dc
data/README.md CHANGED
@@ -9,7 +9,7 @@ how you require the gem) which will help you when setting up a pipeline with
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'slim-grunt-helpers', '~> 0.0.1'
12
+ gem 'slim-grunt-helpers', '~> 0.0.2'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -49,9 +49,17 @@ there which are boring to type directly in Slim. The usage is simple:
49
49
  ```ruby
50
50
  == sg_usemin_css('application.css', alt: '.tmp') do |usemin|
51
51
  - usemin << 'styles/bootstrap.css'
52
- - usemin << 'styles/main.css', 'data-customattr' => 'customdata'
52
+ - usemin.add 'styles/main.css', 'data-customattr' => 'customdata'
53
53
  ```
54
54
 
55
+ **Note:** You can either use **&lt;&lt;** or `add`, I prefer the first one but if you want use two params,
56
+ the only way to do it is in this way:
57
+ ```ruby
58
+ - usemin.<<('param1', 'data-customattr' => 'customdata')
59
+ ```
60
+ Which I consider quite horrible, so the method is aliased with `add`
61
+
62
+ **Anyway!**
55
63
  The first argument is required, and it's the `path` :
56
64
 
57
65
  ```html
@@ -13,6 +13,7 @@ module SlimGruntHelpers
13
13
  def <<(path, options={})
14
14
  @links << { path: path, options: base_options.merge(options) }
15
15
  end
16
+ alias_method :add, :<<
16
17
 
17
18
  def each
18
19
  @links.each { |link| yield(transform_link(link)) }
@@ -1,3 +1,3 @@
1
1
  module SlimGruntHelpers
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim-grunt-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fire-Dragon-DoL