rtrail 0.0.3 → 0.0.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWYxZmE0ZjUyMWQ2OTRhOGViYTljMGZiNGY2ODJlNDNkMjU0MzAzMA==
4
+ NWQwN2Y2ZTVhMzc4MGE4NTBmNTJlYmFhM2RkZGM3NjNhY2ZmMWRlMw==
5
5
  data.tar.gz: !binary |-
6
- ZDZhMTUwZDgyNzNmMGQ0NDMzNTllYzZjM2QzM2VhMmNkMGYwY2Q4NQ==
6
+ NmM1ZTJkMWMwZDE1NWEyMDU5ZWVhYWJkMTU0MDkwYTFiYWE4OTkxMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjgyMTUzNDU3YWQzMmM4NTVhZGE3M2FkYjY0ZmQ0M2U3ZWI4ZmU3YWIxZGJm
10
- NzlhOTE2Yzc3YTI2NzRkMzQyMWI5ZDYwYWQ4ZGNhYTJhMDVjNmZmOWM5Mzli
11
- MjdlNDQwOGEzODQ2MjAxNjBkNGRiMTFhOTNiNjcwMzg5ZGQ3Nzg=
9
+ YjZiY2Q1Y2MyYmU2MzNlMDlhZWNhMmRiODc2YTFlMmM0ZTA4N2Y4ZDM1M2Mz
10
+ YjIzNmM4OGUxNTZiZjllZDg2NTUwYWUzZWIwNTAzOTVlYWIyYjI5Yjg4YTNk
11
+ Yzg5YzVkNjUzYWVjMmRiYjMyZjQ3OWNmZDliMmM2ZmE1MzJlMTg=
12
12
  data.tar.gz: !binary |-
13
- ZWVhYTkxMzhjNTcyNzRhZGE5YjhmYWE1MzBiNTg3N2UwZWYxOGYyNjc1ODky
14
- Y2ExY2VjZTBiZjJkZDYyYmEzMzdmYzkzMGE5YTQyMTBhNDlhMDRlYmZiZTY4
15
- MjY0ZWU1NDcwYzgzN2I2N2YzOWYyYTI4NzM3ZmEwYWM4ZWY1NzI=
13
+ NDRjODgxNDEwMTcwYmViYWUwNzAyNzQ3NGNjMGFhNjNkZDFhYWIyOGQwNjYw
14
+ MzZmNzQ3ZmQyYjM1YzgxYWY0MzZmNDJkZjY4ZjFlMzYzZmQzZTg2NTlkNTc3
15
+ Y2JjZTExNTBkYmVhNDcyZTE1M2RjM2Y1NTE1MjE2NDVkOTBmOTk=
@@ -1,3 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ before_install:
5
+ - gem install bundler
data/README.md CHANGED
@@ -36,13 +36,13 @@ RTrail provides a hierarchy of Ruby objects, mirroring the data structure
36
36
  within TestRail. Here's a rough look:
37
37
 
38
38
  - Project(s)
39
- - Plan(s)
40
- - Suite(s)
41
- - Case(s)
42
- - Section(s)
43
- - Run(s)
44
- - Test(s)
45
- - Result(s)
39
+ - Plan(s)
40
+ - Suite(s)
41
+ - Case(s)
42
+ - Section(s)
43
+ - Run(s)
44
+ - Test(s)
45
+ - Result(s)
46
46
 
47
47
  Within RTrail, each of these things are modeled by a class, with a common base
48
48
  class known as `Entity`.
@@ -31,10 +31,10 @@ module RTrail
31
31
  )
32
32
  end
33
33
 
34
- # Return the first Section with the given name, or raise RTrail::NotFound
34
+ # Return the first root-level Section with the given name, or raise RTrail::NotFound
35
35
  def section_by_name(section_name)
36
36
  section = sections.find do |s|
37
- s.name == section_name
37
+ s.name == section_name and s.depth == 0
38
38
  end
39
39
  if section.nil?
40
40
  raise RTrail::NotFound.new(
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rtrail"
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.summary = "Ruby object wrapper for TestRail API"
5
5
  s.description = <<-EOS
6
6
  RTrail wraps the TestRail API v2.0 in Ruby objects
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Pierce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie