<zenspider>
this is (on of many reasons) why rvm is a problem
pr0ton has quit [Quit: pr0ton]
za1b1tsu has quit [Quit: WeeChat 2.1]
ramfjord has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
AJA4350 has quit [Remote host closed the connection]
maiz has joined #ruby
maiz has quit [Max SendQ exceeded]
jhack has joined #ruby
r29v has quit [Quit: r29v]
workmad3 has joined #ruby
<FernandoBasso>
Does numbers.reduce 0, &:+ turn + into a proc?
<havenwood>
FernandoBasso: yes, then passes it as a block
<havenwood>
FernandoBasso: :+.to_proc
<FernandoBasso>
So, every method that takes a block causes that block to be automatically converted to a block?
<havenwood>
FernandoBasso: I don't understand, can you rephrase?
workmad3 has quit [Ping timeout: 260 seconds]
<FernandoBasso>
I meant to say that (I think) that every method that takes a block, actually converts the block to a proc and _then_ execute it. Is that right?
<FernandoBasso>
Like, methods take blocks, but runs procs.
<havenwood>
FernandoBasso: No, it doesn't actually reify the block into a proc if you `yield`.
<havenwood>
FernandoBasso: That's why it's slower to pass an explicit `&block` then `block.call`.
<havenwood>
FernandoBasso: There have been recent performance improvements in 2.5 around passing `&block` through and more coming in 2.6.
carnegie has quit [Remote host closed the connection]
konsolebox has joined #ruby
carnegie has joined #ruby
carnegie has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 268 seconds]
carnegie has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carnegie has quit [Remote host closed the connection]
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
komonsterko has joined #ruby
komonsterko has quit [Max SendQ exceeded]
<RougeR>
hi
cagomez has quit []
<havenwood>
hi
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
workmad3 has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
workmad3 has quit [Ping timeout: 256 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
darkhanb has joined #ruby
tdy has joined #ruby
<RougeR>
ive got a programming tech test
<RougeR>
to implement comparisons of poker hands
<RougeR>
im doing it in ruby, ive expanded on it and am making a full poker game with bets and persistent db and unit tests
<RougeR>
curious what things i should try to look out for
<RougeR>
best practice etc
<RougeR>
im thinking of using <=> for comparison of different cards/hands
<havenwood>
RougeR: that makes sense
rshetty has quit [Ping timeout: 248 seconds]
<havenwood>
RougeR: Can you share the code, or are you still at a point in the tech test that you can't get specific input?
rshetty has joined #ruby
_rshetty_ has joined #ruby
<havenwood>
RougeR: tests sound great. i'm curious what you're thinking for db? are you doing multi-tenancy where you can have lots of games and hands at once at different places? i18n? jk
<havenwood>
RougeR: that sounds fun
<havenwood>
RougeR: I'd be happy to review your code once that's allowed.
<RougeR>
havenwood: im getting into it now
<RougeR>
ive done the first bit im doing
<RougeR>
ive created a deck and dealer class that fully function
<RougeR>
using structs player and table
<RougeR>
it is fun yeah
<RougeR>
havenwood: i thought about multi tenancy
<havenwood>
RougeR: What version of Ruby? Keyword structs would be neat.
<havenwood>
Coupling by name tends to be better than coupling by position.
<RougeR>
i think i might just try to persist the players total chips
<RougeR>
and wins/losses/draws of hands and games
rshetty has quit [Ping timeout: 240 seconds]
<RougeR>
havenwood: i tried the keyword struct thing
<RougeR>
didnt work
<RougeR>
im just using regular structs atm
<havenwood>
RougeR: If you're on Ruby 2.5 it should work!
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
InfinityFye has joined #ruby
ellcs1 has quit [Ping timeout: 264 seconds]
yohji has joined #ruby
_yohji_ has quit [Ping timeout: 260 seconds]
bijan_ has joined #ruby
olblak has quit [Ping timeout: 265 seconds]
clemens3_ has joined #ruby
cadillac_ has joined #ruby
eb0t has quit [Quit: WeeChat 2.0.1]
jottr has joined #ruby
<psynor>
looks like its working, thanks
duckpuppy has joined #ruby
ogres has joined #ruby
eb0t has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
vonfry has quit [Quit: WeeChat 2.1]
ponzii has joined #ruby
<ponzii>
How can import a bunch of functions from a module without classes being involved? All the references I've read assume you're using the module as a mixin for a class but I'm looking for something similar to Python's import.
mupt has joined #ruby
ramfjord has joined #ruby
<konsolebox>
ponzii: methods don't exist without a class. you can't
<ponzii>
konsolebox: In a basic Ruby script I use functions without classes all the time.
<ruby[bot]>
konsolebox: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<konsolebox>
anyway, output is => Object
<ponzii>
konsolebox: I'm not disputing the namespace thing, more the usage.
<ponzii>
konsolebox: Yes, a def is an object but I want to know if I can put a bunch of defs in a module and import them a la Python?
<ponzii>
konsolebox: A def is also an object in Python so what's the problem?
ramfjord has quit [Ping timeout: 260 seconds]
<konsolebox>
ponzii: i think it's theoretically possible to "copy" methods though. not sure if Ruby has a feature for that. but i never heard of anything like it. i only heard stuff like prepending, etc. there's all that something i forgot. i'm looking for it.
synthroid has quit [Remote host closed the connection]
<ponzii>
konsolebox: It's confusing because module != class but seems to behave like a class.
bmurt has joined #ruby
umesh has quit [Quit: Connection closed for inactivity]
<konsolebox>
ponzii: the thing i was looking for was refinements, but it has got nothing to do with copying methods
<konsolebox>
ponzii: a class is a module that instantiates and is not allowed to be included like a module. that's basically what it is
karapetyan has joined #ruby
<konsolebox>
ponzii: it can only be inherited
rshetty has joined #ruby
<ponzii>
konsolebox: But I'm not referring to classes. Quite the opposite.
bmurt has quit [Ping timeout: 268 seconds]
<ponzii>
konsolebox: As with Python I want to define a function/def in a module and just "import" it.
<konsolebox>
ponzii: yeah, modules are basically more basic forms
amar_ has joined #ruby
<ponzii>
konsolebox: Sometimes code just doesn't need classes but Ruby doesn't seem to get this even though it's advertised as a multi-paradigm language.
<konsolebox>
ponzii: i guess you'll have to wait for someone who knows or could compare with python. i don't code python much, but i'm guessing that unlike Ruby, python can have methods that aren't attributed to any class or module.
<konsolebox>
ponzii: well the thing is Ruby wants to be full-blown OOP, that is why everything is class-oriented, including methods
<ponzii>
konsolebox: Object-oriented isn't the same a class-oriented. That's how Python differs from Java.
<konsolebox>
ponzii: i'm not really serious at describing it as class-oriented. i just thought about describing it that way based on the context of our discussion.
<ponzii>
konsolebox: I suspect what I'm after is doable in Ruby just that it isn't discussed much.
<konsolebox>
ponzii: maybe, but people really just use modules
karapetyan has quit [Ping timeout: 248 seconds]
venomenalny has joined #ruby
<cdunklau>
konsolebox: you know java though right?
<cdunklau>
at least ish?
jottr has joined #ruby
<konsolebox>
cdunklau: i can code there at least, but i haven't focused on its package-management thing.
<cdunklau>
ponzii seems to be looking for what in Java parlance would be a "static class"
bmurt has joined #ruby
<cdunklau>
i don't know enough about ruby to know what modules are, but in python a module is a thing (usually a file) that you can `import`, then you get a kinda "namespace object" which contains (usually) all the names you assign to inside the file
Venomen has quit [Ping timeout: 268 seconds]
<cdunklau>
this typically includes constants, free functions, and classes
<cdunklau>
that is, the names refer to those objects
<konsolebox>
cdunklau: if a static class is a class that don't instantiate or cannot be instantiated, i'd say it's comparable to ruby's singleton classes
venomenalny has quit [Ping timeout: 256 seconds]
<ponzii>
cdunklau: Or even more basic like PHP's include.
<cdunklau>
konsolebox: ok
<konsolebox>
cdunklau: ruby simply doesn't have namespaces yet. i heard it's being planned to be added, but i'm not sure if it's true or if it's even possible.
<cdunklau>
konsolebox: so say you have a bunch of pure methods that you want to stick in a namespace that made them easy to use
<cdunklau>
would you use a singleton class?
duckpuppy has quit [Quit: WeeChat 2.1]
<cdunklau>
ponzii: let's not go there :P
<cdunklau>
include is an awful, awful thing
duckpuppy has joined #ruby
<konsolebox>
cdunklau: Ruby's namespaces right now are simply the modules/classes themselves
<cdunklau>
konsolebox: via `require` right?
<konsolebox>
and in those you can assign singleton methods
<ponzii>
cdunklau: :) yes, just saying I don't even need the namespace. Just the option to import.
deathwishdave has joined #ruby
<konsolebox>
cdunklau: require only imports files. namespace structures are declared in files. you can compare it to C++
jottr has quit [Ping timeout: 255 seconds]
<cdunklau>
hmm
olblak has joined #ruby
<cdunklau>
i have much to learn about ruby
<ponzii>
cdunklau: Tried `extend self` in the module but it doesn't work.
<konsolebox>
Ruby doesn't have Python's feature where namespaces reflect the file structures itself... that's why you already have an idea what you get when you use 'import'
<ponzii>
konsolebox: So simply packaging a bunch of functions is off the menu in Ruby unless I'm going to use them as a mixin?
<ponzii>
konsolebox: If so that's a pretty limited notion of a "module".
<cdunklau>
konsolebox: ok so when you `require "math"`, assuming the math thing would be implemented in ruby... what would that file look like?
darkhanb has quit [Ping timeout: 240 seconds]
<cdunklau>
konsolebox: such that you could then presumably use Math.asin(...)
umesh has joined #ruby
<konsolebox>
ponzii: yep i think that's the limitation of it. a module can only be incorporated as a whole.
<cdunklau>
i'm not expressing myself effectively :(
Kris has joined #ruby
amar_ has quit [Ping timeout: 260 seconds]
<konsolebox>
cdunklau: a file can contain anything. its filename doesn't necessarily reflect the classes or modules that would be defined in it. OpenStruct for example is placed in 'ostruct'. now if you're asking about conventions on how filenames should be named, there really aren't any. however, there are big projects that seem to have a good convention on it.
<umesh>
What is this, is this array .... attr_accessor :name, :info, :version, :author, :downloads
<cdunklau>
umesh: that looks like a call to me
<konsolebox>
umesh: that defines "accessor" methods named 'name', 'info', ...
<al2o3-cr>
&ri Module#attr_accessor
<konsolebox>
umesh: in a class it would be similar to defining `def name; return @name; end` and `def name=(val); @name = val; end;`
<al2o3-cr>
no more derpy wut
<cdunklau>
konsolebox: ok, so when you `require "somefile"`, it just dumps the names of whatever classes/modules defined therein into the require-ing file's namespace?
saTchymoto has quit []
<umesh>
✌
claudiuinberlin has quit [Ping timeout: 260 seconds]
BloopMonster has joined #ruby
mike11 has joined #ruby
<ponzii>
konsolebox: That's not really the problem. Example: module Mod1 contains def foo . I require_relative 'mod1' and call Mod1::foo() or Mod1.foo() but I get an error for method foo.
<al2o3-cr>
ponzii: that sould be def self.foo ...
<ponzii>
konsolebox: Same if I just call foo(). I can't seem to access the def in the Mod1 module at all.
bijan_ has quit [Ping timeout: 260 seconds]
<al2o3-cr>
or use a module_function
<ponzii>
al2o3-cr: tried that but: undefined method `foo' for main:Object (NoMethodError)
<ponzii>
al2o3-cr: Sorry, you're correct for Mod1::foo(). That works.
<ponzii>
al2o3-cr: But isn't there a way to call def foo without having to prepend .self and calling it with a fully-qualified namespace?
<konsolebox>
cdunklau: i never really checked the behavior of 'require' when used inside a context of a class. i always use it outside. but i just tried it now and it seems like the other classes stay at the highest namespaces regardless of where they are 'required'.
quobo has quit [Quit: Connection closed for inactivity]
<ponzii>
al2o3-cr: I think this is where Ruby loses out to Python and may explain why Python adoption is generally much higher than for Ruby.
<cdunklau>
konsolebox: well no i meant outside :)
synthroid has joined #ruby
Kris has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kris has joined #ruby
<cdunklau>
ponzii: i think making sweeping generalizations on little evidence is probably not a good tack to take :/
<cdunklau>
also what is this, a contest?
rshetty has quit [Remote host closed the connection]
<ponzii>
cdunklau: Just saying it appears to be a lot easier to do basic procedural programming with Python than Ruby.
<cdunklau>
sure if you know python, and don't really know ruby
<cdunklau>
i don't see how that's even remotely surprising though
<ponzii>
cdunklau: No, I have some Python code which I have to port to Ruby and was trying to use something similar to import.
<cdunklau>
ponzii: it's not ruby's fault you're trying to do something silly :)
<ponzii>
cdunklau: Silly as in what exactly?
<cdunklau>
trying to use language A's idioms to write code using language B
<cdunklau>
(full disclosure, i'm a giant python fan, it's my main language)
jrafanie has joined #ruby
<ponzii>
cdunklau: Not really idiomatic to Python. Most languages have an feature similar to Python's import.
<al2o3-cr>
ponzii: ruby doesn't ;)
<ponzii>
al2o3-cr: I was aware that Ruby is different but had to discover the details for myself.
<konsolebox>
cdunklau: ok i guess what you mean. but saying that it dumps to the require-ing file's namespace is a bit misleading. it simply means that the required source is loaded. however this behavior where 'require' is called inside class, but the classes within the required file not being placed under class's namespace is rather surprising to me.
<cdunklau>
i don't think any of those have an import-like thing
<ponzii>
al2o3-cr: An old bespoke internal application written in Python 2 which the owner wants adpated for Rails.
<al2o3-cr>
ah, k.
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
<cdunklau>
i take JS back, apparently ES2015 modules are supported across a wide range of implementations by now
Inline has joined #ruby
suukim has quit [Quit: Konversation terminated!]
<cdunklau>
konsolebox: ugh i feel bad that you've put so much effort into this, and i can't really grok it
<cdunklau>
but thanks for trying :) it'll probably click if i wind up getting interviewed for a job i applied to that probably will want me to show ruby knowledge
<konsolebox>
cdunklau: yeah, i can't really make an accurate explanation myself since i don't really know how 'require' behaves. by my impression of it just similar to C's include.
alex`` has joined #ruby
rshetty has joined #ruby
<cdunklau>
so i'll have a good reason to dedicate serious time to dig into ruby
<Burgestrand>
Might be helpful to think of it more as 'run' rather than 'require'
duckpuppy has quit [Quit: WeeChat 2.1]
duckpuppy has joined #ruby
<cdunklau>
if you had two classes with the same name in different files, and you 'require'-ed both files, can you differentiate between them?
<cdunklau>
or does one shadow the other
Kris has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cdunklau>
Burgestrand: does 'require' really run it every time?
<al2o3-cr>
cdunklau: only once
<al2o3-cr>
load does that.
<Burgestrand>
cdunklau Ah, no, it checks $LOADED_FEATURES first, and if the file's already in that list then it won't run it
<cdunklau>
gotcha ok
<cdunklau>
so that's python-ish
Kris has joined #ruby
<konsolebox>
the one that loads it everytime is 'load'
<cdunklau>
i must admit, i am quite surprised ruby doesn't have a "module" system like python or now JS or whatever
ramfjord has joined #ruby
<ccooke>
Ruby does. It's just different.
<cdunklau>
ah ok
Kris has quit [Read error: Connection reset by peer]
<ccooke>
and in particular, ruby differentiates between *loading code* and *composing functionality(
aufi_ has joined #ruby
<cdunklau>
ccooke: well wait do you mean "modules are different" or "the thing other languages call modules exists in ruby but is just different"
<ccooke>
The core idiom is that you write a file that defines a Module (or Class), and then you reference that Module or Class inside another
<ccooke>
cdunklau: "module" is an ambiguous term across all languages; many languages have something like what python calls a module, but nothing else has *exactly the same thing*, and many of them are not called 'module'
aufi has quit [Read error: Connection reset by peer]
<Burgestrand>
Two different packages (gems) that you want to use, and both do `class Money` (or User, or Model, or Base)? Yup, that's a problem that we live with.
<cdunklau>
ccooke: sure sure i get that
<cdunklau>
i'm trying to differentiate :)
<cdunklau>
Burgestrand: ...bleh
<cdunklau>
that's disappointing
<Burgestrand>
cdunklau It's ugly for sure, but in practice it's usually not that big of a problem that you would think
ramfjord has quit [Ping timeout: 248 seconds]
<Burgestrand>
cdunklau Standard practice for packages is that you have one module that you nest everything under, so you'd have PackageA::Money and PackageB::Money
<Burgestrand>
cdunklau I use package here, but in Ruby world we'd call them gems
aufi_ has quit [Ping timeout: 265 seconds]
<Burgestrand>
So no "true" namespaces, we kind of fake them
psynor has left #ruby [#ruby]
<cdunklau>
Burgestrand: oh! so you can nest them
<ccooke>
cdunklau: yes
<cdunklau>
ok then yeah it's not a huge deal
<Burgestrand>
cdunklau Indeed :)
<cdunklau>
phew
<ccooke>
cdunklau: nested modules are a big thing in ruby
<konsolebox>
ponzii: when it comes to procedural coding in Ruby, i'm actually not a fan of including modules myself. i prefer just calling the singleton method from where it is defined. e.g. have `Utils.my_method` than have `extend Utils ... my_method`
anisha_ has quit [Quit: This computer has gone to sleep]
<cdunklau>
so this winds up being like python, where the namespace is "flat" in the sense you can't have nested deps
<cdunklau>
c.f. node/npm modules
<Burgestrand>
cdunklau a little bit, but an important difference is that you can't really do `rails = require "rails"` and expect that to do what it looks like
<cdunklau>
Burgestrand: oh no i don't mean that
<Burgestrand>
good :)
<ccooke>
cdunklau: the key thing to recall is that modules are global, so if a file you require requires a module, then it's in your namespace. However, because they are generally well nested, you can access them unambiguously
<cdunklau>
Burgestrand: node/npm has a concept of nested deps
<Burgestrand>
cdunklau Aha, I see what you mean
<cdunklau>
Burgestrand: so a "package" can have its own deps, in conflicting versions, and it's cool because it's all segregated
<ccooke>
but you don't have the python example of selecting only the objects that you want in your current namespace
<Burgestrand>
cdunklau ruby packages are typically flat, there's dependency resolution in a tool (bundler) that attempts to install compatible versions with same dependencies
<cdunklau>
ccooke: ok i think i'm beginning to understand
<cdunklau>
Burgestrand: right ok. python's like that too
t0xik has quit [Quit: Connection closed for inactivity]
<ccooke>
cdunklau: the equivalent in Ruby is being able to compose sets of methods into a module or class, so you can select what is available from the context of that module
Venomen has joined #ruby
reber has joined #ruby
<ccooke>
cdunklau: Oh: In Ruby, "Module" is an object that contains methods and can be included within other Modules, but cannot be instantiated into an instance. Class is a descendant of Module that *can* be instantiated into an instance object
<ccooke>
cdunklau: So "Module" is a nice way to collect functional methods that suit a purpose. It's used for things like interfaces and common functionality.
shinnya has joined #ruby
<ccooke>
cdunklau: A common idiom, for instance, is the Enumerable module, which provides a huge number of instance methods useful to enumerable objects - things like map, mfind, entries, count, reduce etc.
<ccooke>
the Enumerable object can be included into any class that defines an (IIRC) each method - so you'll find it included into a number of the base classes
<konsolebox>
prepend is good if you want to add features to library classes or modules
Burgestrand has quit [Quit: Closing time!]
<ccooke>
and for debugging
<konsolebox>
+1
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore>
what would be a reason to use Marshal over JSON in a session table data column?
<gizmore>
i am thinking of using JSON because it might be faster.... maybe i should benchmark and choose the faster impl?
<gizmore>
input is trusted, so marshal would offer better features
infernix has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
<ccooke>
it depends what you're storing
apparition47 has quit [Quit: Bye]
<ccooke>
if it's only hashes, arrays, strings, numbers etc - base objects that are implemented by default in json - then it makes little difference
<havenwood>
gizmore: JSON tends to be slower. Consider MessagePack.
biberu has quit []
<gizmore>
havenwood: thanks. will take a look
maufart__ has quit [Ping timeout: 240 seconds]
croberts has joined #ruby
<gizmore>
havenwood: i will add msgback support and probably use it for session data. for more complex serialization i will use Marshall. JSON is already available as datatype in my framework :)
<havenwood>
croberts: `vm_network[:name]` instead of `vm_network.name`
<gizmore>
croberts: the Hash class does not have a name method... you probably need something like nics.first.name
<gizmore>
>> {a:1}.first
<gizmore>
>> {a:1}.first
<gizmore>
<< {a:1}.first
<ruby[bot]>
gizmore: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<croberts>
ah
<croberts>
ok ty
<croberts>
still learning
<gizmore>
first is a horrible idea though..... just compare against the name somehow
<croberts>
awesome community
<croberts>
that makes sense
<croberts>
for validation
infernix has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
ellcs1 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Asher has joined #ruby
kristofferR has joined #ruby
hph^ has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
fluxAeon_ has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Quit: WeeChat 2.1]
orbyt_ has joined #ruby
duckpuppy has joined #ruby
ellcs1 has left #ruby [#ruby]
ellcs1 has joined #ruby
rshetty has joined #ruby
aupadhye has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
mupt has quit [Ping timeout: 260 seconds]
r29v has joined #ruby
ellcs1 has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
nogic has joined #ruby
pastorinni has joined #ruby
orbyt_ has joined #ruby
fluxAeon_ has joined #ruby
Rapture has joined #ruby
JamJam_kid has joined #ruby
tdy has joined #ruby
mupt has joined #ruby
duckpuppy has quit [Quit: WeeChat 2.1]
duckpuppy has joined #ruby
duckpuppy has quit [Client Quit]
starseed0000 has joined #ruby
jabowa has joined #ruby
hph^ has quit [Ping timeout: 256 seconds]
<jabowa>
Hey quick question - Sometimes when I make a small change bump the version for a gem and I update that gem to the correct version in the required project Gemfile. It logs `could not find gem`. If I do gem uninstall `custom_gem`, then gem install `custom_gem`, it installs the latest version. Then, I can run bundle update and it recognizes the latest version and everything works. Is there a way to fix this?
<jabowa>
The latest version of the gem is listed correctly in rubygems.org also
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 240 seconds]
caleBOT__ has joined #ruby
caleBO___ has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
bmurt has joined #ruby
anjen has joined #ruby
caleBOT_ has quit [Ping timeout: 268 seconds]
wontruefree has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Read error: Connection reset by peer]
<cthulchu_>
we can do something like this, right? @api_wrapper.create_profile(get_staging_profile_body(index: index, phone_number: phone_number), auth_token: auth_token)
synthroid has quit [Remote host closed the connection]
lxsameer has joined #ruby
clemens3_ has quit [Ping timeout: 240 seconds]
Venomen has joined #ruby
<konsolebox>
jabowa: you checked the syntax in Gemfile??
<konsolebox>
cthulchu_: maybe you should tell what framework that is
<cthulchu_>
who cares
<cthulchu_>
it works fine
<cthulchu_>
it's just Ruby has a special way to handle parenthesis
<cthulchu_>
I was suspicious of a method call in a different method's args
<cthulchu_>
looks like it works
lxsameer has quit [Ping timeout: 260 seconds]
Venomen has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 260 seconds]
starseed0000 has quit [Ping timeout: 260 seconds]
<jabowa>
konsolebox: Yes, the syntax is correct. This happens randomly. So it will find for 3 versions then say could not find gem
hph^ has joined #ruby
<konsolebox>
cthulchu_: i see
p4p0l0 has joined #ruby
yohji has quit [Remote host closed the connection]
synthroid has joined #ruby
lxsameer has joined #ruby
wontruefree has quit [Quit: bye]
starseed0000 has joined #ruby
<konsolebox>
jabowa: maybe it's a querying issue, or maybe it's a bug in bundler. you can share to us the line in the Gemfile
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
<konsolebox>
jabowa: i get 'Could not find gem 'jekyll-theme-org-default' in any of the gem sources listed'. searching the gem in rubygems.org also doesn't show result
<konsolebox>
jabowa: perhaps you have a custom source?
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sysvalve has quit [Quit: Leaving]
lxsameer has quit [Ping timeout: 260 seconds]
RougeR has quit [Ping timeout: 276 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Venomen has joined #ruby
lxsameer has joined #ruby
apeiros_ has joined #ruby
Venomen has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
pr0ton has joined #ruby
Venomen has joined #ruby
lxsameer has joined #ruby
mupt has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
BloopMonster has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
mupt has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
pr0ton has quit [Quit: pr0ton]
bmurt has joined #ruby
ciscam has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 260 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
mupt has joined #ruby
lytol has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
beefjoe has joined #ruby
rshetty has joined #ruby
jabowa has quit [Ping timeout: 260 seconds]
p4p0l0 has joined #ruby
wontruefree has joined #ruby
lxsameer has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
mupt has quit [Ping timeout: 264 seconds]
p4p0l0 has joined #ruby
desperek has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
RougeR has joined #ruby
sameerynho has joined #ruby
lxsameer has joined #ruby
memo1 has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
nowhere_man has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
wontruefree has quit [Quit: bye]
alem0lars has joined #ruby
jinie has quit [Remote host closed the connection]
wontruefree has joined #ruby
GodFather has joined #ruby
alex``` has joined #ruby
sauvin has quit [Remote host closed the connection]
alem0lars_ has joined #ruby
lxsameer has joined #ruby
d^sh_ has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alex`` has quit [Ping timeout: 260 seconds]
alem0lars has quit [Ping timeout: 265 seconds]
clemens3_ has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
Venomen has quit [Remote host closed the connection]
Venomen has joined #ruby
lxsameer has joined #ruby
Venomen has quit [Read error: Connection reset by peer]
Venomen has joined #ruby
Venomen has joined #ruby
Venomen has quit [Changing host]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
David_H_Smith has joined #ruby
jottr has joined #ruby
orbyt_ has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
tuxillo has joined #ruby
<tuxillo>
hi again
<tuxillo>
when doing a a require I get a missingspecversionerror
<tuxillo>
from irb. is there a more verbose error?
<tuxillo>
I mean a way of increasing verbosity for this kind of errors
jinie has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
rshetty has quit [Ping timeout: 276 seconds]
quobo has joined #ruby
<konsolebox>
tuxillo: i find that likely coming from the one you're require-ing
<ruby[bot]>
tuxillo: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<tuxillo>
konsolebox: most likely hehe. the thing is that I think the i18n runtime depend specification is incorrect
<tuxillo>
but I can't see that in that message, so I wondered if it there was a more verbose way
Venomen has quit [Read error: Connection reset by peer]
Venomen has joined #ruby
lxsameer has joined #ruby
alem0lars_ has quit [Quit: Leaving]
alem0lars has joined #ruby
cagomez has joined #ruby
mupt has joined #ruby
Venomen has quit [Ping timeout: 260 seconds]
<konsolebox>
tuxillo: you can try getting the exception's message: begin; require 'active_support'; rescue => e; puts e.message; end
lxsameer has quit [Ping timeout: 268 seconds]
<konsolebox>
tuxillo: sometimes all you can really do is trace the cause of error
<konsolebox>
source by source
<tuxillo>
konsolebox: i get the same error that's printed with just the require
wontruefree has quit [Quit: bye]
<tuxillo>
how do I trace it?
<konsolebox>
i'd manually read the codes. some guys probably know a better way of debugging it, but i don't do such things often
<tuxillo>
ok thanks
rshetty has quit [Ping timeout: 268 seconds]
claudiuinberlin has joined #ruby
<tuxillo>
konsolebox: well I know exactly where the error is
wontruefree has joined #ruby
<tuxillo>
in the gemspec (activesupport) it's specified :
<konsolebox>
Sunny: like what symbol? perhaps it has got something to do with encoding, or maybe crlf. try using binread and binwrite if it makes a difference.
dviola has joined #ruby
bijan_ has quit [Client Quit]
jottr has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
beefjoe has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sunny>
It outputs as intended but appends newline and boxed ? symbol (wrong one ))