jekyll-include_sass 0.0.1 → 0.1.0

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: 27475adb1d78790f053e1ab5194e45980a802ea2
4
- data.tar.gz: d2b4a506381d305f7739b0ce753228cb022ff660
3
+ metadata.gz: e76f8d6cdce1fa6348771e35940828ef389f0660
4
+ data.tar.gz: e46bfd5e8b95743ee72a100a6525e6582dac1b9f
5
5
  SHA512:
6
- metadata.gz: c1e3b28b8a89290911b7b6b102d7a2b03e17148016ccc9923f4b117ee4eaf8df7cb2f4c9b7586d535be803d58dfffebc8e8e7e8466aa8249bf8a66e8d457a1fd
7
- data.tar.gz: cf60b0016948803eba3d079d5aa005c2490e46835cfaa8aae3935059d936763cb48aa3237476e8a2a43534866d6c7932025c35bc291a72f6e23a49f59cceed7d
6
+ metadata.gz: e1020bc7e444273bb3c277519636e0a931df9b3efe1eaac06823305fe95bfa8328e67ee51caf18ce24dd2395da75e1792ab08887e79b21c37343773730b25071
7
+ data.tar.gz: 449b032551ac4d6a27d28fd79711d2ca228d50b0410968dbb20e244fe1a6e51655ba9aded2e8c56edd136dcb28bac16e3f260569ba928792abae78b56d943975
data/README.md CHANGED
@@ -1,41 +1,63 @@
1
+ [![Gem Version](https://badge.fury.io/rb/jekyll-include_sass.svg)](https://badge.fury.io/rb/jekyll-include_sass)
2
+ [![Build Status](https://travis-ci.org/toshimaru/jekyll-include_sass.svg)](https://travis-ci.org/toshimaru/jekyll-include_sass)
3
+
1
4
  # Jekyll::IncludeSass
2
5
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jekyll/include_sass`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+ Jekyll `include_sass` tag which includes and converts SASS/SCSS file. This is useful for Google AMP HTML.
4
7
 
5
- TODO: Delete this and the text above, and describe your gem
8
+ ## Supported CSS in AMP
6
9
 
7
- ## Installation
10
+ > Like all web pages, AMP pages are styled with CSS, but you can’t reference external stylesheets.
8
11
 
9
- Add this line to your application's Gemfile:
12
+ > All styles must live in the head of the document.
10
13
 
11
- ```ruby
12
- gem 'jekyll-include_sass'
13
- ```
14
+ via. [Supported CSS](https://www.ampproject.org/docs/guides/responsive/style_pages.html)
14
15
 
15
- And then execute:
16
+ ## Installation
16
17
 
17
- $ bundle
18
+ 1. Add the following to your site's `Gemfile`:
18
19
 
19
- Or install it yourself as:
20
+ ```ruby
21
+ gem 'jekyll-include_sass'
22
+ ```
20
23
 
21
- $ gem install jekyll-include_sass
24
+ 2. Add the following to your site's `_config.yml`:
25
+
26
+ ```yml
27
+ gems:
28
+ - jekyll-include_sass
29
+ ```
22
30
 
23
31
  ## Usage
24
32
 
25
- TODO: Write usage instructions here
33
+ Put your `style.scss` in Jekyll's `_includes` directory.
26
34
 
27
- ## Development
35
+ ### HTML Version
28
36
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
37
+ Add the following inside `<head>` in your site's template(s):
30
38
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39
+ ```html
40
+ <style type="text/css">
41
+ {% include_sass style.scss %}
42
+ </style>
43
+ ```
32
44
 
33
- ## Contributing
45
+ ### AMP Version
34
46
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-include_sass.
47
+ ```html
48
+ <style amp-custom>
49
+ {% include_sass style.scss %}
50
+ </style>
51
+ ```
52
+
53
+ ### SASS/SCSS Supported
54
+
55
+ You can include either SASS or SCSS with `include_sass` depending on extension.
36
56
 
57
+ ## Contributing
58
+
59
+ Bug reports and pull requests are welcome on GitHub at https://github.com/toshimaru/jekyll-include_sass.
37
60
 
38
61
  ## License
39
62
 
40
63
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
data/Rakefile CHANGED
@@ -7,4 +7,4 @@ Rake::TestTask.new(:test) do |t|
7
7
  t.test_files = FileList['test/**/*_test.rb']
8
8
  end
9
9
 
10
- task :default => :spec
10
+ task :default => :test
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["toshimaru"]
9
9
  spec.email = ["me@toshimaru.net"]
10
10
 
11
- spec.summary = %q{Jekyll include_sass tag which includes and converts SASS/SCSS file}
11
+ spec.summary = %q{Jekyll include_sass tag which aincludes and converts SASS/SCSS file. Useful for AMP HTML!}
12
12
  spec.description = %q{Jekyll include_sass tag is a shorthand tag for including SASS/SCSS file inside head tag. It's useful when you don't want to reference external CSS, for example, in AMP.}
13
13
  spec.homepage = "https://github.com/toshimaru/jekyll-include_sass"
14
14
  spec.license = "MIT"
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module IncludeSass
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-include_sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -124,5 +124,6 @@ rubyforge_project:
124
124
  rubygems_version: 2.4.5.1
125
125
  signing_key:
126
126
  specification_version: 4
127
- summary: Jekyll include_sass tag which includes and converts SASS/SCSS file
127
+ summary: Jekyll include_sass tag which aincludes and converts SASS/SCSS file. Useful
128
+ for AMP HTML!
128
129
  test_files: []