meh` changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at https://botbot.me/freenode/opal/
e_dub has joined #opal
meh` has quit [Ping timeout: 255 seconds]
GitHub174 has joined #opal
<GitHub174> [opal] elia pushed 2 new commits to master: http://git.io/L6LSWA
<GitHub174> opal/master c7ade67 Dan Allen: resolve #651 escape forward slash in regexp...
<GitHub174> opal/master 28f4945 Elia Schito: Merge pull request #652 from mojavelinux/issue-651...
GitHub174 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2145 (master - 28f4945 : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2145 (master - 28f4945 : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
Kilo`byte has quit [Ping timeout: 255 seconds]
Kilo`byte has joined #opal
meh` has joined #opal
f-3r has joined #opal
GitHub82 has joined #opal
<GitHub82> [opal] elia pushed 2 new commits to 0-6-stable: http://git.io/3Gfu9Q
<GitHub82> opal/0-6-stable 70eed5e Dan Allen: resolves #651 escape forward slash in regexp...
<GitHub82> opal/0-6-stable 09ed0af Elia Schito: Merge pull request #653 from mojavelinux/issue-651-opal_0_6...
GitHub82 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2147 (0-6-stable - 09ed0af : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
f-3r has quit [Ping timeout: 244 seconds]
f-3r has joined #opal
GitHub86 has joined #opal
<GitHub86> [opal] adambeynon pushed 1 new commit to cache_store: http://git.io/uiiG6Q
<GitHub86> opal/cache_store af213da Adam Beynon: get specs nearly passing again
GitHub86 has left #opal [#opal]
elia has joined #opal
travis-ci has joined #opal
<travis-ci> opal/opal#2148 (cache_store - af213da : Adam Beynon): The build is still failing.
travis-ci has left #opal [#opal]
<elia> adambeynon_, you around?
<adambeynon_> hey elia
<adambeynon_> sup
<elia> 0.6.3
<elia> the release mojvelinux asked for
<elia> was looking at the commits since 0.6.2
<elia> and was thinking about reverting a52e8e8198 (Add a list of subscribers to method_missing stubs)
<elia> adambeynon_, just wanted to know if you had thoughts on it
<elia> maybe something you'd like to see released along 0.6.3
<adambeynon_> elia: revert it because its a 0.7 level feature?
<elia> yes, just to avoid needless bugs
<elia> as small as it seems you never know :)
<adambeynon_> elia: very true ;) yeah, seems good to me
<adambeynon_> I tried getting asciidoctor working under 0.7 a few days ago, and there were some problems with it
<adambeynon_> not sure if a regression on our part
<adambeynon_> or some workaround they were using, which is now fixed
<elia> I hope for the latter :)
GitHub54 has joined #opal
<GitHub54> [opal] elia pushed 1 new commit to 0-6-stable: http://git.io/BGzpxw
<GitHub54> opal/0-6-stable cb96026 Elia Schito: Revert "Add a list of subscribers to method_missing stubs"...
GitHub54 has left #opal [#opal]
<elia> adambeynon_, going to release 0.6.3 now
<adambeynon_>
GitHub37 has joined #opal
<GitHub37> [opal] elia pushed 2 new commits to 0-6-stable: http://git.io/81tyMA
<GitHub37> opal/0-6-stable 15fe545 Elia Schito: Backport .gitignore from master
<GitHub37> opal/0-6-stable 570dfb1 Elia Schito: Bump version to 0.6.3
GitHub37 has left #opal [#opal]
GitHub155 has joined #opal
<GitHub155> [opal] elia tagged v0.6.3 at b494e1f: http://git.io/wRh7gQ
GitHub155 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2149 (0-6-stable - cb96026 : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2150 (0-6-stable - 570dfb1 : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2150 (0-6-stable - 570dfb1 : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
GitHub98 has joined #opal
<GitHub98> [opal] adambeynon pushed 2 new commits to cache_store: http://git.io/y1omVA
<GitHub98> opal/cache_store 2d713f2 Adam Beynon: Fix failing preload spec
<GitHub98> opal/cache_store 2c96846 Adam Beynon: Cleanup dir structure for new asset caching
GitHub98 has left #opal [#opal]
<adambeynon_> elia: currently we register 3 sprockets handlers, 1 for ruby, 1 for erb and 1 for haml
<adambeynon_> well, opal-haml does the haml one
<adambeynon_> im thinking about removing the erb one
<adambeynon_> and just let Builder handle it
<adambeynon_> .opalerb is a really ugly extension as well
<elia> makes sense I think, require_tree also helps with that
<adambeynon_> yeap
<elia> yep
<elia> I'd really like to see it go away
travis-ci has joined #opal
<travis-ci> opal/opal#2151 (v0.6.3 - 570dfb1 : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
<adambeynon_> also, I think I want to get .erb to the Builder handler for Opal::ERB files. So, to get “normal/current” era behaviour we would need some special extension
<adambeynon_> more and more I see people using .erb for templates client side
<adambeynon_> really, server side erb handling is only useful for spec runners and the like now
travis-ci has joined #opal
<travis-ci> opal/opal#2151 (v0.6.3 - 570dfb1 : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
<adambeynon_> just because sprockets uses it, I dont want it to make us have to use ugly extenions for templates
travis-ci has joined #opal
<travis-ci> opal/opal#2152 (cache_store - 2c96846 : Adam Beynon): The build was fixed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2152 (cache_store - 2c96846 : Adam Beynon): The build was fixed.
travis-ci has left #opal [#opal]
<elia> adambeynon_, don't follow, maybe I lack experience with opal erb templates
<elia> *I don't follow
<elia> > more and more I see people using .erb for templates client side
<elia> you mean parsed by opal-parser in the browser?
<adambeynon_> elia: sorry, no. If you want to precompile an ERB template on the server, you can `require` it, but you must use the `.opalerb` extensions because sprockets handles `.erb` templates as a real erb file, i.e. it runs the erb file, then spits out the result as a javascript file
Zackio has quit [Remote host closed the connection]
<adambeynon_> I want Builder to use .erb extensions instead of .opalerb
<elia> adambeynon_, so you mean stealing erbs from sprockets and allow people to share entire app/views dir with opal?
<adambeynon_> elia: yes, exactly. but it wont break anything with sprockets as it will only effect required made inside Opal::Builder
<adambeynon_> requires*
Zackio has joined #opal
<adambeynon_> elia: btw, do you use .rb files or .opal files ?
<elia> .js.rb
<elia> or .rb
<elia> but the js helps when searching for files
<adambeynon_> elia: yeah, same. I tend to have an opal version of every rails controller.. gets very annyoing when using fuzzy searching files :(
<elia> also .js.rb is the speockets convetion
<elia> I'd like to have .opal deprecated along with opalerb :P
<adambeynon_> elia: 0.7 seems a good time then ^_^
<adambeynon_> elia: thinking back, is that rails issue still relevant where .rb files inside assets/ were sometimes being loaded by rails
<elia> adambeynon_, ok, so let's keep it for now as deprecated / arcane extension
<elia> rails issue, not sure, I think I put some hack in the engine to freeze stuff at initialize time and preventing it to add assets to eager loading
<elia> didn't see issues about it in a while I think, so it probably works well enough
CoderPuppy has joined #opal
meh`_ has joined #opal
cpup has quit [Ping timeout: 256 seconds]
meh` has quit [Ping timeout: 258 seconds]
<adambeynon_> elia: so, sprockets 2.x doesnt actually use a store, rails has to specify one for it to use
<adambeynon_> should Builder use an in-memory cache if one isnt specified in sprockets?
<adambeynon_> otherwise we are recompiling every asset on page reload
<adambeynon_> a file cache doesnt seem a good default option as we would be littering the working dir
<elia> adambeynon_, in memory seems good to me, Hash.new?
<adambeynon_> elia: yes, I think that should do the job
<elia> adambeynon_, unrelated, I was thinking about exporting "rake dist" somewhere after successful travis builds
<elia> I'm not sure where to put the "artifacts" tho
<adambeynon_> elia: for use as the “latest” cdn downloads?
<elia> yep
<elia> I started to use autodeploy to heroku after successful travis builds in a project recently and it's awesome
meh`_ has quit [Quit: I don't want to live on this planet anymore.]
meh` has joined #opal
<adambeynon_> elia: yeah, that would be really nice to have
GitHub128 has joined #opal
<GitHub128> [opal] adambeynon pushed 3 new commits to cache_store: http://git.io/t8J6bA
<GitHub128> opal/cache_store cd76262 Adam Beynon: CacheStore relies on sprockets
<GitHub128> opal/cache_store 2edac24 Adam Beynon: Add default memory based cache store
<GitHub128> opal/cache_store 5b6bb80 Adam Beynon: Placeholder asset#fresh? for checking cached status
GitHub128 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2153 (cache_store - 5b6bb80 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
f-3r has quit [Ping timeout: 255 seconds]
GitHub109 has joined #opal
<GitHub109> [opal] adambeynon pushed 2 new commits to cache_store: http://git.io/CBefcQ
<GitHub109> opal/cache_store ac265d5 Adam Beynon: cached_asset() should take a block
<GitHub109> opal/cache_store c96d7d1 Adam Beynon: Use hash semantics for cached assets
GitHub109 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2154 (cache_store - c96d7d1 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
GitHub36 has joined #opal
<GitHub36> [opal] adambeynon pushed 3 new commits to cache_store: http://git.io/2DTsNA
<GitHub36> opal/cache_store cdf8c5b Adam Beynon: Processor#encode
<GitHub36> opal/cache_store e81ec84 Adam Beynon: Also encode mtime
<GitHub36> opal/cache_store 2c17d37 Adam Beynon: Also store source maps in cache
GitHub36 has left #opal [#opal]
GitHub40 has joined #opal
<GitHub40> [opal] adambeynon pushed 1 new commit to cache_store: http://git.io/MY-slA
<GitHub40> opal/cache_store 556c85c Adam Beynon: Remove debug cache line from examples
GitHub40 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2155 (cache_store - 2c17d37 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2156 (cache_store - 556c85c : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2156 (cache_store - 556c85c : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
<adambeynon_> elia: I overlooked something obvious which has put me on a bit of a roadblock
<adambeynon_> I forgot that the Builder is re-created on every page reload
<elia> yep
<adambeynon_> so even though it is caching, the cache is deleted between page loads
<elia> would be enough to pass the cache at builder creation?
<adambeynon_> elia: yeap, but we still need a way to store the cache between builder instances (and of course, there might be more than 1 sprockets instance per process)
<elia> coud even default to def Opal.cache; @cache ||= {}; end
f-3r has joined #opal
<adambeynon_> elia: I cant work out if a shared cache between sprockets instances is a bad thing or not….. otherwise, the Sprockets::Environment object is maintained between pages (its the middleware component), we could be sneaky and shove some `opal_cache` method on there….
<adambeynon_> Opal.cache would otherwise be maintained between the whole lifecycle of the process
<adambeynon_> and never cleanup
<elia> adambeynon_, I don't think it should be bound to sprockets in the builder
<adambeynon_> elia: agreed, the linking could be done inside Opal::Processor, where it creates the builder
<elia> +1 for adding #opal_cache to Sprockets
<elia> indeed
GitHub63 has joined #opal
<GitHub63> [opal] adambeynon pushed 2 new commits to cache_store: http://git.io/LhC6zg
<GitHub63> opal/cache_store 955e335 Adam Beynon: Fix sprockets based cache
<GitHub63> opal/cache_store 1558aed Adam Beynon: Fix opal-repl
GitHub63 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2157 (cache_store - 1558aed : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
<elia> adambeynon_, can I start a WIP PR for caching, just to see the diff?
<adambeynon_> elia: sure thing. still got bits and pieces yet to commit
<elia> no prob, just idle curiosity :P
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
f-3r has quit [Ping timeout: 272 seconds]
f-3r has joined #opal
GitHub143 has joined #opal
<GitHub143> [opal] adambeynon pushed 1 new commit to cache_store: http://git.io/as7a3Q
<GitHub143> opal/cache_store 3ed6718 Adam Beynon: Cover case where sprockets does not have an active cache
GitHub143 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2159 (cache_store - 3ed6718 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
andreanastacio has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
<andreanastacio> hello, I need some help... I'm writting a pixi.js wrapper... but I have problem with Javascript static methods. wrapper: https://gist.github.com/andreanastacio/7ab321daf033c542949d and pixi.js Texture.fromImage method http://www.goodboydigital.com/pixijs/docs/files/src_pixi_textures_Texture.js.html#l227
<adambeynon_> andreanastacio: is it not retuning what you expect?
<andreanastacio> yes
<andreanastacio> adambeynon_ its right the method declaration in my wrapper?
<adambeynon_> andreanastacio: looks to be ok. What gets returned?
<andreanastacio> nothing, just does not works
<andreanastacio> with shawn42 example https://gist.github.com/shawn42/63e6e4a64f4d6da9bbcf
<andreanastacio> works fine
<andreanastacio> adambeynon_
<andreanastacio> the correctly declaration is `PIXI.Texture.fromImage(image)` or Native `PIXI.Texture.fromImage(image)` ?
<andreanastacio> I need to go now in 1 hour I return
andreanastacio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #opal
RoxasShadowRS has joined #opal
andreanastacio has joined #opal
f-3r has quit [Ping timeout: 264 seconds]
meh` has quit [Ping timeout: 240 seconds]
RoxasShadowRS has quit [Quit: Leaving]
GitHub145 has joined #opal
<GitHub145> [opal] elia created fixing-hash-hash (+2 new commits): http://git.io/AAgs5Q
<GitHub145> opal/fixing-hash-hash accce3f Elia Schito: Add Hash#hash
<GitHub145> opal/fixing-hash-hash 0208fc9 Elia Schito: [snapshot]
GitHub145 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2161 (fixing-hash-hash - 0208fc9 : Elia Schito): The build failed.
<travis-ci> Change view : https://github.com/opal/opal/compare/accce3fc325d^...0208fc94f207
travis-ci has left #opal [#opal]