rtlit 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/rtlit CHANGED
File without changes
@@ -39,7 +39,8 @@ module RTLit #nodoc
39
39
  end
40
40
  converted_css.gsub! place_holder, 'right'
41
41
 
42
- quad_matches = converted_css.scan /\d+[\w%]+\s\d+[\w%]+\s\d+[\w%]+\s\d+[\w%]+/
42
+ #quad_matches = converted_css.scan /-?\d+(?:px|pt|em|%)+|@\w+\s+-?\d+(?:px|pt|em|%)+\s+-?\d+(?:px|pt|em|%)+\s+-?\d+(?:px|pt|em|%)+/
43
+ quad_matches = converted_css.scan /[\-\d\w\@\%]+\s+[\-\d\w\@\%]+\s+[\-\d\w\@\%]+\s+[\-\d\w\@\%]+/
43
44
  quad_matches.each do |m|
44
45
  t, r, b, l = m.split ' '
45
46
  converted_css.gsub! m, [t,l,b,r].join(' ')
@@ -1,3 +1,3 @@
1
1
  module RTLit
2
- VERSION = "0.0.3" #nodoc
2
+ VERSION = "0.0.4" #nodoc
3
3
  end
@@ -11,6 +11,7 @@ body {
11
11
  .right {
12
12
  float: right;
13
13
  text-align: right;
14
+ margin: @mTop @mRight @mBottom 20px;
14
15
  }
15
16
 
16
17
  .pos_left {
@@ -26,6 +27,6 @@ body {
26
27
  }
27
28
 
28
29
  .nav {
29
- margin: 10px 5px 10px 8px;
30
- padding: 3px 5px 3px 8px;
30
+ margin: 10px -5em 10% 8pt;
31
+ padding: 3px -5em 3% 8pt;
31
32
  }
@@ -11,6 +11,7 @@ body {
11
11
  .right {
12
12
  float: left;
13
13
  text-align: left;
14
+ margin: @mTop 20px @mBottom @mRight;
14
15
  }
15
16
 
16
17
  .pos_left {
@@ -26,6 +27,6 @@ body {
26
27
  }
27
28
 
28
29
  .nav {
29
- margin: 10px 8px 10px 5px;
30
- padding: 3px 8px 3px 5px;
30
+ margin: 10px 8pt 10% -5em;
31
+ padding: 3px 8pt 3% -5em;
31
32
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
12
+ date: 2012-04-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Converts CSS files from left-to-right to right-to-left
15
15
  email:
@@ -50,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
50
  version: '0'
51
51
  segments:
52
52
  - 0
53
- hash: -4536212592836592277
53
+ hash: 87611762475660034
54
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  segments:
61
61
  - 0
62
- hash: -4536212592836592277
62
+ hash: 87611762475660034
63
63
  requirements: []
64
64
  rubyforge_project: rtlit
65
65
  rubygems_version: 1.8.17