middleman-emberscript 1.0.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 30741c224775a153b250e5148709c013d1b109f3
4
+ data.tar.gz: f0bdf8a19a1f45325f31385ed56010d16eedf8c0
5
+ SHA512:
6
+ metadata.gz: 516559a2d652579b41dce9ca141f0320cc5c4474235c1eb31352ca4e5da48d9e82fea5bc6d309d65ff0b8d0894a1572a9eec891243806802624aad07320de54d
7
+ data.tar.gz: 5505ce342334b52f1718f456fe5f74de302fdf843c5500e9bec988819b87d2914800d958497856c2fb968417762a3dd82b984db7e77ce8bacbcf79cb98dbe417
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+
5
+
6
+ # Specify your gem's dependencies in middleman-emblem.gemspec
7
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 j-mcnally
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.
@@ -0,0 +1,47 @@
1
+ # Middleman::Emberscript
2
+
3
+ A simple plugin to support emberscript with Middleman
4
+
5
+
6
+ ## Full Project Generation
7
+
8
+ Check out my other project ([mes](https://github.com/j-mcnally/mes)) which will build a full scaffold for a middleman/ember/emblem project.
9
+
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ gem 'middleman-emberscript'
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install middleman-emberscript
24
+
25
+ ## Usage
26
+
27
+ add `activate :emberscript` to config.rb
28
+
29
+ ## Configuration
30
+
31
+ by default:
32
+ `activate :emberscript, emblem_ext: "em", ignore: true`
33
+
34
+ `ignore: true` means it will ignore the "templates" folder when building
35
+
36
+ but this can be changed in config.rb to something like:
37
+ `activate :emberscript, emblem_ext: "ems", ignore: false`
38
+
39
+ `ignore: false` means you need to *explicity ignore* the "templates" folder in your config.rb when building
40
+
41
+ ## Contributing
42
+
43
+ 1. Fork it
44
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
45
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
46
+ 4. Push to the branch (`git push origin my-new-feature`)
47
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,7 @@
1
+ require "middleman-emberscript/version"
2
+
3
+
4
+ ::Middleman::Extensions.register(:emberscript) do
5
+ require "middleman-emberscript/extension"
6
+ ::Middleman::Emberscript
7
+ end
@@ -0,0 +1,19 @@
1
+ require 'ember_script'
2
+
3
+
4
+ module Middleman
5
+ module Emberscript
6
+ class << self
7
+
8
+ def registered(app, options={})
9
+ sprocket_extension = "em"
10
+ sprocket_extension = options[:emblem_ext] if options.has_key?(:emblem_ext)
11
+ ::Sprockets.register_engine ".#{sprocket_extension}", EmberScript::EmberScriptTemplate
12
+ app.after_configuration do
13
+ ignore "#{js_dir}/**/*.em" unless options.has_key?(:ignore) && !options[:ignore]
14
+ end
15
+ end
16
+ alias :included :registered
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ module Middleman
2
+ module Emberscript
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require "middleman-emberscript"
@@ -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-emberscript/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "middleman-emberscript"
8
+ gem.version = Middleman::Emberscript::VERSION
9
+ gem.authors = ["j-mcnally"]
10
+ gem.email = ["justin@kohactive.com"]
11
+ gem.description = "Ember script support for middleman"
12
+ gem.summary = "Use emberscript with middleman."
13
+ gem.homepage = "https://github.com/j-mcnally/middleman-emberscript"
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_runtime_dependency("ember_script", "0.0.5")
20
+ end
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: middleman-emberscript
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - j-mcnally
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-06-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ember_script
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.5
27
+ description: Ember script support for middleman
28
+ email:
29
+ - justin@kohactive.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - .gitignore
35
+ - Gemfile
36
+ - LICENSE.txt
37
+ - README.md
38
+ - Rakefile
39
+ - lib/middleman-emberscript.rb
40
+ - lib/middleman-emberscript/extension.rb
41
+ - lib/middleman-emberscript/version.rb
42
+ - lib/middleman_extension.rb
43
+ - middleman-emberscript.gemspec
44
+ homepage: https://github.com/j-mcnally/middleman-emberscript
45
+ licenses: []
46
+ metadata: {}
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements: []
62
+ rubyforge_project:
63
+ rubygems_version: 2.0.0
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Use emberscript with middleman.
67
+ test_files: []
68
+ has_rdoc: