ledis 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +15 -0
  2. data/README.md +5 -1
  3. data/Rakefile +5 -3
  4. data/ledis.gemspec +3 -2
  5. data/lib/ledis.rb +7 -3
  6. metadata +8 -9
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjA1NThmMzU3NDAwYjQ3MDBkMjNmOTUyYTNjYzAzMDg4YjMwMjk2Yg==
5
+ data.tar.gz: !binary |-
6
+ NTNjN2I2ZTM1NDkyYWIxMWZkYjVlY2JiOWU0MzA1N2E5MzA5YTNkYw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NGJjOGU4YmQwYWJkNmE0NTlmM2Q5OGIzODA5OTY3Mjk5ODE1OGM0ZjA3MDY0
10
+ OTE2MzFkMjYyMTc5YWI0YjhhM2Q5ZTljNGE4NDMzNzNiMDIzNTUxZWQwNWUw
11
+ MmM5Y2RmMGZiZDU4MzgyOWQwNjk5M2Y2M2VlNzdhZGFkZjFhNTg=
12
+ data.tar.gz: !binary |-
13
+ NDE5OWRmMzEwYmRhMjkyOGI0NGNkNzIzMTVkYzY5MzhlYmE0MTRmMDcyMWEy
14
+ ODczNjk0ODNiYmQ2M2MxN2JmYjI1MzE0ZjdmNTJiNTczODZiOGM0Njg2M2Nk
15
+ YWYwMWM5NDUxZmRkMDE5NjUyYTlkNjcxZmZhY2E2NmYwNDBkNzU=
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  NAME
2
+ ----
2
3
 
3
4
  ledis
4
5
 
5
6
 
6
7
  SYNOPSIS
8
+ --------
7
9
 
8
10
  a K.I.S.S auto-rotating redis logger for ruby/rails
9
11
 
@@ -37,6 +39,7 @@ SYNOPSIS
37
39
 
38
40
 
39
41
  DESCRIPTION
42
+ -----------
40
43
 
41
44
  ledis logs yo shiznit to redis. it's got built in logic to auto-truncate
42
45
  logs when they get to big
@@ -51,6 +54,7 @@ DESCRIPTION
51
54
  annotated log lines or add fancy data structures to them
52
55
 
53
56
  INSTALL
57
+ -------
54
58
 
55
- gem 'ledis'
59
+ gem 'ledis'
56
60
 
data/Rakefile CHANGED
@@ -32,7 +32,7 @@ def run_tests!(which = nil)
32
32
 
33
33
  test_rbs.each_with_index do |test_rb, index|
34
34
  testno = index + 1
35
- command = "#{ This.ruby } -I ./lib -I ./test/lib #{ test_rb }"
35
+ command = "#{ This.ruby } -w -I ./lib -I ./test/lib #{ test_rb }"
36
36
 
37
37
  puts
38
38
  say(div, :color => :cyan, :bold => true)
@@ -93,6 +93,7 @@ task :gemspec do
93
93
  test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
94
94
  summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
95
95
  description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
96
+ license = object.respond_to?(:license) ? object.license : "same as ruby's"
96
97
 
97
98
  if This.extensions.nil?
98
99
  This.extensions = []
@@ -118,6 +119,7 @@ task :gemspec do
118
119
  spec.platform = Gem::Platform::RUBY
119
120
  spec.summary = #{ lib.inspect }
120
121
  spec.description = #{ description.inspect }
122
+ spec.license = #{ license.inspect }
121
123
 
122
124
  spec.files =\n#{ files.sort.pretty_inspect }
123
125
  spec.executables = #{ executables.inspect }
@@ -178,8 +180,8 @@ task :readme do
178
180
  end
179
181
 
180
182
  template =
181
- if test(?e, 'readme.erb')
182
- Template{ IO.read('readme.erb') }
183
+ if test(?e, 'README.erb')
184
+ Template{ IO.read('README.erb') }
183
185
  else
184
186
  Template {
185
187
  <<-__
@@ -3,10 +3,11 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "ledis"
6
- spec.version = "0.0.1"
6
+ spec.version = "0.0.2"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "ledis"
9
- spec.description = "description: ledis kicks the ass"
9
+ spec.description = "a K.I.S.S auto-rotating redis logger for ruby/rails"
10
+ spec.license = "same as ruby's"
10
11
 
11
12
  spec.files =
12
13
  ["README.md", "Rakefile", "ledis.gemspec", "lib", "lib/ledis.rb"]
@@ -64,7 +64,11 @@ module Ledis
64
64
  #
65
65
  class << Ledis
66
66
  def version
67
- '0.0.1'
67
+ '0.0.2'
68
+ end
69
+
70
+ def description
71
+ 'a K.I.S.S auto-rotating redis logger for ruby/rails'
68
72
  end
69
73
 
70
74
  def dependencies
@@ -147,9 +151,9 @@ module Ledis
147
151
  def level_for(level)
148
152
  case level
149
153
  when Integer
150
- Levels[ Levels.invert[level] || 4 ]
154
+ Levels[ Levels.invert[level] || 0 ]
151
155
  else
152
- Levels[ level.to_s.downcase ]
156
+ Levels[ level.to_s.downcase || 'debug' ]
153
157
  end
154
158
  end
155
159
 
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ledis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ara T. Howard
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-15 00:00:00.000000000 Z
11
+ date: 2014-02-13 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: ! 'description: ledis kicks the ass'
13
+ description: a K.I.S.S auto-rotating redis logger for ruby/rails
15
14
  email: ara.t.howard@gmail.com
16
15
  executables: []
17
16
  extensions: []
@@ -22,27 +21,27 @@ files:
22
21
  - ledis.gemspec
23
22
  - lib/ledis.rb
24
23
  homepage: https://github.com/ahoward/ledis
25
- licenses: []
24
+ licenses:
25
+ - same as ruby's
26
+ metadata: {}
26
27
  post_install_message:
27
28
  rdoc_options: []
28
29
  require_paths:
29
30
  - lib
30
31
  required_ruby_version: !ruby/object:Gem::Requirement
31
- none: false
32
32
  requirements:
33
33
  - - ! '>='
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  required_rubygems_version: !ruby/object:Gem::Requirement
37
- none: false
38
37
  requirements:
39
38
  - - ! '>='
40
39
  - !ruby/object:Gem::Version
41
40
  version: '0'
42
41
  requirements: []
43
42
  rubyforge_project: codeforpeople
44
- rubygems_version: 1.8.23
43
+ rubygems_version: 2.0.3
45
44
  signing_key:
46
- specification_version: 3
45
+ specification_version: 4
47
46
  summary: ledis
48
47
  test_files: []