loggable_activity 0.5.4 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -0
- data/CHANGELOG.md +12 -3
- data/GETTING-STARTED.md +61 -0
- data/README.md +4 -7
- data/app/views/loggable_activity/activities/_activities.html.slim +6 -6
- data/docker-compose.yml +27 -0
- data/docs/CHANGELOG_md.html +318 -0
- data/docs/CHEAT_SHEET_md.html +168 -0
- data/docs/CODE_OF_CONDUCT_md.html +250 -0
- data/docs/CreateLoggableActivities.html +175 -0
- data/docs/CreateLoggableActivityTables.html +173 -0
- data/docs/GETTING-STARTED_md.html +211 -0
- data/docs/Gemfile.html +153 -0
- data/docs/Gemfile_lock.html +438 -0
- data/docs/LoggableActivity/ActivitiesController.html +160 -0
- data/docs/LoggableActivity/ActivitiesHelper.html +158 -0
- data/docs/LoggableActivity/Activity.html +565 -0
- data/docs/LoggableActivity/ApplicationController.html +97 -0
- data/docs/LoggableActivity/ApplicationHelper.html +91 -0
- data/docs/LoggableActivity/ApplicationJob.html +97 -0
- data/docs/LoggableActivity/ApplicationMailer.html +97 -0
- data/docs/LoggableActivity/ApplicationRecord.html +97 -0
- data/docs/LoggableActivity/Configuration.html +237 -0
- data/docs/LoggableActivity/ConfigurationError.html +142 -0
- data/docs/LoggableActivity/CurrentActor.html +166 -0
- data/docs/LoggableActivity/DataOwner.html +138 -0
- data/docs/LoggableActivity/Encryption.html +321 -0
- data/docs/LoggableActivity/EncryptionError.html +142 -0
- data/docs/LoggableActivity/EncryptionKey.html +399 -0
- data/docs/LoggableActivity/Engine.html +108 -0
- data/docs/LoggableActivity/Error.html +142 -0
- data/docs/LoggableActivity/Generators/InstallGenerator.html +212 -0
- data/docs/LoggableActivity/Generators.html +91 -0
- data/docs/LoggableActivity/Hooks.html +841 -0
- data/docs/LoggableActivity/Payload.html +430 -0
- data/docs/LoggableActivity/Sanitizer.html +134 -0
- data/docs/LoggableActivity/Services/BasePayloadsBuilder.html +472 -0
- data/docs/LoggableActivity/Services/CustomPayloadsBuilder.html +225 -0
- data/docs/LoggableActivity/Services/DestroyPayloadsBuilder.html +396 -0
- data/docs/LoggableActivity/Services/PayloadsBuilder.html +348 -0
- data/docs/LoggableActivity/Services/UpdatePayloadsBuilder.html +540 -0
- data/docs/LoggableActivity/Services.html +93 -0
- data/docs/LoggableActivity.html +173 -0
- data/docs/MIT-LICENSE.html +132 -0
- data/docs/Object.html +110 -0
- data/docs/README_md.html +186 -0
- data/docs/Rakefile.html +134 -0
- data/docs/app/assets/config/loggable_activity_manifest_js.html +126 -0
- data/docs/app/assets/javascripts/loggable_activity/application_js.html +124 -0
- data/docs/app/assets/stylesheets/loggable_activity/activities_scss.html +154 -0
- data/docs/app/assets/stylesheets/loggable_activity/application_scss.html +142 -0
- data/docs/app/views/layouts/loggable_activity/application_html_slim.html +145 -0
- data/docs/app/views/loggable_activity/activities/_activities_html_slim.html +159 -0
- data/docs/created.rid +74 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +687 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/git-org/HEAD.html +126 -0
- data/docs/git-org/config.html +128 -0
- data/docs/git-org/description.html +126 -0
- data/docs/git-org/hooks/applypatch-msg_sample.html +128 -0
- data/docs/git-org/hooks/commit-msg_sample.html +138 -0
- data/docs/git-org/hooks/fsmonitor-watchman_sample.html +302 -0
- data/docs/git-org/hooks/post-update_sample.html +128 -0
- data/docs/git-org/hooks/pre-applypatch_sample.html +128 -0
- data/docs/git-org/hooks/pre-commit_sample.html +174 -0
- data/docs/git-org/hooks/pre-merge-commit_sample.html +133 -0
- data/docs/git-org/hooks/pre-push_sample.html +161 -0
- data/docs/git-org/hooks/pre-rebase_sample.html +282 -0
- data/docs/git-org/hooks/pre-receive_sample.html +144 -0
- data/docs/git-org/hooks/prepare-commit-msg_sample.html +136 -0
- data/docs/git-org/hooks/push-to-checkout_sample.html +178 -0
- data/docs/git-org/hooks/update_sample.html +226 -0
- data/docs/git-org/info/exclude.html +126 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +166 -0
- data/docs/js/darkfish.js +97 -0
- data/docs/js/navigation.js +105 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +110 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/lib/loggable_activity/config_schema_json.html +205 -0
- data/docs/lib/tasks/loggable_activity_tasks_rake.html +128 -0
- data/docs/table_of_contents.html +954 -0
- data/lib/generators/loggable_activity/install/install_generator.rb +68 -0
- data/lib/generators/loggable_activity/install/templates/create_loggable_activities.rb +45 -0
- data/lib/generators/loggable_activity/install/templates/loggable_activity.en.yml +32 -0
- data/lib/generators/loggable_activity/install/templates/loggable_activity.rb +27 -0
- data/lib/generators/loggable_activity/install/templates/loggable_activity.yml +103 -0
- data/lib/loggable_activity/activity.rb +4 -4
- data/lib/loggable_activity/concerns/current_actor.rb +25 -0
- data/lib/loggable_activity/config_schema.json +2 -13
- data/lib/loggable_activity/configuration.rb +0 -10
- data/lib/loggable_activity/encryption.rb +33 -12
- data/lib/loggable_activity/encryption_key.rb +1 -1
- data/lib/loggable_activity/error.rb +3 -3
- data/lib/loggable_activity/hooks.rb +74 -18
- data/lib/loggable_activity/payload.rb +6 -4
- data/lib/loggable_activity/services/base_payloads_builder.rb +2 -1
- data/lib/loggable_activity/services/custom_payloads_builder.rb +55 -0
- data/lib/loggable_activity/version.rb +1 -1
- data/lib/loggable_activity.rb +5 -2
- metadata +121 -111
- data/lib/loggable_activity/concerns/current_user.rb +0 -26
@@ -0,0 +1,178 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>push-to-checkout.sample - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../../";
|
11
|
+
var index_rel_prefix = "../../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../../js/navigation.js" defer></script>
|
15
|
+
<script src="../../js/search.js" defer></script>
|
16
|
+
<script src="../../js/search_index.js" defer></script>
|
17
|
+
<script src="../../js/searcher.js" defer></script>
|
18
|
+
<script src="../../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="file">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="project-metadata">
|
59
|
+
|
60
|
+
<div id="fileindex-section" class="nav-section">
|
61
|
+
<h3>Pages</h3>
|
62
|
+
|
63
|
+
<ul class="link-list">
|
64
|
+
<li><a href="../../CHANGELOG_md.html">CHANGELOG</a>
|
65
|
+
<li><a href="../../CHEAT_SHEET_md.html">CHEAT_SHEET</a>
|
66
|
+
<li><a href="../../CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
67
|
+
<li><a href="../../GETTING-STARTED_md.html">GETTING-STARTED</a>
|
68
|
+
<li><a href="../../Gemfile.html">Gemfile</a>
|
69
|
+
<li><a href="../../Gemfile_lock.html">Gemfile.lock</a>
|
70
|
+
<li><a href="../../MIT-LICENSE.html">MIT-LICENSE</a>
|
71
|
+
<li><a href="../../README_md.html">README</a>
|
72
|
+
<li><a href="../../Rakefile.html">Rakefile</a>
|
73
|
+
<li><details><summary>app</summary>
|
74
|
+
<ul class="link-list">
|
75
|
+
<li><a href="../../app/assets/config/loggable_activity_manifest_js.html">loggable_activity_manifest.js</a>
|
76
|
+
<li><a href="../../app/assets/javascripts/loggable_activity/application_js.html">application.js</a>
|
77
|
+
<li><a href="../../app/assets/stylesheets/loggable_activity/activities_scss.html">activities.scss</a>
|
78
|
+
<li><a href="../../app/assets/stylesheets/loggable_activity/application_scss.html">application.scss</a>
|
79
|
+
<li><a href="../../app/views/layouts/loggable_activity/application_html_slim.html">application.html.slim</a>
|
80
|
+
<li><a href="../../app/views/loggable_activity/activities/_activities_html_slim.html">_activities.html.slim</a>
|
81
|
+
</ul></details>
|
82
|
+
<li><details open><summary>git-org</summary>
|
83
|
+
<ul class="link-list">
|
84
|
+
<li><a href="../../git-org/HEAD.html">HEAD</a>
|
85
|
+
<li><a href="../../git-org/config.html">config</a>
|
86
|
+
<li><a href="../../git-org/description.html">description</a>
|
87
|
+
<li><a href="../../git-org/hooks/applypatch-msg_sample.html">applypatch-msg.sample</a>
|
88
|
+
<li><a href="../../git-org/hooks/commit-msg_sample.html">commit-msg.sample</a>
|
89
|
+
<li><a href="../../git-org/hooks/fsmonitor-watchman_sample.html">fsmonitor-watchman.sample</a>
|
90
|
+
<li><a href="../../git-org/hooks/post-update_sample.html">post-update.sample</a>
|
91
|
+
<li><a href="../../git-org/hooks/pre-applypatch_sample.html">pre-applypatch.sample</a>
|
92
|
+
<li><a href="../../git-org/hooks/pre-commit_sample.html">pre-commit.sample</a>
|
93
|
+
<li><a href="../../git-org/hooks/pre-merge-commit_sample.html">pre-merge-commit.sample</a>
|
94
|
+
<li><a href="../../git-org/hooks/pre-push_sample.html">pre-push.sample</a>
|
95
|
+
<li><a href="../../git-org/hooks/pre-rebase_sample.html">pre-rebase.sample</a>
|
96
|
+
<li><a href="../../git-org/hooks/pre-receive_sample.html">pre-receive.sample</a>
|
97
|
+
<li><a href="../../git-org/hooks/prepare-commit-msg_sample.html">prepare-commit-msg.sample</a>
|
98
|
+
<li><a href="../../git-org/hooks/push-to-checkout_sample.html">push-to-checkout.sample</a>
|
99
|
+
<li><a href="../../git-org/hooks/update_sample.html">update.sample</a>
|
100
|
+
<li><a href="../../git-org/info/exclude.html">exclude</a>
|
101
|
+
</ul></details>
|
102
|
+
<li><details><summary>lib</summary>
|
103
|
+
<ul class="link-list">
|
104
|
+
<li><a href="../../lib/loggable_activity/config_schema_json.html">config_schema.json</a>
|
105
|
+
<li><a href="../../lib/tasks/loggable_activity_tasks_rake.html">loggable_activity_tasks.rake</a>
|
106
|
+
</ul></details>
|
107
|
+
</ul>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</nav>
|
112
|
+
|
113
|
+
<main role="main" aria-label="Page git-org/hooks/push-to-checkout.sample">
|
114
|
+
|
115
|
+
<p>!/bin/sh</p>
|
116
|
+
|
117
|
+
<p># An example hook script to update a checked-out tree on a git push. # # This hook is invoked by git-receive-pack(1) when it reacts to git # push and updates reference(s) in its repository, and when the push # tries to update the branch that is currently checked out and the # receive.denyCurrentBranch configuration variable is set to # updateInstead. # # By default, such a push is refused if the working tree and the index # of the remote repository has any difference from the currently # checked out commit; when both the working tree and the index match # the current commit, they are updated to match the newly pushed tip # of the branch. This hook is to be used to override the default # behaviour; however the code below reimplements the default behaviour # as a starting point for convenient modification. # # The hook receives the commit with which the tip of the current # branch is going to be updated: commit=$1</p>
|
118
|
+
|
119
|
+
<p># It can exit with a non-zero status to refuse the push (when it does # so, it must not modify the index or the working tree). die () {</p>
|
120
|
+
|
121
|
+
<pre>echo >&2 "$*"
|
122
|
+
exit 1</pre>
|
123
|
+
|
124
|
+
<p>}</p>
|
125
|
+
|
126
|
+
<p># Or it can make any necessary changes to the working tree and to the # index to bring them to the desired state when the tip of the current # branch is updated to the new commit, and exit with a zero status. # # For example, the hook can simply run git read-tree -u -m HEAD “$1” # in order to emulate git fetch that is run in the reverse direction # with git push, as the two-tree form of git read-tree -u -m is # essentially the same as git switch or git checkout that switches # branches while keeping the local changes in the working tree that do # not interfere with the difference between the branches.</p>
|
127
|
+
|
128
|
+
<p># The below is a more-or-less exact translation to shell of the C code # for the default behaviour for git’s push-to-checkout hook defined in # the push_to_deploy() function in builtin/receive-pack.c. # # Note that the hook will be executed from the repository directory, # not from the working tree, so if you want to perform operations on # the working tree, you will have to adapt your code accordingly, e.g. # by adding “cd ..” or using relative paths.</p>
|
129
|
+
|
130
|
+
<p>if ! git update-index -q –ignore-submodules –refresh then</p>
|
131
|
+
|
132
|
+
<pre class="ruby"><span class="ruby-identifier">die</span> <span class="ruby-string">"Up-to-date check failed"</span>
|
133
|
+
</pre>
|
134
|
+
|
135
|
+
<p>fi</p>
|
136
|
+
|
137
|
+
<p>if ! git diff-files –quiet –ignore-submodules – then</p>
|
138
|
+
|
139
|
+
<pre class="ruby"><span class="ruby-identifier">die</span> <span class="ruby-string">"Working directory has unstaged changes"</span>
|
140
|
+
</pre>
|
141
|
+
|
142
|
+
<p>fi</p>
|
143
|
+
|
144
|
+
<p># This is a rough translation of: # # head_has_history() ? “HEAD” : EMPTY_TREE_SHA1_HEX if git cat-file -e HEAD 2>/dev/null then</p>
|
145
|
+
|
146
|
+
<pre class="ruby"><span class="ruby-identifier">head</span>=<span class="ruby-constant">HEAD</span>
|
147
|
+
</pre>
|
148
|
+
|
149
|
+
<p>else</p>
|
150
|
+
|
151
|
+
<pre>head=$(git hash-object -t tree --stdin </dev/null)</pre>
|
152
|
+
|
153
|
+
<p>fi</p>
|
154
|
+
|
155
|
+
<p>if ! git diff-index –quiet –cached –ignore-submodules $head – then</p>
|
156
|
+
|
157
|
+
<pre class="ruby"><span class="ruby-identifier">die</span> <span class="ruby-string">"Working directory has staged changes"</span>
|
158
|
+
</pre>
|
159
|
+
|
160
|
+
<p>fi</p>
|
161
|
+
|
162
|
+
<p>if ! git read-tree -u -m “$commit” then</p>
|
163
|
+
|
164
|
+
<pre class="ruby"><span class="ruby-identifier">die</span> <span class="ruby-string">"Could not update working tree to new HEAD"</span>
|
165
|
+
</pre>
|
166
|
+
|
167
|
+
<p>fi</p>
|
168
|
+
|
169
|
+
</main>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<footer id="validator-badges" role="contentinfo">
|
174
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
175
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.7.0.
|
176
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
177
|
+
</footer>
|
178
|
+
|
@@ -0,0 +1,226 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>update.sample - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../../";
|
11
|
+
var index_rel_prefix = "../../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../../js/navigation.js" defer></script>
|
15
|
+
<script src="../../js/search.js" defer></script>
|
16
|
+
<script src="../../js/search_index.js" defer></script>
|
17
|
+
<script src="../../js/searcher.js" defer></script>
|
18
|
+
<script src="../../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="file">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="project-metadata">
|
59
|
+
|
60
|
+
<div id="fileindex-section" class="nav-section">
|
61
|
+
<h3>Pages</h3>
|
62
|
+
|
63
|
+
<ul class="link-list">
|
64
|
+
<li><a href="../../CHANGELOG_md.html">CHANGELOG</a>
|
65
|
+
<li><a href="../../CHEAT_SHEET_md.html">CHEAT_SHEET</a>
|
66
|
+
<li><a href="../../CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
67
|
+
<li><a href="../../GETTING-STARTED_md.html">GETTING-STARTED</a>
|
68
|
+
<li><a href="../../Gemfile.html">Gemfile</a>
|
69
|
+
<li><a href="../../Gemfile_lock.html">Gemfile.lock</a>
|
70
|
+
<li><a href="../../MIT-LICENSE.html">MIT-LICENSE</a>
|
71
|
+
<li><a href="../../README_md.html">README</a>
|
72
|
+
<li><a href="../../Rakefile.html">Rakefile</a>
|
73
|
+
<li><details><summary>app</summary>
|
74
|
+
<ul class="link-list">
|
75
|
+
<li><a href="../../app/assets/config/loggable_activity_manifest_js.html">loggable_activity_manifest.js</a>
|
76
|
+
<li><a href="../../app/assets/javascripts/loggable_activity/application_js.html">application.js</a>
|
77
|
+
<li><a href="../../app/assets/stylesheets/loggable_activity/activities_scss.html">activities.scss</a>
|
78
|
+
<li><a href="../../app/assets/stylesheets/loggable_activity/application_scss.html">application.scss</a>
|
79
|
+
<li><a href="../../app/views/layouts/loggable_activity/application_html_slim.html">application.html.slim</a>
|
80
|
+
<li><a href="../../app/views/loggable_activity/activities/_activities_html_slim.html">_activities.html.slim</a>
|
81
|
+
</ul></details>
|
82
|
+
<li><details open><summary>git-org</summary>
|
83
|
+
<ul class="link-list">
|
84
|
+
<li><a href="../../git-org/HEAD.html">HEAD</a>
|
85
|
+
<li><a href="../../git-org/config.html">config</a>
|
86
|
+
<li><a href="../../git-org/description.html">description</a>
|
87
|
+
<li><a href="../../git-org/hooks/applypatch-msg_sample.html">applypatch-msg.sample</a>
|
88
|
+
<li><a href="../../git-org/hooks/commit-msg_sample.html">commit-msg.sample</a>
|
89
|
+
<li><a href="../../git-org/hooks/fsmonitor-watchman_sample.html">fsmonitor-watchman.sample</a>
|
90
|
+
<li><a href="../../git-org/hooks/post-update_sample.html">post-update.sample</a>
|
91
|
+
<li><a href="../../git-org/hooks/pre-applypatch_sample.html">pre-applypatch.sample</a>
|
92
|
+
<li><a href="../../git-org/hooks/pre-commit_sample.html">pre-commit.sample</a>
|
93
|
+
<li><a href="../../git-org/hooks/pre-merge-commit_sample.html">pre-merge-commit.sample</a>
|
94
|
+
<li><a href="../../git-org/hooks/pre-push_sample.html">pre-push.sample</a>
|
95
|
+
<li><a href="../../git-org/hooks/pre-rebase_sample.html">pre-rebase.sample</a>
|
96
|
+
<li><a href="../../git-org/hooks/pre-receive_sample.html">pre-receive.sample</a>
|
97
|
+
<li><a href="../../git-org/hooks/prepare-commit-msg_sample.html">prepare-commit-msg.sample</a>
|
98
|
+
<li><a href="../../git-org/hooks/push-to-checkout_sample.html">push-to-checkout.sample</a>
|
99
|
+
<li><a href="../../git-org/hooks/update_sample.html">update.sample</a>
|
100
|
+
<li><a href="../../git-org/info/exclude.html">exclude</a>
|
101
|
+
</ul></details>
|
102
|
+
<li><details><summary>lib</summary>
|
103
|
+
<ul class="link-list">
|
104
|
+
<li><a href="../../lib/loggable_activity/config_schema_json.html">config_schema.json</a>
|
105
|
+
<li><a href="../../lib/tasks/loggable_activity_tasks_rake.html">loggable_activity_tasks.rake</a>
|
106
|
+
</ul></details>
|
107
|
+
</ul>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</nav>
|
112
|
+
|
113
|
+
<main role="main" aria-label="Page git-org/hooks/update.sample">
|
114
|
+
|
115
|
+
<p>!/bin/sh # # An example hook script to block unannotated tags from entering. # Called by “git receive-pack” with arguments: refname sha1-old sha1-new # # To enable this hook, rename this file to “update”. # # Config # —— # hooks.allowunannotated # This boolean sets whether unannotated tags will be allowed into the # repository. By default they won’t be. # hooks.allowdeletetag # This boolean sets whether deleting tags will be allowed in the # repository. By default they won’t be. # hooks.allowmodifytag # This boolean sets whether a tag may be modified after creation. By default # it won’t be. # hooks.allowdeletebranch # This boolean sets whether deleting branches will be allowed in the # repository. By default they won’t be. # hooks.denycreatebranch # This boolean sets whether remotely creating branches will be denied # in the repository. By default this is allowed. #</p>
|
116
|
+
|
117
|
+
<p># — Command line refname=“$1” oldrev=“$2” newrev=“$3”</p>
|
118
|
+
|
119
|
+
<p># — Safety check if [ -z “$GIT_DIR” ]; then</p>
|
120
|
+
|
121
|
+
<pre>echo "Don't run this script from the command line." >&2
|
122
|
+
echo " (if you want, you could supply GIT_DIR then run" >&2
|
123
|
+
echo " $0 <ref> <oldrev> <newrev>)" >&2
|
124
|
+
exit 1</pre>
|
125
|
+
|
126
|
+
<p>fi</p>
|
127
|
+
|
128
|
+
<p>if [ -z “$refname” -o -z “$oldrev” -o -z “$newrev” ]; then</p>
|
129
|
+
|
130
|
+
<pre>echo "usage: $0 <ref> <oldrev> <newrev>" >&2
|
131
|
+
exit 1</pre>
|
132
|
+
|
133
|
+
<p>fi</p>
|
134
|
+
|
135
|
+
<p># — Config allowunannotated=$(git config –type=bool hooks.allowunannotated) allowdeletebranch=$(git config –type=bool hooks.allowdeletebranch) denycreatebranch=$(git config –type=bool hooks.denycreatebranch) allowdeletetag=$(git config –type=bool hooks.allowdeletetag) allowmodifytag=$(git config –type=bool hooks.allowmodifytag)</p>
|
136
|
+
|
137
|
+
<p># check for no description projectdesc=$(sed -e ‘1q’ “$GIT_DIR/description”) case “$projectdesc” in “Unnamed repository”* | “”)</p>
|
138
|
+
|
139
|
+
<pre>echo "*** Project description file hasn't been set" >&2
|
140
|
+
exit 1
|
141
|
+
;;</pre>
|
142
|
+
|
143
|
+
<p>esac</p>
|
144
|
+
|
145
|
+
<p># — Check types # if $newrev is 0000…0000, it’s a commit to delete a ref. zero=$(git hash-object –stdin </dev/null | tr ‘[0-9a-f]’ ‘0’) if [ “$newrev” = “$zero” ]; then</p>
|
146
|
+
|
147
|
+
<pre class="ruby"><span class="ruby-identifier">newrev_type</span>=<span class="ruby-identifier">delete</span>
|
148
|
+
</pre>
|
149
|
+
|
150
|
+
<p>else</p>
|
151
|
+
|
152
|
+
<pre>newrev_type=$(git cat-file -t $newrev)</pre>
|
153
|
+
|
154
|
+
<p>fi</p>
|
155
|
+
|
156
|
+
<p>case “$refname”,“$newrev_type” in</p>
|
157
|
+
|
158
|
+
<pre>refs/tags/*,commit)
|
159
|
+
# un-annotated tag
|
160
|
+
short_refname=${refname##refs/tags/}
|
161
|
+
if [ "$allowunannotated" != "true" ]; then
|
162
|
+
echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2
|
163
|
+
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
|
164
|
+
exit 1
|
165
|
+
fi
|
166
|
+
;;
|
167
|
+
refs/tags/*,delete)
|
168
|
+
# delete tag
|
169
|
+
if [ "$allowdeletetag" != "true" ]; then
|
170
|
+
echo "*** Deleting a tag is not allowed in this repository" >&2
|
171
|
+
exit 1
|
172
|
+
fi
|
173
|
+
;;
|
174
|
+
refs/tags/*,tag)
|
175
|
+
# annotated tag
|
176
|
+
if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1
|
177
|
+
then
|
178
|
+
echo "*** Tag '$refname' already exists." >&2
|
179
|
+
echo "*** Modifying a tag is not allowed in this repository." >&2
|
180
|
+
exit 1
|
181
|
+
fi
|
182
|
+
;;
|
183
|
+
refs/heads/*,commit)
|
184
|
+
# branch
|
185
|
+
if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
|
186
|
+
echo "*** Creating a branch is not allowed in this repository" >&2
|
187
|
+
exit 1
|
188
|
+
fi
|
189
|
+
;;
|
190
|
+
refs/heads/*,delete)
|
191
|
+
# delete branch
|
192
|
+
if [ "$allowdeletebranch" != "true" ]; then
|
193
|
+
echo "*** Deleting a branch is not allowed in this repository" >&2
|
194
|
+
exit 1
|
195
|
+
fi
|
196
|
+
;;
|
197
|
+
refs/remotes/*,commit)
|
198
|
+
# tracking branch
|
199
|
+
;;
|
200
|
+
refs/remotes/*,delete)
|
201
|
+
# delete tracking branch
|
202
|
+
if [ "$allowdeletebranch" != "true" ]; then
|
203
|
+
echo "*** Deleting a tracking branch is not allowed in this repository" >&2
|
204
|
+
exit 1
|
205
|
+
fi
|
206
|
+
;;
|
207
|
+
*)
|
208
|
+
# Anything else (is there anything else?)
|
209
|
+
echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2
|
210
|
+
exit 1
|
211
|
+
;;</pre>
|
212
|
+
|
213
|
+
<p>esac</p>
|
214
|
+
|
215
|
+
<p># — Finished exit 0</p>
|
216
|
+
|
217
|
+
</main>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<footer id="validator-badges" role="contentinfo">
|
222
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
223
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.7.0.
|
224
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
225
|
+
</footer>
|
226
|
+
|
@@ -0,0 +1,126 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>exclude - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../../";
|
11
|
+
var index_rel_prefix = "../../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../../js/navigation.js" defer></script>
|
15
|
+
<script src="../../js/search.js" defer></script>
|
16
|
+
<script src="../../js/search_index.js" defer></script>
|
17
|
+
<script src="../../js/searcher.js" defer></script>
|
18
|
+
<script src="../../js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="../../css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="../../css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="file">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="project-metadata">
|
59
|
+
|
60
|
+
<div id="fileindex-section" class="nav-section">
|
61
|
+
<h3>Pages</h3>
|
62
|
+
|
63
|
+
<ul class="link-list">
|
64
|
+
<li><a href="../../CHANGELOG_md.html">CHANGELOG</a>
|
65
|
+
<li><a href="../../CHEAT_SHEET_md.html">CHEAT_SHEET</a>
|
66
|
+
<li><a href="../../CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
67
|
+
<li><a href="../../GETTING-STARTED_md.html">GETTING-STARTED</a>
|
68
|
+
<li><a href="../../Gemfile.html">Gemfile</a>
|
69
|
+
<li><a href="../../Gemfile_lock.html">Gemfile.lock</a>
|
70
|
+
<li><a href="../../MIT-LICENSE.html">MIT-LICENSE</a>
|
71
|
+
<li><a href="../../README_md.html">README</a>
|
72
|
+
<li><a href="../../Rakefile.html">Rakefile</a>
|
73
|
+
<li><details><summary>app</summary>
|
74
|
+
<ul class="link-list">
|
75
|
+
<li><a href="../../app/assets/config/loggable_activity_manifest_js.html">loggable_activity_manifest.js</a>
|
76
|
+
<li><a href="../../app/assets/javascripts/loggable_activity/application_js.html">application.js</a>
|
77
|
+
<li><a href="../../app/assets/stylesheets/loggable_activity/activities_scss.html">activities.scss</a>
|
78
|
+
<li><a href="../../app/assets/stylesheets/loggable_activity/application_scss.html">application.scss</a>
|
79
|
+
<li><a href="../../app/views/layouts/loggable_activity/application_html_slim.html">application.html.slim</a>
|
80
|
+
<li><a href="../../app/views/loggable_activity/activities/_activities_html_slim.html">_activities.html.slim</a>
|
81
|
+
</ul></details>
|
82
|
+
<li><details open><summary>git-org</summary>
|
83
|
+
<ul class="link-list">
|
84
|
+
<li><a href="../../git-org/HEAD.html">HEAD</a>
|
85
|
+
<li><a href="../../git-org/config.html">config</a>
|
86
|
+
<li><a href="../../git-org/description.html">description</a>
|
87
|
+
<li><a href="../../git-org/hooks/applypatch-msg_sample.html">applypatch-msg.sample</a>
|
88
|
+
<li><a href="../../git-org/hooks/commit-msg_sample.html">commit-msg.sample</a>
|
89
|
+
<li><a href="../../git-org/hooks/fsmonitor-watchman_sample.html">fsmonitor-watchman.sample</a>
|
90
|
+
<li><a href="../../git-org/hooks/post-update_sample.html">post-update.sample</a>
|
91
|
+
<li><a href="../../git-org/hooks/pre-applypatch_sample.html">pre-applypatch.sample</a>
|
92
|
+
<li><a href="../../git-org/hooks/pre-commit_sample.html">pre-commit.sample</a>
|
93
|
+
<li><a href="../../git-org/hooks/pre-merge-commit_sample.html">pre-merge-commit.sample</a>
|
94
|
+
<li><a href="../../git-org/hooks/pre-push_sample.html">pre-push.sample</a>
|
95
|
+
<li><a href="../../git-org/hooks/pre-rebase_sample.html">pre-rebase.sample</a>
|
96
|
+
<li><a href="../../git-org/hooks/pre-receive_sample.html">pre-receive.sample</a>
|
97
|
+
<li><a href="../../git-org/hooks/prepare-commit-msg_sample.html">prepare-commit-msg.sample</a>
|
98
|
+
<li><a href="../../git-org/hooks/push-to-checkout_sample.html">push-to-checkout.sample</a>
|
99
|
+
<li><a href="../../git-org/hooks/update_sample.html">update.sample</a>
|
100
|
+
<li><a href="../../git-org/info/exclude.html">exclude</a>
|
101
|
+
</ul></details>
|
102
|
+
<li><details><summary>lib</summary>
|
103
|
+
<ul class="link-list">
|
104
|
+
<li><a href="../../lib/loggable_activity/config_schema_json.html">config_schema.json</a>
|
105
|
+
<li><a href="../../lib/tasks/loggable_activity_tasks_rake.html">loggable_activity_tasks.rake</a>
|
106
|
+
</ul></details>
|
107
|
+
</ul>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</nav>
|
112
|
+
|
113
|
+
<main role="main" aria-label="Page git-org/info/exclude">
|
114
|
+
|
115
|
+
<p># git ls-files –others –exclude-from=.git/info/exclude # Lines that start with ‘#’ are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~</p>
|
116
|
+
|
117
|
+
</main>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<footer id="validator-badges" role="contentinfo">
|
122
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
123
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.7.0.
|
124
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
125
|
+
</footer>
|
126
|
+
|
data/docs/images/add.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/docs/images/bug.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|