middleman-img_loading_attribute 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: 7f0831a8d271dcd98cfc41948cfa839204aae015014d530ca3efb877ce70cabe
4
- data.tar.gz: 2965a6c2565dae62b6a89be74e21166c47242269447ac3362b7c51ee1c55290a
3
+ metadata.gz: 69dda6ebf2d580dd1f1566cdaff55e758d3665c62d1a8463cb2994905f7f0ef4
4
+ data.tar.gz: 206f2cc38298f32ef684806178e3ae7146557f07818600bf32808fcbb8b34437
5
5
  SHA512:
6
- metadata.gz: e152afaa28bc1987cf2639b17cca8eaf1b2b395b692ca44964dde73eaf42311b61fd3124e7379853c1e2c4822401d276a78d101c701668a277942db18fb1f5ce
7
- data.tar.gz: d3076107ad3d7d09dd28813d0b715d6c5d67051df6eecb5a7de5cd0d827b13eae32ade1cde561a24dbf416637c00667a50fcbb9df2869e76da2b5477887cb60c
6
+ metadata.gz: 63153f125e1ddf6509fedf197cfae09ab033dee1ff6677986d4a7fb03099c91a8a69816ae9a478677eebd0dd493d324142bd455073de74d2cfe1d241c9930ea4
7
+ data.tar.gz: f327ba939d0a3bb840f912dbdd32d80068674e8bae272784a8f65ce2f4742118d3196040dd0e5715f39c6c0460a6f0ad80af14122e019b3fc2c9a09ee200063f
@@ -0,0 +1,43 @@
1
+ common_steps: &common_steps
2
+ working_directory: ~/repo
3
+ steps:
4
+ - checkout
5
+ - run: gem install bundler --force
6
+ - run:
7
+ name: install dependencies
8
+ command: |
9
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
10
+ - run: bundle exec rake test
11
+ version: 2
12
+ jobs:
13
+ test-ruby2.6:
14
+ docker:
15
+ - image: circleci/ruby:2.6-buster
16
+ <<: *common_steps
17
+ test-ruby2.5:
18
+ docker:
19
+ - image: circleci/ruby:2.5-buster
20
+ <<: *common_steps
21
+ test-ruby2.4:
22
+ docker:
23
+ - image: circleci/ruby:2.4-buster
24
+ <<: *common_steps
25
+ workflows:
26
+ version: 2
27
+ test:
28
+ jobs:
29
+ - test-ruby2.6
30
+ - test-ruby2.5
31
+ - test-ruby2.4
32
+ cron:
33
+ jobs:
34
+ - test-ruby2.6
35
+ - test-ruby2.5
36
+ - test-ruby2.4
37
+ triggers:
38
+ - schedule:
39
+ cron: "0 0 * * 0"
40
+ filters:
41
+ branches:
42
+ only:
43
+ - master
@@ -1,4 +1,4 @@
1
- name: test
1
+ name: ubuntu
2
2
  on:
3
3
  push:
4
4
  branches:
@@ -0,0 +1,34 @@
1
+ name: windows
2
+ on:
3
+ push:
4
+ branches:
5
+ - '*'
6
+ pull_request:
7
+ branches:
8
+ - '*'
9
+ schedule:
10
+ - cron: '0 0 * * 0'
11
+ jobs:
12
+ test:
13
+ strategy:
14
+ matrix:
15
+ ruby: ['2.4.x', '2.5.x', '2.6.x']
16
+ fail-fast: false
17
+ runs-on: windows-latest
18
+ name: Ruby ${{ matrix.ruby }} on Windows
19
+ steps:
20
+ - uses: actions/checkout@master
21
+ - name: Setup ruby ${{ matrix.ruby }}
22
+ uses: actions/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ architecture: 'x64'
26
+ - name: Install latest bundler
27
+ run: gem install bundler
28
+ shell: powershell
29
+ - name: Install dependencies
30
+ run: bundle install --jobs 4 --retry 3
31
+ shell: powershell
32
+ - name: Run rake test
33
+ run: bundle exec rake test
34
+ shell: powershell
data/.gitignore CHANGED
@@ -2,4 +2,6 @@
2
2
  /Gemfile.lock
3
3
 
4
4
  # Ignore pkg folder
5
- /pkg
5
+ /pkg
6
+
7
+ .ruby-version
@@ -0,0 +1,6 @@
1
+ # v0.2.0 (2019-11-09)
2
+ Cosmetic changes only.
3
+ Has no breaking changes.
4
+
5
+ # v0.1.0 (2019-11-08)
6
+ Initial release.
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Middleman::ImgLoadingAttribute
2
- [![Build Status on GitHub Actions](https://github.com/unasuke/middleman-img_loading_attribute/workflows/test/badge.svg)](https://github.com/unasuke/redcarpet-render-html_lazy_img/actions)
2
+ [![Build Status on GitHub Actions](https://github.com/unasuke/middleman-img_loading_attribute/workflows/ubuntu/badge.svg)](https://github.com/unasuke/middleman-img_loading_attribute/actions)
3
+ [![Build Status on GitHub Actions](https://github.com/unasuke/middleman-img_loading_attribute/workflows/windows/badge.svg)](https://github.com/unasuke/middleman-img_loading_attribute/actions)
4
+ [![Build status](https://ci.appveyor.com/api/projects/status/yq5i4m3lcoyko2hs/branch/master?svg=true)](https://ci.appveyor.com/project/unasuke/middleman-img-loading-attribute/branch/master)
5
+ [![CircleCI](https://circleci.com/gh/unasuke/middleman-img_loading_attribute/tree/master.svg?style=svg)](https://circleci.com/gh/unasuke/middleman-img_loading_attribute/tree/master)
3
6
  ![RubyGem version](https://badgen.net/rubygems/v/middleman-img_loading_attribute)
4
7
  ![MIT License](https://badgen.net/github/license/unasuke/middleman-img_loading_attribute)
5
8
 
@@ -61,4 +64,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
61
64
 
62
65
  ## Code of Conduct
63
66
 
64
- Everyone interacting in the Redcarpet::Render::HTMLLazyImg project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/unasuke/middleman-img_loading_attribute/blob/master/CODE_OF_CONDUCT.md).
67
+ Everyone interacting in the Middleman::ImgLoadingAttribute project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/unasuke/middleman-img_loading_attribute/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,24 @@
1
+ cache:
2
+ - vendor/bundle
3
+
4
+ environment:
5
+ matrix:
6
+ - RUBY_VERSION: 26-x64
7
+ - RUBY_VERSION: 25-x64
8
+ init:
9
+ - git config --global core.autocrlf true
10
+
11
+ install:
12
+ - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
13
+ - bundle config --local path vendor/bundle
14
+ - bundle install
15
+
16
+ build: off
17
+
18
+ before_test:
19
+ - ruby -v
20
+ - gem -v
21
+ - bundle -v
22
+
23
+ test_script:
24
+ - bundle exec rake test
@@ -1,4 +1,4 @@
1
- Feature: Auto
1
+ Feature: Set loading="auto"
2
2
  Scenario: Should add 'auto'
3
3
  Given a successfully built app at "auto-app"
4
4
  When I cd to "build"
@@ -1,4 +1,4 @@
1
- Feature: Auto
1
+ Feature: Set loading="eager"
2
2
  Scenario: Should add 'eager'
3
3
  Given a successfully built app at "eager-app"
4
4
  When I cd to "build"
@@ -1,4 +1,4 @@
1
- Feature: Lazy
1
+ Feature: Set loading="lazy" with asset_hash
2
2
  Scenario: Should add 'lazy'
3
3
  Given a successfully built app at "lazy-app"
4
4
  When I cd to "build"
@@ -2,13 +2,14 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "middleman-img_loading_attribute"
5
- s.version = "0.1.0"
5
+ s.version = "0.2.0"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Yusuke Nakamura"]
8
8
  s.email = ['yusuke1994525@gmail.com']
9
9
  s.homepage = 'https://github.com/unasuke/middleman-img_loading_attribute'
10
10
  s.summary = 'Specify "loading" attribute value to generated HTML from middleman'
11
11
  s.description = 'Specify "loading" attribute value to generated HTML from middleman'
12
+ s.license = 'MIT'
12
13
 
13
14
  s.files = `git ls-files`.split("\n")
14
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-img_loading_attribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2019-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -45,13 +45,17 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".github/workflows/ruby.yml"
48
+ - ".circleci/config.yml"
49
+ - ".github/workflows/ubuntu.yml"
50
+ - ".github/workflows/windows.yml"
49
51
  - ".gitignore"
52
+ - CHANGELOG.md
50
53
  - CODE_OF_CONDUCT.md
51
54
  - Gemfile
52
55
  - LICENSE.txt
53
56
  - README.md
54
57
  - Rakefile
58
+ - appveyor.yml
55
59
  - features/auto.feature
56
60
  - features/eager.feature
57
61
  - features/lazy.feature
@@ -72,7 +76,8 @@ files:
72
76
  - lib/middleman-img_loading_attribute/extension.rb
73
77
  - middleman-img_loading_attribute.gemspec
74
78
  homepage: https://github.com/unasuke/middleman-img_loading_attribute
75
- licenses: []
79
+ licenses:
80
+ - MIT
76
81
  metadata: {}
77
82
  post_install_message:
78
83
  rdoc_options: []