tanga_services 0.0.2 → 0.0.3
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 +4 -4
- data/.travis.yml +10 -0
- data/Gemfile +2 -0
- data/bin/cc-tddium-post-worker +16 -0
- data/lib/tanga_services/logger.rb +1 -2
- data/lib/tanga_services/version.rb +1 -1
- data/spec/logger_spec.rb +0 -5
- data/spec/spec_helper.rb +4 -0
- data/tanga_services.gemspec +0 -1
- metadata +4 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 686fa7af9689a9824dba4de4fa4e3c8d85390e5f
|
4
|
+
data.tar.gz: 7310d13fadc601227ca17e8723f861d48410c2f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82879db79f5ca034c86dc292e6ddf1e2c8ec8755af35c281d4a35c463aad1efad46dee824048c09f2fc7e9404bafd386671019c02242b95c7ae52866a9d8939d
|
7
|
+
data.tar.gz: 3d887c5d6701ddfe40440214e85109cfa2be8431d796edf560a8d9d5f5fbb48e6ca7889368b91741a2b8637d1fe8443220726b5137cdeaf37e96d0bfe915252d
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'cc-tddium-post-worker' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('codeclimate-test-reporter', 'cc-tddium-post-worker')
|
@@ -10,8 +10,7 @@ module TangaServices
|
|
10
10
|
# TangaServices.logger.error({message: "i crashed"})
|
11
11
|
class Logger < Syslog::Logger
|
12
12
|
def self.application_name=(application_name)
|
13
|
-
|
14
|
-
@logger = Syslog::Logger.new(application_name, Syslog::LOG_LOCAL7)
|
13
|
+
@logger ||= Syslog::Logger.new(application_name, Syslog::LOG_LOCAL7)
|
15
14
|
end
|
16
15
|
|
17
16
|
def self.debug(hash)
|
data/spec/logger_spec.rb
CHANGED
@@ -12,11 +12,6 @@ describe TangaServices do
|
|
12
12
|
expect(Syslog::Logger).to receive(:new).with('my_app', Syslog::LOG_LOCAL7).and_return(logger)
|
13
13
|
TangaServices.logger.application_name = 'my_app'
|
14
14
|
end
|
15
|
-
|
16
|
-
it "shouldn't let you set the name twice" do
|
17
|
-
TangaServices.logger.application_name = 'app'
|
18
|
-
expect { TangaServices.logger.application_name = 'app' }.to raise_error
|
19
|
-
end
|
20
15
|
end
|
21
16
|
|
22
17
|
context '.log' do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
1
4
|
require 'tanga_services'
|
5
|
+
|
2
6
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
3
7
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
4
8
|
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
data/tanga_services.gemspec
CHANGED
@@ -14,7 +14,6 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
18
|
spec.require_paths = ["lib"]
|
20
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tanga_services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Van Dyk
|
@@ -83,23 +83,19 @@ dependencies:
|
|
83
83
|
description: Read Summary
|
84
84
|
email:
|
85
85
|
- joe@tanga.com
|
86
|
-
executables:
|
87
|
-
- bundler
|
88
|
-
- htmldiff
|
89
|
-
- ldiff
|
90
|
-
- rackup
|
91
|
-
- rake
|
92
|
-
- rspec
|
86
|
+
executables: []
|
93
87
|
extensions: []
|
94
88
|
extra_rdoc_files: []
|
95
89
|
files:
|
96
90
|
- ".gitignore"
|
97
91
|
- ".rspec"
|
92
|
+
- ".travis.yml"
|
98
93
|
- Gemfile
|
99
94
|
- LICENSE.txt
|
100
95
|
- README.md
|
101
96
|
- Rakefile
|
102
97
|
- bin/bundler
|
98
|
+
- bin/cc-tddium-post-worker
|
103
99
|
- bin/htmldiff
|
104
100
|
- bin/ldiff
|
105
101
|
- bin/rackup
|