Skip to content

Commit 69d8b51

Browse files
committed
Fixes #33 UI strings read 'Github' instead of 'GitHub'
1 parent 6cd3924 commit 69d8b51

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This project is published under the [MIT License](LICENSE.md).
8484
[github-search]: https://docs.github.com/en/free-pro-team@latest/github/searching-for-information-on-github/searching-on-github
8585
[download-packal]: https://www.packal.org/workflow/github-repos
8686
[download-releases]: https://github.com/edgarjs/alfred-github-repos/releases
87-
[personal-access-token]: https://github.com/settings/tokens/new?description=Github%20Repos%20Alfred%20workflow&scopes=repo
87+
[personal-access-token]: https://github.com/settings/tokens/new?description=GitHub%20Repos%20Alfred%20workflow&scopes=repo
8888
[pulls-page]: https://github.com/pulls
8989
[notifications-page]: https://github.com/notifications
9090
[alfred-env-vars]: https://www.alfredapp.com/help/workflows/script-environment-variables/

app.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$stdout.sync = true
44
$LOAD_PATH.unshift File.expand_path('lib')
55

6-
require 'data_source/client/github'
6+
require 'data_source/client/git_hub'
77
require 'data_source/pull_requests'
88
require 'data_source/repositories'
99
require 'commands/help'
@@ -14,7 +14,7 @@
1414
class App
1515
class << self
1616
def client
17-
DataSource::Client::Github.new(
17+
DataSource::Client::GitHub.new(
1818
host: ENV['GITHUB_API_HOST'],
1919
access_token: ENV['GITHUB_ACCESS_TOKEN'],
2020
me_account: ENV['GITHUB_ME_ACCOUNT'],

assets/info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ fi</string>
355355
<key>spaces</key>
356356
<string></string>
357357
<key>url</key>
358-
<string>https://{var:GITHUB_HOST}/settings/tokens/new?description=Github%20Repos%20Alfred%20workflow&amp;scopes=repo</string>
358+
<string>https://{var:GITHUB_HOST}/settings/tokens/new?description=GitHub%20Repos%20Alfred%20workflow&amp;scopes=repo</string>
359359
<key>utf8</key>
360360
<false/>
361361
</dict>
@@ -448,7 +448,7 @@ fi</string>
448448
<key>spaces</key>
449449
<string></string>
450450
<key>url</key>
451-
<string>https://{var:GITHUB_HOST}/settings/tokens/new?description=Github%20Repos%20Alfred%20workflow&amp;scopes=repo</string>
451+
<string>https://{var:GITHUB_HOST}/settings/tokens/new?description=GitHub%20Repos%20Alfred%20workflow&amp;scopes=repo</string>
452452
<key>utf8</key>
453453
<false/>
454454
</dict>

lib/commands/help.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Commands
77
class Help
88

99
HEAD = <<~HEAD
10-
Github Repos workflow for Alfred - CLI
10+
GitHub Repos workflow for Alfred - CLI
1111
Version: #{App::VERSION}
1212
HEAD
1313

lib/data_source/client/github.rb renamed to lib/data_source/client/git_hub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
module DataSource
88
module Client
9-
class Github
9+
class GitHub
1010

1111
def initialize(config)
1212
@config = {

test/lib/commands/help_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
module Commands
88
class HelpTest < Minitest::Test
99
HEAD = <<~HEAD
10-
Github Repos workflow for Alfred - CLI
10+
GitHub Repos workflow for Alfred - CLI
1111
Version: #{App::VERSION}
1212
HEAD
1313

test/lib/data_source/client/github_test.rb renamed to test/lib/data_source/client/git_hub_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
require 'test_helper'
44
require 'fileutils'
5-
require 'data_source/client/github'
5+
require 'data_source/client/git_hub'
66

77
module DataSource
88
module Client
9-
class GithubTest < Minitest::Test
9+
class GitHubTest < Minitest::Test
1010
def setup
1111
super
1212
FileUtils.mkdir_p('tmp/cache')
@@ -16,7 +16,7 @@ def setup
1616
end
1717

1818
def subject
19-
@subject ||= Github.new(host: 'example.com', access_token: 'test_token',
19+
@subject ||= GitHub.new(host: 'example.com', access_token: 'test_token',
2020
me_account: "@me", pr_all_involve_me: false)
2121
end
2222

@@ -33,7 +33,7 @@ def cache_ttl_sec_pr
3333
end
3434

3535
def subject_with_cache
36-
@subject_with_cache ||= Github.new(
36+
@subject_with_cache ||= GitHub.new(
3737
host: 'example.com',
3838
access_token: 'test_token',
3939
cache_dir: 'tmp/cache',
@@ -46,7 +46,7 @@ def subject_with_cache
4646
end
4747

4848
def subject_with_pr_all_involve_me_true
49-
@subject_with_cache ||= Github.new(
49+
@subject_with_cache ||= GitHub.new(
5050
host: 'example.com',
5151
access_token: 'test_token',
5252
me_account: "@me",

0 commit comments

Comments
 (0)