jruby-kafka 0.2.1-java → 1.0.0.beta-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/com/101tec/zkclient/0.3/zkclient-0.3.jar +0 -0
  3. data/lib/com/101tec/zkclient/maven-metadata-local.xml +12 -0
  4. data/lib/com/yammer/metrics/metrics-core/2.2.0/metrics-core-2.2.0.jar +0 -0
  5. data/lib/com/yammer/metrics/metrics-core/maven-metadata-local.xml +12 -0
  6. data/lib/jline/jline/0.9.94/jline-0.9.94.jar +0 -0
  7. data/lib/jline/jline/maven-metadata-local.xml +12 -0
  8. data/lib/jruby-kafka/consumer.rb +2 -3
  9. data/lib/jruby-kafka/group.rb +0 -3
  10. data/lib/jruby-kafka/producer.rb +1 -4
  11. data/lib/jruby-kafka.rb +1 -12
  12. data/lib/jruby-kafka_jars.rb +15 -0
  13. data/lib/junit/junit/3.8.1/junit-3.8.1.jar +0 -0
  14. data/lib/junit/junit/maven-metadata-local.xml +12 -0
  15. data/lib/log4j/log4j/1.2.17/log4j-1.2.17.jar +0 -0
  16. data/lib/log4j/log4j/maven-metadata-local.xml +12 -0
  17. data/lib/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar +0 -0
  18. data/lib/net/sf/jopt-simple/jopt-simple/maven-metadata-local.xml +12 -0
  19. data/lib/org/apache/kafka/kafka_2.9.2/0.8.1.1/kafka_2.9.2-0.8.1.1.jar +0 -0
  20. data/lib/org/apache/kafka/kafka_2.9.2/maven-metadata-local.xml +12 -0
  21. data/lib/org/apache/zookeeper/zookeeper/3.3.4/zookeeper-3.3.4.jar +0 -0
  22. data/lib/org/apache/zookeeper/zookeeper/maven-metadata-local.xml +12 -0
  23. data/lib/org/scala-lang/scala-library/2.9.2/scala-library-2.9.2.jar +0 -0
  24. data/lib/org/scala-lang/scala-library/maven-metadata-local.xml +12 -0
  25. data/lib/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar +0 -0
  26. data/lib/org/slf4j/slf4j-api/maven-metadata-local.xml +12 -0
  27. data/lib/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar +0 -0
  28. data/lib/org/slf4j/slf4j-log4j12/maven-metadata-local.xml +12 -0
  29. data/lib/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar +0 -0
  30. data/lib/org/xerial/snappy/snappy-java/maven-metadata-local.xml +12 -0
  31. metadata +64 -15
  32. data/lib/jruby-kafka/jruby-kafka.iml +0 -13
  33. data/lib/jruby-kafka/loader.rb +0 -12
  34. data/lib/jruby-kafka.iml +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c112e1cf70476e795e3f9eed4d2e5c4f770d8534
4
- data.tar.gz: 628055947aa72d34e19f9a59addc5e83f831643a
3
+ metadata.gz: 858a7e74d47a3e26ef8593d31d8df34f1e586a11
4
+ data.tar.gz: c7041f8ae3d5d8c4e03b4ae91dadc53abd8fc6d7
5
5
  SHA512:
6
- metadata.gz: d786ffd66d26ceb1de0406d28f5598e1f7f734e42c2c6ed65c30f76a9cbdabb9da817d6160bdfc4433488541a414b55acac44992463841b9952b16293fbf2dff
7
- data.tar.gz: 059b12bec092caf78a7cd1b783eb783b615995e2f76a81ed81427d883e4a825c6a5d61d04eb5805465062840147d27d6abfdcac9ab87b2dcf6396bbd0bce3baa
6
+ metadata.gz: 3d3811e0c53babc95b5c3934f98b4dffa1a775d51f01750b05ae7ed89a1a34ef846d8c4be58b63bb54c284f095af4158fbf085757f61fa6ef67d815e886e1f77
7
+ data.tar.gz: ab497a15f75483d28fded861fb1273ace051b7a891a288a43363061bb318a09f1991fed7eb6da9bd7271f194bd2a6c9dc4c5e8af0b40a7254dd7070a7641c501
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>com.101tec</groupId>
4
+ <artifactId>zkclient</artifactId>
5
+ <versioning>
6
+ <release>0.3</release>
7
+ <versions>
8
+ <version>0.3</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>com.yammer.metrics</groupId>
4
+ <artifactId>metrics-core</artifactId>
5
+ <versioning>
6
+ <release>2.2.0</release>
7
+ <versions>
8
+ <version>2.2.0</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>jline</groupId>
4
+ <artifactId>jline</artifactId>
5
+ <versioning>
6
+ <release>0.9.94</release>
7
+ <versions>
8
+ <version>0.9.94</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -1,4 +1,3 @@
1
- require 'java'
2
1
  require 'jruby-kafka/namespace'
3
2
 
4
3
  # noinspection JRubyStringImportInspection
@@ -34,7 +33,7 @@ class Kafka::Consumer
34
33
  rescue Exception => e
35
34
  puts("#{self.class.name} caught exception: #{e.class.name}")
36
35
  puts(e.message) if e.message != ''
37
- if @m_restart_on_exception
36
+ if @m_restart_on_exception == 'true'
38
37
  sleep(@m_sleep_ms)
39
38
  retry
40
39
  else
@@ -42,4 +41,4 @@ class Kafka::Consumer
42
41
  end
43
42
  end
44
43
  end
45
- end
44
+ end
@@ -1,7 +1,4 @@
1
1
  # basically we are porting this https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example
2
-
3
- require 'java'
4
-
5
2
  require 'jruby-kafka/namespace'
6
3
  require 'jruby-kafka/consumer'
7
4
  require 'jruby-kafka/error'
@@ -1,7 +1,4 @@
1
1
  # basically we are porting this https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+Producer+Example
2
-
3
- require 'java'
4
-
5
2
  require 'jruby-kafka/namespace'
6
3
  require 'jruby-kafka/error'
7
4
 
@@ -34,7 +31,7 @@ class Kafka::Producer
34
31
  message.send.max.retries retry.backoff.ms topic.metadata.refresh.interval.ms
35
32
  queue.buffering.max.ms queue.buffering.max.messages queue.enqueue.timeout.ms
36
33
  batch.num.messages send.buffer.bytes client.id
37
- broker.list
34
+ broker.list serializer.encoding
38
35
  ]
39
36
 
40
37
  attr_reader :producer, :send_method, :options
data/lib/jruby-kafka.rb CHANGED
@@ -1,15 +1,4 @@
1
- # Because of a problem with a kafka dependency, jbundler 0.5.5 does not work. Therefore, you
2
- # need to do one of the following to have your Kafka jar dependencies available:
3
- #
4
- # - run your app under jbundler (adds a layer to bundler to manage jar dependencies)
5
- # - already have the Kafka jars loaded before requiring jruby-kafka
6
- # - set KAFKA_PATH in the environment to point to a Kafka binary installation
7
- #
8
- if not defined? JBUNDLER_CLASSPATH and ENV['KAFKA_PATH']
9
- require 'jruby-kafka/loader'
10
- Kafka.load_jars
11
- end
12
-
1
+ require 'jruby-kafka_jars.rb'
13
2
  require 'jruby-kafka/consumer'
14
3
  require 'jruby-kafka/group'
15
4
  require 'jruby-kafka/producer'
@@ -0,0 +1,15 @@
1
+ # this is a generated file, to avoid over-writing it just delete this comment
2
+ require 'jar_dependencies'
3
+
4
+ require_jar( 'log4j', 'log4j', '1.2.17' )
5
+ require_jar( 'org.slf4j', 'slf4j-api', '1.7.5' )
6
+ require_jar( 'org.slf4j', 'slf4j-log4j12', '1.7.5' )
7
+ require_jar( 'com.yammer.metrics', 'metrics-core', '2.2.0' )
8
+ require_jar( 'org.apache.zookeeper', 'zookeeper', '3.3.4' )
9
+ require_jar( 'org.scala-lang', 'scala-library', '2.9.2' )
10
+ require_jar( 'org.apache.kafka', 'kafka_2.9.2', '0.8.1.1' )
11
+ require_jar( 'net.sf.jopt-simple', 'jopt-simple', '3.2' )
12
+ require_jar( 'jline', 'jline', '0.9.94' )
13
+ require_jar( 'com.101tec', 'zkclient', '0.3' )
14
+ require_jar( 'org.xerial.snappy', 'snappy-java', '1.0.5' )
15
+ require_jar( 'junit', 'junit', '3.8.1' )
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>junit</groupId>
4
+ <artifactId>junit</artifactId>
5
+ <versioning>
6
+ <release>3.8.1</release>
7
+ <versions>
8
+ <version>3.8.1</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>log4j</groupId>
4
+ <artifactId>log4j</artifactId>
5
+ <versioning>
6
+ <release>1.2.17</release>
7
+ <versions>
8
+ <version>1.2.17</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>net.sf.jopt-simple</groupId>
4
+ <artifactId>jopt-simple</artifactId>
5
+ <versioning>
6
+ <release>3.2</release>
7
+ <versions>
8
+ <version>3.2</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>org.apache.kafka</groupId>
4
+ <artifactId>kafka_2.9.2</artifactId>
5
+ <versioning>
6
+ <release>0.8.1.1</release>
7
+ <versions>
8
+ <version>0.8.1.1</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>org.apache.zookeeper</groupId>
4
+ <artifactId>zookeeper</artifactId>
5
+ <versioning>
6
+ <release>3.3.4</release>
7
+ <versions>
8
+ <version>3.3.4</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>org.scala-lang</groupId>
4
+ <artifactId>scala-library</artifactId>
5
+ <versioning>
6
+ <release>2.9.2</release>
7
+ <versions>
8
+ <version>2.9.2</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>org.slf4j</groupId>
4
+ <artifactId>slf4j-api</artifactId>
5
+ <versioning>
6
+ <release>1.7.5</release>
7
+ <versions>
8
+ <version>1.7.5</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>org.slf4j</groupId>
4
+ <artifactId>slf4j-log4j12</artifactId>
5
+ <versioning>
6
+ <release>1.7.5</release>
7
+ <versions>
8
+ <version>1.7.5</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metadata>
3
+ <groupId>org.xerial.snappy</groupId>
4
+ <artifactId>snappy-java</artifactId>
5
+ <versioning>
6
+ <release>1.0.5</release>
7
+ <versions>
8
+ <version>1.0.5</version>
9
+ </versions>
10
+ <lastUpdated>20150119205641</lastUpdated>
11
+ </versioning>
12
+ </metadata>
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 1.0.0.beta
5
5
  platform: java
6
6
  authors:
7
7
  - Joseph Lawson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: jbundler
14
+ name: jar-dependencies
15
15
  version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.5
19
+ version: '0.1'
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - '='
22
+ - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 0.5.5
24
+ version: '0.1'
25
25
  prerelease: false
26
26
  type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby-maven
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '3.1'
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: '3.1'
39
+ prerelease: false
40
+ type: :development
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '10.4'
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ~>
51
+ - !ruby/object:Gem::Version
52
+ version: '10.4'
53
+ prerelease: false
54
+ type: :development
27
55
  description: this is primarily to be used as an interface for logstash
28
56
  email:
29
57
  - joe@joekiller.com
@@ -31,15 +59,37 @@ executables: []
31
59
  extensions: []
32
60
  extra_rdoc_files: []
33
61
  files:
34
- - lib/jruby-kafka.iml
62
+ - lib/com/101tec/zkclient/0.3/zkclient-0.3.jar
63
+ - lib/com/101tec/zkclient/maven-metadata-local.xml
64
+ - lib/com/yammer/metrics/metrics-core/2.2.0/metrics-core-2.2.0.jar
65
+ - lib/com/yammer/metrics/metrics-core/maven-metadata-local.xml
66
+ - lib/jline/jline/0.9.94/jline-0.9.94.jar
67
+ - lib/jline/jline/maven-metadata-local.xml
35
68
  - lib/jruby-kafka.rb
36
69
  - lib/jruby-kafka/consumer.rb
37
70
  - lib/jruby-kafka/error.rb
38
71
  - lib/jruby-kafka/group.rb
39
- - lib/jruby-kafka/jruby-kafka.iml
40
- - lib/jruby-kafka/loader.rb
41
72
  - lib/jruby-kafka/namespace.rb
42
73
  - lib/jruby-kafka/producer.rb
74
+ - lib/jruby-kafka_jars.rb
75
+ - lib/junit/junit/3.8.1/junit-3.8.1.jar
76
+ - lib/junit/junit/maven-metadata-local.xml
77
+ - lib/log4j/log4j/1.2.17/log4j-1.2.17.jar
78
+ - lib/log4j/log4j/maven-metadata-local.xml
79
+ - lib/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar
80
+ - lib/net/sf/jopt-simple/jopt-simple/maven-metadata-local.xml
81
+ - lib/org/apache/kafka/kafka_2.9.2/0.8.1.1/kafka_2.9.2-0.8.1.1.jar
82
+ - lib/org/apache/kafka/kafka_2.9.2/maven-metadata-local.xml
83
+ - lib/org/apache/zookeeper/zookeeper/3.3.4/zookeeper-3.3.4.jar
84
+ - lib/org/apache/zookeeper/zookeeper/maven-metadata-local.xml
85
+ - lib/org/scala-lang/scala-library/2.9.2/scala-library-2.9.2.jar
86
+ - lib/org/scala-lang/scala-library/maven-metadata-local.xml
87
+ - lib/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
88
+ - lib/org/slf4j/slf4j-api/maven-metadata-local.xml
89
+ - lib/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar
90
+ - lib/org/slf4j/slf4j-log4j12/maven-metadata-local.xml
91
+ - lib/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar
92
+ - lib/org/xerial/snappy/snappy-java/maven-metadata-local.xml
43
93
  homepage: https://github.com/joekiller/jruby-kafka
44
94
  licenses:
45
95
  - Apache 2.0
@@ -48,7 +98,6 @@ post_install_message:
48
98
  rdoc_options: []
49
99
  require_paths:
50
100
  - lib
51
- - lib
52
101
  required_ruby_version: !ruby/object:Gem::Requirement
53
102
  requirements:
54
103
  - - '>='
@@ -56,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
105
  version: '0'
57
106
  required_rubygems_version: !ruby/object:Gem::Requirement
58
107
  requirements:
59
- - - '>='
108
+ - - '>'
60
109
  - !ruby/object:Gem::Version
61
- version: '0'
110
+ version: 1.3.1
62
111
  requirements:
63
112
  - jar 'org.apache.kafka:kafka_2.9.2', '0.8.1.1'
64
- - jar 'log4j:log4j', '1.2.14'
113
+ - jar 'org.slf4j:slf4j-log4j12', '1.7.5'
65
114
  rubyforge_project:
66
- rubygems_version: 2.2.2
115
+ rubygems_version: 2.4.5
67
116
  signing_key:
68
117
  specification_version: 4
69
118
  summary: jruby Kafka wrapper
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="CompassSettings">
4
- <option name="compassSupportEnabled" value="true" />
5
- </component>
6
- <component name="NewModuleRootManager" inherit-compiler-output="true">
7
- <exclude-output />
8
- <content url="file://$MODULE_DIR$" />
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
13
-
@@ -1,12 +0,0 @@
1
- module Kafka
2
- def self.load_jars(kafka_path = nil)
3
- kafka_path ||= ENV['KAFKA_PATH']
4
-
5
- raise 'Please set KAFKA_PATH' unless kafka_path
6
- dir = File.join(kafka_path, 'libs')
7
- jars = Dir.glob(File.join(dir, '*.jar'))
8
- raise "KAFKA_PATH set, but #{dir} contains no jar files." if jars.empty?
9
- jars.each { |jar| require jar }
10
- end
11
- end
12
-
data/lib/jruby-kafka.iml DELETED
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="CompassSettings">
4
- <option name="compassSupportEnabled" value="true" />
5
- </component>
6
- <component name="NewModuleRootManager" inherit-compiler-output="true">
7
- <exclude-output />
8
- <content url="file://$MODULE_DIR$" />
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
13
-