tanga_services 0.0.2 → 0.0.3

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: 9e0336d7c56c23350e64ad7260023ec345a4763d
4
- data.tar.gz: a253bd98d18ae366de8b88c2d1f21246a6a07068
3
+ metadata.gz: 686fa7af9689a9824dba4de4fa4e3c8d85390e5f
4
+ data.tar.gz: 7310d13fadc601227ca17e8723f861d48410c2f3
5
5
  SHA512:
6
- metadata.gz: e352812754331503464793d104670af037164d8a1d65af3b476611c471c9fb06edf8decaebeac45c70543cb55ffe229f98767ca41c77c0833cd8a1f3b318f7de
7
- data.tar.gz: f4e191896a10273d68ce2f7b7243a1dd96b1e5fb94212578203a5a8426d30d370e6cdfbc13907dc11a990ea52bfdba922b6b22f07eb3d9d05b88f8d67e96d11d
6
+ metadata.gz: 82879db79f5ca034c86dc292e6ddf1e2c8ec8755af35c281d4a35c463aad1efad46dee824048c09f2fc7e9404bafd386671019c02242b95c7ae52866a9d8939d
7
+ data.tar.gz: 3d887c5d6701ddfe40440214e85109cfa2be8431d796edf560a8d9d5f5fbb48e6ca7889368b91741a2b8637d1fe8443220726b5137cdeaf37e96d0bfe915252d
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ - 2.1.5
5
+ addons:
6
+ code_climate:
7
+ repo_token: 6480502c92bec9a4fa22e761dbe2c7908c05763c17bbc327af9aebc03e6f5cf1
8
+ notifications:
9
+ flowdock:
10
+ secure: e033f1ae3be890c8adfeb1b6ec4a29e4
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem "codeclimate-test-reporter", group: :test, require: nil
4
+
3
5
  # Specify your gem's dependencies in tanga_services.gemspec
4
6
  gemspec
@@ -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
- fail "application name already set" if @logger
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)
@@ -1,3 +1,3 @@
1
1
  module TangaServices
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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
@@ -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.2
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