glimmer-dsl-css 0.2.0 → 1.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/CONTRIBUTING.md +60 -0
- data/README.md +9 -11
- data/VERSION +1 -1
- data/lib/glimmer-dsl-css.rb +21 -0
- data/lib/glimmer/css/rule.rb +21 -0
- data/lib/glimmer/css/style_sheet.rb +21 -0
- data/lib/glimmer/dsl/css/css_expression.rb +21 -0
- data/lib/glimmer/dsl/css/dsl.rb +21 -0
- data/lib/glimmer/dsl/css/dynamic_property_expression.rb +21 -0
- data/lib/glimmer/dsl/css/property_expression.rb +21 -0
- data/lib/glimmer/dsl/css/pv_expression.rb +21 -0
- data/lib/glimmer/dsl/css/rule_expression.rb +21 -0
- data/lib/glimmer/dsl/css/s_expression.rb +21 -0
- metadata +22 -19
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 47d410ef922ebc4fc67b1a228aa984951b79dea00a9aff1726e54cef1e1546af
         | 
| 4 | 
            +
              data.tar.gz: 9f93c1867cf9250916372f0fff2bb51ea3c2a47661b59bd09987b244606728d6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5412a1aad6d0565a02bf563a8384ec2d40eefdb636111ab4deb3aaed796126f230b2c60165a95958ce96f6be06ed76bddbd068e815a24cad5a8a7da2541417fe
         | 
| 7 | 
            +
              data.tar.gz: 250cbdbc9518f0a570ba45c70cb31de6c31112a99c6d49fd25aaf50cad09140d6fe12fed02604ef784c76df0f610480c9c265ffab6b02803749e939154c698be
         | 
    
        data/CHANGELOG.md
    ADDED
    
    
    
        data/CONTRIBUTING.md
    ADDED
    
    | @@ -0,0 +1,60 @@ | |
| 1 | 
            +
            # Contributing
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            ## Pre-requisites
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            - MacOS
         | 
| 6 | 
            +
            - Other pre-requisites mentioned in [README.md](https://github.com/AndyObtiva/glimmer/tree/master#pre-requisites)
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            ## Machine Setup
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            Follow these steps, running mentioned commands in the terminal:
         | 
| 11 | 
            +
            - Fork project repo
         | 
| 12 | 
            +
            - Ensure pre-requisites installed (installing JRuby via RVM on the Mac)
         | 
| 13 | 
            +
            - cd into project again to activate RVM glimmer gemset
         | 
| 14 | 
            +
            - gem install bundler
         | 
| 15 | 
            +
            - bundle
         | 
| 16 | 
            +
            - rake # runs specs (ensure they finish successfully)
         | 
| 17 | 
            +
            - Once done, open a pull request with master branch.
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            ### rspec
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            `rake` or `rake spec` runs all specs.
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            To run a specific spec file, run:
         | 
| 24 | 
            +
            ```
         | 
| 25 | 
            +
            rake SPEC=spec_file_path
         | 
| 26 | 
            +
            ```
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            To run a specific spec, run:
         | 
| 29 | 
            +
            ```
         | 
| 30 | 
            +
            rake SPEC=spec_file_path:line_number
         | 
| 31 | 
            +
            ```
         | 
| 32 | 
            +
             | 
| 33 | 
            +
            To display Glimmer debug information, add `GLIMMER_DEBUG=true`:
         | 
| 34 | 
            +
            ```
         | 
| 35 | 
            +
            rake SPEC=spec_file_path:line_number GLIMMER_DEBUG=true
         | 
| 36 | 
            +
            ```
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            Note: make sure not to use the keyboard or mouse while tests are running since they bring up UI elements behind the scenes (invisible). This avoids fudging them and causing false test failures. If you get obscure failures related to focus of widgets, they are most likely false negatives. Just rerun the specs without touching the keyboard or mouse and they would pass if they are not really broken.
         | 
| 39 | 
            +
             | 
| 40 | 
            +
            ### build
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            `rake build` builds the Glimmer gem under the `pkg` directory.
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            ### glimmer command
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            To run a glimmer sample, run local `bin/glimmer` command:
         | 
| 47 | 
            +
            ```
         | 
| 48 | 
            +
            bin/glimmer samples/hello_world.rb
         | 
| 49 | 
            +
            ```
         | 
| 50 | 
            +
             | 
| 51 | 
            +
            It will notify you that you are in development mode.
         | 
| 52 | 
            +
             | 
| 53 | 
            +
            ### girb command
         | 
| 54 | 
            +
             | 
| 55 | 
            +
            To experiment with glimmer syntax using `girb`, run local `bin/girb`:
         | 
| 56 | 
            +
            ```
         | 
| 57 | 
            +
            bin/girb
         | 
| 58 | 
            +
            ```
         | 
| 59 | 
            +
             | 
| 60 | 
            +
            It will notify you that you are in development mode.
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for CSS 0. | 
| 1 | 
            +
            # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for CSS 1.0.0
         | 
| 2 2 | 
             
            [](http://badge.fury.io/rb/glimmer-dsl-css)
         | 
| 3 3 | 
             
            [](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-css)
         | 
| 4 4 | 
             
            [](https://coveralls.io/github/AndyObtiva/glimmer-dsl-css?branch=master)
         | 
| @@ -7,7 +7,7 @@ | |
| 7 7 |  | 
| 8 8 | 
             
            [Glimmer](https://github.com/AndyObtiva/glimmer) DSL for CSS provides Ruby syntax for building CSS (Cascading Style Sheets).
         | 
| 9 9 |  | 
| 10 | 
            -
            Within the context of [Glimmer](https://github.com/AndyObtiva/glimmer) app development, Glimmer DSL for CSS is useful in providing CSS for the [SWT Browser widget](https://github.com/AndyObtiva/glimmer/tree/master#browser-widget).
         | 
| 10 | 
            +
            Within the context of [Glimmer](https://github.com/AndyObtiva/glimmer) app development, Glimmer DSL for CSS is useful in providing CSS for the [SWT Browser widget](https://github.com/AndyObtiva/glimmer-dsl-swt/tree/master#browser-widget).
         | 
| 11 11 |  | 
| 12 12 | 
             
            Other [Glimmer](https://github.com/AndyObtiva/glimmer) DSL gems:
         | 
| 13 13 | 
             
            - [glimmer-dsl-swt](https://github.com/AndyObtiva/glimmer-dsl-swt): Glimmer DSL for SWT (Desktop GUI)
         | 
| @@ -22,16 +22,14 @@ Please follow these instructions to make the `glimmer` command available on your | |
| 22 22 |  | 
| 23 23 | 
             
            Run this command to install directly:
         | 
| 24 24 | 
             
            ```
         | 
| 25 | 
            -
             | 
| 25 | 
            +
            gem install glimmer-dsl-css -v 1.0.0
         | 
| 26 26 | 
             
            ```
         | 
| 27 27 |  | 
| 28 | 
            -
            `jgem` is JRuby's version of `gem` command. 
         | 
| 29 | 
            -
            RVM allows running `gem` as an alias.
         | 
| 30 | 
            -
            Otherwise, you may also run `jruby -S gem install ...`
         | 
| 28 | 
            +
            Note: In case you are using JRuby, `jgem` is JRuby's version of the `gem` command. RVM allows running `gem` as an alias in JRuby. Otherwise, you may also run `jruby -S gem install ...`
         | 
| 31 29 |  | 
| 32 30 | 
             
            Add `require 'glimmer-dsl-css'` to your code.
         | 
| 33 31 |  | 
| 34 | 
            -
            When using with Glimmer DSL for SWT or Glimmer DSL for Opal, make sure it is added after `require glimmer-dsl-swt` and `require glimmer-dsl-opal` to give it a lower precedence than them when processed by the Glimmer DSL engine.
         | 
| 32 | 
            +
            When using with [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) or [Glimmer DSL for Opal](https://github.com/AndyObtiva/glimmer-dsl-opal), make sure it is added after `require glimmer-dsl-swt` and `require glimmer-dsl-opal` to give it a lower precedence than them when processed by the Glimmer DSL engine.
         | 
| 35 33 |  | 
| 36 34 | 
             
            That's it! Requiring the gem activates the Glimmer CSS DSL automatically.
         | 
| 37 35 |  | 
| @@ -39,7 +37,7 @@ That's it! Requiring the gem activates the Glimmer CSS DSL automatically. | |
| 39 37 |  | 
| 40 38 | 
             
            Add the following to `Gemfile` (after `glimmer-dsl-swt` and/or `glimmer-dsl-opal` if included too):
         | 
| 41 39 | 
             
            ```
         | 
| 42 | 
            -
            gem 'glimmer-dsl-css', '~> 0. | 
| 40 | 
            +
            gem 'glimmer-dsl-css', '~> 1.0.0'
         | 
| 43 41 | 
             
            ```
         | 
| 44 42 |  | 
| 45 43 | 
             
            And, then run:
         | 
| @@ -63,7 +61,7 @@ Once done, you may call `to_s` or `to_css` to get the formatted CSS output. | |
| 63 61 | 
             
            Selectors may be specified by `s` keyword or HTML element keyword directly (e.g. `body`)
         | 
| 64 62 | 
             
            Rule property values may be specified by `pv` keyword or underscored property name directly (e.g. `font_size`)
         | 
| 65 63 |  | 
| 66 | 
            -
            Example | 
| 64 | 
            +
            Example:
         | 
| 67 65 |  | 
| 68 66 | 
             
            ```ruby
         | 
| 69 67 | 
             
            @css = css {
         | 
| @@ -90,9 +88,9 @@ Learn more about how to use this DSL alongside other Glimmer DSLs: | |
| 90 88 |  | 
| 91 89 | 
             
            ### Issues
         | 
| 92 90 |  | 
| 93 | 
            -
            You may submit [issues](https://github.com/AndyObtiva/glimmer/issues) on [GitHub](https://github.com/AndyObtiva/glimmer/issues).
         | 
| 91 | 
            +
            You may submit [issues](https://github.com/AndyObtiva/glimmer-dsl-css/issues) on [GitHub](https://github.com/AndyObtiva/glimmer-dsl-css/issues).
         | 
| 94 92 |  | 
| 95 | 
            -
            [Click here to submit an issue.](https://github.com/AndyObtiva/glimmer/issues)
         | 
| 93 | 
            +
            [Click here to submit an issue.](https://github.com/AndyObtiva/glimmer-dsl-css/issues)
         | 
| 96 94 |  | 
| 97 95 | 
             
            ### Chat
         | 
| 98 96 |  | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0. | 
| 1 | 
            +
            1.0.0
         | 
    
        data/lib/glimmer-dsl-css.rb
    CHANGED
    
    | @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            $LOAD_PATH.unshift(File.expand_path('..', __FILE__))
         | 
| 2 23 |  | 
| 3 24 | 
             
            require 'facets/string/underscore'
         | 
    
        data/lib/glimmer/css/rule.rb
    CHANGED
    
    | @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            module Glimmer
         | 
| 2 23 | 
             
              module CSS
         | 
| 3 24 | 
             
                class Rule
         | 
| @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/css/rule'
         | 
| 2 23 |  | 
| 3 24 | 
             
            module Glimmer
         | 
| @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/dsl/static_expression'
         | 
| 2 23 | 
             
            require 'glimmer/dsl/top_level_expression'
         | 
| 3 24 | 
             
            require 'glimmer/dsl/parent_expression'
         | 
    
        data/lib/glimmer/dsl/css/dsl.rb
    CHANGED
    
    | @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/dsl/engine'
         | 
| 2 23 | 
             
            # Dir[File.expand_path('../*_expression.rb', __FILE__)].each {|f| require f} # cannot in Opal
         | 
| 3 24 | 
             
            require 'glimmer/dsl/css/rule_expression'
         | 
| @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/dsl/expression'
         | 
| 2 23 | 
             
            require 'glimmer/dsl/css/property_expression'
         | 
| 3 24 |  | 
| @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/dsl/expression'
         | 
| 2 23 | 
             
            require 'glimmer/css/rule'
         | 
| 3 24 |  | 
| @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/dsl/static_expression'
         | 
| 2 23 | 
             
            require 'glimmer/dsl/css/property_expression'
         | 
| 3 24 |  | 
| @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/dsl/expression'
         | 
| 2 23 | 
             
            require 'glimmer/dsl/parent_expression'
         | 
| 3 24 | 
             
            require 'glimmer/css/style_sheet'
         | 
| @@ -1,3 +1,24 @@ | |
| 1 | 
            +
            # Copyright (c) 2020 - Andy Maleh
         | 
| 2 | 
            +
            # 
         | 
| 3 | 
            +
            # Permission is hereby granted, free of charge, to any person obtaining
         | 
| 4 | 
            +
            # a copy of this software and associated documentation files (the
         | 
| 5 | 
            +
            # "Software"), to deal in the Software without restriction, including
         | 
| 6 | 
            +
            # without limitation the rights to use, copy, modify, merge, publish,
         | 
| 7 | 
            +
            # distribute, sublicense, and/or sell copies of the Software, and to
         | 
| 8 | 
            +
            # permit persons to whom the Software is furnished to do so, subject to
         | 
| 9 | 
            +
            # the following conditions:
         | 
| 10 | 
            +
            # 
         | 
| 11 | 
            +
            # The above copyright notice and this permission notice shall be
         | 
| 12 | 
            +
            # included in all copies or substantial portions of the Software.
         | 
| 13 | 
            +
            # 
         | 
| 14 | 
            +
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         | 
| 15 | 
            +
            # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         | 
| 16 | 
            +
            # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         | 
| 17 | 
            +
            # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         | 
| 18 | 
            +
            # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         | 
| 19 | 
            +
            # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         | 
| 20 | 
            +
            # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         | 
| 21 | 
            +
             | 
| 1 22 | 
             
            require 'glimmer/dsl/static_expression'
         | 
| 2 23 | 
             
            require 'glimmer/css/style_sheet'
         | 
| 3 24 | 
             
            require 'glimmer/css/rule'
         | 
    
        metadata
    CHANGED
    
    | @@ -1,42 +1,42 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: glimmer-dsl-css
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 1.0.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - AndyMaleh
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-09-18 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 | 
            +
              name: glimmer
         | 
| 14 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 15 16 | 
             
                requirements:
         | 
| 16 17 | 
             
                - - ">="
         | 
| 17 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 18 | 
            -
                    version: 0. | 
| 19 | 
            +
                    version: 1.0.0
         | 
| 19 20 | 
             
                - - "<"
         | 
| 20 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 21 22 | 
             
                    version: 2.0.0
         | 
| 22 | 
            -
              name: glimmer
         | 
| 23 23 | 
             
              type: :runtime
         | 
| 24 24 | 
             
              prerelease: false
         | 
| 25 25 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 26 26 | 
             
                requirements:
         | 
| 27 27 | 
             
                - - ">="
         | 
| 28 28 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version: 0. | 
| 29 | 
            +
                    version: 1.0.0
         | 
| 30 30 | 
             
                - - "<"
         | 
| 31 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 32 | 
             
                    version: 2.0.0
         | 
| 33 33 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 34 | 
            +
              name: rspec-mocks
         | 
| 34 35 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 35 36 | 
             
                requirements:
         | 
| 36 37 | 
             
                - - "~>"
         | 
| 37 38 | 
             
                  - !ruby/object:Gem::Version
         | 
| 38 39 | 
             
                    version: 3.5.0
         | 
| 39 | 
            -
              name: rspec-mocks
         | 
| 40 40 | 
             
              type: :development
         | 
| 41 41 | 
             
              prerelease: false
         | 
| 42 42 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -45,12 +45,12 @@ dependencies: | |
| 45 45 | 
             
                  - !ruby/object:Gem::Version
         | 
| 46 46 | 
             
                    version: 3.5.0
         | 
| 47 47 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 48 | 
            +
              name: rspec
         | 
| 48 49 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 49 50 | 
             
                requirements:
         | 
| 50 51 | 
             
                - - "~>"
         | 
| 51 52 | 
             
                  - !ruby/object:Gem::Version
         | 
| 52 53 | 
             
                    version: 3.5.0
         | 
| 53 | 
            -
              name: rspec
         | 
| 54 54 | 
             
              type: :development
         | 
| 55 55 | 
             
              prerelease: false
         | 
| 56 56 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -59,20 +59,21 @@ dependencies: | |
| 59 59 | 
             
                  - !ruby/object:Gem::Version
         | 
| 60 60 | 
             
                    version: 3.5.0
         | 
| 61 61 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 62 | 
            +
              name: puts_debuggerer
         | 
| 62 63 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 63 64 | 
             
                requirements:
         | 
| 64 | 
            -
                - - " | 
| 65 | 
            +
                - - ">="
         | 
| 65 66 | 
             
                  - !ruby/object:Gem::Version
         | 
| 66 | 
            -
                    version: 0 | 
| 67 | 
            -
              name: puts_debuggerer
         | 
| 67 | 
            +
                    version: '0'
         | 
| 68 68 | 
             
              type: :development
         | 
| 69 69 | 
             
              prerelease: false
         | 
| 70 70 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 71 71 | 
             
                requirements:
         | 
| 72 | 
            -
                - - " | 
| 72 | 
            +
                - - ">="
         | 
| 73 73 | 
             
                  - !ruby/object:Gem::Version
         | 
| 74 | 
            -
                    version: 0 | 
| 74 | 
            +
                    version: '0'
         | 
| 75 75 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 76 | 
            +
              name: rake
         | 
| 76 77 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 77 78 | 
             
                requirements:
         | 
| 78 79 | 
             
                - - ">="
         | 
| @@ -81,7 +82,6 @@ dependencies: | |
| 81 82 | 
             
                - - "<"
         | 
| 82 83 | 
             
                  - !ruby/object:Gem::Version
         | 
| 83 84 | 
             
                    version: 14.0.0
         | 
| 84 | 
            -
              name: rake
         | 
| 85 85 | 
             
              type: :development
         | 
| 86 86 | 
             
              prerelease: false
         | 
| 87 87 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -93,6 +93,7 @@ dependencies: | |
| 93 93 | 
             
                  - !ruby/object:Gem::Version
         | 
| 94 94 | 
             
                    version: 14.0.0
         | 
| 95 95 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 96 | 
            +
              name: jeweler
         | 
| 96 97 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 97 98 | 
             
                requirements:
         | 
| 98 99 | 
             
                - - ">="
         | 
| @@ -101,7 +102,6 @@ dependencies: | |
| 101 102 | 
             
                - - "<"
         | 
| 102 103 | 
             
                  - !ruby/object:Gem::Version
         | 
| 103 104 | 
             
                    version: 3.0.0
         | 
| 104 | 
            -
              name: jeweler
         | 
| 105 105 | 
             
              type: :development
         | 
| 106 106 | 
             
              prerelease: false
         | 
| 107 107 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -113,6 +113,7 @@ dependencies: | |
| 113 113 | 
             
                  - !ruby/object:Gem::Version
         | 
| 114 114 | 
             
                    version: 3.0.0
         | 
| 115 115 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 116 | 
            +
              name: rdoc
         | 
| 116 117 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 117 118 | 
             
                requirements:
         | 
| 118 119 | 
             
                - - ">="
         | 
| @@ -121,7 +122,6 @@ dependencies: | |
| 121 122 | 
             
                - - "<"
         | 
| 122 123 | 
             
                  - !ruby/object:Gem::Version
         | 
| 123 124 | 
             
                    version: 7.0.0
         | 
| 124 | 
            -
              name: rdoc
         | 
| 125 125 | 
             
              type: :development
         | 
| 126 126 | 
             
              prerelease: false
         | 
| 127 127 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -133,12 +133,12 @@ dependencies: | |
| 133 133 | 
             
                  - !ruby/object:Gem::Version
         | 
| 134 134 | 
             
                    version: 7.0.0
         | 
| 135 135 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 136 | 
            +
              name: coveralls
         | 
| 136 137 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 137 138 | 
             
                requirements:
         | 
| 138 139 | 
             
                - - '='
         | 
| 139 140 | 
             
                  - !ruby/object:Gem::Version
         | 
| 140 141 | 
             
                    version: 0.8.23
         | 
| 141 | 
            -
              name: coveralls
         | 
| 142 142 | 
             
              type: :development
         | 
| 143 143 | 
             
              prerelease: false
         | 
| 144 144 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -147,12 +147,12 @@ dependencies: | |
| 147 147 | 
             
                  - !ruby/object:Gem::Version
         | 
| 148 148 | 
             
                    version: 0.8.23
         | 
| 149 149 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 150 | 
            +
              name: simplecov
         | 
| 150 151 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 151 152 | 
             
                requirements:
         | 
| 152 153 | 
             
                - - "~>"
         | 
| 153 154 | 
             
                  - !ruby/object:Gem::Version
         | 
| 154 155 | 
             
                    version: 0.16.1
         | 
| 155 | 
            -
              name: simplecov
         | 
| 156 156 | 
             
              type: :development
         | 
| 157 157 | 
             
              prerelease: false
         | 
| 158 158 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -161,12 +161,12 @@ dependencies: | |
| 161 161 | 
             
                  - !ruby/object:Gem::Version
         | 
| 162 162 | 
             
                    version: 0.16.1
         | 
| 163 163 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 164 | 
            +
              name: simplecov-lcov
         | 
| 164 165 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 165 166 | 
             
                requirements:
         | 
| 166 167 | 
             
                - - "~>"
         | 
| 167 168 | 
             
                  - !ruby/object:Gem::Version
         | 
| 168 169 | 
             
                    version: 0.7.0
         | 
| 169 | 
            -
              name: simplecov-lcov
         | 
| 170 170 | 
             
              type: :development
         | 
| 171 171 | 
             
              prerelease: false
         | 
| 172 172 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -179,9 +179,12 @@ email: andy.am@gmail.com | |
| 179 179 | 
             
            executables: []
         | 
| 180 180 | 
             
            extensions: []
         | 
| 181 181 | 
             
            extra_rdoc_files:
         | 
| 182 | 
            +
            - CHANGELOG.md
         | 
| 182 183 | 
             
            - LICENSE.txt
         | 
| 183 184 | 
             
            - README.md
         | 
| 184 185 | 
             
            files:
         | 
| 186 | 
            +
            - CHANGELOG.md
         | 
| 187 | 
            +
            - CONTRIBUTING.md
         | 
| 185 188 | 
             
            - LICENSE.txt
         | 
| 186 189 | 
             
            - README.md
         | 
| 187 190 | 
             
            - VERSION
         | 
| @@ -214,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 214 217 | 
             
                - !ruby/object:Gem::Version
         | 
| 215 218 | 
             
                  version: '0'
         | 
| 216 219 | 
             
            requirements: []
         | 
| 217 | 
            -
            rubygems_version: 3. | 
| 220 | 
            +
            rubygems_version: 3.1.2
         | 
| 218 221 | 
             
            signing_key:
         | 
| 219 222 | 
             
            specification_version: 4
         | 
| 220 223 | 
             
            summary: Glimmer DSL for CSS
         |