sassconf 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83746868ef20d117a1dc63acc5ee6741f111c02b
4
- data.tar.gz: fcf77de7eac8c4eb56c1571aeaf5c9c8187d4b19
3
+ metadata.gz: cf153028dada6297487586651cc3cb74de51832c
4
+ data.tar.gz: 2be7b8acb4c45162c3ded31ccebc7faeeadab2a2
5
5
  SHA512:
6
- metadata.gz: ae802120ca7297300ab541e004d428c715b2727efa365ec5281ddd7802f8ab14d4a1c45813f625001b3fc0a7eb1bf1f28f7e4f3b4deb6243146889c616111c66
7
- data.tar.gz: 07665893687d314a613785a1fd25f88dcf6dc1d2279d7f32b6790ba74c0890c8a180e790680f5c7086d7a28c5f3dc8e2292f3fc6846fd9f8291068b413ae3613
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
- # You can add fixtures and/or initialization code here to make experimenting
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
@@ -1,3 +1,3 @@
1
1
  module Sassconf
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/lib/sassconf.rb CHANGED
@@ -60,19 +60,21 @@ module Sassconf
60
60
  end
61
61
  end
62
62
 
63
- begin
64
- option_args = Parser.parse(ARGV)
65
- config_reader = ConfigReader.new
66
- executor = SassExecutor.new(ARGV[0], ARGV[1])
67
-
68
- config_reader.eval_rb_file(option_args.config_path, option_args.extern_args)
69
- argument_string = executor.create_all_argument_strings(config_reader.variable_with_value_hash, config_reader.variable_hash)
70
- executor.execute(argument_string)
71
-
72
- rescue OptionParser::MissingArgument, OptionParser::InvalidOption, SyntaxError, ArgumentError => e
73
- puts e.message
74
- logger.error(e)
75
- ensure
76
- exit
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 = ['Marcel Schlegel']
10
+ spec.authors = 'Marcel Schlegel'
11
11
  spec.homepage = 'http://sassconf.schlegel11.de'
12
- spec.email = ['develop@schlegel11.de']
13
- spec.licenses = ['MIT']
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 = ['lib']
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.2
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
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here