Permalink
Please
sign in to comment.
Showing
with
145 additions
and 12 deletions.
- +1 −1 .rubocop_todo.yml
- +1 −0 Gemfile
- +1 −0 Rakefile
- +3 −0 nanoc-sass/.rspec
- +19 −0 nanoc-sass/LICENSE
- +5 −0 nanoc-sass/NEWS.md
- +3 −0 nanoc-sass/README.md
- +18 −0 nanoc-sass/Rakefile
- +3 −0 nanoc-sass/lib/nanoc-sass.rb
- +11 −0 nanoc-sass/lib/nanoc/sass.rb
- +5 −5 nanoc/lib/nanoc/filters/sass.rb → nanoc-sass/lib/nanoc/sass/filter.rb
- 0 {nanoc/lib/nanoc/filters → nanoc-sass/lib/nanoc}/sass/functions.rb
- +1 −1 {nanoc/lib/nanoc/filters → nanoc-sass/lib/nanoc}/sass/importer.rb
- +7 −0 nanoc-sass/lib/nanoc/sass/version.rb
- +21 −0 nanoc-sass/nanoc-sass.gemspec
- +9 −0 nanoc-sass/nanoc-sass.manifest
- +20 −0 nanoc-sass/spec/gem_spec.rb
- +7 −0 nanoc-sass/spec/manifest_spec.rb
- +1 −1 {nanoc/spec/nanoc/filters → nanoc-sass/spec/nanoc}/sass_spec.rb
- +7 −0 nanoc-sass/spec/spec_helper.rb
- +1 −0 nanoc/lib/nanoc.rb
- +0 −1 nanoc/lib/nanoc/filters.rb
- +1 −0 nanoc/nanoc.gemspec
- +0 −3 nanoc/nanoc.manifest
@@ -0,0 +1,3 @@ | ||
-r ./spec/spec_helper.rb | ||
--format Fuubar | ||
--color |
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2014–… Denis Defreyne and contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
@@ -0,0 +1,5 @@ | ||
# nanoc-sass news | ||
|
||
## 1.0.0 (2019-11-17) | ||
|
||
Initial release (extracted from nanoc) |
@@ -0,0 +1,3 @@ | ||
# nanoc-sass | ||
|
||
This provides the `sass` filter for [Nanoc](https://nanoc.ws). |
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rspec/core/rake_task' | ||
require 'rubocop/rake_task' | ||
|
||
RuboCop::RakeTask.new(:rubocop) | ||
|
||
RSpec::Core::RakeTask.new(:spec) do |t| | ||
t.verbose = false | ||
end | ||
|
||
task test: :spec | ||
|
||
task :gem do | ||
sh('gem build *.gemspec') | ||
end | ||
|
||
task default: %i[test rubocop] |
@@ -0,0 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'nanoc/sass' |
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'nanoc-core' | ||
|
||
module Nanoc | ||
module Sass | ||
end | ||
end | ||
|
||
require 'nanoc/sass/version' | ||
require 'nanoc/sass/filter' |
File renamed without changes.
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module Nanoc | ||
module Sass | ||
VERSION = '1.0.0' | ||
end | ||
end |
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'lib/nanoc/sass/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'nanoc-sass' | ||
s.version = Nanoc::Sass::VERSION | ||
s.homepage = 'https://nanoc.ws/' | ||
s.summary = 'Sass support for Nanoc' | ||
s.description = 'Provides Sass functionality for Nanoc' | ||
s.author = 'Denis Defreyne' | ||
s.email = 'denis+rubygems@denis.ws' | ||
s.license = 'MIT' | ||
|
||
s.files = ['NEWS.md', 'README.md'] + Dir['lib/**/*.rb'] | ||
s.require_paths = ['lib'] | ||
|
||
s.required_ruby_version = '~> 2.4' | ||
|
||
s.add_runtime_dependency('nanoc-core', '~> 4.11', '>= 4.11.14') | ||
end |
@@ -0,0 +1,9 @@ | ||
NEWS.md | ||
README.md | ||
|
||
lib/nanoc-sass.rb | ||
lib/nanoc/sass.rb | ||
lib/nanoc/sass/filter.rb | ||
lib/nanoc/sass/functions.rb | ||
lib/nanoc/sass/importer.rb | ||
lib/nanoc/sass/version.rb |
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
|
||
describe 'nanoc-sass.gem', chdir: false, stdio: true do | ||
subject do | ||
TTY::Command.new.run('gem build nanoc-sass.gemspec') | ||
end | ||
|
||
around do |ex| | ||
Dir['*.gem'].each { |f| FileUtils.rm(f) } | ||
ex.run | ||
Dir['*.gem'].each { |f| FileUtils.rm(f) } | ||
end | ||
|
||
it 'builds gem' do | ||
expect { subject } | ||
.to change { Dir['*.gem'] } | ||
.from([]) | ||
.to(include(match(/^nanoc-sass-.*\.gem$/))) | ||
end | ||
end |
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
describe 'manifest', chdir: false do | ||
example do | ||
expect('nanoc-sass').to have_a_valid_manifest | ||
end | ||
end |
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative '../../common/spec/spec_helper_head' | ||
|
||
require 'nanoc/sass' | ||
|
||
require_relative '../../common/spec/spec_helper_foot' |
0 comments on commit
fc265e8