unixoid-challenge 0.0.9 → 0.1.0

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: 014e79c2315e373d2b9649c6fbd231c263b27f6a
4
- data.tar.gz: 7fc6e59e599077aebf24856220cdabb0c50d5be0
3
+ metadata.gz: 5038cc84438774fae53de4387e330a9e64d270ce
4
+ data.tar.gz: fa0119d7de7fdc648d815ae4257ad3dcdf06044e
5
5
  SHA512:
6
- metadata.gz: aa373c2d3bab3471087b5d5a6ce41cfd0fcefc3780ae2b821d46e69eb7d2af49f64feb61596d5a88f464d713a3aa5f57d878d4f3187aace8b887b9f93d57e3e4
7
- data.tar.gz: d63b88207938bf4db0af4c9818c18d81b00b0cbdf4a581b83ff83b5dcb40bdba7f0e8dfbb1ea49a2f1df05e3984884ea5df6c1169d85eff0f943399058436329
6
+ metadata.gz: cc96abda146b37a2f8531ca7dea4079e7020797856f845882eed274f66c5a1d0e9422cbb82119c4b3ddd1da784a82ebbb2e9b62849c68e21cb13fdce8ee6ea55
7
+ data.tar.gz: ea38f444c2232ddd1acbdc50e0c319d9c439e1e64b0f1fa3b4ab2d7c08d1b7512b49e39aa160f3fc8177221e9503b1baf7f20ccfbf36a102e9a39ad68692199f
data/challenge_spec.rb CHANGED
@@ -32,12 +32,8 @@ describe "Unixoid test" do
32
32
  expect(File.read("#{Dir.home}/.bash_profile")).to match(/export\s+TESTING_MAKERS=working/)
33
33
  end
34
34
 
35
- it "8a. should have t-vars.count in my/public/files" do
35
+ it "8. should have t-vars.count in my/public/files with an overall count" do
36
36
  expect(File.exist?('my/public/files/t-vars.count')).to be true
37
- lines = File.readlines('my/public/files/t-vars.count')
38
- end
39
-
40
- it "8b. should have the count of env vars in my/public/files/t-vars.count" do
41
37
  expect(File.read('my/public/files/t-vars.count')).to match(/^Overall count:\s+\d+\s*$/i)
42
38
  end
43
39
 
@@ -60,19 +56,11 @@ describe "Unixoid test" do
60
56
  expect(t_vars_permissions & 0666).to eq(0666)
61
57
  end
62
58
 
63
- it "12a. should have text-files-count.txt in my/public/files" do
64
- expect(File.exist?('my/public/files/text-files-count.txt')).to be true
65
- end
66
-
67
- it "12b. should have the count of text files in my/public/files/text-files-count.txt" do
59
+ it "12. should have the count of text files in my/public/files/text-files-count.txt" do
68
60
  expect(File.read('my/public/files/text-files-count.txt')).to match(/^\s*\d{2,6}\s*$/)
69
61
  end
70
62
 
71
- it "13a. should have first-three-env.txt in my/private/files" do
72
- expect(File.exist?('my/private/files/first-three-env.txt')).to be true
73
- end
74
-
75
- it "13b. should have the the first three env vars in my/private/files/first-three-env.txt" do
63
+ it "13. should have the the first three env vars in my/private/files/first-three-env.txt" do
76
64
  lines = File.readlines('my/private/files/first-three-env.txt')
77
65
  expect(lines.sort).to eq lines
78
66
  expect(lines.count).to eq(3)
@@ -81,5 +69,4 @@ describe "Unixoid test" do
81
69
  it "14. should have commands.txt in my/private/files" do
82
70
  expect(File.exist?('my/private/files/commands.txt')).to be true
83
71
  end
84
-
85
72
  end
@@ -8,7 +8,7 @@ module Unixoid
8
8
  end
9
9
 
10
10
  def run_specs
11
- results = Runner.run("rspec -fp #{spec_file}", outcodes: [0,1]).lines.first
11
+ results = Runner.run("rspec --order defined -fp #{spec_file}", outcodes: [0,1]).lines.first
12
12
  File.write("#{RESULTS_FILE}", results)
13
13
  results
14
14
  end
@@ -13,7 +13,7 @@ module Unixoid
13
13
 
14
14
  def self.run(command, opts = {})
15
15
  new.run(command, opts)
16
- end
16
+ end
17
17
 
18
18
  def run(command, outcodes: [0])
19
19
  line = Cocaine::CommandLine.new(command, "", expected_outcodes: outcodes, swallow_stderr: true)
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Unixoid
4
- VERSION = "0.0.9".freeze
4
+ VERSION = "0.1.0".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unixoid-challenge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Joseph