spyret 0.2.0 → 0.3.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.
package/README.md CHANGED
@@ -37,8 +37,10 @@ runtime requirements. For portable snapshots and reconstruction, see the
37
37
  ## Pyret: import, describe, display
38
38
 
39
39
  A maintainer runs `npm run release:drive` and follows the
40
- [manual upload instructions](docs/RELEASING.md). Users then import the versioned
41
- wrapper in CPO to get typed rule constructors and diagram functions together:
40
+ [CPO-save and Drive publishing instructions](docs/RELEASING.md). The native
41
+ JavaScript file needs CPO per-file authorization; a public Drive upload alone
42
+ is insufficient. Verify access with a second account before distributing the
43
+ versioned wrapper, which combines typed rule constructors and diagram functions:
42
44
 
43
45
  ```pyret
44
46
  # Use the import line supplied by the library maintainer.
@@ -49,7 +51,7 @@ data Tree:
49
51
  | branch(left, right)
50
52
  sharing:
51
53
  method _spytial(self):
52
- [list: S.orientation("left + right", [list: S.direction-below])]
54
+ [list: S.orientation("left + right", [list: S.below])]
53
55
  end
54
56
  end
55
57
 
@@ -61,7 +63,12 @@ a diagram. Compose rules with ordinary Pyret lists; constructors such as
61
63
  `orientation`, `align` and `group` handle their constraint/directive category.
62
64
  `S.diagram([list: 1, 2, 3])` also works without any hooks. To supply rules explicitly,
63
65
  use `S.diagram-with-rules(value, rules)`, or `S.diagram(value, yaml)` for YAML.
64
- See the [rule reference](docs/SPYTIAL_RULES_REFERENCE.md) for available constructors.
66
+ See the [layout rule guide](docs/SPYTIAL_LANGUAGE.md) for examples and meaning,
67
+ and the [rule reference](docs/SPYTIAL_RULES_REFERENCE.md) for every constructor.
68
+ These examples use the 0.3.0 source API. The published v0.2.0 release wrapper
69
+ uses names such as `S.direction-below`; `release:drive` prints an example
70
+ matching the release it downloads. Version 0.3.0 also replaces fluent
71
+ `.with-*` style options with named records and typed style blocks.
65
72
 
66
73
  The import form depends on the host and file:
67
74