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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab404e63461f97450b949b1b6d33c2955cf16e92
4
- data.tar.gz: 5bdd548e805d3190b15d391288cb9620f0664da6
3
+ metadata.gz: 8a519b37e01ef22483cd67dd72d50ce4cfbf4066
4
+ data.tar.gz: 892608bbddfa2213ecc4baa0d38d576fc61b3e39
5
5
  SHA512:
6
- metadata.gz: 91763eecc66a891faf87e4298ca10c266e34685a7cc32caeac82338028e465a4e4dcc6b60d5a5c82ee3fe58fd49ac62bc79025aa647fe3c4e407fba07fdbe1a3
7
- data.tar.gz: 48f94db9a4a29e243e8291b8725b5d672bc1040edd5b4dccb736727fb0633a95ef8b9fecc6022ab2042c5477f044029dfd64c17eb3c6af8174e31f71ab383513
6
+ metadata.gz: d36f1a732da8f3eb875265a2fbbb02c8398dd7ff2850b2f7b4f62eaa317c17ba2c4e64ba1639ba875e50fc1f257037631f0a09612d61c45b936fc4e02a99874f
7
+ data.tar.gz: f49cb256d6961b2dfbf4c917883b39320f6e75a141b289c0f1d10e4466016f413cd26992cf1f44d38f824f9fd80efc4384bbe40e1dd414dc57c7e95f0432fcda
@@ -0,0 +1,4 @@
1
+ SimpleCov.start do
2
+ add_filter "/test/"
3
+ add_filter "/features/"
4
+ end
@@ -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.0
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
@@ -1,60 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- filentory-cli (0.3.0)
5
- exifr (~> 1.1.3)
4
+ filentory-cli (0.3.1)
5
+ exifr (~> 1.2.0)
6
6
  json_spec (~> 1.1.1)
7
- methadone (~> 1.3.1)
8
- oj (~> 2.5.3)
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.5.3)
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.3.9)
20
+ childprocess (0.5.5)
21
21
  ffi (~> 1.0, >= 1.0.11)
22
- cucumber (1.3.10)
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.0.2)
27
+ multi_test (>= 0.1.1)
28
28
  diff-lcs (1.2.5)
29
- exifr (1.1.3)
29
+ docile (1.1.5)
30
+ exifr (1.2.0)
30
31
  fakeweb (1.3.0)
31
- ffi (1.9.3)
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.1)
36
+ json_spec (1.1.4)
36
37
  multi_json (~> 1.0)
37
- rspec (~> 2.0)
38
- methadone (1.3.1)
38
+ rspec (>= 2.0, < 4.0)
39
+ methadone (1.8.0)
39
40
  bundler
40
- multi_json (1.8.2)
41
- multi_test (0.0.3)
42
- nokogiri (1.5.6)
43
- oj (2.5.3)
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.1.1)
48
- rdoc (4.1.0)
49
+ rake (10.3.2)
50
+ rdoc (4.1.2)
49
51
  json (~> 1.4)
50
- rspec (2.14.1)
51
- rspec-core (~> 2.14.0)
52
- rspec-expectations (~> 2.14.0)
53
- rspec-mocks (~> 2.14.0)
54
- rspec-core (2.14.7)
55
- rspec-expectations (2.14.4)
56
- diff-lcs (>= 1.1.3, < 2.0)
57
- rspec-mocks (2.14.5)
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.1.1)
83
+ rake (~> 10.3)
72
84
  rdoc
85
+ simplecov (~> 0.9.1)
data/README.md CHANGED
@@ -46,4 +46,5 @@ Or install it yourself as:
46
46
 
47
47
  ## Testing
48
48
  Start the minimal web service as a endpoint to send data with this command:
49
+
49
50
  $rackup features/support/config.ru
@@ -1,3 +1,4 @@
1
+ require 'simplecov'
1
2
  require 'aruba/cucumber'
2
3
  require 'methadone/cucumber'
3
4
  require "json_spec/cucumber"
@@ -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.1.1')
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.add_dependency('methadone', '~> 1.3.1')
26
- gem.add_dependency('oj', '~> 2.5.3')
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.1.3')
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
@@ -1,3 +1,3 @@
1
1
  module Filentory
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -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 &quot;<span class="param">filentory-cli</span>&quot;</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&#39;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 &quot;<span class="param">filentory-cli</span>&quot; 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 &quot;<span class="param">name</span>&quot; should be &quot;<span class="param">testrun</span>&quot;</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 &quot;<span class="param">mediatype</span>&quot; should be &quot;<span class="param">DVD</span>&quot;</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 &quot;<span class="param">files</span>&quot;</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 &quot;<span class="param">folder</span>&quot;</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 &quot;<span class="param">filentory-cli</span>&quot; 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 &quot;<span class="param">filentory-cli</span>&quot; 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 &quot;<span class="param">mykey</span>&quot; 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 &quot;<span class="param">filentory-cli</span>&quot; 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 &quot;<span class="param">filentory-cli</span>&quot;</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&#39;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 &quot;<span class="param">filentory-cli</span>&quot; 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 &quot;<span class="param">name</span>&quot; should be &quot;<span class="param">testrun</span>&quot;</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 &quot;<span class="param">mediatype</span>&quot; should be &quot;<span class="param">DVD</span>&quot;</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 &quot;<span class="param">files</span>&quot;</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 &quot;<span class="param">folder</span>&quot;</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 &quot;<span class="param">filentory-cli</span>&quot; 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 &quot;<span class="param">filentory-cli</span>&quot; 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 &quot;<span class="param">mykey</span>&quot; 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 &quot;<span class="param">filentory-cli</span>&quot; 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>
@@ -1,8 +1,9 @@
1
- require 'test/unit'
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::Unit::TestCase
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
@@ -1,7 +1,8 @@
1
- require 'test/unit'
1
+ require File.expand_path '../test_helper.rb', __FILE__
2
+ require 'minitest/autorun'
2
3
  require 'filentory/datastore'
3
4
 
4
- class TestDatastore < Test::Unit::TestCase
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
@@ -1,8 +1,9 @@
1
- require 'test/unit'
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::Unit::TestCase
6
+ class TestExifExtractor < Minitest::Test
6
7
 
7
8
  def test_can_extract_metadata
8
9
  extractor = ExifExtractor.new
@@ -1,10 +1,11 @@
1
- require 'test/unit'
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::Unit::TestCase
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
@@ -1,9 +1,10 @@
1
- require 'test/unit'
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::Unit::TestCase
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
@@ -1,6 +1,6 @@
1
- require 'test/unit'
1
+ require 'minitest/autorun'
2
2
 
3
- class TestSomething < Test::Unit::TestCase
3
+ class TestSomething < Minitest::Test
4
4
  def test_truth
5
5
  assert true
6
6
  end
@@ -1,8 +1,9 @@
1
- require 'test/unit'
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::Unit::TestCase
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
@@ -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.0
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-03-25 00:00:00.000000000 Z
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.1.1
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.1.1
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.3.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.3.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.5.3
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.5.3
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.1.3
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.1.3
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