pps_commons 0.1.6 → 0.1.7

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: 5fb804d63b45ccf5d00be8491552e0d0948ea6db
4
- data.tar.gz: d3fa064193900f0ded430ca19d24a05468dd853e
3
+ metadata.gz: 07ca7454ee3eff8b88fd6b5a67b597266cf82747
4
+ data.tar.gz: 3fc38ebff0d36611fd2e23c413a6c96844e1e60d
5
5
  SHA512:
6
- metadata.gz: 0d03845bde0b3d375a6dbe819c07a12233f257c0777854769aa9fd187d920c4cf9a343d11d1ee81ac6ccc6b7893f4febfbb7df7f0a488cf038c85273285a21d0
7
- data.tar.gz: bc9288ca2c609e5572fdcf7d3fcee0d3e95fe204030c09401835a35c4755cdb2fe328a89b2eb0e09ad33c5305a1714db310f3f0c41fe6359178be64a80e81d49
6
+ metadata.gz: e939763cddf4a468169044430563e54bd971cca417fda63e26a89eb55d52b612db26f212d829918acab30fedd89308d88bf26effec5c1d3678d559c843876239
7
+ data.tar.gz: db8feab551602a99dbc0fbdf529b74cdef02b4a4662a9451a7959653eb009df6592acd2a5d1dda71f436314738b41449e7178a09b88789ad213c13b1861a5ee3
data/.gitignore CHANGED
@@ -7,4 +7,5 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .byebug*
10
- Gemfile.lock
10
+ Gemfile.lock
11
+ logs/*
@@ -1,4 +1,3 @@
1
- require 'dotenv'
2
1
  require 'pps_commons'
3
2
 
4
3
  module WGU
@@ -80,23 +79,6 @@ module WGU
80
79
  [opperation, callback, errorback]
81
80
  end
82
81
 
83
- def logger
84
- if @logger.nil?
85
- logs = ::File.expand_path(::File.join(__FILE__, '../../', 'logs/group.log'))
86
- unless ::File.exist?(logs)
87
- log_dir = ::File.expand_path(::File.join(__FILE__, '../..', 'logs'))
88
- unless ::Dir.exist?(log_dir)
89
- ::Dir.mkdir_p(log_dir)
90
- end
91
- ::File.new(logs, 'a+')
92
- end
93
-
94
- Logger.new(logs)
95
- else
96
- @logger
97
- end
98
- end
99
-
100
82
  # Send a message to the appropriate receiver.
101
83
  def send_response_to(recipient, results = @results)
102
84
  msg = results.kind_of?(WGU::Sentence) ? results.log_entry : "#{results.to_s.strip}\n"
@@ -1,6 +1,5 @@
1
- require 'rest-client'
1
+ require 'rest-client'
2
2
  require 'aws-sdk-s3'
3
- require 'dotenv'
4
3
  require 'json'
5
4
  require 'uri'
6
5
 
@@ -1,3 +1,3 @@
1
1
  module PPSCommons
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pps_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Phillipps