rails-assets-bundler 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: c30e1302344e7e0b32855a49a9025041eea7b243
4
+ data.tar.gz: 0b26a188fb07902397fd9cdc58b4da7eb112982e
5
+ SHA512:
6
+ metadata.gz: a9dc3ee7e735bfc9e5825af35677e4e4c1783b17b92a1830db70ffeb23d84b7088b35072690c18f79a1b9310b294b5cb1273d54690d58d60b5307ded5ede1ef0
7
+ data.tar.gz: f7e5b567b71b024c918e0cda247f2632989bc0b3ea58a13df53226cd40246b4261a6c4cb29a0e3c3167003c953150fa9901f98cede01a9b199844644f629d7b4
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
14
+
15
+ # YARD artifacts
16
+ .yardoc
17
+ _yardoc
18
+ doc/
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Jianqiu Xiao <swordray@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # rails-assets-bundler
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/rails-assets-bundler.png)](http://badge.fury.io/rb/rails-assets-bundler) [![Build Status](https://secure.travis-ci.org/swordray/rails-assets-bundler.png?branch=master)](http://travis-ci.org/swordray/rails-assets-bundler) [![Dependency Status](https://gemnasium.com/swordray/rails-assets-bundler.png?travis)](https://gemnasium.com/swordray/rails-assets-bundler) [![Code Climate](https://codeclimate.com/github/swordray/rails-assets-bundler.png)](https://codeclimate.com/github/swordray/rails-assets-bundler)
4
+
5
+ Provide an easier and semantic dsl to include rails-assets gems in Bunder Gemfile.
6
+
7
+ ## Requirements
8
+
9
+ * Bunder
10
+
11
+ ## Usage
12
+
13
+ Include the gem and rails-assets gems in your Gemfile:
14
+
15
+ ```ruby
16
+ gem 'rails-assets-bundler'
17
+ require 'rails-assets-bundler'
18
+
19
+ asset 'bootstrap'
20
+ bower 'bootstrap'
21
+ css 'blueprint'
22
+ js 'jquery'
23
+ ```
24
+
25
+ ## Credits
26
+
27
+ * swordray @[ihaveu](http://www.ihaveu.com/home) @[shuhai](http://tw.shuhai.org/) @[leaf](http://leaf.iacger.com)
28
+
29
+ ## License
30
+
31
+ Copyright © 2014 Jianqiu Xiao <swordray@gmail.com> under The [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,15 @@
1
+ module Bundler
2
+ class Dsl
3
+ def asset(name, *args)
4
+ _url = 'https://rails-assets.org/'
5
+ source _url unless @rubygems_source.remotes.map(&:to_s).include?(_url)
6
+
7
+ gem "rails-assets-#{name}", *args
8
+ end
9
+
10
+ alias :a :asset
11
+ alias :bower :asset
12
+ alias :css :asset
13
+ alias :js :asset
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module RailsAssetsBunder
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1 @@
1
+ require 'rails-assets-bundler/bundler/dsl'
@@ -0,0 +1,23 @@
1
+ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
2
+ require 'rails-assets-bundler/version'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "rails-assets-bundler"
6
+ s.version = RailsAssetsBunder::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.author = ["Jianqiu Xiao"]
9
+ s.email = ["swordray@gmail.com"]
10
+ s.homepage = "https://github.com/swordray/rails-assets-bundler"
11
+ s.summary = "Provide an easier dsl to include rails-assets gems in Bunder Gemfile."
12
+ s.description = "Thanks to ihaveu.com team."
13
+ s.license = "MIT"
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+
20
+ s.required_ruby_version = "~> 2.0"
21
+
22
+ s.add_dependency 'bundler'
23
+ end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-assets-bundler
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jianqiu Xiao
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Thanks to ihaveu.com team.
28
+ email:
29
+ - swordray@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - LICENSE
37
+ - README.md
38
+ - lib/rails-assets-bundler.rb
39
+ - lib/rails-assets-bundler/bundler/dsl.rb
40
+ - lib/rails-assets-bundler/version.rb
41
+ - rails-assets-bundler.gemspec
42
+ homepage: https://github.com/swordray/rails-assets-bundler
43
+ licenses:
44
+ - MIT
45
+ metadata: {}
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.2.2
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Provide an easier dsl to include rails-assets gems in Bunder Gemfile.
66
+ test_files: []