File tree Expand file tree Collapse file tree 6 files changed +85
-0
lines changed
language-adaptors/rxjava-jruby/src
main/resources/rx/lang/jruby Expand file tree Collapse file tree 6 files changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright 2013 Mike Ragalie
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
module Rx
2
16
module Lang
3
17
module Jruby
Original file line number Diff line number Diff line change
1
+ # Copyright 2013 Mike Ragalie
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
require_relative "spec_helper"
2
16
3
17
describe Rx ::Lang ::Jruby ::Interop do
31
45
32
46
it "doesn't wrap OnSubscribeFunc arguments" do
33
47
proc = lambda { |observer | observer . onNext ( "hi" ) }
48
+ Java ::Rx ::Observable . __persistent__ = true
34
49
Java ::Rx ::Observable . should_not_receive ( :create_without_wrapping )
35
50
Java ::Rx ::Observable . create ( proc ) . should be_a ( Java ::Rx ::Observable )
36
51
end
Original file line number Diff line number Diff line change
1
+ # Copyright 2013 Mike Ragalie
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
require_relative "spec_helper"
2
16
3
17
describe Java ::RxLangJruby ::JRubyActionWrapper do
Original file line number Diff line number Diff line change
1
+ # Copyright 2013 Mike Ragalie
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
require_relative "spec_helper"
2
16
3
17
describe Java ::RxLangJruby ::JRubyFunctionWrapper do
Original file line number Diff line number Diff line change
1
+ # Copyright 2013 Mike Ragalie
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
# Current execution times:
2
16
# Without rxjava-jruby: 3.31s
3
17
# With rxjava-jruby: 2.18s
Original file line number Diff line number Diff line change
1
+ # Copyright 2013 Mike Ragalie
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
require "rx/lang/jruby/interop"
You can’t perform that action at this time.
0 commit comments