atomic_assets 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 35dbe7d9e03f577cab1e3cd74ea37b6745ba57e8
4
+ data.tar.gz: b04fbd65a48dc6d7966564d57122a34b69d2e21d
5
+ SHA512:
6
+ metadata.gz: b6bdb2cdc9c2ab90c6c0e558f92709a1928d75ed1c60d432a5355affbdaa648c2b959632dad58278209cbe20f84f8a28400bf9aea0c767049309af0f5ce62cd9
7
+ data.tar.gz: 2c3f740d7ac07dd2257b04eb15e5ec0ce7c40779b7d9c4374a33c7e77ac9803dc229321571106284ce030d65e2ef2741395aabd68a12805383ebdab33bfb20f3
@@ -0,0 +1,14 @@
1
+ module AtomicAssets
2
+ module Helper
3
+ def component(name, options = {}, &block)
4
+ if block_given?
5
+ if block.arity == 0
6
+ options[:content] = capture(&block)
7
+ else
8
+ block.call(options)
9
+ end
10
+ end
11
+ render partial: "components/#{name}", locals: { options: options }
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,5 @@
1
+ require 'atomic_assets/helper'
2
+
3
+ module ApplicationHelper
4
+ include AtomicAssets::Helper
5
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: atomic_assets
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Don Humphreys
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Organize, style, and consume atomically designed assets in Ruby on Rails.
14
+ email: dhumphreys88@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/atomic_assets.rb
20
+ - lib/atomic_assets/helper.rb
21
+ homepage:
22
+ licenses: []
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.2.2
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Atomic Assets
44
+ test_files: []
45
+ has_rdoc: