filentory-cli 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +4 -0
- data/.travis.yml +3 -1
- data/Gemfile.lock +41 -28
- data/README.md +1 -0
- data/features/support/env.rb +1 -0
- data/filentory-cli.gemspec +6 -4
- data/lib/filentory/version.rb +1 -1
- data/results.html +1 -1
- data/test/tc_collector.rb +4 -3
- data/test/tc_datastore.rb +4 -3
- data/test/tc_exifextractor.rb +3 -2
- data/test/tc_fileentry.rb +5 -4
- data/test/tc_sender.rb +4 -3
- data/test/tc_something.rb +2 -2
- data/test/tc_videoextractor.rb +4 -3
- data/test/test_helper.rb +1 -0
- metadata +41 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a519b37e01ef22483cd67dd72d50ce4cfbf4066
|
4
|
+
data.tar.gz: 892608bbddfa2213ecc4baa0d38d576fc61b3e39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d36f1a732da8f3eb875265a2fbbb02c8398dd7ff2850b2f7b4f62eaa317c17ba2c4e64ba1639ba875e50fc1f257037631f0a09612d61c45b936fc4e02a99874f
|
7
|
+
data.tar.gz: f49cb256d6961b2dfbf4c917883b39320f6e75a141b289c0f1d10e4466016f413cd26992cf1f44d38f824f9fd80efc4384bbe40e1dd414dc57c7e95f0432fcda
|
data/.simplecov
ADDED
data/.travis.yml
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
before_script:
|
3
3
|
- "sudo apt-get update && sudo apt-get install -qq ffmpeg"
|
4
|
+
# Ubuntu 14.4: - "sudo apt-get install -qq libav-tools && sudo ln /usr/bin/avconv /usr/bin/ffmpeg"
|
4
5
|
- "bundle exec rackup features/support/config.ru &"
|
5
6
|
rvm:
|
6
7
|
- 2.0.0
|
7
8
|
- 1.9.3
|
8
|
-
- 2.1.
|
9
|
+
- 2.1.2
|
9
10
|
- jruby-head
|
10
11
|
- jruby-19mode
|
11
12
|
- rbx-2.2.3
|
@@ -14,3 +15,4 @@ matrix:
|
|
14
15
|
- rvm: jruby-head
|
15
16
|
- rvm: jruby-19mode
|
16
17
|
- rvm: rbx-2.2.3
|
18
|
+
- rvm: 1.9.3
|
data/Gemfile.lock
CHANGED
@@ -1,60 +1,71 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
filentory-cli (0.3.
|
5
|
-
exifr (~> 1.
|
4
|
+
filentory-cli (0.3.1)
|
5
|
+
exifr (~> 1.2.0)
|
6
6
|
json_spec (~> 1.1.1)
|
7
|
-
methadone (~> 1.
|
8
|
-
oj (~> 2.
|
7
|
+
methadone (~> 1.7)
|
8
|
+
oj (~> 2.11)
|
9
9
|
streamio-ffmpeg (~> 1.0.0)
|
10
10
|
xmp (~> 0.2.0)
|
11
11
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
aruba (0.
|
15
|
+
aruba (0.6.1)
|
16
16
|
childprocess (>= 0.3.6)
|
17
17
|
cucumber (>= 1.1.1)
|
18
18
|
rspec-expectations (>= 2.7.0)
|
19
19
|
builder (3.2.2)
|
20
|
-
childprocess (0.
|
20
|
+
childprocess (0.5.5)
|
21
21
|
ffi (~> 1.0, >= 1.0.11)
|
22
|
-
cucumber (1.3.
|
22
|
+
cucumber (1.3.17)
|
23
23
|
builder (>= 2.1.2)
|
24
24
|
diff-lcs (>= 1.1.3)
|
25
25
|
gherkin (~> 2.12)
|
26
26
|
multi_json (>= 1.7.5, < 2.0)
|
27
|
-
multi_test (>= 0.
|
27
|
+
multi_test (>= 0.1.1)
|
28
28
|
diff-lcs (1.2.5)
|
29
|
-
|
29
|
+
docile (1.1.5)
|
30
|
+
exifr (1.2.0)
|
30
31
|
fakeweb (1.3.0)
|
31
|
-
ffi (1.9.
|
32
|
+
ffi (1.9.6)
|
32
33
|
gherkin (2.12.2)
|
33
34
|
multi_json (~> 1.3)
|
34
35
|
json (1.8.1)
|
35
|
-
json_spec (1.1.
|
36
|
+
json_spec (1.1.4)
|
36
37
|
multi_json (~> 1.0)
|
37
|
-
rspec (
|
38
|
-
methadone (1.
|
38
|
+
rspec (>= 2.0, < 4.0)
|
39
|
+
methadone (1.8.0)
|
39
40
|
bundler
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
minitest (5.4.2)
|
42
|
+
multi_json (1.10.1)
|
43
|
+
multi_test (0.1.1)
|
44
|
+
nokogiri (1.5.11)
|
45
|
+
oj (2.11.0)
|
44
46
|
rack (1.5.2)
|
45
47
|
rack-test (0.6.2)
|
46
48
|
rack (>= 1.0)
|
47
|
-
rake (10.
|
48
|
-
rdoc (4.1.
|
49
|
+
rake (10.3.2)
|
50
|
+
rdoc (4.1.2)
|
49
51
|
json (~> 1.4)
|
50
|
-
rspec (
|
51
|
-
rspec-core (~>
|
52
|
-
rspec-expectations (~>
|
53
|
-
rspec-mocks (~>
|
54
|
-
rspec-core (
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
rspec (3.1.0)
|
53
|
+
rspec-core (~> 3.1.0)
|
54
|
+
rspec-expectations (~> 3.1.0)
|
55
|
+
rspec-mocks (~> 3.1.0)
|
56
|
+
rspec-core (3.1.7)
|
57
|
+
rspec-support (~> 3.1.0)
|
58
|
+
rspec-expectations (3.1.2)
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
+
rspec-support (~> 3.1.0)
|
61
|
+
rspec-mocks (3.1.3)
|
62
|
+
rspec-support (~> 3.1.0)
|
63
|
+
rspec-support (3.1.2)
|
64
|
+
simplecov (0.9.1)
|
65
|
+
docile (~> 1.1.0)
|
66
|
+
multi_json (~> 1.0)
|
67
|
+
simplecov-html (~> 0.8.0)
|
68
|
+
simplecov-html (0.8.0)
|
58
69
|
streamio-ffmpeg (1.0.0)
|
59
70
|
xmp (0.2.0)
|
60
71
|
nokogiri (~> 1.5.0)
|
@@ -66,7 +77,9 @@ DEPENDENCIES
|
|
66
77
|
aruba
|
67
78
|
fakeweb (~> 1.3)
|
68
79
|
filentory-cli!
|
80
|
+
minitest
|
69
81
|
rack (~> 1.5.2)
|
70
82
|
rack-test (~> 0.6.2)
|
71
|
-
rake (~> 10.
|
83
|
+
rake (~> 10.3)
|
72
84
|
rdoc
|
85
|
+
simplecov (~> 0.9.1)
|
data/README.md
CHANGED
data/features/support/env.rb
CHANGED
data/filentory-cli.gemspec
CHANGED
@@ -18,14 +18,16 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
gem.add_development_dependency('rdoc')
|
20
20
|
gem.add_development_dependency('aruba')
|
21
|
-
gem.add_development_dependency('rake', '~> 10.
|
21
|
+
gem.add_development_dependency('rake', '~> 10.3')
|
22
22
|
gem.add_development_dependency('fakeweb', '~> 1.3')
|
23
23
|
gem.add_development_dependency('rack', '~>1.5.2')
|
24
24
|
gem.add_development_dependency('rack-test', '~> 0.6.2')
|
25
|
-
gem.
|
26
|
-
gem.add_dependency('
|
25
|
+
gem.add_development_dependency('minitest')
|
26
|
+
gem.add_dependency('methadone', '~> 1.7')
|
27
|
+
gem.add_dependency('oj', '~> 2.11')
|
27
28
|
gem.add_dependency('json_spec', '~> 1.1.1')
|
28
|
-
gem.add_dependency('exifr', '~> 1.
|
29
|
+
gem.add_dependency('exifr', '~> 1.2.0')
|
29
30
|
gem.add_dependency('xmp', '~> 0.2.0')
|
30
31
|
gem.add_dependency('streamio-ffmpeg', '~> 1.0.0')
|
32
|
+
gem.add_development_dependency('simplecov', '~> 0.9.1')
|
31
33
|
end
|
data/lib/filentory/version.rb
CHANGED
data/results.html
CHANGED
@@ -469,4 +469,4 @@ e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["
|
|
469
469
|
$('#'+element_id).css('color', '#000000');
|
470
470
|
}
|
471
471
|
|
472
|
-
</script></head><body><!-- Step count 23--><div class="cucumber"><div id="cucumber-header"><div id="label"><h1>Cucumber Features</h1></div><div id="summary"><p id="totals"></p><p id="duration"></p><div id="expand-collapse"><p id="expander">Expand All</p><p id="collapser">Collapse All</p></div></div></div><div class="feature"><h2><span class="val">Feature: Filentory-cli works</span></h2><p class="narrative"></p><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:3</span><h3 id="scenario_1"><span class="keyword">Scenario:</span> <span class="val">App just runs</span></h3><ol><li id='features_filentory-cli_feature_4' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I get help for "<span class="param">filentory-cli</span>"</span></div><div class="step_file"><span>methadone-1.3.1/lib/methadone/cucumber.rb:58</span></div></li> <script type="text/javascript">moveProgressBar('4.3');</script><li id='features_filentory-cli_feature_5' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">the exit status should be <span class="param">0</span></span></div><div class="step_file"><span>aruba-0.5.3/lib/aruba/cucumber.rb:154</span></div></li> <script type="text/javascript">moveProgressBar('8.6');</script><li id='features_filentory-cli_feature_6' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the banner should be present</span></div><div class="step_file"><span>methadone-1.3.1/lib/methadone/cucumber.rb:78</span></div></li> <script type="text/javascript">moveProgressBar('13.0');</script><li id='features_filentory-cli_feature_7' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">there should be a one line summary of what the app does</span></div><div class="step_file"><span>methadone-1.3.1/lib/methadone/cucumber.rb:109</span></div></li> <script type="text/javascript">moveProgressBar('17.3');</script><li id='features_filentory-cli_feature_8' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the banner should document that this app takes options</span></div><div class="step_file"><span>methadone-1.3.1/lib/methadone/cucumber.rb:82</span></div></li> <script type="text/javascript">moveProgressBar('21.7');</script><li id='features_filentory-cli_feature_9' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the following options should be documented:</span></div><div class="step_file"><span>methadone-1.3.1/lib/methadone/cucumber.rb:63</span></div><table><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">--version</span></div></td></tr> <script type="text/javascript">moveProgressBar('30.4');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">--type</span></div></td></tr> <script type="text/javascript">moveProgressBar('34.7');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">--auth</span></div></td></tr> <script type="text/javascript">moveProgressBar('39.1');</script></table></li> <script type="text/javascript">moveProgressBar('39.1');</script><li id='features_filentory-cli_feature_13' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the banner should document that this app's arguments are:</span></div><div class="step_file"><span>methadone-1.3.1/lib/methadone/cucumber.rb:87</span></div><table><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">name</span></div></td><td class="step" id="row_-1_1"><div><span class="step param"></span></div></td></tr> <script type="text/javascript">moveProgressBar('47.8');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">path</span></div></td><td class="step" id="row_-1_1"><div><span class="step param"></span></div></td></tr> <script type="text/javascript">moveProgressBar('52.1');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">server</span></div></td><td class="step" id="row_-1_1"><div><span class="step param">optional</span></div></td></tr> <script type="text/javascript">moveProgressBar('56.5');</script></table></li> <script type="text/javascript">moveProgressBar('56.5');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:18</span><h3 id="scenario_2"><span class="keyword">Scenario:</span> <span class="val">App prints JSON</span></h3><ol><li id='features_filentory-cli_feature_19' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" for the test data</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:2</span></div></li> <script type="text/javascript">moveProgressBar('60.8');</script><li id='features_filentory-cli_feature_20' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get JSON as output</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:6</span></div></li> <script type="text/javascript">moveProgressBar('65.2');</script><li id='features_filentory-cli_feature_21' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the "<span class="param">name</span>" should be "<span class="param">testrun</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:12</span></div></li> <script type="text/javascript">moveProgressBar('69.5');</script><li id='features_filentory-cli_feature_22' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the "<span class="param">mediatype</span>" should be "<span class="param">DVD</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:12</span></div></li> <script type="text/javascript">moveProgressBar('73.9');</script><li id='features_filentory-cli_feature_23' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">there should be <span class="param">4</span> entries in "<span class="param">files</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:16</span></div></li> <script type="text/javascript">moveProgressBar('78.2');</script><li id='features_filentory-cli_feature_24' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the first file should be placed in the root folder</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:20</span></div></li> <script type="text/javascript">moveProgressBar('82.6');</script><li id='features_filentory-cli_feature_25' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the second file should be in the "<span class="param">folder</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:27</span></div></li> <script type="text/javascript">moveProgressBar('86.9');</script><li id='features_filentory-cli_feature_26' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the image file should have metadata</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:34</span></div></li> <script type="text/javascript">moveProgressBar('91.3');</script><li id='features_filentory-cli_feature_27' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the video file should have metadata</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:43</span></div></li> <script type="text/javascript">moveProgressBar('95.6');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:29</span><h3 id="scenario_3"><span class="keyword">Scenario:</span> <span class="val">Sending data to server</span></h3><ol><li id='features_filentory-cli_feature_30' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" with a server parameter</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:51</span></div></li> <script type="text/javascript">moveProgressBar('100.0');</script><li id='features_filentory-cli_feature_31' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get a message that the data was send successfully</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:55</span></div></li> <script type="text/javascript">moveProgressBar('104.3');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:33</span><h3 id="scenario_4"><span class="keyword">Scenario:</span> <span class="val">YAML file present while sending data to server</span></h3><ol><li id='features_filentory-cli_feature_34' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" with a server parameter and a yaml file</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:67</span></div></li> <script type="text/javascript">moveProgressBar('108.6');</script><li id='features_filentory-cli_feature_35' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get a message that the data was send successfully</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:55</span></div></li> <script type="text/javascript">moveProgressBar('113.0');</script><li id='features_filentory-cli_feature_36' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">I should get a message that "<span class="param">mykey</span>" was send with the JSON data</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:71</span></div></li> <script type="text/javascript">moveProgressBar('117.3');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:38</span><h3 id="scenario_5"><span class="keyword">Scenario:</span> <span class="val">Server does not exist</span></h3><ol><li id='features_filentory-cli_feature_39' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" with the wrong server parameter</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:59</span></div></li> <script type="text/javascript">moveProgressBar('121.7');</script><li id='features_filentory-cli_feature_40' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get a message that the data could not be sent</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:63</span></div></li> <script type="text/javascript">moveProgressBar('126.0');</script></ol></div></div><script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0m1.145s seconds</strong>";</script><script type="text/javascript">document.getElementById('totals').innerHTML = "5 scenarios (5 passed)<br />23 steps (23 passed)";</script></div></body></html>
|
472
|
+
</script></head><body><!-- Step count 23--><div class="cucumber"><div id="cucumber-header"><div id="label"><h1>Cucumber Features</h1></div><div id="summary"><p id="totals"></p><p id="duration"></p><div id="expand-collapse"><p id="expander">Expand All</p><p id="collapser">Collapse All</p></div></div></div><div class="feature"><h2><span class="val">Feature: Filentory-cli works</span></h2><p class="narrative"></p><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:3</span><h3 id="scenario_1"><span class="keyword">Scenario:</span> <span class="val">App just runs</span></h3><ol><li id='features_filentory-cli_feature_4' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I get help for "<span class="param">filentory-cli</span>"</span></div><div class="step_file"><span>methadone-1.8.0/lib/methadone/cucumber.rb:58</span></div></li> <script type="text/javascript">moveProgressBar('4.3');</script><li id='features_filentory-cli_feature_5' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">the exit status should be <span class="param">0</span></span></div><div class="step_file"><span>aruba-0.6.1/lib/aruba/cucumber.rb:197</span></div></li> <script type="text/javascript">moveProgressBar('8.6');</script><li id='features_filentory-cli_feature_6' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the banner should be present</span></div><div class="step_file"><span>methadone-1.8.0/lib/methadone/cucumber.rb:78</span></div></li> <script type="text/javascript">moveProgressBar('13.0');</script><li id='features_filentory-cli_feature_7' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">there should be a one line summary of what the app does</span></div><div class="step_file"><span>methadone-1.8.0/lib/methadone/cucumber.rb:109</span></div></li> <script type="text/javascript">moveProgressBar('17.3');</script><li id='features_filentory-cli_feature_8' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the banner should document that this app takes options</span></div><div class="step_file"><span>methadone-1.8.0/lib/methadone/cucumber.rb:82</span></div></li> <script type="text/javascript">moveProgressBar('21.7');</script><li id='features_filentory-cli_feature_9' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the following options should be documented:</span></div><div class="step_file"><span>methadone-1.8.0/lib/methadone/cucumber.rb:63</span></div><table><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">--version</span></div></td></tr> <script type="text/javascript">moveProgressBar('30.4');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">--type</span></div></td></tr> <script type="text/javascript">moveProgressBar('34.7');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">--auth</span></div></td></tr> <script type="text/javascript">moveProgressBar('39.1');</script></table></li> <script type="text/javascript">moveProgressBar('39.1');</script><li id='features_filentory-cli_feature_13' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the banner should document that this app's arguments are:</span></div><div class="step_file"><span>methadone-1.8.0/lib/methadone/cucumber.rb:87</span></div><table><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">name</span></div></td><td class="step" id="row_-1_1"><div><span class="step param"></span></div></td></tr> <script type="text/javascript">moveProgressBar('47.8');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">path</span></div></td><td class="step" id="row_-1_1"><div><span class="step param"></span></div></td></tr> <script type="text/javascript">moveProgressBar('52.1');</script><tr class='step' id='row_-1'><td class="step" id="row_-1_0"><div><span class="step param">server</span></div></td><td class="step" id="row_-1_1"><div><span class="step param">optional</span></div></td></tr> <script type="text/javascript">moveProgressBar('56.5');</script></table></li> <script type="text/javascript">moveProgressBar('56.5');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:18</span><h3 id="scenario_2"><span class="keyword">Scenario:</span> <span class="val">App prints JSON</span></h3><ol><li id='features_filentory-cli_feature_19' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" for the test data</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:2</span></div></li> <script type="text/javascript">moveProgressBar('60.8');</script><li id='features_filentory-cli_feature_20' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get JSON as output</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:6</span></div></li> <script type="text/javascript">moveProgressBar('65.2');</script><li id='features_filentory-cli_feature_21' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the "<span class="param">name</span>" should be "<span class="param">testrun</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:12</span></div></li> <script type="text/javascript">moveProgressBar('69.5');</script><li id='features_filentory-cli_feature_22' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the "<span class="param">mediatype</span>" should be "<span class="param">DVD</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:12</span></div></li> <script type="text/javascript">moveProgressBar('73.9');</script><li id='features_filentory-cli_feature_23' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">there should be <span class="param">4</span> entries in "<span class="param">files</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:16</span></div></li> <script type="text/javascript">moveProgressBar('78.2');</script><li id='features_filentory-cli_feature_24' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the first file should be placed in the root folder</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:20</span></div></li> <script type="text/javascript">moveProgressBar('82.6');</script><li id='features_filentory-cli_feature_25' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the second file should be in the "<span class="param">folder</span>"</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:27</span></div></li> <script type="text/javascript">moveProgressBar('86.9');</script><li id='features_filentory-cli_feature_26' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the image file should have metadata</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:34</span></div></li> <script type="text/javascript">moveProgressBar('91.3');</script><li id='features_filentory-cli_feature_27' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">the video file should have metadata</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:43</span></div></li> <script type="text/javascript">moveProgressBar('95.6');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:29</span><h3 id="scenario_3"><span class="keyword">Scenario:</span> <span class="val">Sending data to server</span></h3><ol><li id='features_filentory-cli_feature_30' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" with a server parameter</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:51</span></div></li> <script type="text/javascript">moveProgressBar('100.0');</script><li id='features_filentory-cli_feature_31' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get a message that the data was send successfully</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:55</span></div></li> <script type="text/javascript">moveProgressBar('104.3');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:33</span><h3 id="scenario_4"><span class="keyword">Scenario:</span> <span class="val">YAML file present while sending data to server</span></h3><ol><li id='features_filentory-cli_feature_34' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" with a server parameter and a yaml file</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:67</span></div></li> <script type="text/javascript">moveProgressBar('108.6');</script><li id='features_filentory-cli_feature_35' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get a message that the data was send successfully</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:55</span></div></li> <script type="text/javascript">moveProgressBar('113.0');</script><li id='features_filentory-cli_feature_36' class='step passed'><div class="step_name"><span class="keyword">And </span><span class="step val">I should get a message that "<span class="param">mykey</span>" was send with the JSON data</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:71</span></div></li> <script type="text/javascript">moveProgressBar('117.3');</script></ol></div><div class='scenario'><span class="scenario_file">features/filentory-cli.feature:38</span><h3 id="scenario_5"><span class="keyword">Scenario:</span> <span class="val">Server does not exist</span></h3><ol><li id='features_filentory-cli_feature_39' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I run "<span class="param">filentory-cli</span>" with the wrong server parameter</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:59</span></div></li> <script type="text/javascript">moveProgressBar('121.7');</script><li id='features_filentory-cli_feature_40' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should get a message that the data could not be sent</span></div><div class="step_file"><span>features/step_definitions/filentory-cli_steps.rb:63</span></div></li> <script type="text/javascript">moveProgressBar('126.0');</script></ol></div></div><script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0m0.807s seconds</strong>";</script><script type="text/javascript">document.getElementById('totals').innerHTML = "5 scenarios (5 passed)<br />23 steps (23 passed)";</script></div></body></html>
|
data/test/tc_collector.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require File.expand_path '../test_helper.rb', __FILE__
|
2
|
+
require 'minitest/autorun'
|
2
3
|
require 'pathname'
|
3
4
|
require 'filentory/collector'
|
4
5
|
|
5
|
-
class TestCollector < Test
|
6
|
+
class TestCollector < Minitest::Test
|
6
7
|
|
7
8
|
def test_collector_finds_files
|
8
9
|
col = Collector.new
|
@@ -59,4 +60,4 @@ class TestCollector < Test::Unit::TestCase
|
|
59
60
|
assert_equal(".tXt", extension)
|
60
61
|
end
|
61
62
|
|
62
|
-
end
|
63
|
+
end
|
data/test/tc_datastore.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
require '
|
1
|
+
require File.expand_path '../test_helper.rb', __FILE__
|
2
|
+
require 'minitest/autorun'
|
2
3
|
require 'filentory/datastore'
|
3
4
|
|
4
|
-
class TestDatastore < Test
|
5
|
+
class TestDatastore < Minitest::Test
|
5
6
|
def test_initialisation_with_a_name
|
6
7
|
ds = Datastore.new("a name")
|
7
8
|
|
@@ -31,4 +32,4 @@ class TestDatastore < Test::Unit::TestCase
|
|
31
32
|
|
32
33
|
assert_equal(names, ds.files)
|
33
34
|
end
|
34
|
-
end
|
35
|
+
end
|
data/test/tc_exifextractor.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require File.expand_path '../test_helper.rb', __FILE__
|
2
|
+
require "minitest/autorun"
|
2
3
|
require 'pathname'
|
3
4
|
require 'filentory/exifextractor'
|
4
5
|
|
5
|
-
class TestExifExtractor < Test
|
6
|
+
class TestExifExtractor < Minitest::Test
|
6
7
|
|
7
8
|
def test_can_extract_metadata
|
8
9
|
extractor = ExifExtractor.new
|
data/test/tc_fileentry.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
require '
|
1
|
+
require File.expand_path '../test_helper.rb', __FILE__
|
2
|
+
require 'minitest/autorun'
|
2
3
|
require 'date'
|
3
4
|
require 'oj'
|
4
5
|
require 'filentory/fileentry'
|
5
6
|
|
6
7
|
|
7
|
-
class TestFileEntry < Test
|
8
|
+
class TestFileEntry < Minitest::Test
|
8
9
|
|
9
10
|
def test_initialisation_with_a_path_and_a_name
|
10
11
|
fe = FileEntry.new("/media/","a name")
|
@@ -35,7 +36,7 @@ class TestFileEntry < Test::Unit::TestCase
|
|
35
36
|
|
36
37
|
json = Oj::dump fe, :indent => 2
|
37
38
|
|
38
|
-
assert_equal(json_compact.strip, json)
|
39
|
+
assert_equal(json_compact.strip, json.strip)
|
39
40
|
end
|
40
41
|
|
41
42
|
def test_to_s_is_readable
|
@@ -59,4 +60,4 @@ class TestFileEntry < Test::Unit::TestCase
|
|
59
60
|
eos
|
60
61
|
end
|
61
62
|
|
62
|
-
end
|
63
|
+
end
|
data/test/tc_sender.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
require '
|
1
|
+
require File.expand_path '../test_helper.rb', __FILE__
|
2
|
+
require 'minitest/autorun'
|
2
3
|
require 'uri'
|
3
4
|
require 'fakeweb'
|
4
5
|
require 'filentory/sender'
|
5
6
|
|
6
|
-
class TestSender < Test
|
7
|
+
class TestSender < Minitest::Test
|
7
8
|
|
8
9
|
def setup
|
9
10
|
end
|
@@ -92,4 +93,4 @@ class TestSender < Test::Unit::TestCase
|
|
92
93
|
:status => [status_code.to_s, response])
|
93
94
|
url
|
94
95
|
end
|
95
|
-
end
|
96
|
+
end
|
data/test/tc_something.rb
CHANGED
data/test/tc_videoextractor.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require File.expand_path '../test_helper.rb', __FILE__
|
2
|
+
require 'minitest/autorun'
|
2
3
|
require 'pathname'
|
3
4
|
require 'filentory/videoextractor'
|
4
5
|
|
5
|
-
class TestVideoExtractor < Test
|
6
|
+
class TestVideoExtractor < Minitest::Test
|
6
7
|
|
7
8
|
def test_can_extract_metadata
|
8
9
|
extractor = VideoExtractor.new
|
@@ -19,4 +20,4 @@ class TestVideoExtractor < Test::Unit::TestCase
|
|
19
20
|
def test_can_not_handle_jpg
|
20
21
|
assert(!VideoExtractor.handles?(".jpg"), "VideoExtractor should responde false for .jpg")
|
21
22
|
end
|
22
|
-
end
|
23
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'simplecov'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filentory-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johnny Graber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 10.
|
47
|
+
version: '10.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 10.
|
54
|
+
version: '10.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: fakeweb
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,34 +94,48 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.6.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: methadone
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
117
|
+
version: '1.7'
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
124
|
+
version: '1.7'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: oj
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.
|
131
|
+
version: '2.11'
|
118
132
|
type: :runtime
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
136
|
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: 2.
|
138
|
+
version: '2.11'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: json_spec
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +156,14 @@ dependencies:
|
|
142
156
|
requirements:
|
143
157
|
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
159
|
+
version: 1.2.0
|
146
160
|
type: :runtime
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
166
|
+
version: 1.2.0
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: xmp
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +192,20 @@ dependencies:
|
|
178
192
|
- - "~>"
|
179
193
|
- !ruby/object:Gem::Version
|
180
194
|
version: 1.0.0
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: simplecov
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.9.1
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.9.1
|
181
209
|
description: A tool to create an inventory of a storage medium
|
182
210
|
email:
|
183
211
|
- jg@jgraber.ch
|
@@ -187,6 +215,7 @@ extensions: []
|
|
187
215
|
extra_rdoc_files: []
|
188
216
|
files:
|
189
217
|
- ".gitignore"
|
218
|
+
- ".simplecov"
|
190
219
|
- ".travis.yml"
|
191
220
|
- Gemfile
|
192
221
|
- Gemfile.lock
|
@@ -222,6 +251,7 @@ files:
|
|
222
251
|
- test/tc_sender.rb
|
223
252
|
- test/tc_something.rb
|
224
253
|
- test/tc_videoextractor.rb
|
254
|
+
- test/test_helper.rb
|
225
255
|
homepage: https://github.com/jgraber/filentory-cli
|
226
256
|
licenses: []
|
227
257
|
metadata: {}
|
@@ -264,3 +294,4 @@ test_files:
|
|
264
294
|
- test/tc_sender.rb
|
265
295
|
- test/tc_something.rb
|
266
296
|
- test/tc_videoextractor.rb
|
297
|
+
- test/test_helper.rb
|