guard-haml_lint 1.0.1 → 1.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
- SHA1:
3
- metadata.gz: e0aca0f2bef11e3af10fdb9224f9141b8c4b0db6
4
- data.tar.gz: b934c4aff61f332bc1066f10a15e6cade268738e
2
+ SHA256:
3
+ metadata.gz: 4dc6e6da8e4d930254084dea7a146af0f6e511c370511afeeeac9aedd937baf7
4
+ data.tar.gz: 4aa6f9f27f6e5af52c0df9fefded468d8acb38228543a4cb7cda539dd1bf0c6d
5
5
  SHA512:
6
- metadata.gz: 2450edc23cf90442c85a79bfc6d500f35390e83b43324f17ec49300413517ceedcf1047e3f8a8182e58231133876fdf8cba54388681b443614c23c4df2eba995
7
- data.tar.gz: fbc8ca42ea7b36b72f406478360e1f740935af87341d1457b13df62c9bec9609b895e44ceac007f3239c289f630235d364c69d98adccc37ddd2b83f665a8263e
6
+ metadata.gz: 31207d2db7f4192efe02eb12250ef2772ea47c3fa10f34fc33d716b0d515f5bf47ac97bc18d201a5b76e2540485e0a2ef03feb70a970339a21c8757aba14b5b7
7
+ data.tar.gz: cdea19edb442e6040ab4ac120d4d03b127b2e8508eebb8dc46d500ed0ea5e633a4ae639492606925804ed107c4c4113669f3e4c9347c6d60d3003eefcd522b87
@@ -1,5 +1,8 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+
1
4
  LineLength:
2
- Max: 100
5
+ Max: 120
3
6
 
4
7
  RegexpLiteral:
5
8
  Exclude:
@@ -9,3 +12,6 @@ RegexpLiteral:
9
12
  Metrics/BlockLength:
10
13
  Exclude:
11
14
  - 'spec/**/*'
15
+
16
+ Style/MutableConstant:
17
+ Enabled: false
@@ -1,11 +1,13 @@
1
1
  language: ruby
2
+ sudo: false
3
+ before_install:
4
+ - gem i rubygems-update -v '<3' && update_rubygems
5
+ - gem install bundler -v 1.17.3
2
6
 
3
7
  rvm:
4
- - 2.2.8
5
- - 2.3.4
6
- - 2.4.2
7
-
8
- sudo: false
8
+ - 2.4.7
9
+ - 2.5.6
10
+ - 2.6.4
9
11
 
10
12
  script:
11
13
  - bundle exec rspec spec
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.1.0
4
+
5
+ * Drop support for Ruby 2.3 or older
6
+
3
7
  ## v1.0.0
4
8
 
5
9
  * Add cli option
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at toyasyu@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in guard-haml_lint.gemspec
data/Guardfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # A sample Guardfile
2
4
  # More info at https://github.com/guard/guard#readme
3
5
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2017 Yasuhiko Katoh
1
+ Copyright (c) 2016-2018 Yasuhiko Katoh
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/guard-haml_lint.svg)](https://badge.fury.io/rb/guard-haml_lint)
2
- [![Dependency Status](https://www.versioneye.com/ruby/guard-haml_lint/0.3.0/badge?style=flat)](https://www.versioneye.com/ruby/guard-haml_lint/0.3.0)
3
2
  [![Build Status](https://travis-ci.org/yatmsu/guard-haml-lint.svg)](https://travis-ci.org/yatmsu/guard-haml-lint)
4
3
  [![Code Climate](https://codeclimate.com/github/yatmsu/guard-haml-lint/badges/gpa.svg)](https://codeclimate.com/github/yatmsu/guard-haml-lint)
5
4
 
@@ -7,6 +6,10 @@
7
6
 
8
7
  A guard to lint your Haml.
9
8
 
9
+ ## Requirements
10
+
11
+ * Ruby 2.4+
12
+
10
13
  ## Installation
11
14
 
12
15
  Add this line to your application's Gemfile
@@ -36,9 +39,11 @@ Please read the [Guardfile DSL documentation](https://github.com/guard/guard#rea
36
39
 
37
40
  Available options:
38
41
 
39
- all_on_start: true # Check all files at Guard startup. default: true
40
- haml_dires: ['app/views'] # Check Directories. default: 'app/views' or '.'
41
- cli: '--fail-fast --no-color' # Additional command line options to haml-lint. default: nil
42
+ ```ruby
43
+ all_on_start: true # Check all files at Guard startup. default: true
44
+ haml_dires: ['app/views'] # Check Directories. default: 'app/views' or '.'
45
+ cli: '--fail-fast --no-color' # Additional command line options to haml-lint. default: nil
46
+ ```
42
47
 
43
48
  ## Contributing
44
49
 
@@ -47,3 +52,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/yatmsu
47
52
  ## License
48
53
 
49
54
  guard-haml_lint is released under the [MIT License](https://opensource.org/licenses/MIT).
55
+
56
+ ## Code of Conduct
57
+
58
+ Everyone interacting in the Guard::HamlLint project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yatmsu/guard-haml-lint/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
 
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'guard/haml_lint'
data/bin/setup CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/bin/bash
2
+ # frozen_string_literal: true
3
+
2
4
  set -euo pipefail
3
5
  IFS=$'\n\t'
4
6
 
@@ -1,4 +1,6 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'guard/hamllint/version'
4
6
 
@@ -17,16 +19,16 @@ Gem::Specification.new do |spec|
17
19
  spec.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }
18
20
  spec.require_paths = ['lib']
19
21
 
20
- spec.required_ruby_version = '>= 2.2.6'
22
+ spec.required_ruby_version = '>= 2.4.0'
21
23
 
22
24
  spec.license = 'MIT'
23
25
 
24
26
  spec.add_dependency 'guard', '~> 2.2'
25
27
  spec.add_dependency 'guard-compat', '~> 1.2'
26
- spec.add_runtime_dependency 'haml_lint', '>= 0.15.2'
28
+ spec.add_runtime_dependency 'haml_lint', '>= 0.30.0'
27
29
 
28
30
  spec.add_development_dependency 'bundler', '>= 1.0.0'
31
+ spec.add_development_dependency 'guard-rubocop', '~> 1.3.0'
29
32
  spec.add_development_dependency 'rake', '~> 10.0'
30
33
  spec.add_development_dependency 'rspec', '~> 3.6.0'
31
- spec.add_development_dependency 'guard-rubocop', '~> 1.3.0'
32
34
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'guard/compat/plugin'
2
4
  require 'shellwords'
3
5
 
@@ -7,7 +9,7 @@ module Guard
7
9
  DEFAULT_OPTIONS = {
8
10
  all_on_start: true,
9
11
  cli: nil
10
- }.freeze
12
+ }
11
13
 
12
14
  attr_reader :options
13
15
 
@@ -1,3 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ # A sample Guardfile
1
4
  # Guard-HamlLint supports a lot options with default values:
2
5
  # all_on_start: true # Check all files at Guard startup. default: true
3
6
  # haml_dires: ['app/views'] # Check Directories. default: 'app/views' or '.'
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Guard
2
4
  # guard-haml_lint version class
3
5
  class HamlLintVersion
4
- VERSION = '1.0.1'.freeze
6
+ VERSION = '1.1.0'
5
7
  end
6
8
  end
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ # frozen_string_literal: true
2
2
 
3
3
  describe Guard::HamlLint do
4
4
  subject { described_class.new(options) }
@@ -74,7 +74,7 @@ describe Guard::HamlLint do
74
74
  let(:options) { { cli: ['--fail-fast'] } }
75
75
 
76
76
  it 'raise Guard::HamlLint::ArgumentError' do
77
- expect { subject.start }.to raise_error(Guard::HamlLint::ArgumentError, 'Please specify only String for :cli option')
77
+ expect { subject.start }.to raise_error(ArgumentError, 'Please specify only String for :cli option')
78
78
  end
79
79
  end
80
80
  end
@@ -1,4 +1,6 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
2
4
  require 'guard/ui'
3
5
  require 'guard/compat/test/helper'
4
6
  require 'guard/haml_lint'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-haml_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiko Katoh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-05 00:00:00.000000000 Z
11
+ date: 2019-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.15.2
47
+ version: 0.30.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.15.2
54
+ version: 0.30.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -67,47 +67,47 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.0.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: guard-rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: 1.3.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: 1.3.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.6.0
89
+ version: '10.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 3.6.0
96
+ version: '10.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: guard-rubocop
98
+ name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.3.0
103
+ version: 3.6.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.3.0
110
+ version: 3.6.0
111
111
  description: Guard::HamlLint automatically runs Haml Lint tools.
112
112
  email:
113
113
  - toyasyu@gmail.com
@@ -120,6 +120,7 @@ files:
120
120
  - ".rubocop.yml"
121
121
  - ".travis.yml"
122
122
  - CHANGELOG.md
123
+ - CODE_OF_CONDUCT.md
123
124
  - Gemfile
124
125
  - Guardfile
125
126
  - MIT-LICENSE
@@ -145,15 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
146
  requirements:
146
147
  - - ">="
147
148
  - !ruby/object:Gem::Version
148
- version: 2.2.6
149
+ version: 2.4.0
149
150
  required_rubygems_version: !ruby/object:Gem::Requirement
150
151
  requirements:
151
152
  - - ">="
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.6.13
156
+ rubygems_version: 3.0.3
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Guard plugin for HAML-Lint