Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Added test and methods for to_key #253

Open
wants to merge 313 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
c044b57
fix prerendering
janbiedermann Dec 1, 2017
b027820
update gemspecs and version 1.0.0-lap6
janbiedermann Dec 1, 2017
1aceb0f
update gemspecs and version 1.0.0-lap6
janbiedermann Dec 1, 2017
8a3fca5
fix arraying of arguments
janbiedermann Dec 2, 2017
91e9a4a
fix versioning relax rails
janbiedermann Dec 2, 2017
880654d
version 1.0.0-lap7
janbiedermann Dec 2, 2017
e64a3c9
to_n for components
janbiedermann Dec 5, 2017
7550ada
lap8
janbiedermann Dec 5, 2017
6d48324
enable prerendering setting
janbiedermann Dec 5, 2017
2abf5ce
enable prerendering setting
janbiedermann Dec 5, 2017
4d20d39
add context reader
janbiedermann Dec 5, 2017
195858d
drop support for react < 14
janbiedermann Dec 6, 2017
2723e11
tiny fixes
janbiedermann Dec 6, 2017
ac35939
remove, not needed
janbiedermann Dec 6, 2017
e349ade
add hyper_asset_container
janbiedermann Dec 6, 2017
badbe5e
add condition for never updated state
janbiedermann Dec 6, 2017
99115c5
lap9
janbiedermann Dec 6, 2017
cab8407
adopt test for react 16
janbiedermann Dec 6, 2017
84760f0
fix test
janbiedermann Dec 6, 2017
6fb5e9a
correctly quote args
janbiedermann Dec 6, 2017
61c2a4b
original test version
janbiedermann Dec 6, 2017
3a07642
better fix
janbiedermann Dec 7, 2017
b8304eb
tiny clearification
janbiedermann Dec 8, 2017
177e0d9
fix for sprockets doing bad things
janbiedermann Dec 8, 2017
c8c72d1
make HAC the default for prerendering
janbiedermann Dec 8, 2017
97c971d
remove unused method
janbiedermann Dec 8, 2017
30c664b
lap10
janbiedermann Dec 8, 2017
3c58cb1
lap10_for_real
janbiedermann Dec 8, 2017
09110b9
comment_meta_info
janbiedermann Dec 11, 2017
f4a6eb8
lap11
janbiedermann Dec 11, 2017
18a4708
use logger instead of puts
janbiedermann Dec 12, 2017
e0672b1
fix context init_issue
janbiedermann Dec 13, 2017
e73eb92
update travis
janbiedermann Dec 14, 2017
06a8c4b
add chromedriver-helper
janbiedermann Dec 14, 2017
d4827c7
fix deps for test_app
janbiedermann Dec 14, 2017
a26b0b3
fix deps for test_app
janbiedermann Dec 14, 2017
3b73b0c
remove debugging left over
janbiedermann Dec 14, 2017
91e5d93
return @context
janbiedermann Dec 14, 2017
1a41fd6
lap12
janbiedermann Dec 14, 2017
a6e072e
rescue Exception properly
janbiedermann Dec 29, 2017
ecbe19d
update mini_racer, take opal-rails from github, relax opal for 0.11
janbiedermann Jan 5, 2018
c9e5bec
small performance improvement
janbiedermann Jan 5, 2018
56ec0de
lap13
janbiedermann Jan 5, 2018
db2dab4
for opal 0.11
janbiedermann Jan 6, 2018
4beae56
clarification for opal 0.11
janbiedermann Jan 6, 2018
0dbaae1
remove jquery dependency
janbiedermann Jan 6, 2018
dc96016
lap14
janbiedermann Jan 6, 2018
d81ed46
remove jquery
janbiedermann Jan 8, 2018
7cdb496
clarification
janbiedermann Jan 8, 2018
c56f761
remove jquery
janbiedermann Jan 8, 2018
97dbbdc
needs attach
janbiedermann Jan 8, 2018
383d0d9
remove jquery
janbiedermann Jan 8, 2018
9ff64c4
lap15
janbiedermann Jan 8, 2018
1111f2a
lap16
janbiedermann Jan 8, 2018
e274876
dont load jquery by default
janbiedermann Jan 9, 2018
6331f21
convert to hyper-spec
janbiedermann Jan 10, 2018
6d596e3
convert to hyper-spec
janbiedermann Jan 10, 2018
8067f08
convert to hyper-spec
janbiedermann Jan 10, 2018
7f40f07
convert to hyper-spec
janbiedermann Jan 10, 2018
64d4763
convert to hyper-spec
janbiedermann Jan 10, 2018
c2a849e
fixes and updates for react 15/16
janbiedermann Jan 12, 2018
a935a27
add hyper-spec dependency
janbiedermann Jan 12, 2018
9556ced
not needed
janbiedermann Jan 12, 2018
902dc4c
remove old react things
janbiedermann Jan 12, 2018
e304a70
add HyperTestAssetContainer for getting programmatically created asse…
janbiedermann Jan 12, 2018
14bec65
convert to hyper-spec
janbiedermann Jan 12, 2018
b7a6bfb
convert to hyper-spec
janbiedermann Jan 12, 2018
655d945
"convert" to hyper-spec
janbiedermann Jan 12, 2018
8fcebea
fix
janbiedermann Jan 12, 2018
94c0b48
fix
janbiedermann Jan 12, 2018
dba4ab1
convert to hyper-spec
janbiedermann Jan 12, 2018
654069c
fix
janbiedermann Jan 12, 2018
d318a70
add dependency for test_app
janbiedermann Jan 12, 2018
1dededf
convert to hyper-spec
janbiedermann Jan 12, 2018
f875366
convert to hyper-spec
janbiedermann Jan 12, 2018
07e1de5
convert to hyper-spec
janbiedermann Jan 13, 2018
8d291e8
convert to hyper-spec
janbiedermann Jan 13, 2018
0039644
remove ruby? guards
janbiedermann Jan 13, 2018
ff120ff
convert to hyper-spec
janbiedermann Jan 13, 2018
64c1c3b
remove, unneeded
janbiedermann Jan 13, 2018
b6bc4c0
use default config, react addon are no longer availabe in react16
janbiedermann Jan 13, 2018
e96fa76
remove precompiled assets for tests
janbiedermann Jan 13, 2018
84ebcfc
donr use precompiled assets for tests
janbiedermann Jan 13, 2018
e78628d
convert to hyper-spec
janbiedermann Jan 13, 2018
796e16f
introduce client_option deprecation_warnings: :off
janbiedermann Jan 13, 2018
4fdd66a
fixes
janbiedermann Jan 13, 2018
5b6933e
remove support for react < 15
janbiedermann Jan 13, 2018
6e02839
make them all pass :)
janbiedermann Jan 13, 2018
1b5b649
run them all :)
janbiedermann Jan 13, 2018
c65ff94
fix
janbiedermann Jan 13, 2018
9fb3868
fixes
janbiedermann Jan 13, 2018
f1ebf91
fix
janbiedermann Jan 13, 2018
fe5ac5f
fix
janbiedermann Jan 13, 2018
41e536a
fixes
janbiedermann Jan 14, 2018
16c4b92
fixes and improvements
janbiedermann Jan 14, 2018
9500ce2
fixes
janbiedermann Jan 14, 2018
f765ed3
small improvements
janbiedermann Jan 14, 2018
6c10fc5
convert to hyper-spec
janbiedermann Jan 14, 2018
e0ade58
make raise optional
janbiedermann Jan 14, 2018
18d59e4
fix
janbiedermann Jan 14, 2018
77daa33
fix
janbiedermann Jan 14, 2018
5ed1f75
fix
janbiedermann Jan 14, 2018
826b9cd
fix
janbiedermann Jan 14, 2018
b0e0a5f
pending
janbiedermann Jan 14, 2018
d695b17
fix
janbiedermann Jan 14, 2018
68cc194
fix
janbiedermann Jan 14, 2018
0858e22
convert to hyper-spec
janbiedermann Jan 14, 2018
5b8e82d
pending
janbiedermann Jan 14, 2018
74aef62
mysterious fix
janbiedermann Jan 14, 2018
d7eedfd
this just causes trouble, pending
janbiedermann Jan 14, 2018
0dd781e
dont use opal?
janbiedermann Jan 14, 2018
17b3887
dont use opal?
janbiedermann Jan 14, 2018
fba6da2
dont use opal?
janbiedermann Jan 14, 2018
3766b1b
dont use opal?
janbiedermann Jan 14, 2018
af168bc
dont use opal?
janbiedermann Jan 14, 2018
d20d18f
dont use opal?
janbiedermann Jan 14, 2018
29e104d
fix
janbiedermann Jan 14, 2018
3c297b2
remove
janbiedermann Jan 14, 2018
fabab17
fix
janbiedermann Jan 14, 2018
1385c01
convert to hyper-spec wip
janbiedermann Jan 14, 2018
74ae376
no need to pass block if no block is given
janbiedermann Jan 14, 2018
f7e986d
add test_app to repo, because of to many configuration changes
janbiedermann Jan 14, 2018
82c39c8
update travis config
janbiedermann Jan 14, 2018
6e2e73a
lap17
janbiedermann Jan 14, 2018
2f7154a
remove present
janbiedermann Jan 15, 2018
689e52f
remove present
janbiedermann Jan 15, 2018
775a612
fix and revert setTimeout
janbiedermann Jan 15, 2018
6c3eafa
remove react 13 support
janbiedermann Jan 15, 2018
4c11fd1
remove debugging leftover
janbiedermann Jan 15, 2018
861331a
fix
janbiedermann Jan 15, 2018
81ad949
fix
janbiedermann Jan 15, 2018
4d01eb5
remove present
janbiedermann Jan 15, 2018
b99f254
convert to hyper-spec
janbiedermann Jan 16, 2018
99e9297
fix constant lookup
janbiedermann Jan 16, 2018
b541374
fix heredocs for opal 0.11
janbiedermann Jan 16, 2018
3fd75a5
fix
janbiedermann Jan 17, 2018
e2c5e36
fix
janbiedermann Jan 17, 2018
364048c
not used
janbiedermann Jan 17, 2018
bc62938
fix for opal 0.11
janbiedermann Jan 17, 2018
f51bd6d
use toplevel as base
janbiedermann Jan 17, 2018
aefe562
dont sleep
janbiedermann Jan 17, 2018
416ef94
fix
janbiedermann Jan 17, 2018
eac1652
refactor
janbiedermann Jan 17, 2018
1d14fb9
fix
janbiedermann Jan 17, 2018
3cfaa79
fix
janbiedermann Jan 17, 2018
b3dd9dd
fix
janbiedermann Jan 17, 2018
c39844f
fix
janbiedermann Jan 17, 2018
a84618e
use custom opal and active-support for now
janbiedermann Jan 17, 2018
b9c886e
fix
janbiedermann Jan 17, 2018
b385148
remove debugging
janbiedermann Jan 17, 2018
ec9b838
fix
janbiedermann Jan 18, 2018
cd06437
remove debase and debug ide
janbiedermann Jan 18, 2018
941b536
pending
janbiedermann Jan 18, 2018
069caad
remove debugging
janbiedermann Jan 18, 2018
b3f868f
this is long gone
janbiedermann Jan 19, 2018
7237f50
fix
janbiedermann Jan 19, 2018
d414c2a
enable prop types
janbiedermann Jan 19, 2018
03309c1
proper event handling
janbiedermann Jan 19, 2018
5fbffb0
fixes
janbiedermann Jan 19, 2018
7a91492
fixes
janbiedermann Jan 19, 2018
b17ed78
enable tests
janbiedermann Jan 19, 2018
2b35f27
add present back
janbiedermann Jan 19, 2018
8ecb6d8
fix
janbiedermann Jan 19, 2018
e9dcd6f
obsolete
janbiedermann Jan 19, 2018
f873b71
obsolete
janbiedermann Jan 19, 2018
d1402ed
enablement fix
janbiedermann Jan 19, 2018
72a0b87
obsolete
janbiedermann Jan 19, 2018
9965aa7
string refs dont work anymore with react 16
janbiedermann Jan 19, 2018
803668c
make new style refs work
janbiedermann Jan 20, 2018
6f7808a
fix
janbiedermann Jan 20, 2018
1fe16be
enable more tests
janbiedermann Jan 20, 2018
b58838f
fixes
janbiedermann Jan 20, 2018
58a590a
dont use
janbiedermann Jan 20, 2018
5b7a177
remove debugging
janbiedermann Jan 20, 2018
9fe681b
remove ineffective line
janbiedermann Jan 20, 2018
5f80c65
fix render process for opal 0.11 and DummyValue and WhileLoading
janbiedermann Jan 20, 2018
b431122
more reliability, webdrivers suck
janbiedermann Jan 20, 2018
b04ccf1
remove debugging things
janbiedermann Jan 22, 2018
dc3fc6c
possible improvement
janbiedermann Jan 22, 2018
caf0d61
lap18
janbiedermann Jan 22, 2018
fb441a8
remove debugging
janbiedermann Jan 23, 2018
b518ba8
remove debugging
janbiedermann Jan 23, 2018
35daac6
use new api internally
janbiedermann Jan 24, 2018
fb88dd4
little cleanup
janbiedermann Jan 24, 2018
9397dc7
use new api, remove .spam usage in render
janbiedermann Jan 24, 2018
95ae0b2
arg is not used
janbiedermann Jan 24, 2018
429c085
use native js
janbiedermann Jan 24, 2018
5ade96a
create Error object only if needed
janbiedermann Jan 25, 2018
23485a0
inline build, one method call and one yield less per block
janbiedermann Jan 25, 2018
c3a94e6
use each instead of map, as the array constructed in map is discarded…
janbiedermann Jan 25, 2018
d9ac638
reference properties directly with @properties
janbiedermann Jan 25, 2018
3e7a967
use properties directly with @properties
janbiedermann Jan 25, 2018
3576b81
reduce hash access, dont scan array for tags if block is given
janbiedermann Jan 25, 2018
069413e
revert block inlining
janbiedermann Jan 25, 2018
b5c4171
a little less instructions per callback
janbiedermann Jan 26, 2018
533d5a9
fix props_changed?
janbiedermann Jan 26, 2018
0ebaaa9
simplify, let opal hande
janbiedermann Jan 27, 2018
8da4fd0
initialize state to {} in constructor
janbiedermann Jan 27, 2018
3627ade
enable ref test
janbiedermann Jan 27, 2018
641faaa
instanciate opal component in constructor, make callbacks use this in…
janbiedermann Jan 27, 2018
ee94962
set inital state accordingly
janbiedermann Jan 27, 2018
a7bb266
ref callbacks now use opal instance
janbiedermann Jan 27, 2018
5df71f4
top level returns opal instance
janbiedermann Jan 27, 2018
cb6a307
remove unused opal config
janbiedermann Jan 27, 2018
019cbaa
cleanup
janbiedermann Jan 27, 2018
89a77c8
fix travis for opal 0.11
janbiedermann Jan 27, 2018
b65cba0
topy
janbiedermann Jan 28, 2018
8f94482
experimental simplification of should_component_update
janbiedermann Jan 28, 2018
bac63d9
needed for while_loading
janbiedermann Jan 28, 2018
4c09abc
fix
janbiedermann Jan 28, 2018
cd6950a
support sync_set_state, componentDidCatch
janbiedermann Feb 1, 2018
7b45e21
:after_error callback
janbiedermann Feb 1, 2018
54f2947
test opal 0.11 only
janbiedermann Feb 1, 2018
3042654
corrections for sync set state
janbiedermann Feb 1, 2018
0c4984b
support method for sync_set_state
janbiedermann Feb 1, 2018
f7b0943
add tests for sync set state
janbiedermann Feb 1, 2018
86b607b
proper displayName
janbiedermann Feb 2, 2018
4fda2eb
remove exception handling, let react handle
janbiedermann Feb 2, 2018
fef0056
remove exception processing
janbiedermann Feb 2, 2018
7d458fe
fix test for after_error
janbiedermann Feb 2, 2018
4b65be6
make sure error in previous callback doesnt propagate sync_set_state
janbiedermann Feb 2, 2018
ea87cab
try to fix travis
janbiedermann Feb 2, 2018
c2acccb
try to fix travis
janbiedermann Feb 2, 2018
e67fe10
try to fix travis
janbiedermann Feb 2, 2018
90f9371
try to fix travis
janbiedermann Feb 2, 2018
a006dda
revert changes
janbiedermann Feb 2, 2018
56a5580
useless
janbiedermann Feb 2, 2018
7fe6491
this is what chome needs
janbiedermann Feb 2, 2018
a51cd64
opal 0.11 react-rails 2.4
janbiedermann Feb 2, 2018
7e79424
opal-activesupport 0.3.1
janbiedermann Feb 2, 2018
e96e126
update
janbiedermann Feb 3, 2018
0f94425
lap19
janbiedermann Feb 3, 2018
b2aecdd
try to make travis run
janbiedermann Feb 3, 2018
faadcb7
research
janbiedermann Feb 3, 2018
46cc883
oops
janbiedermann Feb 3, 2018
569ccc3
research
janbiedermann Feb 3, 2018
c975c6e
research
janbiedermann Feb 3, 2018
3f303a2
research
janbiedermann Feb 3, 2018
a08a7db
fix
janbiedermann Feb 3, 2018
127dab8
oops
janbiedermann Feb 3, 2018
8cf0f42
experimental fix
janbiedermann Feb 3, 2018
c6a4f10
add dciy config
janbiedermann Feb 4, 2018
7503aea
need those for now
janbiedermann Feb 4, 2018
ebcca86
remove
janbiedermann Feb 4, 2018
bb29d1d
lap20
janbiedermann Feb 5, 2018
7f36813
lap21
janbiedermann Feb 13, 2018
b847789
Rakefile
catmando Feb 13, 2018
22169d4
setting up edge
catmando Feb 15, 2018
66d8d1d
setup for edge with lap22
catmando Feb 15, 2018
f839d2b
Added to_key methods and tests
Donnadieu Feb 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@ node_modules
# Ignore bundler config.
.bundle

spec/test_app
spec/test_app/tmp
Gemfile.lock

/gemfiles/*.lock
/tmp

# ignore gem
*.gem

# ignore IDE files
.idea
.vscode
86 changes: 28 additions & 58 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,32 @@
dist: trusty
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- jruby-19mode
before_script:
- phantomjs --version
- ruby
env:
- PHANTOMJS_VERSION=1.9.8
gemfile:
- gemfiles/opal_0.8_react_13.gemfile
- gemfiles/opal_0.8_react_14.gemfile
- gemfiles/opal_0.8_react_15.gemfile
- gemfiles/opal_0.9_react_13.gemfile
- gemfiles/opal_0.9_react_14.gemfile
- gemfiles/opal_0.9_react_15.gemfile
cache:
directories:
- "travis_phantomjs"
branches:
only:
- master
- DRIVER=travis HYPER_DEV_GEM_SOURCE="https://gems.ruby-hyperloop.org" TZ=Europe/Berlin
- DRIVER=beheaded HYPER_DEV_GEM_SOURCE="https://gems.ruby-hyperloop.org" TZ=Europe/Berlin
before_install:
- "phantomjs --version"
- "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
- "phantomjs --version"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "phantomjs --version"
- gem install bundler -v 1.13.7
script:
- bundle exec rake test_app
- bundle exec rake
# These two setup seems to run indefinitely long
# further investigation required.
matrix:
exclude:
- rvm: jruby-19mode
gemfile: gemfiles/opal_0.9_react_13.gemfile
- rvm: jruby-19mode
gemfile: gemfiles/opal_0.9_react_14.gemfile
- rvm: jruby-19mode
gemfile: gemfiles/opal_0.9_react_15.gemfile
include:
- rvm: 2.1
env: PHANTOMJS_VERSION=2.1.1
gemfile: gemfiles/opal_0.10_react_13.gemfile
- rvm: 2.1
env: PHANTOMJS_VERSION=2.1.1
gemfile: gemfiles/opal_0.10_react_14.gemfile
- rvm: 2.1
env: PHANTOMJS_VERSION=2.1.1
gemfile: gemfiles/opal_0.10_react_15.gemfile
- rvm: 2.1
env: PHANTOMJS_VERSION=2.1.1
gemfile: gemfiles/opal_master_react_15.gemfile
allow_failures:
- rvm: 2.1
env: PHANTOMJS_VERSION=2.1.1
gemfile: gemfiles/opal_master_react_15.gemfile
- if [[ "$DRIVER" == "travis" ]]; then wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; fi
- if [[ "$DRIVER" == "travis" ]]; then sudo dpkg -i google-chrome*.deb; fi
- if [[ "$DRIVER" == "beheaded" ]]; then wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz; fi
- if [[ "$DRIVER" == "beheaded" ]]; then tar zxf geckodriver-v0.19.1-linux64.tar.gz; fi
- if [[ "$DRIVER" == "beheaded" ]]; then sudo mv geckodriver /usr/local/bin/; fi
- gem install bundler
before_script:
- cd spec/test_app
- bundle update
- bundle exec rails db:setup
- cd ../../
- if [[ "$DRIVER" == "travis" ]]; then chromedriver-update; fi
- if [[ "$DRIVER" == "travis" ]]; then ls -lR ~/.chromedriver-helper/; fi
- if [[ "$DRIVER" == "travis" ]]; then chromedriver --version; fi
- if [[ "$DRIVER" == "travis" ]]; then google-chrome --version; fi
- if [[ "$DRIVER" == "travis" ]]; then which chromedriver; fi
- if [[ "$DRIVER" == "travis" ]]; then which google-chrome; fi
- if [[ "$DRIVER" == "beheaded" ]]; then firefox --version; fi
- if [[ "$DRIVER" == "beheaded" ]]; then geckodriver --version; fi
- if [[ "$DRIVER" == "beheaded" ]]; then which firefox; fi
- if [[ "$DRIVER" == "beheaded" ]]; then which geckodriver; fi
script: bundle exec rspec
gemfile:
- gemfiles/opal_0_11_react-rails_2_4.gemfile
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ appraise "opal-master-react-15" do
gem 'opal', git: 'https://github.com/opal/opal.git'
gem "opal-sprockets", git: 'https://github.com/opal/opal-sprockets.git'
gem 'opal-rails', '~> 0.9.0'
gem 'react-rails', '~> 1.10.0', require: false
gem 'react-rails', '~> 2.4.0', require: false
end
2 changes: 1 addition & 1 deletion DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ There are also good tutorials on integrating Webpack with existing rails apps a

```ruby
Hyperloop.configuration do |config|
config.prerendering = :off # :on by default
config.prerendering = :on # :off by default
end
```

Expand Down
8 changes: 2 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
source 'https://rubygems.org'
gem "opal-jquery", git: "https://github.com/opal/opal-jquery.git", branch: "master"
gem "opal-rails", git: "https://github.com/opal/opal-rails.git", branch: "master"
gemspec

ruby ">= 1.9.3"

group :development do
gem "appraisal"
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<img src="http://ruby-hyperloop.org/images/githubgitterbadge.png">
</a>

[![Build Status](https://travis-ci.org/ruby-hyperloop/hyper-react.svg?branch=master)](https://travis-ci.org/ruby-hyperloop/hyper-react)
[![Gem Version](https://badge.fury.io/rb/hyper-react.svg)](https://badge.fury.io/rb/hyper-react)

<p align="center">
Expand Down
67 changes: 39 additions & 28 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,33 +1,44 @@
require 'bundler'
Bundler.require
Bundler::GemHelper.install_tasks
# require 'bundler'
# Bundler.require
# Bundler::GemHelper.install_tasks
#
# # Store the BUNDLE_GEMFILE env, since rake or rspec seems to clean it
# # while invoking task.
# ENV['REAL_BUNDLE_GEMFILE'] = ENV['BUNDLE_GEMFILE']
#
# require 'rspec/core/rake_task'
# require 'opal/rspec/rake_task'
#
# RSpec::Core::RakeTask.new('ruby:rspec')
#
# task :test do
# Rake::Task['ruby:rspec'].invoke
# end
#
# require 'generators/reactive_ruby/test_app/test_app_generator'
# desc "Generates a dummy app for testing"
# task :test_app do
# ReactiveRuby::TestAppGenerator.start
# puts "Setting up test app database..."
# system("bundle exec rake db:drop db:create db:migrate > #{File::NULL}")
# end
#
# task :test_prepare do
# system("./dciy_prepare.sh")
# end
#
# task default: [ :test ]

# Store the BUNDLE_GEMFILE env, since rake or rspec seems to clean it
# while invoking task.
ENV['REAL_BUNDLE_GEMFILE'] = ENV['BUNDLE_GEMFILE']
require "bundler/gem_tasks"
require "rspec/core/rake_task"

require 'rspec/core/rake_task'
require 'opal/rspec/rake_task'
RSpec::Core::RakeTask.new(:spec)

RSpec::Core::RakeTask.new('ruby:rspec')

Opal::RSpec::RakeTask.new('opal:rspec') do |s, task|
s.append_path 'spec/vendor'
s.index_path = 'spec/index.html.erb'
task.timeout = 80000 if task
end

task :test do
Rake::Task['ruby:rspec'].invoke
Rake::Task['opal:rspec'].invoke
end

require 'generators/reactive_ruby/test_app/test_app_generator'
desc "Generates a dummy app for testing"
task :test_app do
ReactiveRuby::TestAppGenerator.start
puts "Setting up test app database..."
system("bundle exec rake db:drop db:create db:migrate > #{File::NULL}")
namespace :spec do
task :prepare do
sh %{bundle update}
sh %{cd spec/test_app; bundle update}
end
end

task default: [ :test ]
task :default => :spec
26 changes: 0 additions & 26 deletions config.ru

This file was deleted.

3 changes: 3 additions & 0 deletions dciy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[dciy.commands]
prepare = ["bundle exec rake spec:prepare"]
cibuild = ["bundle exec rake"]
15 changes: 0 additions & 15 deletions gemfiles/opal_0.10_react_13.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.10_react_14.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.10_react_15.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.8_react_13.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.8_react_14.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.8_react_15.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.9_react_13.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.9_react_14.gemfile

This file was deleted.

15 changes: 0 additions & 15 deletions gemfiles/opal_0.9_react_15.gemfile

This file was deleted.

7 changes: 7 additions & 0 deletions gemfiles/opal_0_11_react-rails_2_4.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source "https://rubygems.org"
source ENV['HYPER_DEV_GEM_SOURCE'] if ENV['HYPER_DEV_GEM_SOURCE']

gem "opal-jquery", git: "https://github.com/opal/opal-jquery.git", branch: "master"
gem "opal-rails", git: "https://github.com/opal/opal-rails.git", branch: "master"

gemspec :path => "../"
Loading