thor-hollaback 0.1.2 → 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
- SHA1:
3
- metadata.gz: 9935583c70652a18a193430cc1dd1fc470efb532
4
- data.tar.gz: '0591e4990eb5545e0553a2c7385b219fb556e549'
2
+ SHA256:
3
+ metadata.gz: 8eee02ff4a0643e443aad91a3a6fe7fd7f4461b7f0b43ac7421b144c2ac18d76
4
+ data.tar.gz: dc48883acddf700939c4d69b31c744579e9d6b691975bb2a3e4996c5f2bb44a3
5
5
  SHA512:
6
- metadata.gz: 7f61c9bf1aec1fa3b1130b68be58b258123ea4a498a450df239c03e77d7c45b11b5e98bc87f966658d4f48e18d16de2852efae93a53aac34d95aceafcadc38b2
7
- data.tar.gz: d48c838a9c02493407921cb95502e1fcbdd6133e42883b531de1888caea3210ebcc69ab404ee808e459f91c43678a6c86e377f84b4b2f78c6c06aad7675df0a4
6
+ metadata.gz: 3200628728c7dc4246d47f76450244336212ee416315137a70ea1e9cd4397f60a3f0f63a13527b838e18399926f7cac5a076a4c2bc912158c63cec013b0da91d
7
+ data.tar.gz: 67e876208a6e5b422cf4483fc13863c7bfc0d54fba3515190cd2d71ee21702750a29d3f38656221bc881233b5793679fff1eb52791a6b5580afa8e4a47ce9d2e
@@ -0,0 +1,10 @@
1
+ pull_request_rules:
2
+ - name: Automatically merge dependencies
3
+ conditions:
4
+ - base=master
5
+ - label=dependencies
6
+ - status-success=Travis CI - Pull Request
7
+ actions:
8
+ merge:
9
+ strict: true
10
+ delete_head_branch: {}
@@ -1,14 +1,6 @@
1
1
  AllCops:
2
2
  DisplayCopNames: true
3
3
  DisplayStyleGuide: true
4
- TargetRubyVersion: 2.1
4
+ TargetRubyVersion: 2.6
5
5
  Exclude:
6
6
  - 'vendor/**/*'
7
-
8
- Style/Documentation:
9
- Enabled: false
10
-
11
- Style/PercentLiteralDelimiters:
12
- PreferredDelimiters:
13
- '%w': '[]'
14
- '%i': '[]'
@@ -1,6 +1,9 @@
1
1
  language: ruby
2
- rvm: 2.3.1
2
+ rvm: 2.6
3
+ branches:
4
+ only: master
3
5
  cache: bundler
6
+ before_install: gem install bundler
4
7
  script:
5
8
  - bundle exec rake
6
9
  - bundle exec rubocop
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.2.0] - 2019-12-18
10
+
11
+ ### Changed
12
+
13
+ - Relaxed the version requirement on `thor` to allow the newer versions.
14
+
15
+ [unreleased]: https://github.com/kddeisz/thor-hollaback/compare/v0.2.0...HEAD
16
+ [0.2.0]: https://github.com/kddeisz/thor-hollaback/compare/7c2c70...v0.2.0
@@ -0,0 +1,76 @@
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, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and 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 kevin.deisz@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 https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Localytics http://www.localytics.com
3
+ Copyright (c) 2016-present Kevin Deisz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Thor::Hollaback
2
2
 
3
- [![Build Status](https://travis-ci.org/localytics/thor-hollaback.svg?branch=master)](https://travis-ci.org/localytics/thor-hollaback)
4
- [![Coverage Status](https://coveralls.io/repos/github/localytics/thor-hollaback/badge.svg?branch=master)](https://coveralls.io/github/localytics/thor-hollaback?branch=master)
3
+ [![Build Status](https://travis-ci.com/kddeisz/thor-hollaback.svg?branch=master)](https://travis-ci.com/kddeisz/thor-hollaback)
5
4
  [![Gem Version](https://img.shields.io/gem/v/thor-hollaback.svg?maxAge=2592000)](https://rubygems.org/gems/thor-hollaback)
6
5
 
7
6
  Adds callbacks to thor commands.
@@ -24,7 +23,7 @@ Or install it yourself as:
24
23
 
25
24
  ## Usage
26
25
 
27
- Uses the [`hollaback`](https://github.com/localytics/hollaback) gem to add callbacks to [`thor`](https://github.com/erikhuda/thor) commands. You can set CLI-level callbacks with the macros `before_all`, `after_all`, and `around_all`. You can set command-level callbacks with `before`, `after`, and `around`. Example below.
26
+ Uses the [`hollaback`](https://github.com/kddeisz/hollaback) gem to add callbacks to [`thor`](https://github.com/erikhuda/thor) commands. You can set CLI-level callbacks with the macros `before_all`, `after_all`, and `around_all`. You can set command-level callbacks with `before`, `after`, and `around`. Example below.
28
27
 
29
28
  ```ruby
30
29
  class CLI < Thor
@@ -90,7 +89,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
90
89
 
91
90
  ## Contributing
92
91
 
93
- Bug reports and pull requests are welcome on GitHub at https://github.com/localytics/thor-hollaback.
92
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kddeisz/thor-hollaback.
94
93
 
95
94
  ## License
96
95
 
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rake/testtask'
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 'thor/hollaback'
@@ -1,9 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'thor'
2
4
  require 'hollaback'
3
5
  require 'thor/hollaback/version'
4
6
 
5
7
  class Thor
6
8
  module Hollaback
9
+ # Extension that get loaded into the main Thor class
7
10
  module ClassExt
8
11
  # Methods for overall callbacks
9
12
  def class_callback_chain
@@ -46,6 +49,7 @@ class Thor
46
49
  end
47
50
  end
48
51
 
52
+ # Extensions that get loaded into the Thor command class
49
53
  module CommandExt
50
54
  def self.prepended(base)
51
55
  base.send(:attr_accessor, :callback_chain)
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Thor
2
4
  module Hollaback
3
- VERSION = '0.1.2'.freeze
5
+ VERSION = '0.2.0'
4
6
  end
5
7
  end
@@ -1,15 +1,17 @@
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 'thor/hollaback/version'
4
6
 
5
7
  Gem::Specification.new do |spec|
6
8
  spec.name = 'thor-hollaback'
7
9
  spec.version = Thor::Hollaback::VERSION
8
- spec.authors = ['Localytics']
9
- spec.email = ['oss@localytics.com']
10
+ spec.authors = ['Kevin Deisz']
11
+ spec.email = ['kevin.deisz@gmail.com']
10
12
 
11
13
  spec.summary = 'Adds callbacks to thor commands'
12
- spec.homepage = 'https://github.com/localytics/thor-hollaback'
14
+ spec.homepage = 'https://github.com/kddeisz/thor-hollaback'
13
15
  spec.license = 'MIT'
14
16
 
15
17
  files = `git ls-files -z`.split("\x0")
@@ -19,11 +21,11 @@ Gem::Specification.new do |spec|
19
21
  spec.require_paths = ['lib']
20
22
 
21
23
  spec.add_dependency 'hollaback', '~> 0.1.0'
22
- spec.add_dependency 'thor', '~> 0.20', '>= 0.19.1'
24
+ spec.add_dependency 'thor', '>= 0.19.1'
23
25
 
24
- spec.add_development_dependency 'bundler', '~> 1.16'
25
- spec.add_development_dependency 'minitest', '~> 5.10'
26
- spec.add_development_dependency 'rake', '~> 12.2'
27
- spec.add_development_dependency 'rubocop', '~> 0.51'
26
+ spec.add_development_dependency 'bundler', '~> 2.0'
27
+ spec.add_development_dependency 'minitest', '~> 5.11'
28
+ spec.add_development_dependency 'rake', '~> 13.0'
29
+ spec.add_development_dependency 'rubocop', '~> 0.73'
28
30
  spec.add_development_dependency 'simplecov', '~> 0.15'
29
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor-hollaback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Localytics
7
+ - Kevin Deisz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2019-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hollaback
@@ -28,9 +28,6 @@ dependencies:
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.20'
34
31
  - - ">="
35
32
  - !ruby/object:Gem::Version
36
33
  version: 0.19.1
@@ -38,9 +35,6 @@ dependencies:
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '0.20'
44
38
  - - ">="
45
39
  - !ruby/object:Gem::Version
46
40
  version: 0.19.1
@@ -50,56 +44,56 @@ dependencies:
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '1.16'
47
+ version: '2.0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '1.16'
54
+ version: '2.0'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: minitest
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '5.10'
61
+ version: '5.11'
68
62
  type: :development
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '5.10'
68
+ version: '5.11'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: rake
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '12.2'
75
+ version: '13.0'
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '12.2'
82
+ version: '13.0'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: rubocop
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: '0.51'
89
+ version: '0.73'
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: '0.51'
96
+ version: '0.73'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: simplecov
105
99
  requirement: !ruby/object:Gem::Requirement
@@ -116,14 +110,17 @@ dependencies:
116
110
  version: '0.15'
117
111
  description:
118
112
  email:
119
- - oss@localytics.com
113
+ - kevin.deisz@gmail.com
120
114
  executables: []
121
115
  extensions: []
122
116
  extra_rdoc_files: []
123
117
  files:
124
118
  - ".gitignore"
119
+ - ".mergify.yml"
125
120
  - ".rubocop.yml"
126
121
  - ".travis.yml"
122
+ - CHANGELOG.md
123
+ - CODE_OF_CONDUCT.md
127
124
  - Gemfile
128
125
  - LICENSE
129
126
  - README.md
@@ -133,7 +130,7 @@ files:
133
130
  - lib/thor/hollaback.rb
134
131
  - lib/thor/hollaback/version.rb
135
132
  - thor-hollaback.gemspec
136
- homepage: https://github.com/localytics/thor-hollaback
133
+ homepage: https://github.com/kddeisz/thor-hollaback
137
134
  licenses:
138
135
  - MIT
139
136
  metadata: {}
@@ -152,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
149
  - !ruby/object:Gem::Version
153
150
  version: '0'
154
151
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.6.13
152
+ rubygems_version: 3.1.1
157
153
  signing_key:
158
154
  specification_version: 4
159
155
  summary: Adds callbacks to thor commands