glimmer-dsl-css 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/VERSION +1 -1
  4. data/glimmer-dsl-css.gemspec +6 -6
  5. metadata +5 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f32c9be69c9bd6c6b0c3488039b7c33622116a678c83fc4237e09e9ad47ecb58
4
- data.tar.gz: 4d0f2cd20601ff2c5af543aba2139c21027d82c3a30aabfafc6ff2ac1eaa82c4
3
+ metadata.gz: 48c8d9affb0028ac7661ac5ee3fa830afb18d1921c74759b0ac39cdef4aebcd7
4
+ data.tar.gz: 40003767ea13162ecef0b824a76aae75b8667462bab74350337c53c82e677ac6
5
5
  SHA512:
6
- metadata.gz: cccc83e762491fcd174270ddad8a3e58a492fa0d4d17f27df8080a2b5e4dfbaa0267eb2da2c328376baa2c37440cf295e347b80d619326d761d7f4d37cbd0ddb
7
- data.tar.gz: 0a4f8a395bfea69e057c35ebebff3402d601536772ba406fbebccffecaf1b07d5af7ac748695f968df0db037ee926d3952654fbb9880660af9952e5523f25e43
6
+ metadata.gz: 630f7e55e879111b126f6a8f1497869021b1178525c62662cd8124e453638a53db05cf78ced2fdedce364471459b5457c53b144f0e7d4c6cddae64c0217776d7
7
+ data.tar.gz: 404f149515a7885569cf6a05664ce7cd246f67eafce1adfd8eee80ea7ddca64c5252e77097f020cd4bcd49236055e5d469cc77ff4ffa5e5aa2133c81a6bdcf5d
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 1.1.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.2.0
2
2
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-css.svg)](http://badge.fury.io/rb/glimmer-dsl-css)
3
3
  [![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-css.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-css)
4
4
  [![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/glimmer-dsl-css/badge.svg?branch=master)](https://coveralls.io/github/AndyObtiva/glimmer-dsl-css?branch=master)
@@ -25,7 +25,7 @@ Please follow these instructions to make the `glimmer` command available on your
25
25
 
26
26
  Run this command to install directly:
27
27
  ```
28
- gem install glimmer-dsl-css -v 1.1.0
28
+ gem install glimmer-dsl-css -v 1.2.0
29
29
  ```
30
30
 
31
31
  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 ...`
@@ -40,7 +40,7 @@ That's it! Requiring the gem activates the Glimmer CSS DSL automatically.
40
40
 
41
41
  Add the following to `Gemfile` (after `glimmer-dsl-swt` and/or `glimmer-dsl-opal` if included too):
42
42
  ```
43
- gem 'glimmer-dsl-css', '~> 1.1.0'
43
+ gem 'glimmer-dsl-css', '~> 1.2.0'
44
44
  ```
45
45
 
46
46
  And, then run:
@@ -58,6 +58,8 @@ That's it! Requiring the gem activates the Glimmer CSS DSL automatically.
58
58
 
59
59
  ## CSS DSL
60
60
 
61
+ The key reason for using the CSS DSL instead of actual CSS is Ruby programmability without getting lost in string concatenations. The CSS DSL helps in including conditional CSS as well as looping from lists while building CSS.
62
+
61
63
  Simply start with `css` keyword and add stylesheet rule sets inside its block using Glimmer DSL syntax.
62
64
  Once done, you may call `to_s` or `to_css` to get the formatted CSS output.
63
65
 
@@ -75,7 +77,7 @@ include Glimmer
75
77
  body {
76
78
  font_size '1.1em'
77
79
  pv 'background', 'white'
78
- }
80
+ }
79
81
  s('body > h1') {
80
82
  background_color :red
81
83
  pv 'font-size', 24
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: glimmer-dsl-css 1.1.0 ruby lib
5
+ # stub: glimmer-dsl-css 1.2.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glimmer-dsl-css".freeze
9
- s.version = "1.1.0"
9
+ s.version = "1.2.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["AndyMaleh".freeze]
14
- s.date = "2020-10-04"
14
+ s.date = "2021-07-08"
15
15
  s.description = "Glimmer DSL for CSS (Cascading Style Sheets)".freeze
16
16
  s.email = "andy.am@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  ]
40
40
  s.homepage = "http://github.com/AndyObtiva/glimmer-dsl-css".freeze
41
41
  s.licenses = ["MIT".freeze]
42
- s.rubygems_version = "3.1.4".freeze
42
+ s.rubygems_version = "3.2.22".freeze
43
43
  s.summary = "Glimmer DSL for CSS".freeze
44
44
 
45
45
  if s.respond_to? :specification_version then
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
47
47
  end
48
48
 
49
49
  if s.respond_to? :add_runtime_dependency then
50
- s.add_runtime_dependency(%q<glimmer>.freeze, [">= 1.0.1", "< 2.0.0"])
50
+ s.add_runtime_dependency(%q<glimmer>.freeze, ["~> 2.0.0"])
51
51
  s.add_development_dependency(%q<rspec-mocks>.freeze, ["~> 3.5.0"])
52
52
  s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
53
53
  s.add_development_dependency(%q<puts_debuggerer>.freeze, [">= 0"])
@@ -58,7 +58,7 @@ Gem::Specification.new do |s|
58
58
  s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.16.1"])
59
59
  s.add_development_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
60
60
  else
61
- s.add_dependency(%q<glimmer>.freeze, [">= 1.0.1", "< 2.0.0"])
61
+ s.add_dependency(%q<glimmer>.freeze, ["~> 2.0.0"])
62
62
  s.add_dependency(%q<rspec-mocks>.freeze, ["~> 3.5.0"])
63
63
  s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
64
64
  s.add_dependency(%q<puts_debuggerer>.freeze, [">= 0"])
metadata CHANGED
@@ -1,33 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-css
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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-10-04 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 1.0.1
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: 2.0.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 1.0.1
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
26
  version: 2.0.0
33
27
  - !ruby/object:Gem::Dependency
@@ -218,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
212
  - !ruby/object:Gem::Version
219
213
  version: '0'
220
214
  requirements: []
221
- rubygems_version: 3.1.4
215
+ rubygems_version: 3.2.22
222
216
  signing_key:
223
217
  specification_version: 4
224
218
  summary: Glimmer DSL for CSS