Skip to content

Commit

Permalink
Rename linguist command to github-linguist (#4208)
Browse files Browse the repository at this point in the history
* Rename linguist to github-linguist

This is needed to prevent a clash with QT's linguist.

* Update all ref's of linguist cmd to github-linguist

* Update ref to commit that intro'd rename
  • Loading branch information
lildude authored Aug 12, 2018
1 parent 1403100 commit 7dbcffc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Run this command each time a [sample][samples] has been modified.

To run Linguist from the cloned repository:

bundle exec bin/linguist --breakdown
bundle exec bin/github-linguist --breakdown

### Dependencies

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ A repository's languages stats can also be assessed from the command line using

```console
$ cd /path-to-repository/
$ linguist
$ github-linguist
```

You can try running `linguist` on the root directory in this repository itself:

```console
$ bundle exec bin/linguist --breakdown
$ bundle exec bin/github-linguist --breakdown
68.57% Ruby
22.90% C
6.93% Go
Expand All @@ -92,7 +92,7 @@ Ruby:
Gemfile
Rakefile
bin/git-linguist
bin/linguist
bin/github-linguist
ext/linguist/extconf.rb
github-linguist.gemspec
lib/linguist.rb
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion github-linguist.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.license = "MIT"

s.files = Dir['lib/**/*'] + Dir['ext/**/*'] + Dir['grammars/*'] + ['LICENSE']
s.executables = ['linguist', 'git-linguist']
s.executables = ['github-linguist', 'git-linguist']
s.extensions = ['ext/linguist/extconf.rb']

s.add_dependency 'charlock_holmes', '~> 0.7.6'
Expand Down
4 changes: 2 additions & 2 deletions test/test_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def rugged_repository
end

def master_oid
'd40b4a33deba710e2f494db357c654fbe5d4b419'
'2a6dd02c6e81b7e30d978806d43d4ba1a7ba8003'
end

def linguist_repo(oid = master_oid)
Expand All @@ -27,7 +27,7 @@ def test_linguist_size

def test_linguist_breakdown
assert linguist_repo.breakdown_by_file.has_key?("Ruby")
assert linguist_repo.breakdown_by_file["Ruby"].include?("bin/linguist")
assert linguist_repo.breakdown_by_file["Ruby"].include?("bin/github-linguist")
assert linguist_repo.breakdown_by_file["Ruby"].include?("lib/linguist/language.rb")
end

Expand Down

0 comments on commit 7dbcffc

Please sign in to comment.