Skip to content

Commit

Permalink
Remove Google Analytics tracking code
Browse files Browse the repository at this point in the history
I never look at the data from this and in any case I don't ask
permission to track people on the website, so it's long overdue for
removal.
  • Loading branch information
floehopper committed Jun 3, 2023
1 parent 7c6c10c commit 2279c49
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -50,7 +50,7 @@ jobs:
steps:
- run: bundle exec rake test:performance
- run: MOCHA_GENERATE_DOCS=1 bundle install --gemfile=<< parameters.gemfile >>
- run: MOCHA_GENERATE_DOCS=1 GOOGLE_ANALYTICS_WEB_PROPERTY_ID=dummy rake yardoc
- run: MOCHA_GENERATE_DOCS=1 rake yardoc
lint:
docker:
- image: ruby:2.6
Expand Down
1 change: 0 additions & 1 deletion .yardopts
@@ -1,5 +1,4 @@
--output-dir docs
--template-path yard-templates
--no-private
lib/mocha/api.rb
lib/mocha/hooks.rb
Expand Down
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -331,14 +331,12 @@ See this [list of contributors](https://github.com/freerange/mocha/graphs/contri
* Commit & push to GitHub
* Check CircleCI build is passing - https://app.circleci.com/pipelines/github/freerange/mocha

* Sign in to Google Analytics - https://analytics.google.com/analytics/web/
* Find the web property ID for floehopper (625523) > Mocha Documentation (UA-625523-7)
* Generate documentation:

```bash
$ MOCHA_GENERATE_DOCS=true bundle install

$ MOCHA_GENERATE_DOCS=true GOOGLE_ANALYTICS_WEB_PROPERTY_ID=UA-625523-7 rake generate_docs
$ MOCHA_GENERATE_DOCS=true rake generate_docs
```
* Commit documentation & push to GitHub
* Sign in to rubygems.org and find API key - https://rubygems.org/profile/edit
Expand Down
8 changes: 1 addition & 7 deletions Rakefile
Expand Up @@ -129,14 +129,8 @@ if ENV['MOCHA_GENERATE_DOCS']
`rm -rf ./docs`
end

task 'docs_environment' do
unless ENV['GOOGLE_ANALYTICS_WEB_PROPERTY_ID']
puts "\nWarning: GOOGLE_ANALYTICS_WEB_PROPERTY_ID was not defined\n\n"
end
end

desc 'Generate documentation'
YARD::Rake::YardocTask.new('yardoc' => 'docs_environment') do |task|
YARD::Rake::YardocTask.new('yardoc') do |task|
task.options = ['--title', "Mocha #{Mocha::VERSION}", '--fail-on-warning']
end

Expand Down
8 changes: 0 additions & 8 deletions yard-templates/default/layout/html/google_analytics.erb

This file was deleted.

5 changes: 0 additions & 5 deletions yard-templates/default/layout/html/setup.rb

This file was deleted.

0 comments on commit 2279c49

Please sign in to comment.