munge 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c596cde656ea166e0febf10a87f2d419c4316385
4
- data.tar.gz: 69533be20adc8de7fff0185ef62a7277f7417af0
3
+ metadata.gz: f6ef4f6aa3511f357ea838f1e30c792b3b757085
4
+ data.tar.gz: 7de2b59499e68f7103b41ffca7b37abba081fc99
5
5
  SHA512:
6
- metadata.gz: 010455f44a56ac64e1d844ed5162be5a5c8a3b6f51ae6f2371bef881a14234b8c1548afbb95f5d80a3892fd2ffbf7ba4cb0feacec10fd3ef411b2757e3034722
7
- data.tar.gz: 09896ef1edd2904bdbfca617b53ed79bb8519730dabef653d891a7dc8fb6db6861f4bf3c559c38e6947054ae22b765e7db45e3da8911b338ba00e8e4bcb85d21
6
+ metadata.gz: 0490502833ed6d0fb9f3cd0a5e59ebc0688c80b82a10c3545c65925d56ca95cda25f47cbed70aa8e7152c01e92f91eefedc06f255572d0c980e15e885ea79c3d
7
+ data.tar.gz: 4fb54bc28f7657bd8419ecba6cf67a124d167f7f2ec32851a4618e34c9218b5cd5c1cc6bf1b3a4698b50ad42161e9e24cc9d99dc7b509cc613fc8a0a7f7193b4
@@ -12,6 +12,11 @@ module Munge
12
12
  desc "init PATH", "Create new site at PATH"
13
13
  def init(path)
14
14
  directory ".", path
15
+
16
+ inside(path) do
17
+ run_bundle("install")
18
+ run_bundle("binstub munge")
19
+ end
15
20
  end
16
21
 
17
22
  desc "build", "Build in current directory"
@@ -43,6 +48,18 @@ module Munge
43
48
  def symbolized_options
44
49
  Munge::Util::SymbolHash.deep_convert(options)
45
50
  end
51
+
52
+ def run_bundle(command)
53
+ if Gem::Specification::find_all_by_name("bundler").any?
54
+ say_status :run, "bundle #{command}"
55
+
56
+ require "bundler"
57
+
58
+ ::Bundler.with_clean_env do
59
+ system("bundle #{command}")
60
+ end
61
+ end
62
+ end
46
63
  end
47
64
  end
48
65
  end
@@ -2,15 +2,15 @@ module Munge
2
2
  module Helpers
3
3
  module AssetTags
4
4
  def stylesheet_tag(basename, options = {})
5
- options[:rel] = "stylesheet"
6
- options[:href] = stylesheet_url(basename)
5
+ options[:rel] ||= "stylesheet"
6
+ options[:href] ||= stylesheet_path(basename)
7
7
 
8
8
  empty_tag(:link, options)
9
9
  end
10
10
 
11
11
  def javascript_tag(basename, options = {})
12
- options[:type] = "text/javascript"
13
- options[:src] = javascript_url(basename)
12
+ options[:type] ||= "text/javascript"
13
+ options[:src] ||= javascript_path(basename)
14
14
 
15
15
  content_tag(:script, options)
16
16
  end
data/lib/munge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Munge
2
- VERSION = "0.9.0".freeze
2
+ VERSION = "0.10.0".freeze
3
3
  end
data/munge.gemspec CHANGED
@@ -17,11 +17,13 @@ Gem::Specification.new do |spec|
17
17
  spec.files =
18
18
  `git ls-files -z`
19
19
  .split("\x0")
20
- .reject { |f| f.match(%r{^(test|spec|features|script)/}) }
20
+ .select { |f| f =~ %r{^(?:exe/|lib/|seeds/|munge.gemspec|README|LICENSE|Gemfile)} }
21
21
  spec.bindir = "exe"
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
+ spec.required_ruby_version = '>= 2.1.0'
26
+
25
27
  spec.add_development_dependency "bundler", "~> 1.9"
26
28
  spec.add_development_dependency "rake", "~> 10.0"
27
29
  spec.add_development_dependency "minitest", "~> 5.8"
data/seeds/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ /dest
2
+ /.sass-cache
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: munge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Ahn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-10 00:00:00.000000000 Z
11
+ date: 2016-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -192,7 +192,7 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: '3.4'
195
- description: Documentation for this release is located in https://github.com/zachahn/munge/blob/v0.9.0/README.md
195
+ description: Documentation for this release is located in https://github.com/zachahn/munge/blob/v0.10.0/README.md
196
196
  email:
197
197
  - zach.ahn@gmail.com
198
198
  executables:
@@ -200,15 +200,9 @@ executables:
200
200
  extensions: []
201
201
  extra_rdoc_files: []
202
202
  files:
203
- - ".gitignore"
204
- - ".rubocop.yml"
205
- - ".ruby-version"
206
- - ".travis.yml"
207
203
  - Gemfile
208
204
  - LICENSE.txt
209
- - Makefile
210
205
  - README.md
211
- - Rakefile
212
206
  - exe/munge
213
207
  - lib/munge.rb
214
208
  - lib/munge/application.rb
@@ -252,6 +246,7 @@ files:
252
246
  - lib/munge/writers/filesystem.rb
253
247
  - lib/munge/writers/noop.rb
254
248
  - munge.gemspec
249
+ - seeds/.gitignore
255
250
  - seeds/Gemfile.tt
256
251
  - seeds/config.yml
257
252
  - seeds/config/_asset_roots.rb
@@ -282,7 +277,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
282
277
  requirements:
283
278
  - - ">="
284
279
  - !ruby/object:Gem::Version
285
- version: '0'
280
+ version: 2.1.0
286
281
  required_rubygems_version: !ruby/object:Gem::Requirement
287
282
  requirements:
288
283
  - - ">="
@@ -295,4 +290,3 @@ signing_key:
295
290
  specification_version: 4
296
291
  summary: Static site generator aiming to simplify complex build rules
297
292
  test_files: []
298
- has_rdoc:
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- /seeds/dest
12
- .sass-cache
data/.rubocop.yml DELETED
@@ -1,54 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.1
3
- Exclude:
4
- - vendor/bundle/**/*
5
- - Gemfile
6
- - Rakefile
7
- - munge.gemspec
8
-
9
- Metrics/AbcSize:
10
- Exclude:
11
- - test/**/*
12
-
13
- Metrics/LineLength:
14
- Max: 120
15
-
16
- Metrics/MethodLength:
17
- Max: 15
18
- Exclude:
19
- - test/**/*
20
-
21
- Metrics/ClassLength:
22
- Exclude:
23
- - test/**/*
24
-
25
- Style/AlignParameters:
26
- Enabled: false
27
-
28
- Style/Documentation:
29
- Enabled: false
30
-
31
- Style/ClassAndModuleChildren:
32
- Enabled: false
33
-
34
- Style/GuardClause:
35
- Enabled: false
36
-
37
- Style/IfUnlessModifier:
38
- Enabled: false
39
-
40
- Style/MultilineMethodCallIndentation:
41
- EnforcedStyle: indented
42
-
43
- Style/MultilineOperationIndentation:
44
- EnforcedStyle: indented
45
-
46
- Style/StringLiterals:
47
- EnforcedStyle: double_quotes
48
-
49
- Style/SymbolProc:
50
- Exclude:
51
- - seeds/**/*
52
-
53
- Style/UnneededInterpolation:
54
- Enabled: false
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.2.2
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- - 2.2
5
- - 2.1
6
- - ruby-head
7
- cache: bundler
8
- before_install: gem install bundler -v 1.10.5
9
- script: ./script/test
10
- addons:
11
- code_climate:
12
- repo_token: b8fc4a1660d2067059476e3e579080fb6820daedbdb5e56cd9028f5dcc058fc8
13
- notifications:
14
- email: false
15
- matrix:
16
- fast_finish: true
17
- allow_failures:
18
- - rvm: ruby-head
data/Makefile DELETED
@@ -1,33 +0,0 @@
1
- .PHONY: all coverage-test coverage-open seeds-build seeds-open seeds-clean test release
2
-
3
- all:
4
- @echo "usage:"
5
- @echo
6
- @echo "make coverage-test runs tests and logs coverage"
7
- @echo "make coverage-open starts webserver in coverage directory"
8
- @echo "make seeds-build runs munge-build on seeds"
9
- @echo "make seeds-open runs munge-view on seeds"
10
- @echo "make seeds-clean removes built seeds files"
11
- @echo "make test runs tests"
12
- @echo "make release releases gem (dangerous)"
13
-
14
- coverage-test:
15
- COVERAGE=1 script/test
16
-
17
- coverage-open:
18
- cd coverage && adsf
19
-
20
- seeds-build:
21
- cd seeds && ../exe/munge build
22
-
23
- seeds-open:
24
- cd seeds && ../exe/munge view
25
-
26
- seeds-clean:
27
- rm -r seeds/dest seeds/.sass-cache
28
-
29
- test:
30
- script/test
31
-
32
- release:
33
- bundle exec rake release
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList['test/**/*_test.rb']
8
- end
9
-
10
- task :default => :test