rtlit 0.0.4 → 0.0.5

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.
@@ -39,9 +39,10 @@ module RTLit #nodoc
39
39
  end
40
40
  converted_css.gsub! place_holder, 'right'
41
41
 
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\@\%]+/
44
- quad_matches.each do |m|
42
+ quad_matches = converted_css.scan /(-?\d+(?:px|pt|em|%)+|@\w+)\s+(-?\d+(?:px|pt|em|%)+|@\w+)\s+(-?\d+(?:px|pt|em|%)+|@\w+)\s+(-?\d+(?:px|pt|em|%)+|@\w+)/
43
+ #quad_matches = converted_css.scan /[\-\d\w\@\%]+\s+[\-\d\w\@\%]+\s+[\-\d\w\@\%]+\s+[\-\d\w\@\%]+/
44
+ quad_matches.each do |ar|
45
+ m = ar.join(' ')
45
46
  t, r, b, l = m.split ' '
46
47
  converted_css.gsub! m, [t,l,b,r].join(' ')
47
48
  end
@@ -1,3 +1,3 @@
1
1
  module RTLit
2
- VERSION = "0.0.4" #nodoc
3
- end
2
+ VERSION = "0.0.5" #nodoc
3
+ end
@@ -12,6 +12,7 @@ body {
12
12
  float: right;
13
13
  text-align: right;
14
14
  margin: @mTop @mRight @mBottom 20px;
15
+ .box-shadow(inset 0 1px 0 @white);
15
16
  }
16
17
 
17
18
  .pos_left {
@@ -29,4 +30,9 @@ body {
29
30
  .nav {
30
31
  margin: 10px -5em 10% 8pt;
31
32
  padding: 3px -5em 3% 8pt;
33
+ }
34
+
35
+ .dropdown-toggle {
36
+ background-image: none;
37
+ .box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
32
38
  }
@@ -12,6 +12,7 @@ body {
12
12
  float: left;
13
13
  text-align: left;
14
14
  margin: @mTop 20px @mBottom @mRight;
15
+ .box-shadow(inset 0 1px 0 @white);
15
16
  }
16
17
 
17
18
  .pos_left {
@@ -29,4 +30,9 @@ body {
29
30
  .nav {
30
31
  margin: 10px 8pt 10% -5em;
31
32
  padding: 3px 8pt 3% -5em;
33
+ }
34
+
35
+ .dropdown-toggle {
36
+ background-image: none;
37
+ .box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
32
38
  }
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.4
4
+ version: 0.0.5
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-04-20 00:00:00.000000000 Z
12
+ date: 2012-05-03 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: 87611762475660034
53
+ hash: -1923974309227921176
54
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
@@ -59,15 +59,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  segments:
61
61
  - 0
62
- hash: 87611762475660034
62
+ hash: -1923974309227921176
63
63
  requirements: []
64
64
  rubyforge_project: rtlit
65
- rubygems_version: 1.8.17
65
+ rubygems_version: 1.8.24
66
66
  signing_key:
67
67
  specification_version: 3
68
68
  summary: CSS left-to-right to right-to-left converter
69
- test_files:
70
- - test/assets/ltr.css
71
- - test/assets/rtl.css
72
- - test/test_file_conversion.rb
73
- - test/test_ltr_to_rtl.rb
69
+ test_files: []