middleman-bowerify 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c86b8eeb137b913ea813387aef491992292699a6
4
+ data.tar.gz: 4250b9cf869d85a3b12d54a3b28dcef55a8f6019
5
+ SHA512:
6
+ metadata.gz: 8ab4f13f337d4070ad8e283233a595448012705cf8bbcb1b47a71a79977bd77d3fcd74f01ec0f55556c35abdd6d82b133a3dffe0ab0c9df46d266498205191cb
7
+ data.tar.gz: 7acee4aa16fa2456bd753b2bb6f76cc89882fed38b320768e248067262a4afc3a948d00881fad8e1c3185d832b9e14c1af08315812876360d7ade2c5d2c32491
@@ -0,0 +1,2 @@
1
+ # Ignore bundler lock file
2
+ /Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'rake'
7
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 MarsBased
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.
@@ -0,0 +1,13 @@
1
+ # Middleman-Bowerify
2
+
3
+ `middleman-bowerify` is an extension for the [Middleman](https://middlemanapp.com/) static site generator that adds facilities to work with bower for assetss management.
4
+
5
+ ## Installation
6
+
7
+ Add `gem "middleman-bowerify"` to your `Gemfile` and run `bundle install`
8
+
9
+ ## Configuration
10
+
11
+ ```
12
+ activate :bowerify
13
+ ```
@@ -0,0 +1,6 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rake/clean'
5
+
6
+ task default: :test
@@ -0,0 +1,4 @@
1
+ PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
2
+ require 'middleman-core'
3
+ require 'middleman-core/step_definitions'
4
+ require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-bowerify')
@@ -0,0 +1,7 @@
1
+ require "middleman-core"
2
+ require "middleman-bowerify/version"
3
+
4
+ ::Middleman::Extensions.register(:bowerify) do
5
+ require "middleman-bowerify/extension"
6
+ ::Middleman::BowerifyExtension
7
+ end
@@ -0,0 +1,9 @@
1
+ module Middleman
2
+ class BowerifyExtension < Extension
3
+
4
+ def after_configuration
5
+ app.sprockets.append_path File.join "#{app.root}", "bower_components"
6
+ end
7
+
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module Middleman
2
+ module Bowerify
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require 'middleman-bowerify'
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "middleman-bowerify/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "middleman-bowerify"
7
+ s.version = Middleman::Bowerify::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Oriol Collell"]
10
+ s.homepage = "https://github.com/oriolbcn/middleman-bowerify"
11
+ s.summary = %q{Extension to make working with bower easier}
12
+ s.description = %q{Adds the bower_components folder to sprockets load path}
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
+ s.required_ruby_version = '>= 2.0.0'
20
+
21
+ # The version of middleman-core your extension depends on
22
+ s.add_runtime_dependency("middleman-core", [">= 3.3.12"])
23
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: middleman-bowerify
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Oriol Collell
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: middleman-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.3.12
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.3.12
27
+ description: Adds the bower_components folder to sprockets load path
28
+ email:
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - .gitignore
34
+ - Gemfile
35
+ - LICENSE.md
36
+ - README.md
37
+ - Rakefile
38
+ - features/support/env.rb
39
+ - lib/middleman-bowerify.rb
40
+ - lib/middleman-bowerify/extension.rb
41
+ - lib/middleman-bowerify/version.rb
42
+ - lib/middleman_extension.rb
43
+ - middleman-bowerify.gemspec
44
+ homepage: https://github.com/oriolbcn/middleman-bowerify
45
+ licenses:
46
+ - MIT
47
+ metadata: {}
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: 2.0.0
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.0.14
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: Extension to make working with bower easier
68
+ test_files:
69
+ - features/support/env.rb