style-script 1.0.0 → 1.0.1
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.
- data/lib/style-script.rb +1 -1
- data/lib/style_script/command_line.rb +0 -10
- data/package.json +1 -1
- data/style-script.gemspec +1 -1
- metadata +3 -3
data/lib/style-script.rb
CHANGED
@@ -10,7 +10,7 @@ require "style_script/parse_error"
|
|
10
10
|
# Namespace for all StyleScript internal classes.
|
11
11
|
module StyleScript
|
12
12
|
|
13
|
-
VERSION = '1.0.
|
13
|
+
VERSION = '1.0.1' # Keep in sync with the gemspec.
|
14
14
|
|
15
15
|
# Compile a script (String or IO) to JavaScript.
|
16
16
|
def self.compile(script, options={})
|
@@ -161,12 +161,6 @@ Usage:
|
|
161
161
|
File.join(dir, filename)
|
162
162
|
end
|
163
163
|
|
164
|
-
# Install the StyleScript TextMate bundle to ~/Library.
|
165
|
-
def install_bundle
|
166
|
-
bundle_dir = File.expand_path('~/Library/Application Support/TextMate/Bundles/')
|
167
|
-
FileUtils.cp_r("#{ROOT}/extras/StyleScript.tmbundle", bundle_dir)
|
168
|
-
end
|
169
|
-
|
170
164
|
# Use OptionParser for all the options.
|
171
165
|
def parse_options
|
172
166
|
@options = {:runner => :node}
|
@@ -208,10 +202,6 @@ Usage:
|
|
208
202
|
opts.on_tail('--std', 'use STD instead of Node.js') do |n|
|
209
203
|
@options[:runner] = :std
|
210
204
|
end
|
211
|
-
opts.on_tail('--install-bundle', 'install the StyleScript TextMate bundle') do |i|
|
212
|
-
install_bundle
|
213
|
-
exit
|
214
|
-
end
|
215
205
|
opts.on_tail('--version', 'display StyleScript version') do
|
216
206
|
puts "StyleScript version #{StyleScript::VERSION}"
|
217
207
|
exit
|
data/package.json
CHANGED
data/style-script.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: style-script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Danilo Lekovic
|