middleman-neat 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ pkg/*
6
+ rdoc
7
+ tmp
8
+ test/tmp
9
+
10
+ doc/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in middleman-neat.gemspec
4
+ gem "neat"
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Patrik Wibron
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # Middleman Neat
2
+
3
+ A gem for simple usage of [Bourbon Neat](https://github.com/thoughtbot/neat) inside your Middleman projects.
4
+
5
+ ## Installation & usage
6
+
7
+ Add this line to Middleman's Gemfile:
8
+
9
+ gem "neat"
10
+ gem "middleman-neat"
11
+
12
+ In your config.rb:
13
+
14
+ activate :neat
15
+
16
+ ## Contributing
17
+
18
+ 1. Fork the repo!
19
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
20
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
21
+ 4. Push to the branch (`git push origin my-new-feature`)
22
+ 5. Create a new Pull Request with your changes
data/Rakefile ADDED
@@ -0,0 +1,19 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ require File.expand_path('../lib/middleman-neat/version', __FILE__)
4
+
5
+ desc "Validate the gemspec"
6
+ task :gemspec do
7
+ gemspec.validate
8
+ end
9
+
10
+ desc "Build gem locally"
11
+ task :gem => :build
12
+ task :build do
13
+ system "gem build middleman-neat.gemspec"
14
+ end
15
+
16
+ desc "Install gem locally"
17
+ task :install => :build do
18
+ system "gem install pkg/#{gemspec.name}-#{gemspec.version}"
19
+ end
@@ -0,0 +1,3 @@
1
+ module MiddlemanNeat
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,16 @@
1
+ require "middleman-neat/version"
2
+
3
+ module MiddlemanNeat
4
+
5
+ class << self
6
+ def registered(app)
7
+ require "neat"
8
+ gem_dir = Gem::Specification.find_by_name("neat").gem_dir
9
+ Sass.load_paths << File.expand_path("./app/assets/stylesheets", gem_dir)
10
+ puts "Loaded Bourbon Neat"
11
+ end
12
+ alias :included :registered
13
+ end
14
+ end
15
+
16
+ ::Middleman::Extensions.register(:neat, MiddlemanNeat)
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'middleman-neat/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "middleman-neat"
8
+ gem.version = MiddlemanNeat::VERSION
9
+ gem.authors = ["Patrik Wibron"]
10
+ gem.email = ["patrik@wibron.nu"]
11
+ gem.description = %q{Bourbon neat extension for Middleman}
12
+ gem.summary = %q{An extension for Middleman that will let you use Bourbon Neat for your projects}
13
+ gem.homepage = "http://patrikwibron.se/"
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+ gem.add_dependency "sinatra"
20
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: middleman-neat
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Patrik Wibron
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2013-02-08 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: sinatra
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ description: Bourbon neat extension for Middleman
35
+ email:
36
+ - patrik@wibron.nu
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - .gitignore
45
+ - Gemfile
46
+ - LICENSE.txt
47
+ - README.md
48
+ - Rakefile
49
+ - lib/middleman-neat.rb
50
+ - lib/middleman-neat/version.rb
51
+ - middleman-neat.gemspec
52
+ homepage: http://patrikwibron.se/
53
+ licenses: []
54
+
55
+ post_install_message:
56
+ rdoc_options: []
57
+
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ hash: 3
66
+ segments:
67
+ - 0
68
+ version: "0"
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ requirements: []
79
+
80
+ rubyforge_project:
81
+ rubygems_version: 1.8.24
82
+ signing_key:
83
+ specification_version: 3
84
+ summary: An extension for Middleman that will let you use Bourbon Neat for your projects
85
+ test_files: []
86
+