file_checking 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 414f2c77e115d057cce07eef7137ea2e09f70418
4
- data.tar.gz: bad32843728e9e3856105ef33889c4240290ec36
3
+ metadata.gz: 48d73b3c2a77533834faaea00b139db6313eb925
4
+ data.tar.gz: b4f7a8a5ebd82713b18e24bf68347ea3f21df139
5
5
  SHA512:
6
- metadata.gz: f7c8992bcaadd1e42352d93f1cd970622d5a94aa202644fc1bff632aea5ae1899d048c61ec163fc32e7fed09994fdbcba8ba3ca617bb146c181118d321cf5113
7
- data.tar.gz: 44d3115c1a0ab1cd053b0650868012248930827b0307bae59037f22076b108833d36bd61d1c05d1ece9f783b5cdf92bc5ea869eac75f29615801a349219884ad
6
+ metadata.gz: be122a22168e3e2135b628b06284e4f1774e66b9578321f44abf23275c7c98884dab6dc3935e630326cb0649b46d319ebf015d099b21958d49fff64e9d9074ed
7
+ data.tar.gz: 5ccfba0f79d22f0fd1e9f5fd65ecb8eb8e663180a26cf2d087c2db18a9c2bead6e144b48a6b31f6444e9b0776d33c359cc172197e15e3cb747745c280f88445b
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build file_checking-1.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install file_checking-1.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v1.0.1 and build and push file_checking-1.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
data/.idea/workspace.xml CHANGED
@@ -25,15 +25,10 @@
25
25
  <file leaf-file-name="file_checking" pinned="false" current="false" current-in-tab="false">
26
26
  <entry file="file://$PROJECT_DIR$/bin/file_checking">
27
27
  <provider selected="true" editor-type-id="text-editor">
28
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="3026">
29
- <caret line="33" column="19" selection-start-line="33" selection-start-column="19" selection-end-line="33" selection-end-column="19" />
28
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2210">
29
+ <caret line="10" column="43" selection-start-line="10" selection-start-column="43" selection-end-line="10" selection-end-column="43" />
30
30
  <folding>
31
- <element signature="e#788#838#0" expanded="true" />
32
- <element signature="e#1320#1416#0" expanded="true" />
33
- <element signature="e#1486#1657#0" expanded="true" />
34
- <element signature="e#1891#2105#0" expanded="true" />
35
- <element signature="e#2134#3807#0" expanded="true" />
36
- <element signature="e#4344#5078#0" expanded="true" />
31
+ <element signature="e#2187#3860#0" expanded="true" />
37
32
  </folding>
38
33
  </state>
39
34
  </provider>
@@ -42,8 +37,21 @@
42
37
  <file leaf-file-name="file_checking.gemspec" pinned="false" current="true" current-in-tab="true">
43
38
  <entry file="file://$PROJECT_DIR$/file_checking.gemspec">
44
39
  <provider selected="true" editor-type-id="text-editor">
45
- <state vertical-scroll-proportion="0.08485857" vertical-offset="0" max-vertical-offset="601">
46
- <caret line="3" column="29" selection-start-line="3" selection-start-column="29" selection-end-line="3" selection-end-column="29" />
40
+ <state vertical-scroll-proportion="0.092491835" vertical-offset="0" max-vertical-offset="919">
41
+ <caret line="5" column="47" selection-start-line="5" selection-start-column="25" selection-end-line="5" selection-end-column="47" />
42
+ <folding />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/README.md">
49
+ <provider editor-type-id="MarkdownPreviewEditor">
50
+ <state />
51
+ </provider>
52
+ <provider selected="true" editor-type-id="text-editor">
53
+ <state vertical-scroll-proportion="-25.185184" vertical-offset="0" max-vertical-offset="782">
54
+ <caret line="40" column="42" selection-start-line="40" selection-start-column="42" selection-end-line="40" selection-end-column="42" />
47
55
  <folding />
48
56
  </state>
49
57
  </provider>
@@ -73,7 +81,7 @@
73
81
  <entry file="file://$PROJECT_DIR$/.gitignore">
74
82
  <provider selected="true" editor-type-id="text-editor">
75
83
  <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="493">
76
- <caret line="22" column="23" selection-start-line="22" selection-start-column="23" selection-end-line="22" selection-end-column="23" />
84
+ <caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
77
85
  <folding />
78
86
  </state>
79
87
  </provider>
@@ -90,8 +98,9 @@
90
98
  <option name="changedFiles">
91
99
  <list>
92
100
  <option value="$PROJECT_DIR$/.gitignore" />
93
- <option value="$PROJECT_DIR$/bin/file_checking" />
94
101
  <option value="$PROJECT_DIR$/file_checking.gemspec" />
102
+ <option value="$PROJECT_DIR$/bin/file_checking" />
103
+ <option value="$PROJECT_DIR$/README.md" />
95
104
  </list>
96
105
  </option>
97
106
  </component>
@@ -126,7 +135,6 @@
126
135
  <sortByType />
127
136
  </navigator>
128
137
  <panes>
129
- <pane id="Scope" />
130
138
  <pane id="ProjectPane">
131
139
  <subPane>
132
140
  <PATH>
@@ -161,6 +169,7 @@
161
169
  </PATH>
162
170
  </subPane>
163
171
  </pane>
172
+ <pane id="Scope" />
164
173
  </panes>
165
174
  </component>
166
175
  <component name="PropertiesComponent">
@@ -283,17 +292,17 @@
283
292
  <frame x="0" y="22" width="1680" height="1024" extended-state="6" />
284
293
  <editor active="true" />
285
294
  <layout>
286
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
287
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
295
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
296
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
288
297
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
289
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
298
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
290
299
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
291
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24969475" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
300
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25274727" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
292
301
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
293
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
294
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
295
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32985386" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
296
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
302
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
303
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
304
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32985386" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
305
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
297
306
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
298
307
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
299
308
  <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
@@ -323,6 +332,59 @@
323
332
  <breakpoint-manager />
324
333
  </component>
325
334
  <component name="editorHistoryManager">
335
+ <entry file="file://$PROJECT_DIR$/bin/file_checking">
336
+ <provider selected="true" editor-type-id="text-editor">
337
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="3026">
338
+ <caret line="95" column="84" selection-start-line="72" selection-start-column="0" selection-end-line="95" selection-end-column="84" />
339
+ <folding>
340
+ <element signature="e#2187#3860#0" expanded="true" />
341
+ </folding>
342
+ </state>
343
+ </provider>
344
+ </entry>
345
+ <entry file="file://$PROJECT_DIR$/file_checking.gemspec">
346
+ <provider selected="true" editor-type-id="text-editor">
347
+ <state vertical-scroll-proportion="0.0" vertical-offset="51" max-vertical-offset="391">
348
+ <caret line="3" column="29" selection-start-line="3" selection-start-column="29" selection-end-line="3" selection-end-column="29" />
349
+ <folding />
350
+ </state>
351
+ </provider>
352
+ </entry>
353
+ <entry file="file://$PROJECT_DIR$/README.md">
354
+ <provider editor-type-id="MarkdownPreviewEditor">
355
+ <state />
356
+ </provider>
357
+ <provider selected="true" editor-type-id="text-editor">
358
+ <state vertical-scroll-proportion="0.0" vertical-offset="187" max-vertical-offset="714">
359
+ <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
360
+ <folding />
361
+ </state>
362
+ </provider>
363
+ </entry>
364
+ <entry file="file://$PROJECT_DIR$/Gemfile">
365
+ <provider selected="true" editor-type-id="text-editor">
366
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="170">
367
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
368
+ <folding />
369
+ </state>
370
+ </provider>
371
+ </entry>
372
+ <entry file="file://$PROJECT_DIR$/Rakefile">
373
+ <provider selected="true" editor-type-id="text-editor">
374
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="136">
375
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
376
+ <folding />
377
+ </state>
378
+ </provider>
379
+ </entry>
380
+ <entry file="file://$PROJECT_DIR$/.gitignore">
381
+ <provider selected="true" editor-type-id="text-editor">
382
+ <state vertical-scroll-proportion="0.0" vertical-offset="374" max-vertical-offset="493">
383
+ <caret line="22" column="23" selection-start-line="22" selection-start-column="23" selection-end-line="22" selection-end-column="23" />
384
+ <folding />
385
+ </state>
386
+ </provider>
387
+ </entry>
326
388
  <entry file="file://$PROJECT_DIR$/Gemfile">
327
389
  <provider selected="true" editor-type-id="text-editor">
328
390
  <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="614">
@@ -342,30 +404,36 @@
342
404
  <entry file="file://$PROJECT_DIR$/.gitignore">
343
405
  <provider selected="true" editor-type-id="text-editor">
344
406
  <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="493">
345
- <caret line="22" column="23" selection-start-line="22" selection-start-column="23" selection-end-line="22" selection-end-column="23" />
407
+ <caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
346
408
  <folding />
347
409
  </state>
348
410
  </provider>
349
411
  </entry>
350
412
  <entry file="file://$PROJECT_DIR$/bin/file_checking">
351
413
  <provider selected="true" editor-type-id="text-editor">
352
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="3026">
353
- <caret line="33" column="19" selection-start-line="33" selection-start-column="19" selection-end-line="33" selection-end-column="19" />
414
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2210">
415
+ <caret line="10" column="43" selection-start-line="10" selection-start-column="43" selection-end-line="10" selection-end-column="43" />
354
416
  <folding>
355
- <element signature="e#788#838#0" expanded="true" />
356
- <element signature="e#1320#1416#0" expanded="true" />
357
- <element signature="e#1486#1657#0" expanded="true" />
358
- <element signature="e#1891#2105#0" expanded="true" />
359
- <element signature="e#2134#3807#0" expanded="true" />
360
- <element signature="e#4344#5078#0" expanded="true" />
417
+ <element signature="e#2187#3860#0" expanded="true" />
361
418
  </folding>
362
419
  </state>
363
420
  </provider>
364
421
  </entry>
422
+ <entry file="file://$PROJECT_DIR$/README.md">
423
+ <provider editor-type-id="MarkdownPreviewEditor">
424
+ <state />
425
+ </provider>
426
+ <provider selected="true" editor-type-id="text-editor">
427
+ <state vertical-scroll-proportion="-25.185184" vertical-offset="0" max-vertical-offset="782">
428
+ <caret line="40" column="42" selection-start-line="40" selection-start-column="42" selection-end-line="40" selection-end-column="42" />
429
+ <folding />
430
+ </state>
431
+ </provider>
432
+ </entry>
365
433
  <entry file="file://$PROJECT_DIR$/file_checking.gemspec">
366
434
  <provider selected="true" editor-type-id="text-editor">
367
- <state vertical-scroll-proportion="0.08485857" vertical-offset="0" max-vertical-offset="601">
368
- <caret line="3" column="29" selection-start-line="3" selection-start-column="29" selection-end-line="3" selection-end-column="29" />
435
+ <state vertical-scroll-proportion="0.092491835" vertical-offset="0" max-vertical-offset="919">
436
+ <caret line="5" column="47" selection-start-line="5" selection-start-column="25" selection-end-line="5" selection-end-column="47" />
369
437
  <folding />
370
438
  </state>
371
439
  </provider>
data/README.md CHANGED
@@ -1,29 +1,41 @@
1
- # FileChecking
2
-
3
- TODO: Write a gem description
1
+ # Security - Serie 1
4
2
 
5
3
  ## Installation
6
4
 
7
- Add this line to your application's Gemfile:
5
+ Install it yourself as:
6
+
7
+ $ gem install file_checking
8
8
 
9
- gem 'file_checking'
9
+ ## Usage in static mode: `file_checking <task> <exception>`
10
10
 
11
- And then execute:
11
+ **task** can have three different values:
12
12
 
13
- $ bundle
13
+ - `indexing` (index all files but not folders in directory and sub-directories this tool is run)
14
+ - `analysing` (analyse all files but not folders in directory and sub-directories this tool is run and which files have been modified, deleted or created)
15
+ - `help` display this help message
14
16
 
15
- Or install it yourself as:
17
+ **OPTIONAL** <exception> is the optional path of a file which indicate which file should not be indexed
18
+ Each line of the file indicate the path relative to the current directory of a file which should not be indexed.
19
+ For example, in your current directory you have the file not-to-index.txt. So you need to write in the file containing exceptions
20
+ not-to.index.txt
21
+ For prevented the file not-to-index.txt to be indexed
16
22
 
17
- $ gem install file_checking
23
+ ## Usage in interactive mode: `file_checking`
24
+
25
+ You will be prompted to choose four tasks. The thirds one are these described above. The fourth is to quit the programm
26
+ The path of the file containing the exceptions list will be asked in a second time (Leave it blank if you have none).
27
+
28
+ ## Note:
29
+
30
+ * A file is modified if his content has changed but not his absolute path
31
+ * A file is created if his absolute path is not indexed
32
+ * A file is deleted if his absolute path is indexed but don't correspond with any file in current directory or sub-directories
33
+ * Indexing is based on the MD5 algorithm
18
34
 
19
- ## Usage
35
+ ## Limitations:
20
36
 
21
- TODO: Write usage instructions here
37
+ This program is mono-thread. For indexing a big amount of files, it can take hours
22
38
 
23
- ## Contributing
39
+ ## Author:
24
40
 
25
- 1. Fork it ( https://github.com/[my-github-username]/file_checking/fork )
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create a new Pull Request
41
+ Numa de Montmollin, Université de Fribourg
data/bin/file_checking CHANGED
@@ -8,6 +8,8 @@ require 'yaml'
8
8
  # For more details: see the help message (file_checking help)
9
9
  # LIMITATIONS: This program mono-thread. For indexing a lot of files it can take a long time
10
10
 
11
+ # AUTHOR Numa de Montmollin, Université de Fribourg
12
+
11
13
  # The name of the program
12
14
  PROG_NAME = 'file_checking'
13
15
 
@@ -1,8 +1,8 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = 'file_checking'
4
- spec.version = '1.0.1'
5
- spec.authors = ['facenord-sud']
4
+ spec.version = '1.0.2'
5
+ spec.authors = ['Numa de Montmollin']
6
6
  spec.email = ['facenord.sud@gmail.com']
7
7
  spec.summary = %q{This is a tool designed for indexing files and after that to tell which file has been modified, deleted or created.}
8
8
  spec.homepage = ''
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_checking
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - facenord-sud
7
+ - Numa de Montmollin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - ".gitignore"
50
50
  - ".idea/.name"
51
+ - ".idea/.rakeTasks"
51
52
  - ".idea/encodings.xml"
52
53
  - ".idea/file_checking.iml"
53
54
  - ".idea/misc.xml"