crypt_ident 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rubocop.yml +29 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/.yardopts +16 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +263 -0
- data/Guardfile +26 -0
- data/HISTORY.md +22 -0
- data/LICENSE.txt +21 -0
- data/README.md +548 -0
- data/Rakefile +93 -0
- data/bin/_guard-core +29 -0
- data/bin/bundle +105 -0
- data/bin/byebug +29 -0
- data/bin/code_climate_reek +29 -0
- data/bin/coderay +29 -0
- data/bin/commonmarker +29 -0
- data/bin/console +14 -0
- data/bin/erubis +29 -0
- data/bin/flay +29 -0
- data/bin/flog +29 -0
- data/bin/github-markup +29 -0
- data/bin/guard +29 -0
- data/bin/inch +29 -0
- data/bin/kwalify +29 -0
- data/bin/listen +29 -0
- data/bin/pry +29 -0
- data/bin/rackup +29 -0
- data/bin/rake +29 -0
- data/bin/redcarpet +29 -0
- data/bin/reek +29 -0
- data/bin/rubocop +29 -0
- data/bin/ruby-parse +29 -0
- data/bin/ruby-rewrite +29 -0
- data/bin/ruby_parse +29 -0
- data/bin/ruby_parse_extract_error +29 -0
- data/bin/sequel +29 -0
- data/bin/setup +34 -0
- data/bin/sparkr +29 -0
- data/bin/term_cdiff +29 -0
- data/bin/term_colortab +29 -0
- data/bin/term_decolor +29 -0
- data/bin/term_display +29 -0
- data/bin/term_mandel +29 -0
- data/bin/term_snow +29 -0
- data/bin/thor +29 -0
- data/bin/yard +29 -0
- data/bin/yardoc +29 -0
- data/bin/yri +29 -0
- data/config.reek +19 -0
- data/crypt_ident.gemspec +80 -0
- data/docs/CryptIdent.html +2276 -0
- data/docs/_index.html +116 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +496 -0
- data/docs/file.CODE_OF_CONDUCT.html +145 -0
- data/docs/file.HISTORY.html +91 -0
- data/docs/file.LICENSE.html +70 -0
- data/docs/file.README.html +692 -0
- data/docs/file_list.html +71 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +692 -0
- data/docs/js/app.js +292 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +115 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/crypt_ident.rb +13 -0
- data/lib/crypt_ident/change_password.rb +184 -0
- data/lib/crypt_ident/config.rb +47 -0
- data/lib/crypt_ident/generate_reset_token.rb +212 -0
- data/lib/crypt_ident/reset_password.rb +207 -0
- data/lib/crypt_ident/session_expired.rb +91 -0
- data/lib/crypt_ident/sign_in.rb +189 -0
- data/lib/crypt_ident/sign_out.rb +96 -0
- data/lib/crypt_ident/sign_up.rb +160 -0
- data/lib/crypt_ident/update_session_expiry.rb +125 -0
- data/lib/crypt_ident/version.rb +6 -0
- data/scripts/build-gem-list.rb +91 -0
- metadata +547 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 870f0a4d1cded39073eaaf6cd5c0dea28c3df0c1457a4debc14b3c30acd2d2c8
|
4
|
+
data.tar.gz: c7667c23f8381224c8b94187369c79bc51a52e4befa1106e06546e0f4f9c4c43
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a95d0e3c33e64d651b930d2c045d2ac076beb3f842c6865662c18796dc4c4da8235a97564e7ec80c7ca3badf082d0034498e8bc59786b9bc9b2e7deb7de836b3
|
7
|
+
data.tar.gz: 619b595e0397adb3ddb7c1517bb1ebe49955884773ac88beb71c6e4627ac26cb69614fc60b30ab18c4c9a326859d54fcae7206b5786b63be1379bc85b91413df
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
AllCops:
|
3
|
+
# The Excludes section was necessitated by `guard-rubocop`, which invokes
|
4
|
+
# RuboCop in a way sufficiently different than `bundle exec rubocop` that all
|
5
|
+
# these exclusions aren't implicitly ignored. Oh, well.
|
6
|
+
Exclude:
|
7
|
+
- '*file'
|
8
|
+
- '*.gemspec'
|
9
|
+
- 'bin/**/*'
|
10
|
+
- 'scripts/**/*'
|
11
|
+
- 'test/**/*'
|
12
|
+
- 'tmp/**/*'
|
13
|
+
TargetRubyVersion: 2.5
|
14
|
+
|
15
|
+
Metrics/BlockLength:
|
16
|
+
Max: 300
|
17
|
+
Include:
|
18
|
+
- 'test/**/*_test.rb'
|
19
|
+
|
20
|
+
Metrics/ModuleLength:
|
21
|
+
Max: 300
|
22
|
+
Include:
|
23
|
+
- 'test/**/*_test.rb'
|
24
|
+
|
25
|
+
Style/CommentedKeyword:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/Documentation:
|
29
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.0
|
data/.travis.yml
ADDED
data/.yardopts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--markup-provider redcarpet
|
3
|
+
--markup markdown
|
4
|
+
--output docs
|
5
|
+
--no-private
|
6
|
+
--protected
|
7
|
+
--readme README.md
|
8
|
+
--tag authenticated:"Required Authentication Status"
|
9
|
+
--tag session_data:"Session Data Interacted With"
|
10
|
+
--tag ubiq_lang:"Ubiquitous Language Terms"
|
11
|
+
--readme README.md
|
12
|
+
--title 'crypt_ident Module Documentation'
|
13
|
+
-
|
14
|
+
CODE_OF_CONDUCT.md
|
15
|
+
HISTORY.md
|
16
|
+
LICENSE.txt
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at jdickey@seven-sigma.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,263 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
crypt_ident (0.2.1)
|
5
|
+
bcrypt
|
6
|
+
dry-matcher
|
7
|
+
dry-monads
|
8
|
+
hanami-model
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
ansi (1.5.0)
|
14
|
+
ast (2.4.0)
|
15
|
+
axiom-types (0.1.1)
|
16
|
+
descendants_tracker (~> 0.0.4)
|
17
|
+
ice_nine (~> 0.11.0)
|
18
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
19
|
+
bcrypt (3.1.12)
|
20
|
+
builder (3.2.3)
|
21
|
+
byebug (10.0.2)
|
22
|
+
codeclimate-engine-rb (0.4.1)
|
23
|
+
virtus (~> 1.0)
|
24
|
+
coderay (1.1.2)
|
25
|
+
coercible (1.0.0)
|
26
|
+
descendants_tracker (~> 0.0.1)
|
27
|
+
concurrent-ruby (1.1.4)
|
28
|
+
descendants_tracker (0.0.4)
|
29
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
30
|
+
docile (1.3.1)
|
31
|
+
dry-configurable (0.8.1)
|
32
|
+
concurrent-ruby (~> 1.0)
|
33
|
+
dry-core (~> 0.4, >= 0.4.7)
|
34
|
+
dry-container (0.7.0)
|
35
|
+
concurrent-ruby (~> 1.0)
|
36
|
+
dry-configurable (~> 0.1, >= 0.1.3)
|
37
|
+
dry-core (0.4.7)
|
38
|
+
concurrent-ruby (~> 1.0)
|
39
|
+
dry-equalizer (0.2.1)
|
40
|
+
dry-initializer (1.4.1)
|
41
|
+
dry-logic (0.4.2)
|
42
|
+
dry-container (~> 0.2, >= 0.2.6)
|
43
|
+
dry-core (~> 0.2)
|
44
|
+
dry-equalizer (~> 0.2)
|
45
|
+
dry-matcher (0.7.0)
|
46
|
+
dry-monads (1.1.0)
|
47
|
+
concurrent-ruby (~> 1.0)
|
48
|
+
dry-core (~> 0.4, >= 0.4.4)
|
49
|
+
dry-equalizer
|
50
|
+
dry-struct (0.3.1)
|
51
|
+
dry-configurable (~> 0.1)
|
52
|
+
dry-core (~> 0.3)
|
53
|
+
dry-equalizer (~> 0.2)
|
54
|
+
dry-types (~> 0.9, >= 0.9.0)
|
55
|
+
ice_nine (~> 0.11)
|
56
|
+
dry-types (0.11.1)
|
57
|
+
concurrent-ruby (~> 1.0)
|
58
|
+
dry-configurable (~> 0.1)
|
59
|
+
dry-container (~> 0.3)
|
60
|
+
dry-core (~> 0.2, >= 0.2.1)
|
61
|
+
dry-equalizer (~> 0.2)
|
62
|
+
dry-logic (~> 0.4, >= 0.4.0)
|
63
|
+
inflecto (~> 0.0.0, >= 0.0.2)
|
64
|
+
equalizer (0.0.11)
|
65
|
+
erubis (2.7.0)
|
66
|
+
ffi (1.10.0)
|
67
|
+
flay (2.12.0)
|
68
|
+
erubis (~> 2.7.0)
|
69
|
+
path_expander (~> 1.0)
|
70
|
+
ruby_parser (~> 3.0)
|
71
|
+
sexp_processor (~> 4.0)
|
72
|
+
flog (4.6.2)
|
73
|
+
path_expander (~> 1.0)
|
74
|
+
ruby_parser (~> 3.1, > 3.1.0)
|
75
|
+
sexp_processor (~> 4.8)
|
76
|
+
formatador (0.2.5)
|
77
|
+
github-markup (3.0.3)
|
78
|
+
guard (2.15.0)
|
79
|
+
formatador (>= 0.2.4)
|
80
|
+
listen (>= 2.7, < 4.0)
|
81
|
+
lumberjack (>= 1.0.12, < 2.0)
|
82
|
+
nenv (~> 0.1)
|
83
|
+
notiffany (~> 0.0)
|
84
|
+
pry (>= 0.9.12)
|
85
|
+
shellany (~> 0.0)
|
86
|
+
thor (>= 0.18.1)
|
87
|
+
guard-compat (1.2.1)
|
88
|
+
guard-minitest (2.4.6)
|
89
|
+
guard-compat (~> 1.2)
|
90
|
+
minitest (>= 3.0)
|
91
|
+
guard-rake (1.0.0)
|
92
|
+
guard
|
93
|
+
rake
|
94
|
+
guard-rubocop (1.3.0)
|
95
|
+
guard (~> 2.0)
|
96
|
+
rubocop (~> 0.20)
|
97
|
+
guard-shell (0.7.1)
|
98
|
+
guard (>= 2.0.0)
|
99
|
+
guard-compat (~> 1.0)
|
100
|
+
hanami-model (1.3.0)
|
101
|
+
concurrent-ruby (~> 1.0)
|
102
|
+
dry-types (~> 0.11.0)
|
103
|
+
hanami-utils (~> 1.3)
|
104
|
+
rom (~> 3.3, >= 3.3.3)
|
105
|
+
rom-repository (~> 1.4)
|
106
|
+
rom-sql (~> 1.3, >= 1.3.5)
|
107
|
+
hanami-utils (1.3.1)
|
108
|
+
concurrent-ruby (~> 1.0)
|
109
|
+
transproc (~> 1.0)
|
110
|
+
ice_nine (0.11.2)
|
111
|
+
inch (0.8.0)
|
112
|
+
pry
|
113
|
+
sparkr (>= 0.2.0)
|
114
|
+
term-ansicolor
|
115
|
+
yard (~> 0.9.12)
|
116
|
+
inflecto (0.0.2)
|
117
|
+
jaro_winkler (1.5.2)
|
118
|
+
json (2.1.0)
|
119
|
+
kwalify (0.7.2)
|
120
|
+
listen (3.1.5)
|
121
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
122
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
123
|
+
ruby_dep (~> 1.2)
|
124
|
+
lumberjack (1.0.13)
|
125
|
+
method_source (0.9.2)
|
126
|
+
minitest (5.11.3)
|
127
|
+
minitest-hooks (1.5.0)
|
128
|
+
minitest (> 5.3)
|
129
|
+
minitest-matchers (1.4.1)
|
130
|
+
minitest (~> 5.0)
|
131
|
+
minitest-reporters (1.3.6)
|
132
|
+
ansi
|
133
|
+
builder
|
134
|
+
minitest (>= 5.0)
|
135
|
+
ruby-progressbar
|
136
|
+
minitest-tagz (1.6.0)
|
137
|
+
minitest (~> 5)
|
138
|
+
nenv (0.3.0)
|
139
|
+
notiffany (0.1.1)
|
140
|
+
nenv (~> 0.1)
|
141
|
+
shellany (~> 0.0)
|
142
|
+
parallel (1.13.0)
|
143
|
+
parser (2.6.0.0)
|
144
|
+
ast (~> 2.4.0)
|
145
|
+
path_expander (1.0.3)
|
146
|
+
powerpack (0.1.2)
|
147
|
+
pry (0.12.2)
|
148
|
+
coderay (~> 1.1.0)
|
149
|
+
method_source (~> 0.9.0)
|
150
|
+
pry-byebug (3.6.0)
|
151
|
+
byebug (~> 10.0)
|
152
|
+
pry (~> 0.10)
|
153
|
+
pry-doc (1.0.0)
|
154
|
+
pry (~> 0.11)
|
155
|
+
yard (~> 0.9.11)
|
156
|
+
psych (3.1.0)
|
157
|
+
rainbow (3.0.0)
|
158
|
+
rake (12.3.2)
|
159
|
+
rb-fsevent (0.10.3)
|
160
|
+
rb-inotify (0.10.0)
|
161
|
+
ffi (~> 1.0)
|
162
|
+
redcarpet (3.4.0)
|
163
|
+
reek (5.3.1)
|
164
|
+
codeclimate-engine-rb (~> 0.4.0)
|
165
|
+
kwalify (~> 0.7.0)
|
166
|
+
parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
|
167
|
+
psych (~> 3.1.0)
|
168
|
+
rainbow (>= 2.0, < 4.0)
|
169
|
+
rom (3.3.3)
|
170
|
+
concurrent-ruby (~> 1.0)
|
171
|
+
dry-core (~> 0.3)
|
172
|
+
dry-equalizer (~> 0.2)
|
173
|
+
dry-initializer (~> 1.3)
|
174
|
+
dry-types (~> 0.9, >= 0.9.4)
|
175
|
+
rom-mapper (~> 0.5, >= 0.5.1)
|
176
|
+
rom-mapper (0.5.1)
|
177
|
+
dry-core (~> 0.2, >= 0.2.3)
|
178
|
+
dry-equalizer (~> 0.2)
|
179
|
+
transproc (~> 1.0)
|
180
|
+
rom-repository (1.4.0)
|
181
|
+
dry-core (~> 0.3, >= 0.3.1)
|
182
|
+
dry-struct (~> 0.3)
|
183
|
+
rom (~> 3.3)
|
184
|
+
rom-mapper (~> 0.5)
|
185
|
+
rom-sql (1.3.5)
|
186
|
+
dry-core (~> 0.3)
|
187
|
+
dry-equalizer (~> 0.2)
|
188
|
+
dry-types (~> 0.11.0)
|
189
|
+
rom (~> 3.2, >= 3.2.2)
|
190
|
+
sequel (~> 4.43)
|
191
|
+
rubocop (0.64.0)
|
192
|
+
jaro_winkler (~> 1.5.1)
|
193
|
+
parallel (~> 1.10)
|
194
|
+
parser (>= 2.5, != 2.5.1.1)
|
195
|
+
powerpack (~> 0.1)
|
196
|
+
rainbow (>= 2.2.2, < 4.0)
|
197
|
+
ruby-progressbar (~> 1.7)
|
198
|
+
unicode-display_width (~> 1.4.0)
|
199
|
+
ruby-progressbar (1.10.0)
|
200
|
+
ruby_dep (1.5.0)
|
201
|
+
ruby_parser (3.12.0)
|
202
|
+
sexp_processor (~> 4.9)
|
203
|
+
sequel (4.49.0)
|
204
|
+
sexp_processor (4.11.0)
|
205
|
+
shellany (0.0.1)
|
206
|
+
simplecov (0.16.1)
|
207
|
+
docile (~> 1.1)
|
208
|
+
json (>= 1.8, < 3)
|
209
|
+
simplecov-html (~> 0.10.0)
|
210
|
+
simplecov-html (0.10.2)
|
211
|
+
sparkr (0.4.1)
|
212
|
+
sqlite3 (1.4.0)
|
213
|
+
term-ansicolor (1.7.1)
|
214
|
+
tins (~> 1.0)
|
215
|
+
thor (0.20.3)
|
216
|
+
thread_safe (0.3.6)
|
217
|
+
timecop (0.9.1)
|
218
|
+
tins (1.20.2)
|
219
|
+
transproc (1.0.3)
|
220
|
+
unicode-display_width (1.4.1)
|
221
|
+
virtus (1.0.5)
|
222
|
+
axiom-types (~> 0.1)
|
223
|
+
coercible (~> 1.0)
|
224
|
+
descendants_tracker (~> 0.0, >= 0.0.3)
|
225
|
+
equalizer (~> 0.0, >= 0.0.9)
|
226
|
+
yard (0.9.18)
|
227
|
+
yard-classmethods (1.0.0)
|
228
|
+
yard
|
229
|
+
|
230
|
+
PLATFORMS
|
231
|
+
ruby
|
232
|
+
|
233
|
+
DEPENDENCIES
|
234
|
+
bundler (>= 1.17.2)
|
235
|
+
crypt_ident!
|
236
|
+
flay (= 2.12.0)
|
237
|
+
flog (= 4.6.2)
|
238
|
+
github-markup (= 3.0.3)
|
239
|
+
guard (= 2.15.0)
|
240
|
+
guard-minitest (= 2.4.6)
|
241
|
+
guard-rake (= 1.0.0)
|
242
|
+
guard-rubocop (= 1.3.0)
|
243
|
+
guard-shell (= 0.7.1)
|
244
|
+
inch (= 0.8.0)
|
245
|
+
minitest (= 5.11.3)
|
246
|
+
minitest-hooks (= 1.5.0)
|
247
|
+
minitest-matchers (= 1.4.1)
|
248
|
+
minitest-reporters (= 1.3.6)
|
249
|
+
minitest-tagz (= 1.6.0)
|
250
|
+
pry-byebug (= 3.6.0)
|
251
|
+
pry-doc (= 1.0.0)
|
252
|
+
rake (>= 12.3.2)
|
253
|
+
redcarpet (= 3.4.0)
|
254
|
+
reek (= 5.3.1)
|
255
|
+
rubocop (= 0.64.0)
|
256
|
+
simplecov (= 0.16.1)
|
257
|
+
sqlite3
|
258
|
+
timecop (= 0.9.1)
|
259
|
+
yard (= 0.9.18)
|
260
|
+
yard-classmethods (= 1.0.0)
|
261
|
+
|
262
|
+
BUNDLED WITH
|
263
|
+
2.0.1
|
data/Guardfile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
guard :minitest do
|
5
|
+
watch(%r{^test/(.*)\/?test_(.*)\.rb$})
|
6
|
+
watch(%r{^lib/(.*/?[^/]+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
|
7
|
+
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
8
|
+
end
|
9
|
+
|
10
|
+
guard 'rake', task: 'flay' do
|
11
|
+
watch(%r{^lib/.*/?[^/]+\.rb$})
|
12
|
+
end
|
13
|
+
|
14
|
+
# guard 'rake', task: 'flog', run_on_all: true, run_on_start: true do
|
15
|
+
# # watch(%r{^lib/.*/?[^/]+\.rb$})
|
16
|
+
# end
|
17
|
+
|
18
|
+
guard :shell do
|
19
|
+
watch(%r{^lib/.*/?[^/]+\.rb$}) { |m| "bin/flog -adm #{m[0]}" }
|
20
|
+
watch(%r{^lib/.*/?[^/]+\.rb$}) { |m| "bin/reek -c config.reek --sort-by smelliness #{m[0]}" }
|
21
|
+
watch(%r{^lib/.*/?[^/]+\.rb$}) { |m| "bin/inch list #{m[0]}" }
|
22
|
+
end
|
23
|
+
|
24
|
+
guard :rubocop do
|
25
|
+
watch(%r{^lib/crypt_ident/.*?[^/]+\.rb$})
|
26
|
+
end
|