calyx 0.11.2 → 0.11.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc594e0fddc6c14df3cd938cc1ab458f7ffc490f
4
- data.tar.gz: 68f4c73ef62ae94daea3194b11d3c7e0e5df7904
3
+ metadata.gz: b5a355ab937e5afbf5ab76be107bee0f4e0b53a9
4
+ data.tar.gz: be8ab43657f9a57fac3644fcb11a7f4c184433aa
5
5
  SHA512:
6
- metadata.gz: c9e136e726881b1847690a290565125546fd7a41f90f7bbd4320542eaee82be2df9796acbf11d53cb71c77d2b82e97e29d228f050ac765d688bc36ac1c672a75
7
- data.tar.gz: 9290522a14840247671d1c76228b0e515687b97713890e4b303fe10f128cf1e7c7d5b061775dd060534ad67e7e98143b398ae9ab5cba74289c25bab8c4adebfd
6
+ metadata.gz: 30858f8a309bf24795679caaae1f43558e5c4ecc8e356747c35745ecf6a680b18127183814f4cd0b0b8c4c96a6e8ba151b14fec506f56e806f184e037d98c5cc
7
+ data.tar.gz: 166bcc17f2e120a8e0cc6b2b95f42696e032c51bcbdfc73d86d0645feefc403a442ddd50f34972f6c1ac3d7a622bb33073e42bf11b2aa0bd52024f169910c707
data/README.md CHANGED
@@ -384,8 +384,6 @@ greeting = AppGreeting.new
384
384
  greeting.generate(context)
385
385
  ```
386
386
 
387
- __Note: The API may morph and change a bit as we try to figure out the best patterns for merging and combining grammars.__
388
-
389
387
  ### Accessing the Raw Generated Tree
390
388
 
391
389
  Calling `#evaluate` on the grammar instance will give you access to the raw generated tree structure before it gets flattened into a string.
@@ -403,8 +401,6 @@ grammar.evaluate
403
401
  # => [:start, [:choice, [:concat, [[:atom, "Riddle me ree."]]]]]
404
402
  ```
405
403
 
406
- __Note: This feature is still experimental. The tree structure is likely to change so it’s probably best not to rely on it for anything big at this stage.__
407
-
408
404
  ## Roadmap
409
405
 
410
406
  Rough plan for stabilising the API and features for a `1.0` release.
@@ -417,7 +413,6 @@ Rough plan for stabilising the API and features for a `1.0` release.
417
413
  | `0.9` | ~~return grammar tree from `#evaluate`, with flattened string from `#generate` being separate~~ |
418
414
  | `0.10` | ~~inject custom string functions for parameterised rules, transforms and mappings~~ |
419
415
  | `0.11` | ~~support YAML format (and JSON?)~~ |
420
- | `0.12` | indirection (allow output of a rule to be used as the name for another rule) |
421
416
  | `1.0` | ~~API documentation~~ |
422
417
 
423
418
  ## Credits
@@ -49,7 +49,7 @@ module Calyx
49
49
  # @param [Symbol] name
50
50
  # @block block with a single string argument returning a modified string.
51
51
  def filter(name, &block)
52
- registry.mapping(name, &block)
52
+ registry.filter(name, &block)
53
53
  end
54
54
 
55
55
  # DSL helper method for registering a new grammar rule.
@@ -1,3 +1,3 @@
1
1
  module Calyx
2
- VERSION = '0.11.2'.freeze
2
+ VERSION = '0.11.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rickerby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2016-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler