sassconf 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fefedce326c30fe6076ff27683fb4fa91a05efda
4
- data.tar.gz: 3d253f23d6bb31ce5c81718347645e0bcab4c3e8
3
+ metadata.gz: 83746868ef20d117a1dc63acc5ee6741f111c02b
4
+ data.tar.gz: fcf77de7eac8c4eb56c1571aeaf5c9c8187d4b19
5
5
  SHA512:
6
- metadata.gz: 24a52a90d53f90bf2a397329b57a4674b93e90871fbd2065b6b18d30f0825436b26e8ab37af9b30add98738930c2e37b3c9b11a6858f9f1fa8172a1352e0fc49
7
- data.tar.gz: 18f491a65cd80cc072ad9a12555c33ba40126129f3f149690d6606252bc547b1ce689bc0e419c68de10c6d01b1e8b3d65e9ebfd1f942155eb1f7293c10f16000
6
+ metadata.gz: ae802120ca7297300ab541e004d428c715b2727efa365ec5281ddd7802f8ab14d4a1c45813f625001b3fc0a7eb1bf1f28f7e4f3b4deb6243146889c616111c66
7
+ data.tar.gz: 07665893687d314a613785a1fd25f88dcf6dc1d2279d7f32b6790ba74c0890c8a180e790680f5c7086d7a28c5f3dc8e2292f3fc6846fd9f8291068b413ae3613
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
- # Sassconf
1
+ Sassconf
2
+ ========
3
+ [![Build Status](https://api.shippable.com/projects/555cfb27edd7f2c052f63ad8/badge?branchName=master)](https://app.shippable.com/projects/555cfb27edd7f2c052f63ad8/builds/latest)
4
+ [![Gem Version](https://badge.fury.io/rb/sassconf.svg?style=flat-square)](http://badge.fury.io/rb/sassconf)
2
5
 
3
6
  With the Sassconf command tool you can use a config file for defining your [Sass](https://github.com/sass/sass) options.
4
7
  If you liked the config file in any Compass environment then you'll like that one also because it's very similar :)
@@ -7,9 +10,15 @@ If you liked the config file in any Compass environment then you'll like that on
7
10
 
8
11
  - [Sass](https://github.com/sass/sass)
9
12
 
13
+ **Supported and tested ruby versions**
14
+ - Ruby
15
+ - 1.9.2 and up
16
+ - JRuby
17
+ - 1.7.18 and up
18
+
10
19
  ## Installation
11
20
 
12
- Install it directly from [RubyGems](https://rubygems.org):
21
+ Install it directly from [RubyGems](https://rubygems.org/gems/sassconf):
13
22
 
14
23
  ```bash
15
24
  gem install sassconf
@@ -38,6 +47,8 @@ or only:
38
47
  in your console for show the help text.
39
48
 
40
49
  ###Config File
50
+ Create a ruby config file like: "config.rb".
51
+
41
52
  For using options from Sass you have to use special variable prefixes "arg_NAME" and "varg_NAME".
42
53
 
43
54
  - "arg_NAME" for any [Sass](http://sass-lang.com/documentation/file.SASS_REFERENCE.html) options without a "=" sign like:
@@ -116,7 +127,6 @@ You can also set a list of values on the command line which you can use in your
116
127
  production = false
117
128
  arg_no_cache = :no_value
118
129
  varg_style = production ? 'compressed' : 'expanded'
119
- test_no_arg = 'no_arg'
120
130
  varg_sourcemap = 'none'
121
131
  ```
122
132
 
@@ -153,7 +163,6 @@ You can also set a list of values on the command line which you can use in your
153
163
  production = false
154
164
  arg_no_cache = :no_value
155
165
  varg_style = production ? 'compressed' : 'expanded'
156
- test_no_arg = 'no_arg'
157
166
  varg_sourcemap = 'none'
158
167
  arg_watch = "./:./out"
159
168
  ```
@@ -190,3 +199,34 @@ You can also set a list of values on the command line which you can use in your
190
199
  color: #2ca2af;
191
200
  }
192
201
  ```
202
+ ###Sample 3 - Use in JetBrains IDE (WebStorm)
203
+
204
+ **Use Sassconf in e.g. WebStorm with a FileWatcher**
205
+
206
+ All "*.scss" files are in a "sass" directory.
207
+ All generated "*.css" files goes to a "css" directory.
208
+
209
+ **In WebStorm create a normal SCSS FileWatcher:**
210
+
211
+ ```bash
212
+ File->Settings->Tools->File Watchers
213
+
214
+ Program: sassconf
215
+ Arguments: -c ./config.rb -a "$ProjectFileDir$,$FileName$,$FileNameWithoutAllExtensions$"
216
+ Working Directory: $ProjectFileDir$
217
+ ```
218
+
219
+ **Your WebStorm project config.rb file:**
220
+
221
+ **config.rb**
222
+ ```ruby
223
+ project_dir = extern_args[0]
224
+ file_name = extern_args[1]
225
+ file_name_without_extension = extern_args[2]
226
+
227
+ production = false
228
+ arg_no_cache = :no_value
229
+ varg_style = production ? 'compressed' : 'expanded'
230
+ varg_sourcemap = 'none'
231
+ arg_update = "\"#{project_dir}/sass/#{file_name}:#{project_dir}/css/#{file_name_without_extension}.css\""
232
+ ```
data/Rakefile CHANGED
@@ -1 +1,11 @@
1
- require 'bundler/gem_tasks'
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new(:test) do |test|
4
+ test.libs << 'test'
5
+ test.warning = true
6
+ test.verbose = true
7
+ test.test_files = FileList['test/test_*.rb']
8
+ end
9
+
10
+ desc "Run Tests"
11
+ task :default => :test
@@ -53,8 +53,16 @@ module Sassconf
53
53
  end
54
54
  end
55
55
  end
56
+ end
56
57
 
57
- Object.include(Sassconf::CoreExtensions::Object)
58
- String.include(Sassconf::CoreExtensions::String)
59
- Hash.include(Sassconf::CoreExtensions::Hash)
58
+ class Object
59
+ include Sassconf::CoreExtensions::Object
60
+ end
61
+
62
+ class String
63
+ include Sassconf::CoreExtensions::String
64
+ end
65
+
66
+ class Hash
67
+ include Sassconf::CoreExtensions::Hash
60
68
  end
@@ -1,3 +1,3 @@
1
1
  module Sassconf
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/sassconf.rb CHANGED
@@ -12,7 +12,7 @@ module Sassconf
12
12
  module HelpText
13
13
  USAGE = 'Usage: sassconf [options] [INPUT] [OUTPUT]'.paragraph
14
14
  DESCRIPTION = 'Description:'
15
- .newline.blank(3) { 'Adds configuration file to Sass converter.' }
15
+ .newline.blank(3) { 'Adds configuration file to Sass preprocessor.' }
16
16
  .newline.blank(3) { "Version #{Sassconf::VERSION}" }
17
17
  .paragraph
18
18
  REQUIRED = 'Required:'
data/sassconf.gemspec CHANGED
@@ -8,23 +8,23 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Sassconf::VERSION
9
9
  spec.platform = Gem::Platform::RUBY
10
10
  spec.authors = ['Marcel Schlegel']
11
- spec.homepage = ['http://sassconf.schlegel11.de']
11
+ spec.homepage = 'http://sassconf.schlegel11.de'
12
12
  spec.email = ['develop@schlegel11.de']
13
13
  spec.licenses = ['MIT']
14
14
 
15
15
  spec.summary = %q{Adds configuration file to Sass converter.}
16
- spec.description = %q{With the Sassconf command tool you can use a config file for defining your Sass arguments.
16
+ spec.description = %q{With the Sassconf command tool you can use a config file for defining your Sass options.
17
17
  If you liked the config file in any Compass environment then you'll like that one also because it's very similar.}
18
- spec.homepage = "http://sassconf.schlegel11.de"
19
18
 
20
19
  spec.files = `git ls-files`.split("\n")
21
- spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ spec.test_files = `git ls-files -- {test}/*`.split("\n")
22
21
  spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
22
  spec.require_paths = ['lib']
24
23
 
25
- spec.add_runtime_dependency 'sass', '>= 0'
24
+ spec.required_ruby_version = '>= 1.9.2'
25
+ spec.add_runtime_dependency 'sass', '>= 3.1.0'
26
26
 
27
27
  spec.add_development_dependency 'bundler', '~> 1.9'
28
28
  spec.add_development_dependency 'rake', '~> 10.0'
29
- spec.add_development_dependency 'minitest', '>= 0'
29
+ spec.add_development_dependency 'minitest', '>= 5.6.0'
30
30
  end
data/shippable.yml ADDED
@@ -0,0 +1,30 @@
1
+ # language setting
2
+ language: ruby
3
+
4
+ # language versions
5
+ rvm:
6
+ - 1.9.2
7
+ - 1.9.3
8
+ - 2.0.0-p353
9
+ - 2.1.0
10
+ - 2.1.1
11
+ - 2.1.2
12
+ - jruby
13
+ - jruby-19mode # JRuby in 1.9 mode
14
+ - jruby-head
15
+ - ruby-head
16
+
17
+ # set env variables
18
+ env:
19
+ - CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage
20
+
21
+ # include
22
+ branches:
23
+ only:
24
+ - master
25
+
26
+ # notify
27
+ notifications:
28
+ email:
29
+ recipients:
30
+ - develop@schlegel11.de
@@ -2,7 +2,7 @@ require 'minitest/autorun'
2
2
  require 'sassconf/config_reader'
3
3
 
4
4
  class TestConfigReader < Minitest::Test
5
- CONFIG_PATH = __dir__ + '/resources/Config.rb'
5
+ CONFIG_PATH = File.dirname(__FILE__) + '/resources/Config.rb'
6
6
 
7
7
  # Called before every test method runs. Can be used
8
8
  # to set up fixture information.
@@ -4,9 +4,9 @@ require 'sassconf/config_reader'
4
4
 
5
5
  class TestSassExecuter < Minitest::Test
6
6
 
7
- SCSS_PATH = __dir__ + '/resources/Input.scss'
8
- CSS_PATH = __dir__ + '/resources/Output.css'
9
- CONFIG_PATH = __dir__ + '/resources/Config.rb'
7
+ SCSS_PATH = File.dirname(__FILE__) + '/resources/Input.scss'
8
+ CSS_PATH = File.dirname(__FILE__) + '/resources/Output.css'
9
+ CONFIG_PATH = File.dirname(__FILE__) + '/resources/Config.rb'
10
10
  # Called before every test method runs. Can be used
11
11
  # to set up fixture information.
12
12
  def setup
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Schlegel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-20 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,16 +58,16 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 5.6.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 5.6.0
69
69
  description: |-
70
- With the Sassconf command tool you can use a config file for defining your Sass arguments.
70
+ With the Sassconf command tool you can use a config file for defining your Sass options.
71
71
  If you liked the config file in any Compass environment then you'll like that one also because it's very similar.
72
72
  email:
73
73
  - develop@schlegel11.de
@@ -92,6 +92,7 @@ files:
92
92
  - lib/sassconf/util.rb
93
93
  - lib/sassconf/version.rb
94
94
  - sassconf.gemspec
95
+ - shippable.yml
95
96
  - test/resources/Config.rb
96
97
  - test/resources/Input.scss
97
98
  - test/test_config_reader.rb
@@ -108,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
109
  requirements:
109
110
  - - ">="
110
111
  - !ruby/object:Gem::Version
111
- version: '0'
112
+ version: 1.9.2
112
113
  required_rubygems_version: !ruby/object:Gem::Requirement
113
114
  requirements:
114
115
  - - ">="
@@ -116,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  version: '0'
117
118
  requirements: []
118
119
  rubyforge_project:
119
- rubygems_version: 2.4.5
120
+ rubygems_version: 2.4.7
120
121
  signing_key:
121
122
  specification_version: 4
122
123
  summary: Adds configuration file to Sass converter.