munge 0.4.0 → 0.5.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/.rubocop.yml +10 -0
  4. data/Makefile +21 -0
  5. data/README.md +1 -1
  6. data/exe/munge +6 -0
  7. data/lib/munge/application.rb +11 -53
  8. data/lib/munge/bootstrap.rb +63 -0
  9. data/lib/munge/cli.rb +5 -17
  10. data/lib/munge/commands/view.rb +46 -0
  11. data/lib/munge/core/alterant.rb +2 -2
  12. data/lib/munge/core/collection.rb +1 -1
  13. data/lib/munge/core/item_factory/content_parser.rb +9 -13
  14. data/lib/munge/core/item_factory.rb +1 -24
  15. data/lib/munge/core/router/itemish.rb +22 -0
  16. data/lib/munge/core/router.rb +33 -42
  17. data/lib/munge/helper/capture.rb +24 -0
  18. data/lib/munge/helper/find.rb +4 -0
  19. data/lib/munge/helper/link.rb +6 -1
  20. data/lib/munge/helper/rendering.rb +0 -2
  21. data/lib/munge/item.rb +2 -2
  22. data/lib/munge/routers/add_index_html.rb +36 -0
  23. data/lib/munge/routers/auto_add_extension.rb +44 -0
  24. data/lib/munge/routers/fingerprint.rb +60 -0
  25. data/lib/munge/routers/remove_index_basename.rb +35 -0
  26. data/lib/munge/runner.rb +10 -6
  27. data/lib/munge/system.rb +54 -0
  28. data/lib/munge/transformer/tilt.rb +7 -3
  29. data/lib/munge/util/config.rb +28 -0
  30. data/lib/munge/util/path.rb +58 -0
  31. data/lib/munge/util/symbol_hash.rb +35 -0
  32. data/lib/munge/version.rb +1 -1
  33. data/lib/munge.rb +11 -4
  34. data/munge.gemspec +1 -0
  35. data/seeds/config.yml +1 -0
  36. data/seeds/data.yml +1 -0
  37. data/seeds/layouts/default.html.erb +5 -2
  38. data/seeds/layouts/sitemap.html.erb +6 -0
  39. data/seeds/rules.rb +19 -2
  40. data/seeds/setup.rb +15 -0
  41. data/seeds/src/_vars.scss +6 -0
  42. data/seeds/src/about.html.erb +11 -0
  43. data/seeds/src/basic.css.scss +41 -0
  44. data/seeds/src/index.html.erb +34 -0
  45. metadata +37 -7
  46. data/lib/munge/core/config.rb +0 -23
  47. data/lib/munge/helper.rb +0 -4
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.4.0
4
+ version: 0.5.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Ahn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-03 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -164,7 +164,21 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '2.0'
167
- description: Documentation for this release is located in https://github.com/zachahn/munge/blob/v0.4.0/README.md
167
+ - !ruby/object:Gem::Dependency
168
+ name: sass
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '3.4'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '3.4'
181
+ description: Documentation for this release is located in https://github.com/zachahn/munge/blob/v0.5.0.beta1/README.md
168
182
  email:
169
183
  - zach.ahn@gmail.com
170
184
  executables:
@@ -178,34 +192,50 @@ files:
178
192
  - ".travis.yml"
179
193
  - Gemfile
180
194
  - LICENSE.txt
195
+ - Makefile
181
196
  - README.md
182
197
  - Rakefile
183
198
  - exe/munge
184
199
  - lib/munge.rb
185
200
  - lib/munge/application.rb
201
+ - lib/munge/bootstrap.rb
186
202
  - lib/munge/cli.rb
203
+ - lib/munge/commands/view.rb
187
204
  - lib/munge/core/alterant.rb
188
205
  - lib/munge/core/collection.rb
189
- - lib/munge/core/config.rb
190
206
  - lib/munge/core/item_factory.rb
191
207
  - lib/munge/core/item_factory/content_parser.rb
192
208
  - lib/munge/core/router.rb
209
+ - lib/munge/core/router/itemish.rb
193
210
  - lib/munge/core/write.rb
194
- - lib/munge/helper.rb
211
+ - lib/munge/helper/capture.rb
195
212
  - lib/munge/helper/find.rb
196
213
  - lib/munge/helper/link.rb
197
214
  - lib/munge/helper/rendering.rb
198
215
  - lib/munge/item.rb
199
216
  - lib/munge/readers/filesystem.rb
217
+ - lib/munge/routers/add_index_html.rb
218
+ - lib/munge/routers/auto_add_extension.rb
219
+ - lib/munge/routers/fingerprint.rb
220
+ - lib/munge/routers/remove_index_basename.rb
200
221
  - lib/munge/runner.rb
222
+ - lib/munge/system.rb
201
223
  - lib/munge/transformer/tilt.rb
224
+ - lib/munge/util/config.rb
225
+ - lib/munge/util/path.rb
226
+ - lib/munge/util/symbol_hash.rb
202
227
  - lib/munge/version.rb
203
228
  - munge.gemspec
204
229
  - seeds/Gemfile.tt
205
230
  - seeds/config.yml
206
231
  - seeds/data.yml
207
232
  - seeds/layouts/default.html.erb
233
+ - seeds/layouts/sitemap.html.erb
208
234
  - seeds/rules.rb
235
+ - seeds/setup.rb
236
+ - seeds/src/_vars.scss
237
+ - seeds/src/about.html.erb
238
+ - seeds/src/basic.css.scss
209
239
  - seeds/src/index.html.erb
210
240
  homepage: https://github.com/zachahn/munge
211
241
  licenses:
@@ -222,9 +252,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
252
  version: '0'
223
253
  required_rubygems_version: !ruby/object:Gem::Requirement
224
254
  requirements:
225
- - - ">="
255
+ - - ">"
226
256
  - !ruby/object:Gem::Version
227
- version: '0'
257
+ version: 1.3.1
228
258
  requirements: []
229
259
  rubyforge_project:
230
260
  rubygems_version: 2.4.5
@@ -1,23 +0,0 @@
1
- module Munge
2
- module Core
3
- class Config
4
- def initialize(path)
5
- abspath = File.expand_path(path)
6
- @datastore =
7
- read_yaml(abspath)
8
- .map { |key, value| [key.to_sym, value] }
9
- .to_h
10
- end
11
-
12
- def [](key)
13
- @datastore[key]
14
- end
15
-
16
- private
17
-
18
- def read_yaml(abspath)
19
- YAML.load_file(abspath) || {}
20
- end
21
- end
22
- end
23
- end
data/lib/munge/helper.rb DELETED
@@ -1,4 +0,0 @@
1
- module Munge
2
- module Helper
3
- end
4
- end