gem_liux1 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module GemLiux1
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.8"
3
3
  end
data/lib/gem_liux1.rb CHANGED
@@ -13,24 +13,16 @@
13
13
  # end
14
14
 
15
15
 
16
- # testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
17
- # begin
18
- # require 'compass'
19
- # Compass::Frameworks.register('testall', :stylesheets_directory => testall_stylesheets_path)
20
- # rescue LoadError
21
- # # compass not found, register on the Sass path via the environment.
22
- # if ENV.has_key?("SASSPATH")
23
- # ENV["SASSPATH"] = ENV["SASSPATH"] + File::PATH_SEPARATOR + testall_stylesheets_path
24
- # else
25
- # ENV["SASSPATH"] = testall_stylesheets_path
26
- # end
27
- # end
28
-
29
16
  testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
30
-
31
-
32
- if ENV.has_key?("SASSPATH")
33
- ENV["SASSPATH"] = ENV["SASSPATH"] + File::PATH_SEPARATOR + testall_stylesheets_path
34
- else
35
- ENV["SASSPATH"] = testall_stylesheets_path
17
+ begin
18
+ require 'compass'
19
+ Compass::Frameworks.register('testall', :stylesheets_directory => testall_stylesheets_path)
20
+ rescue LoadError
21
+ # compass not found, register on the Sass path via the environment.
22
+ if ENV.has_key?("SASSPATH")
23
+ ENV["SASSPATH"] = ENV["SASSPATH"] + File::PATH_SEPARATOR + testall_stylesheets_path
24
+ else
25
+ ENV["SASSPATH"] = testall_stylesheets_path
26
+ end
36
27
  end
28
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_liux1
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 8
10
+ version: 0.5.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - a
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2016-03-01 00:00:00 Z
18
+ date: 2016-03-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -48,8 +48,8 @@ dependencies:
48
48
  description: a
49
49
  email:
50
50
  - a@a.com
51
- executables:
52
- - gem_liux1-cli
51
+ executables: []
52
+
53
53
  extensions: []
54
54
 
55
55
  extra_rdoc_files: []
@@ -59,7 +59,6 @@ files:
59
59
  - lib/gem_liux1.rb
60
60
  - lib/gem_liux1/version.rb
61
61
  - stylesheets/_gem_liux1.scss
62
- - bin/gem_liux1-cli
63
62
  homepage: http://a.com
64
63
  licenses:
65
64
  - MIT
data/bin/gem_liux1-cli DELETED
@@ -1,43 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
- # require 'sass'
4
- # require 'gem_liux1'
5
- # require 'yaml'
6
- # require 'optparse'
7
-
8
- # OptionParser.new do |opts|
9
- # opts.banner = "Usage: gem_liux1-cli [options] file"
10
- # opts.on('-d', '--doing', 'init') do
11
- # require 'gem_liux1'
12
- # end
13
- # end.parse!(ARGV)
14
-
15
-
16
- require 'optparse'
17
-
18
- options = {}
19
- option_parser = OptionParser.new do |opts|
20
- # 这里是这个命令行工具的帮助信息
21
- opts.banner = 'here is help messages of the command line tool.'
22
-
23
- # Option 作为switch,不带argument,用于将 switch 设置成 true 或 false
24
- options[:switch] = false
25
- # 下面第一项是 Short option(没有可以直接在引号间留空),第二项是 Long option,第三项是对 Option 的描述
26
- opts.on('-s', '--switch', 'Set options as switch') do
27
- # 这个部分就是使用这个Option后执行的代码
28
- options[:switch] = true
29
- end
30
-
31
- # Option 作为 flag,带argument,用于将argument作为数值解析,比如"name"信息
32
- #下面的“value”就是用户使用时输入的argument
33
- opts.on('-n NAME', '--name Name', 'Pass-in single name') do |value|
34
- options[:name] = value
35
- end
36
-
37
- # Option 作为 flag,带一组用逗号分割的arguments,用于将arguments作为数组解析
38
- opts.on('-a A,B', '--array A,B', Array, 'List of arguments') do |value|
39
- options[:array] = value
40
- end
41
- end.parse!
42
-
43
- puts options.inspect