augury 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +58 -8
- data/.rbenv-gemsets +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +6 -0
- data/lib/augury/cli.rb +6 -0
- data/lib/augury/fortune.rb +2 -1
- data/lib/augury/version.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c20cb6d68923a886d955dc7f94305b9f59acb06991e96112170b933c4dbf56ae
|
4
|
+
data.tar.gz: 29a140a75cb40148ac27955ccfb489e322f79a54e9f735933e67dc0f291588b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81038a2cd623f5a7ba2ba9e38bcceb104b301a90276e71f4eaa2a37152f49ffa45cae9d01e83a0ec1142401d1a006cb4cca348efe3c2ace6d2c57bd99555b0b2
|
7
|
+
data.tar.gz: 24ddd1018b9ff51169a2c8dd6d76e43623e84fac2a19a3161ee96b1947829967c586c46b41fac222aa8befa7a22d3d280da5645ffd05f898f75cf3ca7d8b2abc
|
data/.gitignore
CHANGED
@@ -1,13 +1,63 @@
|
|
1
|
-
|
2
|
-
/
|
3
|
-
|
4
|
-
|
1
|
+
# gem sets
|
2
|
+
/gems/
|
3
|
+
|
4
|
+
# rspec failure tracking
|
5
|
+
.rspec_status
|
6
|
+
|
7
|
+
# Ruby.gitignore
|
8
|
+
*.gem
|
9
|
+
*.rbc
|
10
|
+
/.config
|
5
11
|
/coverage/
|
6
|
-
/
|
12
|
+
/InstalledFiles
|
7
13
|
/pkg/
|
8
14
|
/spec/reports/
|
15
|
+
/spec/examples.txt
|
16
|
+
/test/tmp/
|
17
|
+
/test/version_tmp/
|
9
18
|
/tmp/
|
10
|
-
/*.gem
|
11
19
|
|
12
|
-
#
|
13
|
-
.
|
20
|
+
# Used by dotenv library to load environment variables.
|
21
|
+
# .env
|
22
|
+
|
23
|
+
# Ignore Byebug command history file.
|
24
|
+
.byebug_history
|
25
|
+
|
26
|
+
## Specific to RubyMotion:
|
27
|
+
.dat*
|
28
|
+
.repl_history
|
29
|
+
build/
|
30
|
+
*.bridgesupport
|
31
|
+
build-iPhoneOS/
|
32
|
+
build-iPhoneSimulator/
|
33
|
+
|
34
|
+
## Specific to RubyMotion (use of CocoaPods):
|
35
|
+
#
|
36
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
37
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
38
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
39
|
+
#
|
40
|
+
# vendor/Pods/
|
41
|
+
|
42
|
+
## Documentation cache and generated files:
|
43
|
+
/.yardoc/
|
44
|
+
/_yardoc/
|
45
|
+
/doc/
|
46
|
+
/rdoc/
|
47
|
+
|
48
|
+
## Environment normalization:
|
49
|
+
/.bundle/
|
50
|
+
/vendor/bundle
|
51
|
+
/lib/bundler/man/
|
52
|
+
|
53
|
+
# for a library or gem, you might want to ignore these files since the code is
|
54
|
+
# intended to run in multiple environments; otherwise, check them in:
|
55
|
+
# Gemfile.lock
|
56
|
+
# .ruby-version
|
57
|
+
# .ruby-gemset
|
58
|
+
|
59
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
60
|
+
.rvmrc
|
61
|
+
|
62
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
63
|
+
# .rubocop-https?--*
|
data/.rbenv-gemsets
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
./gems
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
augury
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.2
|
data/CHANGELOG.md
CHANGED
data/lib/augury/cli.rb
CHANGED
@@ -53,6 +53,11 @@ module Augury
|
|
53
53
|
aliases: '-t',
|
54
54
|
desc: 'Apply transforms from config file. DEFAULT: false'
|
55
55
|
|
56
|
+
option :debug,
|
57
|
+
type: :boolean,
|
58
|
+
aliases: '-d',
|
59
|
+
hide: true
|
60
|
+
|
56
61
|
def generate(username, *path)
|
57
62
|
path = File.expand_path(path[0] || username)
|
58
63
|
augury = Augury::Fortune.new(username, path, options)
|
@@ -63,6 +68,7 @@ module Augury
|
|
63
68
|
rescue StandardError => e
|
64
69
|
say 'There was an error running the command. Details below:'
|
65
70
|
say e.message
|
71
|
+
puts e.backtrace if options[:debug]
|
66
72
|
exit 1
|
67
73
|
end
|
68
74
|
|
data/lib/augury/fortune.rb
CHANGED
@@ -56,7 +56,8 @@ module Augury
|
|
56
56
|
WordWrap.ww text, @config.fetch(:width, 72)
|
57
57
|
end
|
58
58
|
author = @config[:attribution] ? "\n-- #{@twitter.user(@username).name}\n" : ''
|
59
|
-
formatted.join("#{author}%\n")
|
59
|
+
text = formatted.join("#{author}%\n")
|
60
|
+
text + author if author
|
60
61
|
end
|
61
62
|
|
62
63
|
def write_fortune
|
data/lib/augury/version.rb
CHANGED
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.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clayton Parker
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -63,8 +63,11 @@ extra_rdoc_files: []
|
|
63
63
|
files:
|
64
64
|
- ".codeclimate.yml"
|
65
65
|
- ".gitignore"
|
66
|
+
- ".rbenv-gemsets"
|
66
67
|
- ".rspec"
|
67
68
|
- ".rubocop.yml"
|
69
|
+
- ".ruby-gemset"
|
70
|
+
- ".ruby-version"
|
68
71
|
- ".solargraph.yml"
|
69
72
|
- ".travis.yml"
|
70
73
|
- CHANGELOG.md
|
@@ -87,7 +90,7 @@ homepage: https://github.com/claytron/augury
|
|
87
90
|
licenses:
|
88
91
|
- MIT
|
89
92
|
metadata: {}
|
90
|
-
post_install_message:
|
93
|
+
post_install_message:
|
91
94
|
rdoc_options: []
|
92
95
|
require_paths:
|
93
96
|
- lib
|
@@ -103,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
106
|
version: '0'
|
104
107
|
requirements: []
|
105
108
|
rubygems_version: 3.1.4
|
106
|
-
signing_key:
|
109
|
+
signing_key:
|
107
110
|
specification_version: 4
|
108
111
|
summary: Turn a twitter feed into a fortune file
|
109
112
|
test_files: []
|