Commit graph

7141 commits

Author SHA1 Message Date
Pier-Hugues Pellerin
aa036b9b8d Settings doesnt persist the values to the bundle/config
Fixes #3330
2015-05-27 21:19:36 +00:00
Aaron Mildenstein
b26f2fc55e Fix permissions after install
/etc/logstash was getting 775 perms in the debian package.

This manually sets 755 to /etc/logstash

fixes #3305

Fixes #3331
2015-05-27 21:10:42 +00:00
Pier-Hugues Pellerin
0bb827c4fe Make sure we correctly patch the thin bootstrap layer of the distribution
Fixes #2701
2015-05-27 17:14:00 +00:00
Pier-Hugues Pellerin
dc88956362 Override bundler behavior to save config to the .bundle/config file
Fixes #2701
2015-05-27 17:13:59 +00:00
Suyog Rao
460fdfc0ff Change to namefragment for list
Fixes #3328
2015-05-27 17:02:28 +00:00
Suyog Rao
f8a7c27ee6 Cleanup CLI for 1.5 Fixes #3280
Fixes #3328
2015-05-27 17:02:28 +00:00
Colin Surprenant
827fc6d418 update to jruby-1.7.20 and cleanup legacy patches 2015-05-25 16:51:32 -04:00
Jordan Sissel
99741e57a2 Strip line terminators when writing the comment for a branch
Logstash's config compiler adds a comment to the compiled code, like

    if ..... # if [your] and [conditional]

The idea is to to help aid in reading the compiled logstash config.
However, if a conditional has newlines in it, the `#text_value` of
that conditional will have newlines, and we'll accidentally create
invalid ruby code which will fail with SyntaxError.

Prior to this change, the following Logstash config, under 1.5.0,
would cause a crash on startup:

    if [some]
      or [condition] {
      ...
    }

The cause was that Logstash would compile this to:

    if event("[some]"]) || event("[condition]") # if [some]
    or [condition]
      ...
    end

The 2nd line there `or [condition]` was intended to be on the line
above.

This change strips the line terminators \r and \n, just in case, and
provides a test case to cover.

I verified that this test case _fails_ without the config_ast.rb patch
and _succeeds_ with the patch.

Fixes #2850

Fixes #3281
2015-05-19 20:01:05 +00:00
wiibaa
6cb438d7fc use windows short names => no issue with space in dir
Fixes #3252
2015-05-19 08:16:07 +00:00
Russ Savage
370517bc0e fixing logstash to logstash-core
Fixes #3267
2015-05-18 22:43:57 +00:00
Pere Urbon-Bayes
26f6be3aed Revert "fix string interpolation error when transforming characters to UTF8 in the configuration compiler"
This reverts commit 65c789a24c.

Fixes #3264
2015-05-18 16:14:12 +00:00
Pere Urbon-Bayes
65c789a24c fix string interpolation error when transforming characters to UTF8 in the configuration compiler
Fixes #3259
2015-05-18 13:09:13 +00:00
Pere Urbon-Bayes
012a872745 update rubycheck to use DEBUG insted of as it will never get used because of the relaunch
Fixes #3251
2015-05-15 13:09:22 +00:00
Pere Urbon-Bayes
a84387da68 make the extracting lines for JRUBY optional throw using the DEBUG env variable
Fixes #3251
2015-05-15 13:09:22 +00:00
Jordan Sissel
4b325bd2de Set package epoch to 1
This is done because we made a mistake in the versioning of the rpm and
debs.

rpm and deb both sort "1.5.0.rc4" to be newer than "1.5.0". The default
epoch is 0, so setting epoch to 1 will cause "1.5.0" to sort higher than
the release candidates and betas.
2015-05-14 11:28:44 -07:00
Suyog Rao
e35ce2a990 Redirect to current site for docs
Fixes #3236
2015-05-13 21:23:48 +00:00
Suyog Rao
70aa6811ca Revert back to logstash.net for current docs
Fixes #3236
2015-05-13 21:23:48 +00:00
Suyog Rao
041cd847f6 Update changes to Elastic brand
Fixes #3236
2015-05-13 21:23:47 +00:00
Colin Surprenant
a939a2e6ca add file content :P
Fixes #3231
2015-05-12 18:52:18 +00:00
Colin Surprenant
036db56fea windows bin/rspec.bat
Fixes #3231
2015-05-12 18:52:17 +00:00
Suyog Rao
ed7884157c Changelog for 1.5.0
Fixes #3219
2015-05-11 21:16:15 +00:00
Colin Surprenant
933709fba4 unset CDPATH 2015-05-11 16:17:15 -04:00
Pier-Hugues Pellerin
214f3b9e44 Allow to update all the plugins and skip locally defined gems fixes #3157
Review comments

Fixes #3179
2015-05-11 14:15:14 +00:00
Pere Urbon-Bayes
7675a19032 Few minor improvements and pending cleanups:
* Clean up pending development dependencies from the logstash-core gemspec
* Add gems as a build dependency in the Gemfile, is used when doing an
  install-all task, and failed in the ci env (like octokit)
2015-05-11 16:01:04 +02:00
Pier-Hugues Pellerin
fe99f45499 Initialize the metadata_accessors when setting the @metadata with a hash
Fixes #3198
2015-05-08 13:52:58 +00:00
Pere Urbon-Bayes
1f7d3f550e fix the documentation genenration process
Fixes #3194
2015-05-08 07:57:09 +00:00
Pere Urbon-Bayes
6241b7f0ca make the documentation generation task more clean to understand with smaller lines
Fixes #3194
2015-05-08 07:57:09 +00:00
Suyog Rao
84d90d873c add changelog for RC4
Fixes #3181
2015-05-06 19:52:48 +00:00
Pere Urbon-Bayes
286dac435e make rubyzip a dependency installed via the Gemfile, so the artifact:zip task works as expected 2015-05-06 15:46:10 +02:00
Colin Surprenant
7a1ec64c23 use :build dependencies
fix octokit dep

fixes #3171
2015-05-06 08:27:57 -04:00
Colin Surprenant
af4cdb6be2 environment when not in package context
remove unused constants
2015-05-05 07:58:11 -04:00
Colin Surprenant
07b6f4533c support remote or local gem packaging
typo
2015-05-04 20:50:44 -04:00
Colin Surprenant
48bcc5b74d cleanup dependencies and rely on logstash-core gem
remove unused load path

use either local core lib dir or logstash-core gem

include spec in logstash-core

do not include lib, spec and locales dirs in package root

environment bootstrapping in lib/bootstrap.rb

added comments

move pluginmanager out of logstash-core

kafla installation solved by pluginmanager refactor

refactor bootstrap code

refactor shell scripts to simplify and DRY, indirect rspec command to our ruby launcher

add bin/rspec

cut by half the bin/plugin and bin/rspec startup time

fix drip context

use printf instead of tr

updated Windows bin scripts

missing gemspec in gemspec

use gem instead of gemspec so our plugin manager can correctly install logstash-core

generate packages including locally built logstash-core gem

move jenkins developmnent dependencies into Gemfile, they do not belong in logstash-core

path leftover

clean help agent help usage message and remore rspec in available command

comments cosmetics

update Bundler dependency, all recent testing have been made with 1.9.4

updated .lock file with regard to updated Gemfile

cleanup gemspec, Gemfile and regen .lock file

added progress output

avoid dual require on version

closes #3096
2015-05-04 18:17:22 -04:00
Suyog Rao
8300255cd5 Add code formatting
Fixes #3090
2015-05-04 20:55:32 +00:00
Suyog Rao
5f547a284d Add documentation for setting java options Closes #3042
Fixes #3090
2015-05-04 20:55:32 +00:00
Colin Surprenant
b1cd68af1e much needed refresh
note on USE_RUBY=1

note on bin/logstash rspec
2015-05-04 12:47:04 -04:00
Pere Urbon-Bayes
dc6289a45a fix the documentation generator process
Fixes #3122
2015-04-30 05:59:43 +00:00
Pere Urbon-Bayes
a01ffd4ee6 slim down the skip list from plugins that are now released and accesible
Fixes #3128
2015-04-29 06:25:25 +00:00
Colin Surprenant
3dabba80fa revert multi_filter removal and add check for cancelled events
add filter and flush compiles functions specs

missing multiline filter for core specs

fixes #3100
2015-04-27 13:54:18 -04:00
Colin Surprenant
c70f252fe4 remove unwanted files in package 2015-04-22 18:49:35 +02:00
Colin Surprenant
4e1246a5b5 remove freeze task 2015-04-22 18:49:21 +02:00
Colin Surprenant
f8f2609c1b remove setup! and add :clean to uninstall 2015-04-22 17:42:16 +02:00
Colin Surprenant
b4c3d1ef33 upgrade jruby to 1.7.19
Fixes #3066
2015-04-21 15:44:35 +00:00
Pier-Hugues Pellerin
362953b312 Make sure we setup the gem environment before finding the currently installed gems
Fixes #3063
2015-04-21 14:59:37 +00:00
Pier-Hugues Pellerin
b4b8817b4e fix an issue with bin/plugin update with no arguments and no locally installed gems
Fixes #3063
2015-04-21 14:59:36 +00:00
Colin Surprenant
902c2f4710 bundler refactor leftover 2015-04-21 13:07:40 +02:00
Suyog Rao
5014c5c7e3 Added changes for RC3 releases
Fixes #3052
2015-04-20 23:08:45 +00:00
Pier-Hugues Pellerin
cc3f9d6ac4 Do not return an empty metadata key hash when calling to_hash_with_metadata
Fixes #3034
2015-04-20 22:59:04 +00:00
Pere Urbon-Bayes
0b72d06de8 add an rspec shim to complement the old bin/logstash rspec way of running specs in logstash
simplify the rspec shim codebase

add bin/rspec to the exclude list for packaging

removed leftover

Fixes #3047
2015-04-20 15:47:46 +00:00
Colin Surprenant
bde2691239 bin/bundle shim
use  instead for $:

exclude bin/bundle from packages

added comment
2015-04-20 17:07:52 +02:00