Skip to content

Commit

Permalink
logstash-core & logstash-core-event extraction to support logstash-co…
Browse files Browse the repository at this point in the history
…re-event-java impl, relates to elastic#4191

fixed timezone issue

extracted logstash-core and reorganized specs

extracted logstash-core-event

extract java Event into logstash-core-event-java in a proper gem

remove obsolete jruby_event bootstrapping

fix require path

add java code bootstrap

use logstash-core-event/logstash-core-event.rb

remove obsolete files

basic instructions

LogStash::Json need to be initialized from event

update jruby and gradle versions

update compile:logstash-core-event-java rake task

WIP tasks refactor

fix gem.files

skip test if class is not defined

fix gem related tasks for new structure

add gem spec dirs in core tests

bootstrap java implementation when requiring timestamp

new Cloner class and Event clone impl

fix array fields assignments, see elastic#4140

don't rely on json implementation ordering

fix skipped last iterpolation char

remove implementation specific unnecessary check

also require ruby classes

define error class in ruby

raise exception on invalid format

remove implementation specific tests and extract and put logger related test in pending

missing bits for having all core timestamp specs pass

run all core specs

remove leftover

comment regex

missing encoding header

revert to logstash-core-event by default

finished proper gemification

useless require

dynamically pick specs depending on logstash-core-event-* implementation

logstash root package version

missing file for proper gemification

do not build java event by default

always check for root logstash lib dir

fix concurrent-ruby version confict

fix rebase conflict

re-enable specs

user vars instead of constants

move non core code in bootstrap

document version files

move version file

remove useless code

use version in logstash-core

fix gem files list

put back concurrent-ruby version constrain as in master

add dependency on logstash-core-event

remove dependency on logstash-core to avoid circular dependency

fix rebase conflict

remove circular dependency

fix specs

update README
  • Loading branch information
colinsurprenant committed Nov 16, 2015
1 parent e28f188 commit d74d41c
Show file tree
Hide file tree
Showing 153 changed files with 1,041 additions and 508 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# If you modify this file manually all comments and formatting will be lost.

source "https://rubygems.org"
gem "logstash-core", "3.0.0.dev", :path => "."
gem "logstash-core", "3.0.0.dev", :path => "./logstash-core"
gem "logstash-core-event", "3.0.0.dev", :path => "./logstash-core-event"
# gem "logstash-core-event-java", "3.0.0.dev", :path => "./logstash-core-event-java"
gem "file-dependencies", "0.1.6"
gem "ci_reporter_rspec", "1.0.0", :group => :development
gem "simplecov", :group => :development
Expand Down
25 changes: 16 additions & 9 deletions Gemfile.jruby-1.9.lock
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
PATH
remote: .
remote: ./logstash-core
specs:
logstash-core (3.0.0.dev-java)
cabin (~> 0.7.0)
clamp (~> 0.6.5)
concurrent-ruby (~> 0.9.1)
concurrent-ruby (= 0.9.1)
filesize (= 0.0.4)
gems (~> 0.8.3)
i18n (= 0.6.9)
jrjackson (~> 0.3.5)
jrjackson (~> 0.3.6)
jruby-openssl (>= 0.9.11)
minitar (~> 0.5.4)
pry (~> 0.10.1)
stud (~> 0.0.19)
thread_safe (~> 0.3.5)
treetop (< 1.5.0)

PATH
remote: ./logstash-core-event
specs:
logstash-core-event (3.0.0.dev-java)
logstash-core (>= 2.0.0.beta2, < 3.0.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.3.8)
arr-pm (0.0.10)
cabin (> 0)
backports (3.6.6)
backports (3.6.7)
benchmark-ips (2.3.0)
builder (3.2.2)
cabin (0.7.1)
childprocess (0.5.6)
cabin (0.7.2)
childprocess (0.5.7)
ffi (~> 1.0, >= 1.0.11)
ci_reporter (2.0.0)
builder (>= 2.1.2)
Expand Down Expand Up @@ -67,7 +73,7 @@ GEM
domain_name (~> 0.5)
i18n (0.6.9)
insist (1.0.0)
jrjackson (0.3.5)
jrjackson (0.3.6)
jruby-openssl (0.9.12-java)
json (1.8.3-java)
kramdown (1.9.0)
Expand All @@ -84,11 +90,11 @@ GEM
mime-types (2.6.2)
minitar (0.5.4)
multipart-post (2.0.0)
netrc (0.10.3)
netrc (0.11.0)
octokit (3.8.0)
sawyer (~> 0.6.0, >= 0.5.3)
polyglot (0.3.5)
pry (0.10.2-java)
pry (0.10.3-java)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
Expand Down Expand Up @@ -147,6 +153,7 @@ DEPENDENCIES
fpm (~> 1.3.3)
gems (~> 0.8.3)
logstash-core (= 3.0.0.dev)!
logstash-core-event (= 3.0.0.dev)!
logstash-devutils (~> 0.0.15)
octokit (= 3.8.0)
rspec (~> 3.1.0)
Expand Down
2 changes: 0 additions & 2 deletions java/settings.gradle

This file was deleted.

9 changes: 9 additions & 0 deletions lib/bootstrap/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def ruby_engine
def logstash_gem_home
::File.join(BUNDLE_DIR, ruby_engine, gem_ruby_version)
end

def vendor_path(path)
return ::File.join(LOGSTASH_HOME, "vendor", path)
end

def pattern_path(path)
return ::File.join(LOGSTASH_HOME, "patterns", path)
end

end
end

Expand Down
45 changes: 0 additions & 45 deletions lib/jruby_event/Rakefile

This file was deleted.

Binary file removed lib/jruby_event/jackson-core-asl-1.9.13.jar
Binary file not shown.
Binary file removed lib/jruby_event/jackson-mapper-asl-1.9.13.jar
Binary file not shown.
10 changes: 0 additions & 10 deletions lib/jruby_event/jruby_event.gemspec

This file was deleted.

Binary file removed lib/jruby_event/jruby_event.jar
Binary file not shown.
7 changes: 0 additions & 7 deletions lib/jruby_event/jruby_event.rb

This file was deleted.

2 changes: 0 additions & 2 deletions lib/logstash-event.rb

This file was deleted.

36 changes: 0 additions & 36 deletions lib/logstash/patches/bundler.rb

This file was deleted.

97 changes: 0 additions & 97 deletions lib/logstash/timestamp.rb

This file was deleted.

Loading

0 comments on commit d74d41c

Please sign in to comment.