haml-sass-converters 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +9 -5
- data/VERSION +1 -1
- data/haml-sass-converters.gemspec +1 -1
- data/lib/converters.rb +10 -10
- metadata +2 -2
data/README
CHANGED
@@ -6,15 +6,19 @@
|
|
6
6
|
|
7
7
|
> rvm install jruby-1.5.6
|
8
8
|
> rvm use jruby
|
9
|
-
> rvm gemset haml-sass-converters create
|
10
|
-
> rvm use jruby@haml-sass-converters
|
11
9
|
|
12
|
-
We are not going to use this version of JRuby - RubyMine already has bundled version of it.
|
13
|
-
order to collect all required for this plugin gems.
|
10
|
+
We are not going to use this version of JRuby - RubyMine already has bundled version of it.
|
11
|
+
We need to install it in order to collect all required for this plugin gems.
|
14
12
|
|
15
|
-
2.
|
13
|
+
2. Create and use 'haml-sass-converters' gemset:
|
14
|
+
> rvm use jruby@haml-sass-converters --create
|
15
|
+
|
16
|
+
3. Install gem:
|
16
17
|
|
17
18
|
> gem i haml-sass-converters
|
19
|
+
|
20
|
+
4. Run install script in your project's root (or some other location) in order to copy script:
|
21
|
+
|
18
22
|
> cd <your-project-root>
|
19
23
|
> haml-sass-converters-install
|
20
24
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/converters.rb
CHANGED
@@ -1,15 +1,5 @@
|
|
1
1
|
include Java
|
2
2
|
|
3
|
-
require "haml"
|
4
|
-
require "haml/html"
|
5
|
-
require "sass/css"
|
6
|
-
|
7
|
-
require 'default_scripts_groups'
|
8
|
-
require 'editor_action_helper'
|
9
|
-
require 'action_group_helper'
|
10
|
-
|
11
|
-
load_required_gems
|
12
|
-
|
13
3
|
def load_required_gems
|
14
4
|
jruby_home = "#{ENV['HOME']}/.rvm/gems/jruby-1.5.6@haml-sass-converters"
|
15
5
|
|
@@ -23,6 +13,16 @@ def load_required_gems
|
|
23
13
|
$: << "#{jruby_home}/gems/ruby_parser-2.0.5/lib"
|
24
14
|
end
|
25
15
|
|
16
|
+
load_required_gems
|
17
|
+
|
18
|
+
require "haml"
|
19
|
+
require "haml/html"
|
20
|
+
require "sass/css"
|
21
|
+
|
22
|
+
require 'default_scripts_groups'
|
23
|
+
require 'editor_action_helper'
|
24
|
+
require 'action_group_helper'
|
25
|
+
|
26
26
|
class Converter
|
27
27
|
def self.convert_selection editor
|
28
28
|
if editor.has_selection?
|