These are chat archives for opal/opal

1st
Jun 2015
Jared White
@jaredcwhite
Jun 01 2015 02:51
Bravo @meh! :clap:
Adam Beynon
@adambeynon
Jun 01 2015 06:31
haha, true true.
Christian Käser
@dfyx
Jun 01 2015 08:39

@meh According to Wikipedia:

Docs may mean:

  • a common name for Dr. Martens footwear, usually boots
  • a plural of some of the meanings of Doc, usually documents or doctors
  • Google Docs online document editing suite from Google
  • Docs.com online document editing suite from Microsoft

And some more I have omitted...

</sarcasm>
Elia Schito
@elia
Jun 01 2015 22:34
@meh @adambeynon @vais I'm going to branch out a 0-8-stable branch and release 0.8.0.rc1
any objections?
meh.
@meh
Jun 01 2015 22:34
go for it
Elia Schito
@elia
Jun 01 2015 22:34
I'm sick of @vais fixing tons of stuff ;)
Elia Schito
@elia
Jun 01 2015 22:45
@meh how many days before releasing the final version? a week? until friday?
meh.
@meh
Jun 01 2015 22:45
let's wait a week
Mitch VanDuyn
@catmando
Jun 01 2015 23:18
has anybody tried using the state-machine gem with Opal? I am getting a wrong-constant name error just trying a simple statemachine...
Mitch VanDuyn
@catmando
Jun 01 2015 23:33
I guess I need to require it, but I can't... is there anyway just to be able to use a standard ruby gem in Opal without doing anything explicit inside the gem?
Elia Schito
@elia
Jun 01 2015 23:36
@catmando Opal.use_gem
Mitch VanDuyn
@catmando
Jun 01 2015 23:37
okay... sorry to be dense ... where?
Elia Schito
@elia
Jun 01 2015 23:37
sorry, from MRI
a rails initializer for example
Mitch VanDuyn
@catmando
Jun 01 2015 23:41
/Users/mitch/railsdev/reactor/config/application.rb:5:in <top (required)>': undefined methoduse_gem' for Opal:Module (NoMethodError)
in application.rb
Elia Schito
@elia
Jun 01 2015 23:41
@catmando which opal version?
Mitch VanDuyn
@catmando
Jun 01 2015 23:43
0.7.1
Elia Schito
@elia
Jun 01 2015 23:44
have you required opal?
I see it defined in "opal/paths"
which is requireed when you require 'opal'
Mitch VanDuyn
@catmando
Jun 01 2015 23:46
/Users/mitch/.rvm/gems/ruby-1.9.3-p194/bundler/gems/opal-3682db6f2b23/lib/opal/builder.rb:45:in `rescue in build_str': A file required by "components/friends/state_machine" wasn't found. (Opal::Builder::MissingRequire)
A file required by "state_machine" wasn't found.
A file required by "state_machine/core" wasn't found.
A file required by "state_machine/graph" wasn't found.
can't find file: "rubygems" in ["/Users/mitch/railsdev/reactor/tmp/react-rails", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/bundler/gems/opal-3682db6f2b23/opal", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/bundler/gems/opal-3682db6f2b23/stdlib", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/bundler/gems/opal-3682db6f2b23/lib", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/state_machine-1.2.0/lib", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/bundler/gems/opal-jquery-38e608103054/lib", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/opal-activesupport-0.1.0/opal", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/opal-rspec-0.4.2/opal", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/opal-rspec-0.4.2/vendor_lib", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/opal-browser-0.1.0.beta1/opal", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/paggio-0.2.4/lib", "/Users/mitch/railsdev/react.rb/lib", "/Users/mitch/railsdev/react.rb/vendor", "/Users/mitch/railsdev/reactor/app/assets/images", "/Users/mitch/railsdev/reactor/app/assets/javascripts", "/Users/mitch/railsdev/reactor/app/assets/stylesheets", "/Users/mitch/railsdev/reactor/vendor/assets/javascripts", "/Users/mitch/railsdev/reactor/vendor/assets/stylesheets", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/react-rails-1.0.0/lib/assets/javascripts", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/jquery-rails-3.1.2/vendor/assets/javascripts", "/Users/mitch/.rvm/gems/ruby-1.9.3-p194/gems/opal-rails-0.7.0/lib/assets/javascripts"]
  (in /Users/mitch/railsdev/reactor/app/assets/javascripts/components/friends/state_machine.rb)
    from /Users/mitch/.rvm/gems/ruby-1.9.3-p194/bundler/gems/opal-3682db6f2b23/lib/opal/builder.rb:38:in `build_str'
im getting that error if I require 'state_machine'
Mitch VanDuyn
@catmando
Jun 01 2015 23:51
but if I don't require it, then it doesn't seem to be loading it at all
Elia Schito
@elia
Jun 01 2015 23:56
seems you're on the right path
@catmando state_machine is trying to require rubygems
Mitch VanDuyn
@catmando
Jun 01 2015 23:56
yeah that is what it looks like :-)
Elia Schito
@elia
Jun 01 2015 23:56
add an empty rubygems.rb to your assets and it should jump to the next error ;)
gotta go
Mitch VanDuyn
@catmando
Jun 01 2015 23:59
thanks... seems like state-machine is trying to use rubygems to dynamically do something related to its graphing function, which of course doesn't make any sense in the browser... I think I will have to fork a branch :-(