inq 26.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.cirrus.yml +84 -0
  3. data/.codeclimate.yml +23 -0
  4. data/.github_changelog_generator +2 -0
  5. data/.gitignore +15 -0
  6. data/.rspec +2 -0
  7. data/.rubocop.yml +260 -0
  8. data/.travis.yml +24 -0
  9. data/CHANGELOG.md +499 -0
  10. data/CODE_OF_CONDUCT.md +49 -0
  11. data/CONTRIBUTING.md +34 -0
  12. data/Gemfile +15 -0
  13. data/ISSUES.md +62 -0
  14. data/LICENSE.txt +21 -0
  15. data/README.md +91 -0
  16. data/Rakefile +76 -0
  17. data/bin/console +14 -0
  18. data/bin/prerelease-generate-changelog +28 -0
  19. data/bin/setup +8 -0
  20. data/bors.toml +17 -0
  21. data/build-debug.rb +20 -0
  22. data/exe/inq +7 -0
  23. data/fixtures/vcr_cassettes/how-is-example-empty-repository.yml +597 -0
  24. data/fixtures/vcr_cassettes/how-is-example-repository.yml +768 -0
  25. data/fixtures/vcr_cassettes/how-is-from-config-frontmatter.yml +23940 -0
  26. data/fixtures/vcr_cassettes/how-is-how-is-travis-api-repos-builds.yml +66 -0
  27. data/fixtures/vcr_cassettes/how-is-with-config-file.yml +23940 -0
  28. data/fixtures/vcr_cassettes/how_is_contributions_additions_count.yml +247 -0
  29. data/fixtures/vcr_cassettes/how_is_contributions_all_contributors.yml +247 -0
  30. data/fixtures/vcr_cassettes/how_is_contributions_changed_files.yml +247 -0
  31. data/fixtures/vcr_cassettes/how_is_contributions_changes.yml +247 -0
  32. data/fixtures/vcr_cassettes/how_is_contributions_commits.yml +247 -0
  33. data/fixtures/vcr_cassettes/how_is_contributions_compare_url.yml +81 -0
  34. data/fixtures/vcr_cassettes/how_is_contributions_default_branch.yml +81 -0
  35. data/fixtures/vcr_cassettes/how_is_contributions_deletions_count.yml +247 -0
  36. data/fixtures/vcr_cassettes/how_is_contributions_new_contributors.yml +402 -0
  37. data/fixtures/vcr_cassettes/how_is_contributions_summary.yml +325 -0
  38. data/fixtures/vcr_cassettes/how_is_contributions_summary_2.yml +325 -0
  39. data/inq.gemspec +45 -0
  40. data/lib/inq.rb +63 -0
  41. data/lib/inq/cacheable.rb +71 -0
  42. data/lib/inq/cli.rb +135 -0
  43. data/lib/inq/config.rb +123 -0
  44. data/lib/inq/constants.rb +9 -0
  45. data/lib/inq/date_time_helpers.rb +48 -0
  46. data/lib/inq/exe.rb +66 -0
  47. data/lib/inq/frontmatter.rb +51 -0
  48. data/lib/inq/report.rb +140 -0
  49. data/lib/inq/report_collection.rb +113 -0
  50. data/lib/inq/sources.rb +11 -0
  51. data/lib/inq/sources/ci/appveyor.rb +87 -0
  52. data/lib/inq/sources/ci/travis.rb +159 -0
  53. data/lib/inq/sources/github.rb +57 -0
  54. data/lib/inq/sources/github/contributions.rb +204 -0
  55. data/lib/inq/sources/github/issue_fetcher.rb +148 -0
  56. data/lib/inq/sources/github/issues.rb +126 -0
  57. data/lib/inq/sources/github/pulls.rb +29 -0
  58. data/lib/inq/sources/github_helpers.rb +106 -0
  59. data/lib/inq/template.rb +9 -0
  60. data/lib/inq/templates/contributions_partial.html +1 -0
  61. data/lib/inq/templates/issues_or_pulls_partial.html +7 -0
  62. data/lib/inq/templates/new_contributors_partial.html +5 -0
  63. data/lib/inq/templates/report.html +19 -0
  64. data/lib/inq/templates/report_partial.html +12 -0
  65. data/lib/inq/text.rb +26 -0
  66. data/lib/inq/version.rb +6 -0
  67. metadata +263 -0
@@ -0,0 +1,12 @@
1
+ %{frontmatter}
2
+ <h1>%{title}</h1>
3
+ <p>%{contributions_summary}</p>
4
+
5
+ <h2>New Contributors</h2>
6
+ %{new_contributors}
7
+
8
+ <h2>Pull Requests</h2>
9
+ %{pulls_summary}
10
+
11
+ <h2>Issues</h2>
12
+ %{issues_summary}
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Inq
4
+ ##
5
+ # Helper class for printing text, but hiding it when e.g. running in CI.
6
+ class Text
7
+ def self.show_default_output
8
+ @show_default_output = true unless
9
+ instance_variable_defined?(:"@show_default_output")
10
+
11
+ @show_default_output
12
+ end
13
+
14
+ def self.show_default_output=(val)
15
+ @show_default_output = val
16
+ end
17
+
18
+ def self.print(*args)
19
+ Kernel.print(*args) if Inq::Text.show_default_output
20
+ end
21
+
22
+ def self.puts(*args)
23
+ Kernel.puts(*args) if Inq::Text.show_default_output
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Inq
4
+ VERSION = "26.0.0"
5
+ VERSION_STRING = "inq #{VERSION}"
6
+ end
metadata ADDED
@@ -0,0 +1,263 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: inq
3
+ version: !ruby/object:Gem::Version
4
+ version: 26.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ellen Marie Dash
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-05-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: github_api
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.18.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.18.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: okay
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '11.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '11.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: json_pure
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '12.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '12.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: timecop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.9.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.9.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: vcr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: webmock
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.68.1
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.68.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: github_changelog_generator
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ description:
168
+ email:
169
+ - me@duckie.co
170
+ executables:
171
+ - inq
172
+ extensions: []
173
+ extra_rdoc_files: []
174
+ files:
175
+ - ".cirrus.yml"
176
+ - ".codeclimate.yml"
177
+ - ".github_changelog_generator"
178
+ - ".gitignore"
179
+ - ".rspec"
180
+ - ".rubocop.yml"
181
+ - ".travis.yml"
182
+ - CHANGELOG.md
183
+ - CODE_OF_CONDUCT.md
184
+ - CONTRIBUTING.md
185
+ - Gemfile
186
+ - ISSUES.md
187
+ - LICENSE.txt
188
+ - README.md
189
+ - Rakefile
190
+ - bin/console
191
+ - bin/prerelease-generate-changelog
192
+ - bin/setup
193
+ - bors.toml
194
+ - build-debug.rb
195
+ - exe/inq
196
+ - fixtures/vcr_cassettes/how-is-example-empty-repository.yml
197
+ - fixtures/vcr_cassettes/how-is-example-repository.yml
198
+ - fixtures/vcr_cassettes/how-is-from-config-frontmatter.yml
199
+ - fixtures/vcr_cassettes/how-is-how-is-travis-api-repos-builds.yml
200
+ - fixtures/vcr_cassettes/how-is-with-config-file.yml
201
+ - fixtures/vcr_cassettes/how_is_contributions_additions_count.yml
202
+ - fixtures/vcr_cassettes/how_is_contributions_all_contributors.yml
203
+ - fixtures/vcr_cassettes/how_is_contributions_changed_files.yml
204
+ - fixtures/vcr_cassettes/how_is_contributions_changes.yml
205
+ - fixtures/vcr_cassettes/how_is_contributions_commits.yml
206
+ - fixtures/vcr_cassettes/how_is_contributions_compare_url.yml
207
+ - fixtures/vcr_cassettes/how_is_contributions_default_branch.yml
208
+ - fixtures/vcr_cassettes/how_is_contributions_deletions_count.yml
209
+ - fixtures/vcr_cassettes/how_is_contributions_new_contributors.yml
210
+ - fixtures/vcr_cassettes/how_is_contributions_summary.yml
211
+ - fixtures/vcr_cassettes/how_is_contributions_summary_2.yml
212
+ - inq.gemspec
213
+ - lib/inq.rb
214
+ - lib/inq/cacheable.rb
215
+ - lib/inq/cli.rb
216
+ - lib/inq/config.rb
217
+ - lib/inq/constants.rb
218
+ - lib/inq/date_time_helpers.rb
219
+ - lib/inq/exe.rb
220
+ - lib/inq/frontmatter.rb
221
+ - lib/inq/report.rb
222
+ - lib/inq/report_collection.rb
223
+ - lib/inq/sources.rb
224
+ - lib/inq/sources/ci/appveyor.rb
225
+ - lib/inq/sources/ci/travis.rb
226
+ - lib/inq/sources/github.rb
227
+ - lib/inq/sources/github/contributions.rb
228
+ - lib/inq/sources/github/issue_fetcher.rb
229
+ - lib/inq/sources/github/issues.rb
230
+ - lib/inq/sources/github/pulls.rb
231
+ - lib/inq/sources/github_helpers.rb
232
+ - lib/inq/template.rb
233
+ - lib/inq/templates/contributions_partial.html
234
+ - lib/inq/templates/issues_or_pulls_partial.html
235
+ - lib/inq/templates/new_contributors_partial.html
236
+ - lib/inq/templates/report.html
237
+ - lib/inq/templates/report_partial.html
238
+ - lib/inq/text.rb
239
+ - lib/inq/version.rb
240
+ homepage: https://github.com/duckinator/inq
241
+ licenses:
242
+ - MIT
243
+ metadata: {}
244
+ post_install_message:
245
+ rdoc_options: []
246
+ require_paths:
247
+ - lib
248
+ required_ruby_version: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - "~>"
251
+ - !ruby/object:Gem::Version
252
+ version: '2.4'
253
+ required_rubygems_version: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ requirements: []
259
+ rubygems_version: 3.0.3
260
+ signing_key:
261
+ specification_version: 4
262
+ summary: Quantify the health of a GitHub repository.
263
+ test_files: []