l_system 0.1.1 → 0.2.0.pre.20200226141113
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 +4 -4
- data/History.md +1 -9
- data/README.md +4 -10
- data/lib/{l_system.rb → lsystem.rb} +5 -5
- data/lib/{l_system → lsystem}/production_adapter.rb +3 -3
- data/lib/{l_system → lsystem}/rules_engine.rb +3 -3
- data/spec/{l_system → lsystem}/production_adapter_spec.rb +1 -1
- data/spec/{l_system → lsystem}/rules_engine_spec.rb +1 -1
- data/spec/{l_system_spec.rb → lsystem_spec.rb} +1 -1
- metadata +33 -35
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -1
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: d27a5cc326fd3f00846c25eb80e139c6c43c863d7901b96ec4ab07d718d9a64e
         | 
| 4 | 
            +
              data.tar.gz: 756406b13db572a1ec97d699e296e3c0af85bb94754eeac346e75f93aa00dad7
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3a87646bde7d1008f29731dc4fed5ea12f4712d01ed44441c203338e310f4262e9cae9f7bde9df03cf66b8e1a054d2b44240905cf4a1e37403e89963a14fe78d
         | 
| 7 | 
            +
              data.tar.gz: 8197a2112d3a149a203eb5bd15ecaaf31518f6946d52379025d43ac2c164d6829ae7f286c68c9f0e9c44f39562681d692985acf7c4db12f85cf5e686cafb30bf
         | 
    
        data/History.md
    CHANGED
    
    | @@ -1,15 +1,7 @@ | |
| 1 | 
            -
            # Release History for  | 
| 1 | 
            +
            # Release History for lsystem
         | 
| 2 2 |  | 
| 3 3 | 
             
            ---
         | 
| 4 4 |  | 
| 5 | 
            -
            ## v0.1.1 [2020-02-26] Michael Granger <ged@faeriemud.org>
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            Improvements:
         | 
| 8 | 
            -
             | 
| 9 | 
            -
            - Mention kaki-lsystem in the README
         | 
| 10 | 
            -
            - Bump the dependency on rake-deveiate to build a better gem
         | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 13 5 | 
             
            ## v0.1.0 [2020-02-26] Michael Granger <ged@faeriemud.org>
         | 
| 14 6 |  | 
| 15 7 | 
             
            Initial release.
         | 
    
        data/README.md
    CHANGED
    
    | @@ -7,10 +7,10 @@ code | |
| 7 7 | 
             
            : https://hg.sr.ht/~ged/LSystem
         | 
| 8 8 |  | 
| 9 9 | 
             
            github
         | 
| 10 | 
            -
            : https://github.com/ged/ | 
| 10 | 
            +
            : https://github.com/ged/lsystem
         | 
| 11 11 |  | 
| 12 12 | 
             
            docs
         | 
| 13 | 
            -
            : https://deveiate.org/code/ | 
| 13 | 
            +
            : https://deveiate.org/code/lsystem
         | 
| 14 14 |  | 
| 15 15 |  | 
| 16 16 | 
             
            ## Description
         | 
| @@ -20,11 +20,6 @@ It consists of a class that allows for declaration of the L-system's grammar, | |
| 20 20 | 
             
            and another class that allows for the definition of how the symbols output by a
         | 
| 21 21 | 
             
            grammar should be translated into work.
         | 
| 22 22 |  | 
| 23 | 
            -
            **Note** if you just want to draw with it, you should consider using
         | 
| 24 | 
            -
            [kaki-lsystem][] instead; it has a nice interface with drawing already
         | 
| 25 | 
            -
            integrated. This gem is intended for using l-systems for things other than
         | 
| 26 | 
            -
            drawing (though it can obviously do that too), so it requires a bit more work.
         | 
| 27 | 
            -
             | 
| 28 23 |  | 
| 29 24 | 
             
            ### Examples
         | 
| 30 25 |  | 
| @@ -181,14 +176,14 @@ This generates a sequence of images, which for generation 8 yields: | |
| 181 176 |  | 
| 182 177 | 
             
            ## Installation
         | 
| 183 178 |  | 
| 184 | 
            -
                $ gem install  | 
| 179 | 
            +
                $ gem install lsystem
         | 
| 185 180 |  | 
| 186 181 |  | 
| 187 182 | 
             
            ## Contributing
         | 
| 188 183 |  | 
| 189 184 | 
             
            You can check out the current development source with Mercurial via its
         | 
| 190 185 | 
             
            [project page](https://hg.sr.ht/~ged/LSystem). Or if you prefer Git, via
         | 
| 191 | 
            -
            [its Github mirror](https://github.com/ged/ | 
| 186 | 
            +
            [its Github mirror](https://github.com/ged/lsystem).
         | 
| 192 187 |  | 
| 193 188 | 
             
            After checking out the source, run:
         | 
| 194 189 |  | 
| @@ -234,5 +229,4 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 234 229 |  | 
| 235 230 |  | 
| 236 231 | 
             
            [l-system]: https://en.wikipedia.org/wiki/L-system
         | 
| 237 | 
            -
            [kaki-lsystem]: https://rubygems.org/gems/kaki-lsystem
         | 
| 238 232 |  | 
| @@ -9,18 +9,18 @@ module LSystem | |
| 9 9 | 
             
            	extend Loggability
         | 
| 10 10 |  | 
| 11 11 | 
             
            	# Package version
         | 
| 12 | 
            -
            	VERSION = '0.1. | 
| 12 | 
            +
            	VERSION = '0.1.0'
         | 
| 13 13 |  | 
| 14 14 | 
             
            	# Version control revision
         | 
| 15 15 | 
             
            	REVISION = %q$Revision$
         | 
| 16 16 |  | 
| 17 17 |  | 
| 18 | 
            -
            	# Loggability API -- set up a logger for  | 
| 19 | 
            -
            	log_as : | 
| 18 | 
            +
            	# Loggability API -- set up a logger for lsystem
         | 
| 19 | 
            +
            	log_as :lsystem
         | 
| 20 20 |  | 
| 21 21 |  | 
| 22 | 
            -
            	autoload :RulesEngine, ' | 
| 23 | 
            -
            	autoload :ProductionAdapter, ' | 
| 22 | 
            +
            	autoload :RulesEngine, 'lsystem/rules_engine'
         | 
| 23 | 
            +
            	autoload :ProductionAdapter, 'lsystem/production_adapter'
         | 
| 24 24 |  | 
| 25 25 |  | 
| 26 26 | 
             
            	### Declare a new L-System that is configured via the given +block+.
         | 
| @@ -3,7 +3,7 @@ | |
| 3 3 |  | 
| 4 4 | 
             
            require 'loggability'
         | 
| 5 5 |  | 
| 6 | 
            -
            require ' | 
| 6 | 
            +
            require 'lsystem' unless defined?( LSystem )
         | 
| 7 7 |  | 
| 8 8 |  | 
| 9 9 | 
             
            # An adapter that connects method calls to an LSystem::RulesEngine's
         | 
| @@ -12,8 +12,8 @@ class LSystem::ProductionAdapter | |
| 12 12 | 
             
            	extend Loggability
         | 
| 13 13 |  | 
| 14 14 |  | 
| 15 | 
            -
            	# Loggability API -- log to the  | 
| 16 | 
            -
            	log_to : | 
| 15 | 
            +
            	# Loggability API -- log to the lsystem logger
         | 
| 16 | 
            +
            	log_to :lsystem
         | 
| 17 17 |  | 
| 18 18 |  | 
| 19 19 | 
             
            	### Inheritance callback -- add class-instance variables to the +subclass+.
         | 
| @@ -4,7 +4,7 @@ | |
| 4 4 | 
             
            require 'set'
         | 
| 5 5 | 
             
            require 'loggability'
         | 
| 6 6 |  | 
| 7 | 
            -
            require ' | 
| 7 | 
            +
            require 'lsystem' unless defined?( LSystem )
         | 
| 8 8 |  | 
| 9 9 |  | 
| 10 10 | 
             
            # An engine for iterating over successive applications of the L-System's
         | 
| @@ -13,8 +13,8 @@ class LSystem::RulesEngine | |
| 13 13 | 
             
            	extend Loggability
         | 
| 14 14 |  | 
| 15 15 |  | 
| 16 | 
            -
            	# Loggability API -- log to the  | 
| 17 | 
            -
            	log_to : | 
| 16 | 
            +
            	# Loggability API -- log to the lsystem logger
         | 
| 17 | 
            +
            	log_to :lsystem
         | 
| 18 18 |  | 
| 19 19 |  | 
| 20 20 | 
             
            	### Create a new rules engine for an L-System. If the +block+ is present,
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: l_system
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.2.0.pre.20200226141113
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Michael Granger
         | 
| @@ -10,9 +10,9 @@ bindir: bin | |
| 10 10 | 
             
            cert_chain:
         | 
| 11 11 | 
             
            - |
         | 
| 12 12 | 
             
              -----BEGIN CERTIFICATE-----
         | 
| 13 | 
            -
               | 
| 14 | 
            -
               | 
| 15 | 
            -
               | 
| 13 | 
            +
              MIID+DCCAmCgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdnZWQv
         | 
| 14 | 
            +
              REM9RmFlcmllTVVEL0RDPW9yZzAeFw0xOTEyMjQyMDE5NTFaFw0yMDEyMjMyMDE5
         | 
| 15 | 
            +
              NTFaMCIxIDAeBgNVBAMMF2dlZC9EQz1GYWVyaWVNVUQvREM9b3JnMIIBojANBgkq
         | 
| 16 16 | 
             
              hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAvyVhkRzvlEs0fe7145BYLfN6njX9ih5H
         | 
| 17 17 | 
             
              L60U0p0euIurpv84op9CNKF9tx+1WKwyQvQP7qFGuZxkSUuWcP/sFhDXL1lWUuIl
         | 
| 18 18 | 
             
              M4uHbGCRmOshDrF4dgnBeOvkHr1fIhPlJm5FO+Vew8tSQmlDsosxLUx+VB7DrVFO
         | 
| @@ -21,18 +21,17 @@ cert_chain: | |
| 21 21 | 
             
              vQ66lts4alKC69TE5cuKasWBm+16A4aEe3XdZBRNmtOu/g81gvwA7fkJHKllJuaI
         | 
| 22 22 | 
             
              dXzdHqq+zbGZVSQ7pRYHYomD0IiDe1DbIouFnPWmagaBnGHwXkDT2bKKP+s2v21m
         | 
| 23 23 | 
             
              ozilJg4aar2okb/RA6VS87o+d7g6LpDDMMQjH4G9OPnJENLdhu8KnPw/ivSVvQw7
         | 
| 24 | 
            -
              N2I4L/ZOIe2DIVuYH7aLHfjZDQv/ | 
| 25 | 
            -
               | 
| 26 | 
            -
               | 
| 27 | 
            -
               | 
| 28 | 
            -
               | 
| 29 | 
            -
               | 
| 30 | 
            -
               | 
| 31 | 
            -
               | 
| 32 | 
            -
               | 
| 33 | 
            -
               | 
| 34 | 
            -
               | 
| 35 | 
            -
              XrxOxp8o0uOkU7FdLSGsyqJ2LzsR4obN
         | 
| 24 | 
            +
              N2I4L/ZOIe2DIVuYH7aLHfjZDQv/mNgpAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYD
         | 
| 25 | 
            +
              VR0PBAQDAgSwMB0GA1UdDgQWBBRyjf55EbrHagiRLqt5YAd3yb8k4DANBgkqhkiG
         | 
| 26 | 
            +
              9w0BAQsFAAOCAYEAifxlz7x0EfT3fjhM520ZEIrWa+tLMuLKNefkY18u8tZnx4EX
         | 
| 27 | 
            +
              Xxwh3tna3fvNfrOrdY5leIj1dbv4FTRg+gIBnIxAySqvpGvI/Axg5EdYbwninCLL
         | 
| 28 | 
            +
              LAKCmRo+5QwaPMYN2zdHIjGrp8jg1neCo5zy6tVvyTv0DMI6FLrydVJYduMMDFSy
         | 
| 29 | 
            +
              gQKR1rVOcCJtnBnLCF9+kKEUKohAHOmGsE7OBZFnjMIpH5yUDUVJKByv0gIipFt0
         | 
| 30 | 
            +
              1T6zff6oVU0w8WBiNKR381+6sF3wIZVnVY0XeJg6hNL+YecE8ILxLhHTmtT/BO0S
         | 
| 31 | 
            +
              3xPze9uXDR+iD6HYl8KU5QEg/dXFPhfQb512vVkTJDZvMcwu6PxDUjHFChLjAji/
         | 
| 32 | 
            +
              AZXjg1C5E9znTkeUR8ieU9F1MOKoiH57a5lYSTI8Ga8PpsNXTxNeXc16Ob26CqrJ
         | 
| 33 | 
            +
              83uuAYSy65yXDGXXPVBeKPVnYrqp91pqpS5Nh7wfuiCrE8lgU8PATh7K4BV1UhAT
         | 
| 34 | 
            +
              0MHbAT42wTYkfUj3
         | 
| 36 35 | 
             
              -----END CERTIFICATE-----
         | 
| 37 36 | 
             
            date: 2020-02-26 00:00:00.000000000 Z
         | 
| 38 37 | 
             
            dependencies:
         | 
| @@ -70,16 +69,19 @@ dependencies: | |
| 70 69 | 
             
                requirements:
         | 
| 71 70 | 
             
                - - "~>"
         | 
| 72 71 | 
             
                  - !ruby/object:Gem::Version
         | 
| 73 | 
            -
                    version: '0. | 
| 72 | 
            +
                    version: '0.10'
         | 
| 74 73 | 
             
              type: :development
         | 
| 75 74 | 
             
              prerelease: false
         | 
| 76 75 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 77 76 | 
             
                requirements:
         | 
| 78 77 | 
             
                - - "~>"
         | 
| 79 78 | 
             
                  - !ruby/object:Gem::Version
         | 
| 80 | 
            -
                    version: '0. | 
| 81 | 
            -
            description:  | 
| 82 | 
            -
               | 
| 79 | 
            +
                    version: '0.10'
         | 
| 80 | 
            +
            description: |-
         | 
| 81 | 
            +
              A toolkit for creating and using {Lindenmayer Systems}[https://en.wikipedia.org/wiki/L-system] (L-systems).
         | 
| 82 | 
            +
              It consists of a class that allows for declaration of the L-system's grammar,
         | 
| 83 | 
            +
              and another class that allows for the definition of how the symbols output by a
         | 
| 84 | 
            +
              grammar should be translated into work.
         | 
| 83 85 | 
             
            email:
         | 
| 84 86 | 
             
            - ged@faeriemud.org
         | 
| 85 87 | 
             
            executables: []
         | 
| @@ -91,22 +93,17 @@ files: | |
| 91 93 | 
             
            - README.md
         | 
| 92 94 | 
             
            - Rakefile
         | 
| 93 95 | 
             
            - examples/fern_gn7.png
         | 
| 94 | 
            -
            - lib/ | 
| 95 | 
            -
            - lib/ | 
| 96 | 
            -
            - lib/ | 
| 97 | 
            -
            - spec/ | 
| 98 | 
            -
            - spec/ | 
| 99 | 
            -
            - spec/ | 
| 96 | 
            +
            - lib/lsystem.rb
         | 
| 97 | 
            +
            - lib/lsystem/production_adapter.rb
         | 
| 98 | 
            +
            - lib/lsystem/rules_engine.rb
         | 
| 99 | 
            +
            - spec/lsystem/production_adapter_spec.rb
         | 
| 100 | 
            +
            - spec/lsystem/rules_engine_spec.rb
         | 
| 101 | 
            +
            - spec/lsystem_spec.rb
         | 
| 100 102 | 
             
            - spec/spec_helper.rb
         | 
| 101 103 | 
             
            homepage: https://hg.sr.ht/~ged/LSystem
         | 
| 102 104 | 
             
            licenses:
         | 
| 103 105 | 
             
            - BSD-3-Clause
         | 
| 104 | 
            -
            metadata:
         | 
| 105 | 
            -
              homepage_uri: https://hg.sr.ht/~ged/LSystem
         | 
| 106 | 
            -
              documentation_uri: https://deveiate.org/code/l_system
         | 
| 107 | 
            -
              changelog_uri: https://deveiate.org/code/l_system/History_md.html
         | 
| 108 | 
            -
              source_uri: https://hg.sr.ht/~ged/LSystem
         | 
| 109 | 
            -
              bug_tracker_uri: https://todo.sr.ht/~ged/LSystem
         | 
| 106 | 
            +
            metadata: {}
         | 
| 110 107 | 
             
            post_install_message: 
         | 
| 111 108 | 
             
            rdoc_options: []
         | 
| 112 109 | 
             
            require_paths:
         | 
| @@ -118,12 +115,13 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 118 115 | 
             
                  version: '0'
         | 
| 119 116 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 120 117 | 
             
              requirements:
         | 
| 121 | 
            -
              - - " | 
| 118 | 
            +
              - - ">"
         | 
| 122 119 | 
             
                - !ruby/object:Gem::Version
         | 
| 123 | 
            -
                  version:  | 
| 120 | 
            +
                  version: 1.3.1
         | 
| 124 121 | 
             
            requirements: []
         | 
| 125 122 | 
             
            rubygems_version: 3.1.2
         | 
| 126 123 | 
             
            signing_key: 
         | 
| 127 124 | 
             
            specification_version: 4
         | 
| 128 | 
            -
            summary: A toolkit for creating and using Lindenmayer Systems | 
| 125 | 
            +
            summary: A toolkit for creating and using {Lindenmayer Systems}[https://en.wikipedia.org/wiki/L-system]
         | 
| 126 | 
            +
              (L-systems).
         | 
| 129 127 | 
             
            test_files: []
         | 
    
        checksums.yaml.gz.sig
    DELETED
    
    | Binary file | 
    
        data.tar.gz.sig
    DELETED
    
    | @@ -1 +0,0 @@ | |
| 1 | 
            -
            ����ut���Qj����qI�f75�5��a����9$�Q��@���1Zq���.�m�c��X'��u��N�M�^~�?]�3��
         | 
    
        metadata.gz.sig
    DELETED
    
    | Binary file |