plate-lang 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60b1eef965deb6bad87abcdab08187ac7bd3ab22
4
- data.tar.gz: c44ebe8aab2e189cc5219c2c8c52db98c50355fb
3
+ metadata.gz: 767361b4883929be281eff1843941fcc0022f029
4
+ data.tar.gz: dc17fb291ee7cca087d139e9acfe55977a3f6fad
5
5
  SHA512:
6
- metadata.gz: c270324ca8359ec21ef0538d40eae1d63c4a7ae4c2fdb8a5b8b8731545c5c9e1134f9ba0503baea9d248917186710fec69823967f6b6046a4fb534e840749926
7
- data.tar.gz: fa130aef1350de44e036708661d9be5223250c20cf12ca71364d677b40c1bcd76cc7fcb0e00b5d0c2258e1b713e799bd9498e3856eb599eeb9f2ca5fdf7480cb
6
+ metadata.gz: aa64633e6166a8682110458a02b0c828747ef02e87092743f745fd2f1cc7a4e5e7e716e2fc68c0c145897e47dc2d070dc275177207eecb8976381990b7bc7c93
7
+ data.tar.gz: 95f0281a632bc65882b4b497620e169dba369fc067103fc7520110ed749396cdec13c17c6ea7b8cfb8081a9affbd8ce0f8a098f1bd88a0a576ec64640a697925
data/README.md CHANGED
@@ -35,7 +35,7 @@ $ bundle exec rake
35
35
  $ bundle exec rake TEST=test/lexer_test.rb
36
36
  ```
37
37
 
38
- ### Github Pages
38
+ ### GitHub Pages
39
39
 
40
40
  #### Examples
41
41
 
@@ -82,11 +82,16 @@ module Plate
82
82
  when 'blank'
83
83
  'target="_blank"'
84
84
  when /\Abtn/
85
- c = 'class="btn btn-default'
85
+ c = 'btn'
86
+
87
+ c << ' btn-primary' if value =~ /\-primary/
88
+ c << ' btn-default' if c == 'btn'
89
+
86
90
  c << ' btn-lg' if value =~ /\-lg/
87
91
  c << ' btn-sm' if value =~ /\-sm/
88
92
  c << ' btn-block' if value =~ /\-block/
89
- c + '"'
93
+
94
+ "class=\"#{c}\""
90
95
  when /spin(\-\d+\.*\d*)?/
91
96
  s = value.gsub(/spin\-?/, '')
92
97
  s = 1.5 if s.empty?
@@ -183,8 +188,10 @@ module Plate
183
188
  k + ' btn-default'
184
189
  when 'center'
185
190
  "text-#{k}"
186
- when /\A\d\z/
191
+ when /\A\d+\z/
187
192
  "col-sm-#{k}"
193
+ when /\Aoffset\-(\d+)\z/
194
+ "col-sm-offset-#{$1}"
188
195
  else
189
196
  k
190
197
  end
data/lib/plate/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plate
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plate-lang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tnantoka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-05 00:00:00.000000000 Z
11
+ date: 2015-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor