crucible_ci 0.1.5 → 0.1.6

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: 03bbcdfd6957eed94ae5cc055464eab7f941fa25
4
- data.tar.gz: ca4c05a197d4843d57431a0a2daa4dfdea48658e
3
+ metadata.gz: 7b568ccfc23ecc9519620b02302caf9952657c65
4
+ data.tar.gz: c4568d4bf99353d953bb22333088dfab97360f17
5
5
  SHA512:
6
- metadata.gz: 35d41e77a5945a638e822a27cf8354ecdc0f8ddf199031ba9f668cbb489684b3c9c5a0482624c6977000966185b4787bfe38a559d14d4373d57a0603430ba313
7
- data.tar.gz: e36b4c421d9f1824d4fc7f8a425a6550e9d88dfda5baff8db1e1b34f235b0a454f4123ac19f6ea26ede40255019adfad4bd85283bbcb73d342eddc25cb16457c
6
+ metadata.gz: 4b2304353de5543fa73c04d9617bb9753ef6aa278c7f44acbef1273b36b3e14bb6f292a919e590308357929d28fb5bf893d68468cfce39f1f357ac40b7d9e11f
7
+ data.tar.gz: 094682d0d4805366b03a6f50d1d6d8a3b6c11795b455861a435c6c6feec708dad1c76f5cfce5e4151943fabc071634518b4c5367f736b035d7e7b2598200cc83
data/.gitignore CHANGED
@@ -2,5 +2,5 @@
2
2
  results.html
3
3
  pkg
4
4
  html
5
- logs/*.log
5
+ logs/*.log*
6
6
  *.gem
data/Gemfile.lock CHANGED
@@ -26,7 +26,7 @@ GIT
26
26
 
27
27
  GIT
28
28
  remote: https://github.com/fhir-crucible/plan_executor.git
29
- revision: fc9d014a0c961398185bfa6347734c381c617634
29
+ revision: 6f984863fd81b0a2a45dd914dd3660a00c718c81
30
30
  branch: master
31
31
  specs:
32
32
  plan_executor (1.8.0)
@@ -41,7 +41,7 @@ GIT
41
41
  PATH
42
42
  remote: .
43
43
  specs:
44
- crucible_ci (0.1.3)
44
+ crucible_ci (0.1.5)
45
45
  methadone (~> 1.9.2)
46
46
  plan_executor (~> 1.8)
47
47
 
data/README.md CHANGED
@@ -37,7 +37,7 @@ Where `server_url` is the URL of a FHIR server accessible to the current compute
37
37
 
38
38
  ## Development
39
39
 
40
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+ After checking out the repo, run `bin/crucible_ci_setup` to install dependencies. You can also run `bin/crucible_ci_console` for an interactive prompt that will allow you to experiment.
41
41
 
42
42
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
43
43
 
data/exe/crucible_ci CHANGED
@@ -12,9 +12,9 @@ class App
12
12
  main do |server_url|
13
13
  allowed_failures = options['allowed-failures'] ? options['allowed-failures'].to_i : 0
14
14
  if options[:resource] || options[:test]
15
- CrucibleCi::Executor.execute(server_url, allowed_failures, options[:test], options[:resource])
15
+ CrucibleCi::Executor.execute(server_url, allowed_failures, options[:test], options[:resource], logger)
16
16
  else
17
- CrucibleCi::Executor.execute_all(server_url, allowed_failures)
17
+ CrucibleCi::Executor.execute_all(server_url, allowed_failures, logger)
18
18
  end
19
19
  end
20
20
 
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module CrucibleCi
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
data/lib/crucible_ci.rb CHANGED
@@ -4,28 +4,24 @@ require 'benchmark'
4
4
 
5
5
  module CrucibleCi
6
6
  class Executor
7
- def self.execute(url, allowed_failures, test = nil, resource = nil)
7
+ def self.execute(url, allowed_failures, test = nil, resource = nil, logger = nil)
8
8
  results = nil
9
- FHIR.logger = Logger.new("logs/crucible_ci.log", 10, 1024000)
9
+ FHIR.logger = defined?(Rails) ? Rails.logger : logger
10
10
  b = Benchmark.measure do
11
11
  client = FHIR::Client.new(url)
12
12
  client.conformance_statement
13
- # options = client.get_oauth2_metadata_from_conformance
14
- # set_client_secrets(client, options) unless options.empty?
15
13
  results = execute_test(client, test, resource)
16
14
  end
17
15
  puts "Execute #{test} completed in #{b.real} seconds."
18
16
  passing?(results, allowed_failures)
19
17
  end
20
18
 
21
- def self.execute_all(url, allowed_failures)
19
+ def self.execute_all(url, allowed_failures, logger = nil)
22
20
  results = nil
23
- FHIR.logger = Logger.new("logs/crucible_ci.log", 10, 1024000)
21
+ FHIR.logger = defined?(Rails) ? Rails.logger : logger
24
22
  b = Benchmark.measure do
25
23
  client = FHIR::Client.new(url)
26
24
  client.conformance_statement
27
- # options = client.get_oauth2_metadata_from_conformance
28
- # set_client_secrets(client, options) unless options.empty?
29
25
  results = execute_all(client)
30
26
  end
31
27
  puts "Execute All completed in #{b.real} seconds."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crucible_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael O'Keefe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,9 +112,9 @@ description:
112
112
  email:
113
113
  - mokeefe@mitre.org
114
114
  executables:
115
- - console
116
115
  - crucible_ci
117
- - setup
116
+ - crucible_ci_console
117
+ - crucible_ci_setup
118
118
  extensions: []
119
119
  extra_rdoc_files: []
120
120
  files:
@@ -125,9 +125,9 @@ files:
125
125
  - README.md
126
126
  - Rakefile
127
127
  - crucible_ci.gemspec
128
- - exe/console
129
128
  - exe/crucible_ci
130
- - exe/setup
129
+ - exe/crucible_ci_console
130
+ - exe/crucible_ci_setup
131
131
  - lib/crucible_ci.rb
132
132
  - lib/crucible_ci/version.rb
133
133
  - logs/.gitkeep
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.4.8
154
+ rubygems_version: 2.6.10
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: A way to run Plan Executor tests in the command line