shog 0.0.1pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4c2911552953a643413c7b06c35bf76a64407365
4
+ data.tar.gz: 1473e2dfc15bc9c0895f60296408715a9125d217
5
+ SHA512:
6
+ metadata.gz: 53dd0a9a5398dfa7e027a805d1d2ec8a645b13fb54c563cd3de121d271148725626455de4c2502245c7342fab1b6b23cf3934feafdf1d8bfdc6dc16847eca49e
7
+ data.tar.gz: 50a4677ac5ce8bab418930c97a327e52cadcfeff035140b3c9486ccfc641a6c37fb7369a93fccba9060cd44118f672d9d1d8c8384b71e5b02340f6afd274a092
data/.gitignore ADDED
@@ -0,0 +1,23 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
23
+ .env
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format Fuubar
data/.rubocop.yml ADDED
@@ -0,0 +1,62 @@
1
+ Style/LineLength:
2
+ Max: 120
3
+
4
+ Style/AccessModifierIndentation:
5
+ EnforceStyle: indent
6
+
7
+ Style/IndentationConsistency:
8
+ Enabled: false
9
+
10
+ Style/TrailingBlankLines:
11
+ Enabled: false
12
+
13
+ Style/EmptyLinesAroundBody:
14
+ Enabled: false
15
+
16
+ Style/StringLiterals:
17
+ Enabled: false
18
+
19
+ Style/SpaceInsideParens:
20
+ Enabled: false
21
+
22
+ Style/SpaceBeforeBlockBraces:
23
+ Enabled: false
24
+
25
+ Style/SpaceInsideBlockBraces:
26
+ Enabled: false
27
+
28
+ Style/SpaceInsideBrackets:
29
+ Enabled: false
30
+
31
+ Style/SingleLineBlockParams:
32
+ Enabled: false
33
+
34
+ Style/SingleSpaceBeforeFirstArg:
35
+ Enabled: false
36
+
37
+ Style/TrailingComma:
38
+ Enabled: false
39
+
40
+ Style/SpaceAfterComma:
41
+ Enabled: false
42
+
43
+ Style/ClassAndModuleChildren:
44
+ EnforcedStyle: nested
45
+
46
+ Style/PercentLiteralDelimiters:
47
+ PreferredDelimiters:
48
+ '%': '{}'
49
+ '%i': '{}'
50
+ '%q': '{}'
51
+ '%Q': '{}'
52
+ '%r': '{}'
53
+ '%s': '{}'
54
+ '%w': '{}'
55
+ '%W': '{}'
56
+ '%x': '{}'
57
+
58
+ Lint/AssignmentInCondition:
59
+ Enabled: false
60
+
61
+ Lint/AmbiguousRegexpLiteral:
62
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.2
data/.sublimelinterrc ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "source": "http://sublimelinter.readthedocs.org/en/latest/index.html",
3
+ "linters": {
4
+ "rubocop" : {
5
+ "args" : [
6
+ "-R"
7
+ ]
8
+ },
9
+ "annotations" : {
10
+ "warnings": ["TODO", "README"],
11
+ "errors": ["FIXME", "HACK", "OMG!", "HERE BE DRAGONS" ]
12
+ }
13
+ }
14
+ }
data/.yardopts ADDED
@@ -0,0 +1,7 @@
1
+ --protected
2
+ --no-private
3
+ --no-cache
4
+ --hide-void-return
5
+ --output-dir /tmp/shog_docs
6
+ --db /tmp/shog_yardoc
7
+ --markup markdown
data/Gemfile ADDED
@@ -0,0 +1,19 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in shog.gemspec
4
+ gemspec
5
+
6
+
7
+ gem 'guard', '~> 2.6.1'
8
+ gem 'spring'
9
+ gem 'byebug'
10
+ gem 'pry-byebug'
11
+ gem 'guard-rspec'
12
+ gem 'guard-spring'
13
+ gem 'fuubar', github: 'thekompanee/fuubar'
14
+ gem 'foreman'
15
+ gem 'yard'
16
+ gem 'redcarpet'
17
+ gem 'simplecov', github: "colszowka/simplecov"
18
+
19
+ gem "codeclimate-test-reporter", group: :test, require: nil
data/Guardfile ADDED
@@ -0,0 +1,15 @@
1
+ guard :rspec do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { "spec" }
5
+ watch('spec/support/*.rb') { "spec" }
6
+
7
+ # Rails example
8
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
9
+ watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
10
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
11
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
12
+ watch('config/routes.rb') { "spec/routing" }
13
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
14
+ end
15
+
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Paul Alexander
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Procfile ADDED
@@ -0,0 +1 @@
1
+ yard: sh -c 'rm -rf /tmp/beakeared_com_yardoc && yard server --reload'
data/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # Shog
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/shog.svg)](http://badge.fury.io/rb/shog)
4
+ [![Code Climate](https://codeclimate.com/github/phallguy/shog.png)](https://codeclimate.com/github/phallguy/shog)
5
+ [![Dependency Status](https://gemnasium.com/phallguy/shog.svg)](https://gemnasium.com/phallguy/shog)
6
+
7
+
8
+ Make rails 4.0 log details more colorful.
9
+
10
+ There are plenty of logging frameworks for making tags (like timestamp, log
11
+ level, etc.) more colorful - but what about the details in the line of text?
12
+ What about the HTTP method used to make the request? What about the times.
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ gem 'shog'
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install shog
27
+
28
+ ## Usage
29
+
30
+ TODO: Write usage instructions here
31
+
32
+ ## Contributing
33
+
34
+ 1. Fork it ( https://github.com/phallguy/shog/fork )
35
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
36
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
37
+ 4. Push to the branch (`git push origin my-new-feature`)
38
+ 5. Create a new Pull Request
39
+
40
+
41
+ # License
42
+
43
+ The MIT License (MIT)
44
+
45
+ Copyright (c) 2014 Paul Alexander
46
+
47
+ Permission is hereby granted, free of charge, to any person obtaining a copy
48
+ of this software and associated documentation files (the "Software"), to deal
49
+ in the Software without restriction, including without limitation the rights
50
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
+ copies of the Software, and to permit persons to whom the Software is
52
+ furnished to do so, subject to the following conditions:
53
+
54
+ The above copyright notice and this permission notice shall be included in all
55
+ copies or substantial portions of the Software.
56
+
57
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63
+ SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,5 @@
1
+ module Shog
2
+ VERSION_NUMBER = "0.0.1"
3
+ VERSION_SUFFIX = "pre"
4
+ VERSION = "#{VERSION_NUMBER}#{VERSION_SUFFIX}"
5
+ end
data/lib/shog.rb ADDED
@@ -0,0 +1,5 @@
1
+ require 'shog/version'
2
+ require 'pry'
3
+
4
+ module Shog
5
+ end
data/shog.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'shog/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "shog"
8
+ spec.version = "#{Shog::VERSION}"
9
+ spec.authors = ["Paul Alexander"]
10
+ spec.email = ["me@phallguy.com"]
11
+ spec.summary = %q{Make rails 4.0 log details more colorful}
12
+ spec.description = %q{More than just colorful tags, make rails logged info easy to read and easy to spot.}
13
+ spec.homepage = "https://github.com/phallguy/shog"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'rails', '~> 4.0'
22
+ spec.required_ruby_version = '>= 1.9.2'
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.6"
25
+ spec.add_development_dependency "rake", '~> 10'
26
+ spec.add_development_dependency "rspec", '~> 3.00'
27
+ end
@@ -0,0 +1,28 @@
1
+ require 'simplecov'
2
+ if ENV['COVERAGE']
3
+ require "codeclimate-test-reporter"
4
+ CodeClimate::TestReporter.start
5
+ else
6
+ SimpleCov.start
7
+ end
8
+
9
+ require 'shog'
10
+
11
+ root_path = File.expand_path( "../..", __FILE__ )
12
+
13
+ # Requires supporting ruby files with custom matchers and macros, etc,
14
+ # in spec/support/ and its subdirectories.
15
+ Dir[ File.join( root_path, "spec/support/**/*.rb" ) ].each { |f| require f }
16
+
17
+ RSpec.configure do |config|
18
+
19
+ config.order = "random"
20
+
21
+ config.filter_run focus: true
22
+ config.filter_run_excluding :broken => true
23
+ config.run_all_when_everything_filtered = true
24
+
25
+ config.before(:each) { GC.disable }
26
+ config.after(:each) { GC.enable }
27
+
28
+ end
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shog
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1pre
5
+ platform: ruby
6
+ authors:
7
+ - Paul Alexander
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.00'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.00'
69
+ description: More than just colorful tags, make rails logged info easy to read and
70
+ easy to spot.
71
+ email:
72
+ - me@phallguy.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".rspec"
79
+ - ".rubocop.yml"
80
+ - ".ruby-version"
81
+ - ".sublimelinterrc"
82
+ - ".yardopts"
83
+ - Gemfile
84
+ - Guardfile
85
+ - LICENSE
86
+ - Procfile
87
+ - README.md
88
+ - Rakefile
89
+ - lib/shog.rb
90
+ - lib/shog/version.rb
91
+ - shog.gemspec
92
+ - spec/spec_helper.rb
93
+ homepage: https://github.com/phallguy/shog
94
+ licenses:
95
+ - MIT
96
+ metadata: {}
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: 1.9.2
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.3.1
111
+ requirements: []
112
+ rubyforge_project:
113
+ rubygems_version: 2.3.0
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: Make rails 4.0 log details more colorful
117
+ test_files:
118
+ - spec/spec_helper.rb
119
+ has_rdoc: