middleman-jammit 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -1
- data/lib/middleman-jammit.rb +1 -1
- data/lib/middleman-jammit/version.rb +1 -1
- data/middleman-jammit.gemspec +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -6,7 +6,8 @@ Use Jammit in Middleman - merge multiple javascripts/stylesheets into one
|
|
6
6
|
|
7
7
|
1. Install
|
8
8
|
|
9
|
-
gem install middleman-jammit
|
9
|
+
gem install middleman-jammit -v 0.0.2 # for middleman 1.2.7
|
10
|
+
gem install middleman-jammit -v 0.1.0 # for middleman 2.x
|
10
11
|
|
11
12
|
2. Create your project
|
12
13
|
|
data/lib/middleman-jammit.rb
CHANGED
@@ -60,7 +60,7 @@ module Middleman
|
|
60
60
|
def generate_asset_tags(packages, type)
|
61
61
|
packages.map do |pack|
|
62
62
|
if ENV['MM_ENV'] == "build"
|
63
|
-
url =
|
63
|
+
url = asset_url(::Jammit.asset_url(pack, type.to_sym))
|
64
64
|
generate_tag(type, url)
|
65
65
|
else
|
66
66
|
::Jammit.packager.individual_urls(pack.to_sym, type.to_sym).map do |file|
|
data/middleman-jammit.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = "middleman-jammit"
|
16
16
|
|
17
17
|
s.add_dependency "jammit", "~> 0.6"
|
18
|
-
s.add_dependency "middleman", "
|
18
|
+
s.add_dependency "middleman", "> 1.2.7"
|
19
19
|
|
20
20
|
s.files = `git ls-files`.split("\n")
|
21
21
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: middleman-jammit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0
|
5
|
+
version: 0.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- "Matthias D\xC3\xB6ring"
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-07-13 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -30,9 +30,9 @@ dependencies:
|
|
30
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ">"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.2.
|
35
|
+
version: 1.2.7
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id002
|
38
38
|
description: Use Jammit in Middleman - merge multiple javascripts/stylesheets into one
|