anatomy 0.2.3 → 0.2.4

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: 7f7b7be47a4d003d6bd70ea49eebbfd7fbdca46c
4
- data.tar.gz: 631d172860a40e474aaded2babd2dc6bdbaa040a
3
+ metadata.gz: ea287c4ca9d5cf1a661f527abdce69c03699641f
4
+ data.tar.gz: e0ad0e3c7b9d51c696a2801d497d74c74d3dbe9e
5
5
  SHA512:
6
- metadata.gz: 2fc77ea941ea8cc1ddb5392ab516b65de5556621f51f49f68ac5626a8703bcb744890bfa467894a685ca255e979e660befde1936535376a73125f171955fc17e
7
- data.tar.gz: 64f4db6a7e6719e746cfdb91324267658c31e455fd6fcda85c449e8f62dd70b7e11ffd07e9880bbddb8cd1279d28e9a61d8cac19a8ea65a5a534ce117ae5eef6
6
+ metadata.gz: 51121a52a93c3231a8fb703e980046f9a30c36ab7da93f58594fb20f927c83983975cf4862068198b7e2dba05850991b3fd0d83d59b49095c03a4a53593daf50
7
+ data.tar.gz: 537c70611b8f0e4b05b90ecb627f9779606aa1de9a69f6170b3ae1580590f8773a9edbd05612edc01de0b75279550d490b4753b4be367276e008e000831a7430
@@ -29,6 +29,11 @@ def(table-of-contents):
29
29
  [part]:
30
30
  part style properties << .toc)
31
31
 
32
+ def(mobile-optimized):
33
+ data MetaBlock new(
34
+ [part]:
35
+ part mobile-optimized? = true)
36
+
32
37
  def(omit-children-from-table-of-contents):
33
38
  data ResolveElement new(
34
39
  [part]:
@@ -71,7 +71,10 @@ data(
71
71
  @template = nil
72
72
 
73
73
  -- omit children from table of contents
74
- @omit-children-from-table-of-contents? = false))
74
+ @omit-children-from-table-of-contents? = false
75
+
76
+ -- whether or not the part will handle mobile device sizes elegantly
77
+ @mobile-optimized? = false))
75
78
 
76
79
  def(Part set-tag(name, target = .self, display = nil)):
77
80
  @tags[name] = Tag new(self, name, target, display)
@@ -276,7 +276,8 @@ def(render(part, out = ".")):
276
276
  <script(type = "text/javascript", src = "public/tags.js") {}
277
277
  <script(type = "text/javascript", src = "public/main.js") {}
278
278
 
279
- <meta(name = "viewport", content = "width=device-width, initial-scale=1")
279
+ when(part mobile-optimized?):
280
+ <meta(name = "viewport", content = "width=device-width, initial-scale=1")
280
281
 
281
282
  all-css-additions(part) collect [addition]:
282
283
  <link(type = "text/css", rel = "stylesheet", href = addition)
@@ -1,3 +1,3 @@
1
1
  module Anatomy
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anatomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Suraci
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  version_requirements: !ruby/object:Gem::Requirement