augury 1.1.2 → 1.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: 9c891eea8bed0f5f4745bccf4dd9f21bf76531d4444dc8c4d499089bee630e71
4
- data.tar.gz: 51eba708d2e431d2d98818fa7b87c7756a20920d6bda90116fefee7dd1c36d3e
3
+ metadata.gz: 59bd84b6b102ff46342777c9a2525f3aab4bbac6ac0cfd2a9b608ace5c754fa2
4
+ data.tar.gz: 2ac6e27fd11e279f66a0e80e5ff2206859d47e160128bd26ad944f4e9d24caa4
5
5
  SHA512:
6
- metadata.gz: 71016c4ce98d20acb04b3fbef356edd340b4e2a1b7ebac45ff309b19d33823fdc167517d66311063312f3405740fdb93a5c41bd383d19268447268f5303c73f0
7
- data.tar.gz: f7f2c2a1877e698647ed7da52eeb7632445f8639898f51a635f517d6380b42d38ec6adcd0742dae151ff223524127756703758bca9d9efc6a82690597d8aa2d3
6
+ metadata.gz: 9da3e4c0dbf895ede6e40ff7ba9007180b0f08b44ce105ed402bd11b3a49b65122134c0c878d8f67cbae30d37bbf8f66139f5c8ea3abe09a054322e2e3c365c3
7
+ data.tar.gz: f1fd1dafceb38a517bd2072b8034aa34e81f45a3e4356dc98eda67a617debdde1e603d05f59dc38d38c2dbb755649501dc4225e857f9e906b3149975eadf3baf
data/.codeclimate.yml CHANGED
@@ -4,7 +4,7 @@ plugins:
4
4
  enabled: true
5
5
  rubocop:
6
6
  enabled: true
7
- channel: rubocop-0-92
7
+ channel: rubocop-1-31-0
8
8
  markdownlint:
9
9
  enabled: true
10
10
  bundler-audit:
@@ -6,7 +6,7 @@ jobs:
6
6
  fail-fast: false
7
7
  matrix:
8
8
  os: [ubuntu-latest]
9
- ruby: [2.6, 2.7, '3.0']
9
+ ruby: [2.7, '3.0', '3.1']
10
10
  runs-on: ${{ matrix.os }}
11
11
  env:
12
12
  TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
@@ -23,7 +23,7 @@ jobs:
23
23
  ruby-version: ${{ matrix.ruby }}
24
24
  bundler-cache: true
25
25
  - run: bundle exec rake
26
- - if: matrix.os == 'ubuntu-latest' && matrix.ruby == '3.0'
26
+ - if: matrix.os == 'ubuntu-latest' && matrix.ruby == '3.1'
27
27
  run: |
28
28
  curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
29
29
  chmod +x ./cc-test-reporter
data/.rubocop.yml CHANGED
@@ -1,8 +1,9 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 2.7
3
3
  Exclude:
4
4
  - bin/**/*
5
5
  - vendor/**/*
6
+ NewCops: enable
6
7
 
7
8
  Style/TrailingCommaInArguments:
8
9
  EnforcedStyleForMultiline: comma
@@ -16,6 +17,9 @@ Style/TrailingCommaInArrayLiteral:
16
17
  Style/RedundantSelf:
17
18
  Enabled: false
18
19
 
20
+ Style/Documentation:
21
+ Enabled: false
22
+
19
23
  Layout/IndentationWidth:
20
24
  Enabled: false
21
25
 
@@ -40,6 +44,15 @@ Layout/CaseIndentation:
40
44
  EnforcedStyle: end
41
45
  IndentOneStep: true
42
46
 
47
+ Metrics/AbcSize:
48
+ Max: 25
49
+
50
+ Metrics/CyclomaticComplexity:
51
+ Max: 25
52
+
53
+ Metrics/MethodLength:
54
+ Max: 20
55
+
43
56
  # Ignore for rspec
44
57
  Metrics/BlockLength:
45
- ExcludedMethods: ['describe', 'context']
58
+ IgnoredMethods: ['describe', 'context']
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.2
1
+ 2.7.6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 1.2.0 (2022-10-26)
4
+
5
+ - Test against latest Ruby 3.1, minimum version 2.7
6
+
3
7
  ## 1.1.2 (2022-04-12)
4
8
 
5
9
  - Fix issue with mismatched case for Twitter screen_name. (#22)
data/Gemfile CHANGED
@@ -21,7 +21,8 @@ gem 'pry-doc'
21
21
 
22
22
  # Linting / completion
23
23
  gem 'bundler-audit'
24
- gem 'rubocop', '0.92'
24
+ # This has to match the code climate channel in .codeclimate.yml
25
+ gem 'rubocop', '1.31.0'
25
26
  gem 'rubocop-rake'
26
27
  gem 'rubocop-rspec'
27
28
  gem 'solargraph'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- augury (1.1.2)
4
+ augury (1.2.0)
5
5
  thor (~> 1.0.0)
6
6
  twitter (~> 7.0)
7
7
  word_wrap (~> 1.0)
@@ -9,14 +9,14 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.8.0)
13
- public_suffix (>= 2.0.2, < 5.0)
12
+ addressable (2.8.1)
13
+ public_suffix (>= 2.0.2, < 6.0)
14
14
  ast (2.4.2)
15
15
  awesome_print (1.9.2)
16
16
  backport (1.2.0)
17
17
  benchmark (0.2.0)
18
18
  buftok (0.2.0)
19
- bundler-audit (0.9.0.1)
19
+ bundler-audit (0.9.1)
20
20
  bundler (>= 1.2.0, < 3)
21
21
  thor (~> 1.0)
22
22
  byebug (11.1.3)
@@ -39,15 +39,15 @@ GEM
39
39
  http-cookie (~> 1.0)
40
40
  http-form_data (~> 2.2)
41
41
  http-parser (~> 1.2.0)
42
- http-cookie (1.0.4)
42
+ http-cookie (1.0.5)
43
43
  domain_name (~> 0.5)
44
44
  http-form_data (2.3.0)
45
45
  http-parser (1.2.3)
46
46
  ffi-compiler (>= 1.0, < 2.0)
47
47
  http_parser.rb (0.6.0)
48
48
  jaro_winkler (1.5.4)
49
- json (2.6.1)
50
- kramdown (2.3.2)
49
+ json (2.6.2)
50
+ kramdown (2.4.0)
51
51
  rexml
52
52
  kramdown-parser-gfm (1.1.0)
53
53
  kramdown (~> 2.0)
@@ -55,13 +55,13 @@ GEM
55
55
  thread_safe (~> 0.3, >= 0.3.1)
56
56
  method_source (1.0.0)
57
57
  mini_portile2 (2.8.0)
58
- multipart-post (2.1.1)
58
+ multipart-post (2.2.3)
59
59
  naught (1.1.0)
60
- nokogiri (1.13.4)
60
+ nokogiri (1.13.9)
61
61
  mini_portile2 (~> 2.8.0)
62
62
  racc (~> 1.4)
63
63
  parallel (1.22.1)
64
- parser (3.1.1.0)
64
+ parser (3.1.2.1)
65
65
  ast (~> 2.4.1)
66
66
  pry (0.14.1)
67
67
  coderay (~> 1.1)
@@ -69,17 +69,17 @@ GEM
69
69
  pry-awesome_print (9.6.11)
70
70
  awesome_print (>= 1.1.0, < 999)
71
71
  pry (>= 0.9.0, < 999)
72
- pry-byebug (3.8.0)
72
+ pry-byebug (3.10.1)
73
73
  byebug (~> 11.0)
74
- pry (~> 0.10)
74
+ pry (>= 0.13, < 0.15)
75
75
  pry-doc (1.3.0)
76
76
  pry (~> 0.11)
77
77
  yard (~> 0.9.11)
78
- public_suffix (4.0.7)
78
+ public_suffix (5.0.0)
79
79
  racc (1.6.0)
80
80
  rainbow (3.1.1)
81
81
  rake (13.0.6)
82
- regexp_parser (2.3.0)
82
+ regexp_parser (2.6.0)
83
83
  reverse_markdown (2.1.1)
84
84
  nokogiri
85
85
  rexml (3.2.5)
@@ -89,29 +89,28 @@ GEM
89
89
  rspec-mocks (~> 3.11.0)
90
90
  rspec-core (3.11.0)
91
91
  rspec-support (~> 3.11.0)
92
- rspec-expectations (3.11.0)
92
+ rspec-expectations (3.11.1)
93
93
  diff-lcs (>= 1.2.0, < 2.0)
94
94
  rspec-support (~> 3.11.0)
95
95
  rspec-mocks (3.11.1)
96
96
  diff-lcs (>= 1.2.0, < 2.0)
97
97
  rspec-support (~> 3.11.0)
98
- rspec-support (3.11.0)
99
- rubocop (0.92.0)
98
+ rspec-support (3.11.1)
99
+ rubocop (1.31.0)
100
100
  parallel (~> 1.10)
101
- parser (>= 2.7.1.5)
101
+ parser (>= 3.1.0.0)
102
102
  rainbow (>= 2.2.2, < 4.0)
103
- regexp_parser (>= 1.7)
104
- rexml
105
- rubocop-ast (>= 0.5.0)
103
+ regexp_parser (>= 1.8, < 3.0)
104
+ rexml (>= 3.2.5, < 4.0)
105
+ rubocop-ast (>= 1.18.0, < 2.0)
106
106
  ruby-progressbar (~> 1.7)
107
- unicode-display_width (>= 1.4.0, < 2.0)
108
- rubocop-ast (1.17.0)
107
+ unicode-display_width (>= 1.4.0, < 3.0)
108
+ rubocop-ast (1.23.0)
109
109
  parser (>= 3.1.1.0)
110
- rubocop-rake (0.5.1)
111
- rubocop
112
- rubocop-rspec (1.44.1)
113
- rubocop (~> 0.87)
114
- rubocop-ast (>= 0.7.1)
110
+ rubocop-rake (0.6.0)
111
+ rubocop (~> 1.0)
112
+ rubocop-rspec (2.12.1)
113
+ rubocop (~> 1.31)
115
114
  ruby-progressbar (1.11.0)
116
115
  simple_oauth (0.3.1)
117
116
  simplecov (0.17.1)
@@ -119,7 +118,7 @@ GEM
119
118
  json (>= 1.8, < 3)
120
119
  simplecov-html (~> 0.10.0)
121
120
  simplecov-html (0.10.2)
122
- solargraph (0.44.3)
121
+ solargraph (0.47.2)
123
122
  backport (~> 1.2)
124
123
  benchmark
125
124
  bundler (>= 1.17.2)
@@ -136,7 +135,7 @@ GEM
136
135
  yard (~> 0.9, >= 0.9.24)
137
136
  thor (1.0.1)
138
137
  thread_safe (0.3.6)
139
- tilt (2.0.10)
138
+ tilt (2.0.11)
140
139
  twitter (7.0.0)
141
140
  addressable (~> 2.3)
142
141
  buftok (~> 0.2.0)
@@ -150,16 +149,16 @@ GEM
150
149
  simple_oauth (~> 0.3.0)
151
150
  unf (0.1.4)
152
151
  unf_ext
153
- unf_ext (0.0.8.1)
154
- unicode-display_width (1.8.0)
152
+ unf_ext (0.0.8.2)
153
+ unicode-display_width (2.3.0)
155
154
  vcr (6.1.0)
156
- webmock (3.14.0)
155
+ webmock (3.18.1)
157
156
  addressable (>= 2.8.0)
158
157
  crack (>= 0.3.2)
159
158
  hashdiff (>= 0.4.0, < 2.0.0)
160
159
  webrick (1.7.0)
161
160
  word_wrap (1.0.0)
162
- yard (0.9.27)
161
+ yard (0.9.28)
163
162
  webrick (~> 1.7.0)
164
163
 
165
164
  PLATFORMS
@@ -174,7 +173,7 @@ DEPENDENCIES
174
173
  pry-doc
175
174
  rake
176
175
  rspec (~> 3.0)
177
- rubocop (= 0.92)
176
+ rubocop (= 1.31.0)
178
177
  rubocop-rake
179
178
  rubocop-rspec
180
179
  simplecov (< 0.18)
@@ -183,4 +182,4 @@ DEPENDENCIES
183
182
  webmock
184
183
 
185
184
  BUNDLED WITH
186
- 2.1.4
185
+ 2.3.24
data/augury.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = 'This gem turns a twitter feed into a fortune file that you can use with the fortune program'
13
13
  spec.homepage = 'https://github.com/claytron/augury'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.bindir = 'exe'
@@ -20,8 +20,10 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  # Actual dependencies
23
+ # TODO: The options override in Augury::CLI doesn't work in Thor 1.1+
23
24
  spec.add_dependency 'thor', '~>1.0.0'
24
25
  spec.add_dependency 'twitter', '~>7.0'
25
26
  ## For the word_wrap function
26
27
  spec.add_dependency 'word_wrap', '~>1.0'
28
+ spec.metadata['rubygems_mfa_required'] = 'true'
27
29
  end
data/bin/extract_creds CHANGED
@@ -4,7 +4,10 @@
4
4
  require 'yaml'
5
5
 
6
6
  begin
7
- augury_config = YAML.load_file(File.expand_path('~/.augury.yml'))
7
+ augury_config = YAML.load_file(
8
+ File.expand_path('~/.augury.yml'),
9
+ permitted_classes: [Regexp],
10
+ )
8
11
  puts augury_config['twitter'].collect { |k, v| "export TWITTER_#{k.upcase}=#{v}" }.join("\n")
9
12
  rescue Errno::ENOENT
10
13
  puts 'echo "No config file present (~/.augury.yml) no env vars set"'
data/exe/augury CHANGED
@@ -1,3 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
2
4
  require 'augury/cli'
3
5
  Augury::CLI.start
data/lib/augury/cli.rb CHANGED
@@ -74,6 +74,7 @@ module Augury
74
74
 
75
75
  private
76
76
 
77
+ # TODO: This override doesn't work in Thor 1.1+
77
78
  def options
78
79
  original_options = super
79
80
  defaults = Thor::CoreExt::HashWithIndifferentAccess.new(
@@ -92,7 +92,7 @@ module Augury
92
92
 
93
93
  def transforms
94
94
  all_transforms = []
95
- all_transforms << [/https?:\/\/[^\s]+/, ''] if @config[:remove_links]
95
+ all_transforms << [%r{https?://[^\s]+}, ''] if @config[:remove_links]
96
96
  return all_transforms unless @config[:apply_transforms]
97
97
 
98
98
  all_transforms.push(*@config.dig('transforms', @username) || [])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Augury
4
- VERSION = '1.1.2'
4
+ VERSION = '1.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: augury
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clayton Parker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-12 00:00:00.000000000 Z
11
+ date: 2022-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -90,7 +90,8 @@ files:
90
90
  homepage: https://github.com/claytron/augury
91
91
  licenses:
92
92
  - MIT
93
- metadata: {}
93
+ metadata:
94
+ rubygems_mfa_required: 'true'
94
95
  post_install_message:
95
96
  rdoc_options: []
96
97
  require_paths:
@@ -99,14 +100,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - ">="
101
102
  - !ruby/object:Gem::Version
102
- version: 2.6.0
103
+ version: 2.7.0
103
104
  required_rubygems_version: !ruby/object:Gem::Requirement
104
105
  requirements:
105
106
  - - ">="
106
107
  - !ruby/object:Gem::Version
107
108
  version: '0'
108
109
  requirements: []
109
- rubygems_version: 3.1.4
110
+ rubygems_version: 3.3.24
110
111
  signing_key:
111
112
  specification_version: 4
112
113
  summary: Turn a twitter feed into a fortune file