OTB-test 0.1.1 → 0.1.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: cd3142710223bad92e3994da0491fb510acc0315
4
- data.tar.gz: 597241e932c5283d1126cf243ae182e4548fb1d9
3
+ metadata.gz: 47a9e29dc76c223b0a6b0f110bf87cc7e4925030
4
+ data.tar.gz: 9adad0e03df81228812ce5e42d0af4158836c5e7
5
5
  SHA512:
6
- metadata.gz: d4222b067a4ac9c312c3f33b77e8987a1293fd6d966ea32f8a24ce6109df9783ca72fafb36ed355b39b5f840da6fffd958dc59649f7f701bd4119208a931c717
7
- data.tar.gz: c95cee4c677f795b653ab53d82c350d81e741e617c8aba032b49b3f8fc4c8d16428c7860a98c7738202e735693f79163626064fd4d12b069155885310b735a69
6
+ metadata.gz: a0fa6ecfd60f8bbe7113fbfd404c073607949e76a7cb0fd87a657be78576df49c19cbfc9123cd5bb0c10d6e413ec7b49829464cedc6fc4cd8eddaad8f75419ad
7
+ data.tar.gz: 66a35b54780def44896cfa9cba30eedfbc54fa59901820692411d1aef6f430269852fb66d6a75176fb7304de9131b3f1c01aca19c76f9d2c809235e9b06f32ca
Binary file
data/README.md CHANGED
@@ -15,15 +15,6 @@ And respondes with an ordered sequence of the jobs that takes into accoun the de
15
15
 
16
16
  Read usage to see how to call methods.
17
17
 
18
- ## OTB Job Queuer Structure
19
-
20
- Most of the code is in one of two places:
21
- `lib/OTB/`
22
- or
23
- `spec/OTB/`
24
-
25
- In the 'lib/' you will find the methods and loggic that parses jobs and sorts queues based on their dependencies.
26
- In the 'spec/' you will find the tests make sure everything is running correctly.
27
18
 
28
19
  ## Installation
29
20
 
@@ -41,21 +32,9 @@ Or install it yourself as:
41
32
 
42
33
  $ gem install OTB-test
43
34
 
44
- ## Loading to terminal
45
-
46
- From terminal open your ruby console:
47
-
48
- $ irb
49
-
50
- Then load the file `lib/otb.rb`:
51
-
52
- $ pry(main)> load 'lib/otb.rb'
53
-
54
- It should return `true`.
55
-
56
35
  ## Usage
57
36
 
58
- The usage of the gem methods is the same in terminal or in project. Check above how to load to terminal.
37
+ The usage of the gem methods is the same in terminal or in project.
59
38
 
60
39
  You can also run the tests to see everything is passing! Skip to section ##Test to do this.
61
40
 
@@ -101,6 +80,22 @@ returns:
101
80
  ```
102
81
  A Hash with keys being the jobs and values the dependencies.
103
82
 
83
+ ## Loading to terminal
84
+
85
+ From terminal open your ruby console:
86
+
87
+ $ irb
88
+
89
+ Then load the file `lib/otb.rb`:
90
+
91
+ $ pry(main)> load 'lib/otb.rb'
92
+
93
+ It should return `true`.
94
+
95
+ Then you can:
96
+
97
+ $ pry(main)> OTB::Queue.new(string: 'a =>').sort_sequence
98
+
104
99
 
105
100
  ## Testes
106
101
 
@@ -16,11 +16,12 @@ module OTB
16
16
  result_hash[''] =''
17
17
  result_hash
18
18
  else
19
- array_job_dependencies_sanitized = jobs_array.each do |job_dependency|
19
+ jobs_array.each do |job_dependency|
20
20
  array_job_dependency = []
21
21
  array_job_dependency << job_dependency.split('=>')
22
22
  array_job_dependency.each do |job, dependency|
23
23
  if dependency.nil?; dependency = '' else dependency.strip! end
24
+
24
25
  result_hash[job.strip] = dependency
25
26
  end
26
27
  end
@@ -1,5 +1,5 @@
1
1
  module OTB
2
2
  module Test
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: OTB-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filipe Paiva
@@ -83,6 +83,7 @@ files:
83
83
  - Gemfile.lock
84
84
  - LICENSE.txt
85
85
  - OTB-test-0.1.0.gem
86
+ - OTB-test-0.1.1.gem
86
87
  - OTB-test.gemspec
87
88
  - README.md
88
89
  - Rakefile