Page 1 of 15 | Next »
[19:49:54] craysiii: I probably can't help you, but you should post the code you are having issues with and any stacktrace / errors you're receiving
[01:07:01] craysiii: Hey all, wondering if there is a gem out there that allows users to define filters through a UI and save them to the database in order to generate custom reports without having to write additional code. Don't know if I asked this already since irccloud was acting weird, apologies if I did.
[19:09:29] craysiii: i'm considering writing a wrapper for a service which provides some SIP endpoints, would like to be able to bundle that in
[19:18:40] craysiii: Really I am just interested in learning Ruby more, creating open source gems, and hopefully getting a Ruby job one day
[03:21:27] craysiii: How does rspec #respond_to determine which methods there are? I've skimmed the source but haven't found anything telling yet. I ask because I have monkey-patched a method onto Numeric and it's not passing a respond_to expectation. https://gist.github.com/craysiii/9b6adaf1ff713af9fd0eabff6fc11c55
[01:53:30] craysiii: I'm a little confused. I monkey-patched #second onto Numeric, but when I try to test with RSpec e.g. expect(1).to respond_to :second, it fails, even though if I call 1.methods I can see it included in the list. Am I misunderstanding how respond_to works?
[19:15:23] craysiii: morning/day/night, has anyone pulled the numeric stuff (#days, #hours, etc) from rails and put it in its own gem?
[19:17:17] craysiii: yeah I just dont feel like pulling in all of activesupport for this one feature, thanks though
[18:21:24] craysiii: I'm attempting to learn RSpec, and having trouble writing a certain test. I'm trying to determine whether a Module has been extended in a Class instance during initialization. Seems like I can't use #ancestors, as it's an instance and not the class itself. Any other ideas?
[18:27:26] craysiii: good questions to ask myself, the previous gem I wrote I kinda hacked a solution together like this, trying to organize this one better, but beforehand trying to force myself to learn RSpec and more intricacies of ruby
[18:43:43] craysiii: its documented on the RubyInstaller website. I agree with adaedra though, run ruby in a VM or on WSL
[21:30:22] craysiii: i'm assuming i would have to do it outside of ruby but i would love to be proven wrong
[21:52:55] craysiii: yeah, im using Faraday, so i have a range of choices, seems Net::HTTP has local_host local_port option but I wanted to avoid Net::HTTP so my search continues
[21:55:02] craysiii: yeah, trying to balance API calls over multiple interfaces to avoid getting banned
[04:16:28] craysiii: I've been publishing my gem to rubygems using 'rake release'. Today I wanted to start signing my commits with gpg, and successfully configured git in order to do so. However, I'm wondering if when I run 'rake release', the tag created will be signed as well.
[04:37:24] craysiii: https://github.com/bundler/bundler/blob/master/lib/bundler/gem_helper.rb#L160 i think i found my answer
[19:49:00] craysiii: any ruby meetups in the sf bay area that you all attend? i've been interested in attending some type of ruby function or event
[22:35:47] craysiii: i'm learning about TomDoc, but a little confused about the syntax to use when a method has named parameters. am i doing it right? i don't feel so. https://gist.github.com/craysiii/e810369dcc59da42c19cb0d3114cd07a
[20:21:52] craysiii: im using faye/websocket and eventmachine in some code. is wrapping EM.run in a Thread bad practice? I have a feeling it is but just want to understand why if so
[21:26:33] craysiii: Havenwood what reasoning do people have for dissuading others from ruby in production?
[08:24:24] craysiii: https://gist.github.com/craysiii/2e73564cb46dee10195fc78f3e4bfb8f So i'm trying to integrate typheous into a gem of mine, and im on windows. when i run "gem install typheous" it installs just fine, but when i add it to my gemspec and run "bundle install" bundler says it could not find a compatible version. what am i missing here?
[18:59:58] craysiii: what difference is there, if any, between doing "gem install <gem>" and placing that gem inside a gemspec and doing "bundle install" ?
[19:04:21] craysiii: okay, so riddle me this: i am trying to add a gem to my gem's dependencies. I can install it via "gem install typhoeus", but adding it to my gemspec and running bundle install results in an error, "Could not find gem 'typheous x64-mingw32'
[19:07:10] craysiii: i hope so, i just didnt want to introduce even more uncertainty between the platforms i use
[19:18:14] craysiii: sorry havenwood rickhull just had some people stop by for a moment, will answer soon :)
[21:02:41] craysiii: wow i'm feeling some shame now... i had it misspelled in the gemspec. could have sworn i checked that over and over again
[21:18:23] craysiii: So i'm trying to integrate typheous into a gem of mine, and im on windows. when i run "gem install typheous" it installs just fine, but when i add it to my gemspec and run "bundle install" bundler says it could not find a compatible version. what am i missing here?
[19:21:40] craysiii: Hey everyone, a few weeks ago I read a blog where the author used some gem or built-in method to show how many times certain methods were being called while evaluating a piece of code, but can't remember what it was or what the article was. Any ideas?
[08:00:58] craysiii: so i've been trying to refactor this api wrapper code since i felt i was not DRY enough, but now it's seems as it i've boxed myself into a corner. i can't seem to access api_key and secret_key inside e.g. Account_API.extended. https://github.com/craysiii/binance/commit/40d281c42e9066302b04978bcca37c787e96b178
[08:02:09] craysiii: I guess I could set them as class instance variables or environment variables but i feel like thats a hack more than a solution or a better way to write it.
[08:30:49] craysiii: https://gist.github.com/craysiii/d325f026b639bbcd3308b3309fe606fd i cant see how min test case is differing from my actual code, but essentially i'm unable to access a class' instance variables from inside a modules self.extended method when extending it during the class instance initialization. or at least thats what im attempting to do in both cases.
[06:48:47] craysiii: hey everyone, looking to see if someone can critique my code and tell me if anything is sticking out before i publish as my first gem https://github.com/craysiii/binance
[17:58:02] craysiii: https://rubygems.org/gems/soundcloud2000/versions/0.1.0 doesn't look like it has one?
[16:53:19] craysiii: hey everyone. trying to implement these data stream endpoints for an api wrapper, but i see that faraday hasn't implemented data streams yet. can anyone recommend an appropriate gem?
[16:40:52] craysiii: hey all, attempting to write my first API wrapper. wondering if I can get some constructive criticism on what i'm doing wrong/what can be done better https://gist.github.com/craysiii/b7886f8ff1b9f15834fc8f09e51bf1bf
[03:51:47] craysiii: Hello everyone, I am having troubles with HTTParty. I am able to gain an access_token from the Twitch API via HTTParty, and I am able to authenticate that access_token via curl, but not via my method which appears to me to be the same request. Maybe there is something I am missing?
[16:11:07] craysiii: Sorry to post again everyone, I am having troubles with HTTParty. I am able to gain an access_token from the Twitch API via HTTParty, and I am able to authenticate that access_token via curl, but not via my method which appears to me to be the same request. Maybe there is something I am missing?
[04:13:20] craysiii: can anyone recommend a gem to facilitate creating a gem for an api? I remember reading about a few but my google-fu escapes me right now.
[04:29:25] craysiii: Yeah, though I remember reading about some gem that was suited exactly for what I want to do, creating an api client gem
[19:38:21] craysiii: So I started reading learn ruby the hard way, but have seen criticisms on the way zed Shaw has written it, and that some parts are not very ruby-like. Are those criticisms valid, and is there a "universally" recommended book out there?
[00:02:15] craysiii: so im trying to create a gem to be used in another project, i created .gemspec, built the gem, and installed it successfully, but i can't seem to require it?
[00:09:03] craysiii: yes, i must give backstory. I actually got it to work before by doing require cinch then require roleplayagent, then I changed the gemspec file to include the dependencies when i do require roleplayagent, now it wont work
[00:15:13] craysiii: also does adding a runtime dependency to a gemspec not fix the issue of having to require gem dependencies before the gem?
[17:50:31] craysiii: hello everyone. it's been quite a while since i've used ruby, but im working on a pet project and can't seem to include a certain class inside my main module. https://gist.github.com/craysiii/9b675ff6c8769d9d6933e88ed9cd9e34 i seemingly have no issue including my first plugin class into the same module, but for some reason "Manager" does not want to come
[17:57:00] craysiii: thanks havenwood, i added the namespace to the Manager class declaration and it;s working now. I was avoiding trying that because my IDE was throwing an error, thought there might have been a different way.
[17:58:10] craysiii: I'm still a little confused though,because i am able to access PingPlugin through "RolePlayAgent::PingPlugin" even though it doesn't have the namespace
[17:59:44] craysiii: do you think it could be because Object.get_const is just ignoring the namespace part of the string im passing it?
[18:07:26] craysiii: Okay... now I must figure out how to get RubyMine to stop complaining about this namespace declared class lol. thanks once again!
[18:12:20] craysiii: ah. if i wrap the classes inside the module again instead of declaring it via :: then all is well :D
[05:34:15] craysiii: i know this isn't #opal but i was wondering if anyone had an open source project integrating opal into rails that I could have a peek at just to see how its really used