Commit Graph

486 Commits

Author SHA1 Message Date
R. Tyler Croy a505e9c5c8
Rely on our file path containing stormjar.jar in order to determine if we're ina supervisor
This is admittedly a bit hackish but I have yet to find any data at runtime
that indicates whether we're executing inside of a local mode (non jar) or
clustered mode other than this

Fixes #16
2015-09-11 15:18:25 -07:00
R. Tyler Croy 90defcd60f
Forgot to enable relaesing, using openjdk7 for that 2015-09-11 11:07:11 -07:00
R. Tyler Croy c4ba598c82
Update the README with badges and asciidoc 2015-09-11 11:06:40 -07:00
R. Tyler Croy e9ef36155d
Remove oraclejdk7 from the build matrix 2015-09-11 10:58:44 -07:00
R. Tyler Croy a0249a7d7a
Executing on a supervisor via a bolt/etc we must set up the embedded env properly
The main() function isn't going to be executed when the topology is sent over
to the cluster, redstorm/environment will be loaded properly on
supervisor-based execution however, so mucking with these globals there seems
like a reasonable approach

References #12
2015-09-11 10:53:21 -07:00
R. Tyler Croy 7f0b8a5520
Removing some older unnecessary crud
Fixes #13
2015-09-09 13:17:02 -07:00
R. Tyler Croy 23b6fdd4e3
Use the uri:classloader:/ custom path for setting up JARS_HOME and $LOAD_PATH
This will help the submitted topology operate much more like an embedded JRuby
use-case thanks to the recent improvements that @mkristian has made in JRuby
core

Fixes #12
2015-09-09 13:14:42 -07:00
R. Tyler Croy 0734acdcb0
Use the idea plugin to generate an intellij project for myself 2015-09-09 13:14:42 -07:00
R. Tyler Croy 886c9d91de
Bump for minor release 2015-08-31 14:20:18 -07:00
R. Tyler Croy 8601031c71 Merge pull request #15 from robbavey/master
Avoid using Pathname to compute relative paths in spout - fix merge regression
2015-08-31 14:14:49 -07:00
Robert Bavey 88977bea7c Add tests to ensure File.expand_path is used to calculate relative paths 2015-08-31 17:08:49 -04:00
Robert Bavey d790474151 Avoid using Pathname to compute relative paths in spout
Merge inadvertently changed inherited method to once again use
Pathname to compute relative paths. This change once more allows
the code to work either in a jar context, or a .rb file on
the filesystem.
2015-08-31 16:04:06 -04:00
R. Tyler Croy 5f104fd8c8
Bump minor version for the addition of named streams to the DSL 2015-08-28 09:18:23 -07:00
R. Tyler Croy 954211ee86 Merge pull request #14 from robbavey/master
Add DSL support for named streams.
2015-08-27 13:47:24 -07:00
Robert Bavey c549d701d5 Merge commit 'refs/pull/129/head' of https://github.com/colinsurprenant/redstorm
Conflicts:
	Gemfile.lock
	lib/red_storm/dsl/bolt.rb
	lib/red_storm/dsl/spout.rb
	redstorm.gemspec
2015-08-27 14:49:57 -04:00
R. Tyler Croy 42b77a151a
Bump version for next dev cycle 2015-08-17 13:28:08 -07:00
R. Tyler Croy 27b59e2db1
Add support for auto-releasing from Travis CI pending a successful build 2015-08-17 11:14:09 -07:00
R. Tyler Croy e2f3a0ab4c
Adjust dependencies to express more lenient ranges of JRuby and jffi
This commit also includes lots of refactoring of the build.gradle to be a bit
cleaner and reflect some of my learnings since I originally wrote the file :)
2015-08-17 11:07:55 -07:00
Keith Walters f593b216ca Use Pry for helpful debugging 2015-04-16 23:23:08 +00:00
Keith Walters 67fd211d4d Wrongly assumed topo bolts inherit from redstorm
Not all bolts defined in a topology inherit from the RedStorm::DSL. This
ensures the output fields in the ComponentDefinition are only copied if
the class uses the OutputFields module. Also, redefining field names for
the default stream will replace any previously defined default field
names.
2015-04-16 23:23:00 +00:00
Keith Walters db8547ebd6 Output fields in ruby classes are declared in java
Fixes an issue where outfields that are defined in the Spout or Bolt are
not recognized by the Nimbus server when it validates the existence of
streams for all bolts in the topology.
2015-04-16 21:16:33 +00:00
Keith Walters 7b7f3f7c99 Bolt/Spouts in topos need to support streams
This commit makes it possible to declare streams and fields for bolts
and streams inside of the Topology definition.
2015-04-07 22:58:47 +00:00
R. Tyler Croy 5fdde70ae1 Merge pull request #9 from jruby-gradle/slf4j
Defaulting to SL4J instead of Log4J
2015-03-17 10:33:50 -07:00
R. Tyler Croy fec511c1e9 Merge remote-tracking branch 'colinsurprenant/pr/115'
Merging in colinsurprenant/redstorm#115

Conflicts:
	.gitignore
	lib/red_storm/dsl/bolt.rb
	lib/red_storm/dsl/spout.rb
2015-03-17 10:28:50 -07:00
Keith Walters dbf7888bb7 New test/specs for bolt stream support 2015-03-10 21:40:38 +00:00
Keith Walters 32cceb724e Bolts support declaring output streams 2015-03-10 16:09:21 +00:00
Keith Walters 54e43e39dc Select stream when setting source for bolt 2015-03-03 22:47:37 +00:00
R. Tyler Croy c45337add1 Add common RSpec code
Fixes #5
2014-11-15 09:27:07 -08:00
R. Tyler Croy cd84b7f370 Ensure we're properly generating the generated/java directory before attempting compile JRuby code
Fixes #6
2014-11-15 09:24:51 -08:00
R. Tyler Croy 3833e56126 Refactor and document build.gradle so fellow Ruby-ists can follow it more easily 2014-11-02 09:29:45 -08:00
Ian Smith 5d7debdf16 This allows for on_* to be defined by defining the corresponding instance method
directly.  Prior to this fix, doing this will result in "SystemStackError: stack
level too deep".

Example
module RedStorm
  module Examples
    class SplitSentenceBolt < DSL::Bolt
      def on_receive(tuple)
        tuple[0].split(' ').map{|w| [w]}
      end
    end
  end
end
2014-11-02 09:08:04 -08:00
Ian Smith cf723b2136 rescue DEFAULT_STORM_CONF_FILE = File.expand_path('~/.storm/storm.yaml') so we can use redstorm in environments that don't have HOME set. 2014-11-02 09:07:49 -08:00
R. Tyler Croy 9695a0bbb9 Remove the not-up-to-date readme docs 2014-11-01 20:39:26 -07:00
R. Tyler Croy a4e3bc6479 Dump exceptions that occur when loading a topology to stdout in the topology launcher
Fixes #3
2014-11-01 18:01:53 -07:00
R. Tyler Croy 106194fe6f Remove some redundant files that no longer make sense in the jruby-gradle world 2014-11-01 18:01:22 -07:00
R. Tyler Croy 5739610d91 Add the bintray plugin for releasing to bintray 2014-10-22 09:59:42 -07:00
R. Tyler Croy e62fe44a25 Avoid using Pathname to compute relative paths and instead rely on a fully expanded path
This will allow this code to work whether it's executing in a jar context or a
.rb file on the filesystem
2014-10-21 15:50:38 -07:00
R. Tyler Croy a56c54ef6b Target JDK7 for compatibility 2014-10-21 15:49:18 -07:00
R. Tyler Croy e41af0af09 Add a simple set of good rspec settings 2014-10-20 15:25:50 -07:00
R. Tyler Croy a3f4a6bb00 Add a simple `spec` task for running RSpecs (largely failing) from Gradle 2014-10-20 14:43:58 -07:00
R. Tyler Croy f61c511c19 Merge pull request #1 from jruby-gradle/jarjar
Jarjar
2014-10-20 14:25:19 -07:00
R. Tyler Croy 41cb426076 Update the build.gradle to create a re-usable .jar file with redstorm Java and Ruby code 2014-10-20 14:18:55 -07:00
R. Tyler Croy b8bff11852 Add gradle wrappers 2014-10-20 13:53:27 -07:00
arielvalentin 02c79c9282 Using loggable in the topology 2014-08-11 22:19:34 -04:00
Midpoint Applications fde7148ee1 Using loggable module instead of redeclaring logging methods in multiple files 2014-07-30 22:49:52 -04:00
Colin Surprenant cbb62efc52 Merge pull request #117 from arielvalentin/issues-109
adding arbitrary resources to target/classes instead of just the jar
2014-07-30 02:33:11 -04:00
Colin Surprenant 5a2439d01a Merge pull request #116 from arielvalentin/issue-108
Removing signature files from dependent jars
2014-07-30 02:28:47 -04:00
Colin Surprenant 07a780c918 Merge pull request #119 from arielvalentin/integration_testing_improvements
[jhottenstein] Changes to get the integration tests running
2014-07-29 14:54:15 -04:00
Jess Hottenstein ceef935178 [jhottenstein] Changes to get the integration tests running
* Added documentation
* Added REDSTORM_COMMAND environment variable for run_all.sh
* Reverted to non EOL ubuntu version
2014-07-29 13:43:16 -04:00
Mark and Ariel 65e5d19c55 adding arbitrary resources to target/classes instead of just the jar 2014-07-28 15:06:02 -04:00