pain 0.1.1 → 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: 7ed10c1b52b39337e13741f8cc57fb41e8b116c5e7f41a8438af2bb441d19a68
4
- data.tar.gz: 10fb7b20f0fafaf75c2e2c3e06c638939b50dae86eca5e1f54442e1a2abb044b
3
+ metadata.gz: f552d25b184c1963e158d8122d6bbf723ded5894540ede5c1a9e67de15fae8d6
4
+ data.tar.gz: 993afeaac56795a0cfecaa1ac1335f549aa77b1cec6d10333b56be5b9ac4ad21
5
5
  SHA512:
6
- metadata.gz: fc3fc6de280eac3f11662545ee19d6dea0d982fe56a8fc994f637c6a3f61bf6778c84483a2503c2ee8c47e3c23169e991e9fc325b4cc2c4054012b4d6824ab90
7
- data.tar.gz: 24f06280c62da6d1a3e745f27d35b109bc29c4512ad0c1160452c886c7356b1da70e6bd3d1dc995798f0f6ca535ddcbc0b22d804bf1a3181e27f0b81240c43a9
6
+ metadata.gz: 300dc6d6f4fd5e2f926761a63db59d2419d2664cb30c4b396a0429a9b2b20229f8c62185ee7ee1d63b6516ddadc110ae0dd8371404e5af2e1061a87a5687eed8
7
+ data.tar.gz: 46e9c1aa2cda46a74ec9775dba46b3c683670d23a22bf2f7a3f2d76933f49ef3378ada8b53df8b4a795395dc2051a233650e881b7e7876ae7242f69e6d0d1e4a
@@ -5,7 +5,11 @@ require 'term/ansicolor'
5
5
  module Pain
6
6
  module ColorStrings
7
7
  refine String do
8
- include Term::ANSIColor
8
+ Term::ANSIColor.public_instance_methods.each do |method|
9
+ define_method(method) do |*args|
10
+ Term::ANSIColor.send(method, *args).to_s
11
+ end
12
+ end
9
13
  end
10
14
  end
11
15
  end
data/lib/pain/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pain
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
data/pain.gemspec CHANGED
@@ -14,14 +14,15 @@ Gem::Specification.new do |spec|
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/pain}) { |f| File.basename(f) }
17
+ spec.bindir = 'exe'
18
+ spec.executables = 'pain'
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
20
  spec.require_paths = ['lib']
21
+ spec.required_ruby_version = '>= 3.2'
20
22
 
21
- spec.add_dependency 'term-ansicolor'
22
- spec.add_dependency 'tins'
23
+ spec.add_dependency 'term-ansicolor', '~> 1.11'
23
24
 
24
- spec.add_development_dependency 'bundler', '~> 2'
25
+ spec.add_development_dependency 'bundler', '~> 2.5'
25
26
  spec.add_development_dependency 'rake'
26
27
  spec.add_development_dependency 'rspec', '< 4'
27
28
  spec.add_development_dependency 'simplecov'
metadata CHANGED
@@ -1,57 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Nicholson
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-04 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: tins
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
17
+ - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '0'
19
+ version: '1.11'
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - ">="
24
+ - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: '1.11'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '2'
33
+ version: '2.5'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '2'
40
+ version: '2.5'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -151,8 +137,8 @@ files:
151
137
  - LICENSE.txt
152
138
  - README.md
153
139
  - Rakefile
154
- - bin/.rubocop.yml
155
- - bin/pain
140
+ - exe/.rubocop.yml
141
+ - exe/pain
156
142
  - lib/pain.rb
157
143
  - lib/pain/cli.rb
158
144
  - lib/pain/color_strings.rb
@@ -173,14 +159,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
159
  requirements:
174
160
  - - ">="
175
161
  - !ruby/object:Gem::Version
176
- version: '0'
162
+ version: '3.2'
177
163
  required_rubygems_version: !ruby/object:Gem::Requirement
178
164
  requirements:
179
165
  - - ">="
180
166
  - !ruby/object:Gem::Version
181
167
  version: '0'
182
168
  requirements: []
183
- rubygems_version: 3.1.6
169
+ rubygems_version: 3.5.22
184
170
  signing_key:
185
171
  specification_version: 4
186
172
  summary: Quickly calculate User Pain for a bug
File without changes
/data/{bin → exe}/pain RENAMED
File without changes