iAuditor 0.1.2.14 → 0.1.2.16

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: 6e16df3e4f8f2d977696c542fa40f70919c0248d
4
- data.tar.gz: 4949d4537e1d5a13312290f592aed43b6a89f136
3
+ metadata.gz: 6bc9fdcc4c4c244247c1cd0044bf42b2237271dd
4
+ data.tar.gz: 90f39f287be1d2bc4c6d6f562407753565b46587
5
5
  SHA512:
6
- metadata.gz: 184f2fe4ff74be38d2f5b367ab9ccd4a865171773f12badf8507e95bc56772b32edeac2e3f974fda91178e4387b9a10ce0ec886e9c3c598a2a3a999621562d4d
7
- data.tar.gz: fe569d220e08e8cbe17c4ee28f12f686059ee053a97be88ad774f50037dec7f7bfabc537be1478ae4dd8392b2d145bbe9551140d4afb70eaba4eb6ac6cb191f6
6
+ metadata.gz: 8abcda57e71c74b7a82688512ab1285097e78baca6c906e467431ca4f7a2f9d94721d6bc0feda1fb4de706e9ce991d35fe5c33aa02e064d194fbbcfe3d96a09d
7
+ data.tar.gz: 950ea58b641c394b1f80660585b1aa07a8058821ff848e4912f20faea90b04abdeb207734daf3c9cb3b55a5b862461fe7ff225c501c6f5350f654843e150a79f
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ iAuditor (0.1.2.9)
5
+ httparty
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ coderay (1.1.2)
11
+ diff-lcs (1.3)
12
+ httparty (0.16.2)
13
+ multi_xml (>= 0.5.2)
14
+ method_source (0.9.0)
15
+ multi_xml (0.6.0)
16
+ pry (0.11.3)
17
+ coderay (~> 1.1.0)
18
+ method_source (~> 0.9.0)
19
+ rake (10.5.0)
20
+ rspec (3.7.0)
21
+ rspec-core (~> 3.7.0)
22
+ rspec-expectations (~> 3.7.0)
23
+ rspec-mocks (~> 3.7.0)
24
+ rspec-core (3.7.1)
25
+ rspec-support (~> 3.7.0)
26
+ rspec-expectations (3.7.0)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.7.0)
29
+ rspec-mocks (3.7.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.7.0)
32
+ rspec-support (3.7.1)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ bundler (~> 1.16)
39
+ iAuditor!
40
+ pry
41
+ rake (~> 10.0)
42
+ rspec (~> 3.0)
43
+
44
+ BUNDLED WITH
45
+ 1.16.1
data/README.md CHANGED
@@ -22,7 +22,37 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Easy initial setup:
26
+
27
+ All you need is your email and password, grant_type can be set to whatever, but if you don't know use "password"
28
+
29
+ a = IAuditor.client(IAuditor::Base.token(email, password, grant_type))
30
+
31
+ Now from a you can call many things out of the api
32
+
33
+ a.audits.search
34
+
35
+ a.audits.search({ field: "audit_id",field: "modified_at" })
36
+
37
+ a.audits.search({ field: "audit_id",field: "modified_at", modified_at: "2018-04-03T11:15:26.644Z" })
38
+
39
+ a.audits.search({ field: "audit_id",field: "modified_at", modified_at: "2018-04-03T11:15:26.644Z" })
40
+
41
+ a.audits.search({ field: "audit_id",field: "modified_at", modified_after: "2018-04-03T11:15:26.644Z" })
42
+
43
+ a.audits.search({ template: "" })
44
+
45
+ a.audits.search({ archived: "both" })
46
+
47
+ a.audits.search({ completed: "true" })
48
+
49
+ a.audits.fetch()
50
+
51
+ a.actions.search({audit_id: ["", ""]})
52
+
53
+ a.templates.search()
54
+
55
+ a.export.profiles()
26
56
 
27
57
  ## Development
28
58
 
@@ -22,8 +22,7 @@ module IAuditor
22
22
  end
23
23
 
24
24
  #
25
-
26
- # a=IAuditor.client("49b71c0652aa2507091e1312453a6e73e54237037645da0ffcb44dbfd5c85308")
25
+ # a = IAuditor.client(IAuditor::Base.token(Email, Password, grantType))
27
26
  # a.audits.search -- This will give the array of audits..
28
27
  # a.audits.search({ field: "audit_id",field: "modified_at" }) --- retrieve any specific fields
29
28
  # a.audits.search({ field: "audit_id",field: "modified_at", modified_at: "2018-04-03T11:15:26.644Z" }) --- retrieve any specific fields
@@ -1,3 +1,6 @@
1
+ # require 'iAuditor/models/audit'
2
+ require 'pry'
3
+
1
4
  module IAuditor
2
5
  class Audit
3
6
  include BaseModules::Methods
@@ -13,7 +16,9 @@ module IAuditor
13
16
  # Retrieving audit detailed information
14
17
  def fetch(audit)
15
18
  @audit = self.class.get("/audits/#{audit}", @options)
19
+ # binding.pry
16
20
  @audit.parsed_response
21
+
17
22
  end
18
23
 
19
24
  # Retrieving audit link
@@ -1,3 +1,3 @@
1
1
  module IAuditor
2
- VERSION = "0.1.2.14"
2
+ VERSION = "0.1.2.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iAuditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.14
4
+ version: 0.1.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Wetteroth
@@ -80,6 +80,7 @@ files:
80
80
  - ".travis.yml"
81
81
  - CODE_OF_CONDUCT.md
82
82
  - Gemfile
83
+ - Gemfile.lock
83
84
  - LICENSE.txt
84
85
  - README.md
85
86
  - Rakefile