sassconf 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sassconf +1 -10
- data/lib/sassconf/version.rb +1 -1
- data/lib/sassconf.rb +16 -14
- data/sassconf.gemspec +4 -5
- metadata +2 -19
- data/bin/setup +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf153028dada6297487586651cc3cb74de51832c
|
4
|
+
data.tar.gz: 2be7b8acb4c45162c3ded31ccebc7faeeadab2a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed70f8e6f74b964536e30cdb5d7850dfc0be20c37ffb8ef8706e30fb0fda7dc4ffe661a3eac92cce526eb1f4fe6d7edd4fa4e58cb4107a31cb53ae36a02febc2
|
7
|
+
data.tar.gz: 4d31ee6fdb870df34025e173d0d18e5d802474fa759950492f1c31d4857efe259aebe6954ea9d149a85333395382e5c82ad852722bd2b47c274b6ae35c482f58
|
data/bin/sassconf
CHANGED
@@ -1,14 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require 'bundler/setup'
|
4
3
|
require 'sassconf'
|
5
4
|
|
6
|
-
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require 'irb'
|
14
|
-
IRB.start
|
5
|
+
Sassconf::start
|
data/lib/sassconf/version.rb
CHANGED
data/lib/sassconf.rb
CHANGED
@@ -60,19 +60,21 @@ module Sassconf
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
63
|
+
def self.start
|
64
|
+
begin
|
65
|
+
option_args = Parser.parse(ARGV)
|
66
|
+
config_reader = ConfigReader.new
|
67
|
+
executor = SassExecutor.new(ARGV[0], ARGV[1])
|
68
|
+
|
69
|
+
config_reader.eval_rb_file(option_args.config_path, option_args.extern_args)
|
70
|
+
argument_string = executor.create_all_argument_strings(config_reader.variable_with_value_hash, config_reader.variable_hash)
|
71
|
+
executor.execute(argument_string)
|
72
|
+
|
73
|
+
rescue OptionParser::MissingArgument, OptionParser::InvalidOption, SyntaxError, ArgumentError => e
|
74
|
+
puts e.message
|
75
|
+
logger.error(e)
|
76
|
+
ensure
|
77
|
+
exit
|
78
|
+
end
|
77
79
|
end
|
78
80
|
end
|
data/sassconf.gemspec
CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'sassconf'
|
8
8
|
spec.version = Sassconf::VERSION
|
9
9
|
spec.platform = Gem::Platform::RUBY
|
10
|
-
spec.authors =
|
10
|
+
spec.authors = 'Marcel Schlegel'
|
11
11
|
spec.homepage = 'http://sassconf.schlegel11.de'
|
12
|
-
spec.email =
|
13
|
-
spec.licenses =
|
12
|
+
spec.email = 'develop@schlegel11.de'
|
13
|
+
spec.licenses = 'MIT'
|
14
14
|
|
15
15
|
spec.summary = %q{Adds configuration file to Sass converter.}
|
16
16
|
spec.description = %q{With the Sassconf command tool you can use a config file for defining your Sass options.
|
@@ -19,12 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.files = `git ls-files`.split("\n")
|
20
20
|
spec.test_files = `git ls-files -- {test}/*`.split("\n")
|
21
21
|
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
-
spec.require_paths =
|
22
|
+
spec.require_paths = 'lib'
|
23
23
|
|
24
24
|
spec.required_ruby_version = '>= 1.9.2'
|
25
25
|
spec.add_runtime_dependency 'sass', '>= 3.1.0'
|
26
26
|
|
27
|
-
spec.add_development_dependency 'bundler', '~> 1.9'
|
28
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
29
28
|
spec.add_development_dependency 'minitest', '>= 5.6.0'
|
30
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassconf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcel Schlegel
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.1.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.9'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.9'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,11 +55,9 @@ dependencies:
|
|
69
55
|
description: |-
|
70
56
|
With the Sassconf command tool you can use a config file for defining your Sass options.
|
71
57
|
If you liked the config file in any Compass environment then you'll like that one also because it's very similar.
|
72
|
-
email:
|
73
|
-
- develop@schlegel11.de
|
58
|
+
email: develop@schlegel11.de
|
74
59
|
executables:
|
75
60
|
- sassconf
|
76
|
-
- setup
|
77
61
|
extensions: []
|
78
62
|
extra_rdoc_files: []
|
79
63
|
files:
|
@@ -83,7 +67,6 @@ files:
|
|
83
67
|
- README.md
|
84
68
|
- Rakefile
|
85
69
|
- bin/sassconf
|
86
|
-
- bin/setup
|
87
70
|
- lib/sassconf.rb
|
88
71
|
- lib/sassconf/config_reader.rb
|
89
72
|
- lib/sassconf/core_extensions.rb
|