augury 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a64d5b9b6c80e57c0f10de6a8be3d6eb8bbf163961e8b3517747aaf6ab5bded6
4
- data.tar.gz: 3b9179deded9d6e36900413f1e7552827f9fa887113d255c48084444900c16fd
3
+ metadata.gz: 0202c829a5e6fdfb712f3cf87ea3a340d2242ed6c86a328ab6fefce9c255963d
4
+ data.tar.gz: 2a90f740ab640843302ae6bc5e767c6d2f486d3c9ff060c200f8721ada5c16bd
5
5
  SHA512:
6
- metadata.gz: af5ee70fa0b1055708dc0e2e6064f58dfb8d76ca15e8ccfdcade378c96f1510d848ff577073afbadceb49130289182df27342d7cb0ec835aac8dc5ff4843c839
7
- data.tar.gz: 744f11c04c5215569f3e4577fa1e2a99d10e5c27d9aca8753b550dea56b960cd6aad27c19ebb9601e75eccd136303a4f78bc92b83afaf6f0a82e2721d44a47c1
6
+ metadata.gz: 3c91a52995151ac50e642785bafe6247e79598eacda3ad32c3fd0ae8331b48596c6567342b17a11918761dff5da2ff2dbdd2544ec16643db666121689f95675f
7
+ data.tar.gz: 7c77c6c70e749e3c7f703a089554f686e3c7a1383c4f651a38a490b5f3c6244e28b658053a5bde478499e1994c6321817cd28ca6c8545b768a2fe83e2f72279d
@@ -1,5 +1,10 @@
1
1
  # Changes
2
2
 
3
+ ## 1.0.3 (2020-01-23)
4
+
5
+ - Pin Thor version to avoid issue with `options` override
6
+ - Add tests for `Augury::CLI`
7
+
3
8
  ## 1.0.2 (2020-01-09)
4
9
 
5
10
  - Fix bug with specific tweet count retrieval
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- augury (1.0.1)
4
+ augury (1.0.2)
5
5
  facets (~> 3.0)
6
- thor (~> 1.0)
6
+ thor (~> 1.0.0)
7
7
  twitter (~> 7.0)
8
8
 
9
9
  GEM
data/README.md CHANGED
@@ -201,7 +201,7 @@ $ bundle exec ruby exe/augury help
201
201
  You can run the tests with the rake task:
202
202
 
203
203
  ```sh
204
- $ bundle exec spec
204
+ $ bundle exec rspec
205
205
  ```
206
206
 
207
207
  #### Twitter ENV
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  # Actual dependencies
23
- spec.add_dependency 'thor', '~>1.0'
23
+ spec.add_dependency 'thor', '~>1.0.0'
24
24
  spec.add_dependency 'twitter', '~>7.0'
25
25
  ## For the word_wrap function
26
26
  spec.add_dependency 'facets', '~>3.0'
@@ -3,5 +3,10 @@
3
3
 
4
4
  require 'yaml'
5
5
 
6
- augury_config = YAML.load_file(File.expand_path('~/.augury.yml'))
7
- puts augury_config['twitter'].collect { |k, v| "export TWITTER_#{k.upcase}=#{v}" }.join("\n")
6
+ begin
7
+ augury_config = YAML.load_file(File.expand_path('~/.augury.yml'))
8
+ puts augury_config['twitter'].collect { |k, v| "export TWITTER_#{k.upcase}=#{v}" }.join("\n")
9
+ rescue Errno::ENOENT
10
+ puts 'echo "No config file present (~/.augury.yml) no env vars set"'
11
+ exit 1
12
+ end
@@ -72,7 +72,7 @@ module Augury
72
72
  },
73
73
  )
74
74
 
75
- config_path = File.expand_path('~/.augury.yml')
75
+ config_path = File.expand_path(ENV.fetch('AUGURY_CFG_PATH', '~/.augury.yml'))
76
76
  if File.file?(config_path)
77
77
  config_options = Thor::CoreExt::HashWithIndifferentAccess.new(YAML.load_file(config_path) || {})
78
78
  defaults = defaults.merge(config_options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Augury
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
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.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clayton Parker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-10 00:00:00.000000000 Z
11
+ date: 2021-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: twitter
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,6 @@ files:
73
73
  - LICENSE.txt
74
74
  - README.md
75
75
  - Rakefile
76
- - TODO.md
77
76
  - augury.gemspec
78
77
  - bin/console
79
78
  - bin/extract_creds
data/TODO.md DELETED
@@ -1,10 +0,0 @@
1
- # TODO
2
-
3
- Some ideas for things that could be added:
4
-
5
- - Add an option to limit the tweets from a certain date forward.
6
- This would allow for adding the latest tweets via cron.
7
- - Ask user for twitter config on first start, save it out
8
- - Series of regex that could be applied.
9
- This would be a way to make SeinfeldToday dialog get put on their own lines.
10
- - Different word wrapping options. To a width, or by sentence, or whatever.