fluent-plugin-resque 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0a54b0cc374ea4d6577acade365eff22ed43578a
4
+ data.tar.gz: 0a8db746ebf21a72557c6c2cf26d3fe6ac912565
5
+ SHA512:
6
+ metadata.gz: 6b8f7bc3d917ec6478b5866ac728dc810da8f48aa360938675276c57cc078b045d3caf52e9c8279196acd389ac97ac8e488817fee34523a24d3f5fde8a5cfb52
7
+ data.tar.gz: 9189c1375d0eb6d75aa62cac21e039e0a5653309d87ca6a75efa4af28d354c889cf49aa68ef3fc07074c42f0172dd50cf72f68f4daea935491f4c89fa5d12de1
@@ -1,5 +1,11 @@
1
1
  rvm:
2
- - 1.9.2
3
- - 1.9.3
2
+ - 2.1
3
+ - 2.2
4
+ - 2.3.4
5
+ - 2.4.1
4
6
 
5
- script: bundle exec rake test
7
+ before_install:
8
+ - gem update bundler
9
+
10
+ script:
11
+ - bundle exec rake test
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
@@ -22,4 +22,6 @@ Gem::Specification.new do |gem|
22
22
  gem.add_development_dependency "rake", ">= 0.9.2"
23
23
  gem.add_development_dependency "simplecov", ">= 0.5.4"
24
24
  gem.add_development_dependency "rr", ">= 1.0.0"
25
+ gem.add_development_dependency "test-unit", ">= 3.2.0"
26
+ gem.add_development_dependency "test-unit-rr", ">= 1.0.0"
25
27
  end
@@ -28,18 +28,18 @@ class ResqueOutputTest < Test::Unit::TestCase
28
28
 
29
29
  def test_write
30
30
  d = create_driver
31
- time = Time.at(Time.now.to_i).utc
31
+ time = Time.at(Time.now.to_i).utc.to_i
32
32
  d.emit({'a' => 1, "class" => "WorkerTest"}, time)
33
33
  d.emit({'b' => 2, "class" => "WorkerTest"}, time)
34
- check_enqueue("test_queue", "WorkerTest", {"a" => 1, "time" => time.strftime("%y-%m-%d %H:%M:%S")})
35
- check_enqueue("test_queue", "WorkerTest", {"b" => 2, "time" => time.strftime("%y-%m-%d %H:%M:%S")})
34
+ check_enqueue("test_queue", "WorkerTest", {"a" => 1, "time" => Time.at(time).utc.strftime("%y-%m-%d %H:%M:%S")})
35
+ check_enqueue("test_queue", "WorkerTest", {"b" => 2, "time" => Time.at(time).utc.strftime("%y-%m-%d %H:%M:%S")})
36
36
  d.run
37
37
  assert_equal true, true
38
38
  end
39
39
 
40
40
  def test_write_except_time_key
41
41
  d = create_driver(CONFIG + "\ninclude_time_key false")
42
- time = Time.at(Time.now.to_i).utc
42
+ time = Time.at(Time.now.to_i).utc.to_i
43
43
  d.emit({'a' => 1, 'class' => 'WorkerTest'}, time)
44
44
  check_enqueue("test_queue", "WorkerTest", {"a" => 1})
45
45
  d.run
@@ -47,17 +47,17 @@ class ResqueOutputTest < Test::Unit::TestCase
47
47
 
48
48
  def test_write_include_tag_key
49
49
  d = create_driver(CONFIG + "\ninclude_tag_key true")
50
- time = Time.at(Time.now.to_i).utc
50
+ time = Time.at(Time.now.to_i).utc.to_i
51
51
  d.emit({'a' => 1, 'class' => 'WorkerTest'}, time)
52
- check_enqueue("test_queue", "WorkerTest", {"a" => 1, "tag" => 'test', "time" => time.strftime("%y-%m-%d %H:%M:%S")})
52
+ check_enqueue("test_queue", "WorkerTest", {"a" => 1, "tag" => 'test', "time" => Time.at(time).utc.strftime("%y-%m-%d %H:%M:%S")})
53
53
  d.run
54
54
  end
55
55
 
56
56
  def test_write_change_worker_class_name_tag
57
57
  d = create_driver(CONFIG + "\nworker_class_name_tag klass")
58
- time = Time.at(Time.now.to_i).utc
58
+ time = Time.at(Time.now.to_i).utc.to_i
59
59
  d.emit({'a' => 1, 'klass' => 'WorkerTest::Test'}, time)
60
- check_enqueue("test_queue", "WorkerTest::Test", {"a" => 1, "time" => time.strftime("%y-%m-%d %H:%M:%S")})
60
+ check_enqueue("test_queue", "WorkerTest::Test", {"a" => 1, "time" => Time.at(time).utc.strftime("%y-%m-%d %H:%M:%S")})
61
61
  d.run
62
62
  end
63
63
  end
@@ -17,4 +17,5 @@ if ENV['SIMPLE_COV']
17
17
  end
18
18
 
19
19
  require 'test/unit'
20
+ require 'test/unit/rr'
20
21
  require 'fluent/test'
metadata CHANGED
@@ -1,90 +1,135 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Yuichi Tateno
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fluentd
16
- requirement: &2188241600 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.10.8
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *2188241600
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.10.8
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: multi_json
27
- requirement: &2188241120 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '1.0'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *2188241120
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: redis-namespace
38
- requirement: &2188240660 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ~>
45
+ - - "~>"
42
46
  - !ruby/object:Gem::Version
43
47
  version: 1.0.2
44
48
  type: :runtime
45
49
  prerelease: false
46
- version_requirements: *2188240660
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.2
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: rake
49
- requirement: &2188240200 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: 0.9.2
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *2188240200
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 0.9.2
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: simplecov
60
- requirement: &2188239740 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - ">="
64
74
  - !ruby/object:Gem::Version
65
75
  version: 0.5.4
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *2188239740
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.5.4
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rr
71
- requirement: &2188239280 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
73
93
  requirements:
74
- - - ! '>='
94
+ - - ">="
75
95
  - !ruby/object:Gem::Version
76
96
  version: 1.0.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: test-unit
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 3.2.0
77
104
  type: :development
78
105
  prerelease: false
79
- version_requirements: *2188239280
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 3.2.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: test-unit-rr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 1.0.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 1.0.0
80
125
  description: Resque enqueue plugin
81
126
  email: hotchpotch@gmail.com
82
127
  executables: []
83
128
  extensions: []
84
129
  extra_rdoc_files: []
85
130
  files:
86
- - .gitignore
87
- - .travis.yml
131
+ - ".gitignore"
132
+ - ".travis.yml"
88
133
  - AUTHORS
89
134
  - Gemfile
90
135
  - README.rdoc
@@ -96,33 +141,26 @@ files:
96
141
  - test/test_helper.rb
97
142
  homepage: https://github.com/hotchpotch/fluent-plugin-resque
98
143
  licenses: []
144
+ metadata: {}
99
145
  post_install_message:
100
146
  rdoc_options: []
101
147
  require_paths:
102
148
  - lib
103
149
  required_ruby_version: !ruby/object:Gem::Requirement
104
- none: false
105
150
  requirements:
106
- - - ! '>='
151
+ - - ">="
107
152
  - !ruby/object:Gem::Version
108
153
  version: '0'
109
- segments:
110
- - 0
111
- hash: -3230441990181752921
112
154
  required_rubygems_version: !ruby/object:Gem::Requirement
113
- none: false
114
155
  requirements:
115
- - - ! '>='
156
+ - - ">="
116
157
  - !ruby/object:Gem::Version
117
158
  version: '0'
118
- segments:
119
- - 0
120
- hash: -3230441990181752921
121
159
  requirements: []
122
160
  rubyforge_project:
123
- rubygems_version: 1.8.17
161
+ rubygems_version: 2.6.11
124
162
  signing_key:
125
- specification_version: 3
163
+ specification_version: 4
126
164
  summary: Resque enqueue plugin
127
165
  test_files:
128
166
  - test/plugin/out_resque.rb