Sheperson

Activity Graph

Page 1 of 2 | Next »

2017-04-11

[19:26:22] Sheperson: has joined #ruby
[19:26:29] Sheperson: has joined #RubyOnRails
[19:57:13] Sheperson: Ping timeout: 255 seconds

2017-04-06

[11:29:21] Sheperson: has joined #RubyOnRails
[11:32:09] Sheperson: has joined #ruby
[14:31:38] Sheperson: Quit: sheperson

2016-06-17

[06:12:38] Sheperson: has joined #ruby
[06:12:39] Sheperson: has joined #RubyOnRails
[08:43:14] Sheperson: Quit: sheperson

2016-06-13

[06:29:28] Sheperson: has joined #RubyOnRails
[06:29:28] Sheperson: has joined #ruby
[08:53:45] Sheperson: Quit: sheperson

2016-06-11

[06:07:02] Sheperson: has joined #RubyOnRails
[06:07:02] Sheperson: has joined #ruby
[06:30:58] Sheperson: Quit: sheperson
[06:33:11] Sheperson: has joined #RubyOnRails
[06:33:11] Sheperson: has joined #ruby
[14:23:21] Sheperson: Quit: sheperson

2016-06-10

[20:27:29] Sheperson: has joined #ruby
[20:27:30] Sheperson: has joined #RubyOnRails
[20:33:52] Sheperson: which one of these two is preferred, why?
[20:33:53] Sheperson: https://gist.github.com/anonymous/290fde5d37eb4ddcdcb5620d240cc073
[20:34:33] Sheperson: do you have a better solution
[20:35:00] Sheperson: I am looking for the style
[20:35:25] Sheperson: ljarvis: it would return the object itslef
[20:36:00] Sheperson: def save; valid? && persist!; end
[20:38:29] Sheperson: norc: I was looking for return early or not
[20:48:41] Sheperson: Quit: sheperson

2016-02-23

[21:02:05] Sheperson: has joined #ruby
[21:02:06] Sheperson: has joined #RubyOnRails
[21:02:54] Sheperson: is it possible (and safe) to use Ruby’s built in keywords as hash keys?
[21:03:44] Sheperson: for example hash = { true => 'something' }
[21:04:21] Sheperson: I can do that in IRB
[21:04:40] Sheperson: and hash[true] returns ‘something'
[21:05:08] Sheperson: and I am confused
[21:05:48] Sheperson: so it is possible eam
[21:06:42] Sheperson: al2o3-cr: http://docs.ruby-lang.org/en/2.2.0/keywords_rdoc.html
[21:06:54] Sheperson: eam: thanks
[21:07:39] Sheperson: and true does implement #hash
[21:08:33] Sheperson: eam: Thanks
[21:08:44] Sheperson: but is it safe?
[21:09:03] Sheperson: and nil too
[21:09:34] Sheperson: since nil implements #hash too
[21:09:45] Sheperson: yes, got your point
[21:26:55] Sheperson: Ping timeout: 244 seconds

2016-02-05

[15:10:42] Sheperson: has joined #RubyOnRails
[15:10:42] Sheperson: has joined #ruby
[15:12:45] Sheperson: Is it possible to specify a locale for all calls to `get` and `post` in RSpec?
[15:13:00] Sheperson: so that get :index would be the same as get :index, locale: ???en???
[15:16:26] Sheperson: chrisarcand: Can you explain a little more?
[16:08:40] Sheperson: Quit: sheperson
[20:54:49] Sheperson: has joined #RubyOnRails
[20:54:49] Sheperson: has joined #ruby
[20:56:00] Sheperson: I am trying to override a method
[20:57:35] Sheperson: I have this: https://gist.github.com/anonymous/3cfecffbeed865a153aa
[20:57:56] Sheperson: I am trying to pass a new argument to super
[20:58:04] Sheperson: but it does not work
[20:59:41] Sheperson: super is called with the old args
[21:00:08] Sheperson: the item that I push into args has no effect on calling super
[21:00:45] Sheperson: I am expecting locale to be set in get
[21:01:07] Sheperson: but it does not
[21:01:07] Sheperson: *to be passed to get
[21:02:05] Sheperson: it is there
[21:02:28] Sheperson: can you please explain more?
[21:02:31] Sheperson: about adding a default locale
[21:05:14] Sheperson: I have a route
[21:05:14] Sheperson: I know how to set a default locale
[21:05:27] Sheperson: which has a locale constraint
[21:05:33] Sheperson: and in RSpec I am trying to reach that route
[21:05:57] Sheperson: with get :index
[21:05:59] Sheperson: but the locale does not get passed to that call
[21:06:12] Sheperson: I need to do it manually
[21:06:36] Sheperson: so, I thought, instead if doing it in many places, I set it globally
[21:11:27] Sheperson: how to pass an extra param into get
[21:12:41] Sheperson: I want to set it for all calls to get automatically
[21:14:51] Sheperson: in application.rb
[21:15:07] Sheperson: config.i18n.default_locale = 'en'
[21:20:16] Sheperson: Ping timeout: 272 seconds

2016-01-28

[18:32:41] Sheperson: has joined #RubyOnRails
[18:32:41] Sheperson: has joined #ruby
[18:34:17] Sheperson: Is it possible to detect the domain of the website in an initializer?
[18:34:48] Sheperson: or maybe the router?
[18:35:32] Sheperson: something like `request.domain` but inside the router or in an initializer
[19:38:43] Sheperson: Quit: sheperson

2015-11-06

[08:18:41] Sheperson: has joined #RubyOnRails
[08:18:41] Sheperson: has joined #ruby
[09:24:24] Sheperson: Does anyone know a good resource for teaching programming with Ruby?
[09:24:43] Sheperson: A friend of mine asked me to help her learn how to program
[09:24:58] Sheperson: and I am looking for a book (or anything) for her
[09:25:07] Sheperson: He knows nothing about programming
[09:43:27] Sheperson: Quit: sheperson

2015-10-19

[18:46:49] Sheperson: has joined #RubyOnRails
[18:46:49] Sheperson: has joined #ruby
[18:47:57] Sheperson: it is possible to inlcude a variable in the array literal %w()?
[18:48:44] Sheperson: for example if name=???john???, then %w(name) would be [???john???]
[18:49:30] Sheperson: nemo_: Thanks
[18:49:35] Sheperson: Works like a charm
[20:43:34] Sheperson: Quit: sheperson

2015-10-11

[08:29:14] Sheperson: has joined #RubyOnRails
[08:29:14] Sheperson: has joined #ruby
[08:49:26] Sheperson: Date, DateTime, Time and String objects respond to to_time
[08:49:41] Sheperson: is there any other class that responds to to_time?
[08:51:14] Sheperson: any other classes?
[09:07:46] Sheperson: Ping timeout: 255 seconds
[11:26:54] Sheperson: has joined #RubyOnRails
[11:26:54] Sheperson: has joined #ruby
[11:45:08] Sheperson: The each_with_object method has been deprecated in Rails and moved to Ruby, am I right?
[11:45:31] Sheperson: not moved, added
[13:12:26] Sheperson: Ping timeout: 250 seconds
[21:54:31] Sheperson: has joined #RubyOnRails
[21:54:31] Sheperson: has joined #ruby
[21:54:55] Sheperson: I am really confused
[21:55:30] Sheperson: I have a class, with attr_accessor :data
[21:55:44] Sheperson: and in the initializer I set the data to hash
[21:55:56] Sheperson: but when I try to read it, it is nil
[22:07:25] Sheperson: Ping timeout: 268 seconds

2015-10-09

[18:21:40] Sheperson: has joined #RubyOnRails
[18:21:40] Sheperson: has joined #ruby
[18:21:49] Sheperson: Client Quit

2015-10-07

[15:47:44] Sheperson: has joined #RubyOnRails
[15:47:44] Sheperson: has joined #ruby
[17:33:26] Sheperson: Quit: sheperson
[18:09:11] Sheperson: has joined #RubyOnRails
[18:09:11] Sheperson: has joined #ruby
[18:10:14] Sheperson: I am writing a class which is a wrapper around an API
[18:10:38] Sheperson: there are other methods calling my wrapper class methods
[18:10:49] Sheperson: In the dev environment everything works fine
[18:11:00] Sheperson: but for the test env
[18:11:09] Sheperson: I don???t want to call the API
[18:11:41] Sheperson: Any idea about how to do this?
[18:19:20] Sheperson: keypusher: Do you know of any examples?
[18:20:16] Sheperson: keypusher: Like a gem or something
[18:22:06] Sheperson: thanks keypusher
[18:29:06] Sheperson: Ping timeout: 265 seconds

2015-10-01

[08:44:56] Sheperson: has joined #RubyOnRails
[08:44:56] Sheperson: has joined #ruby
[08:45:34] Sheperson: I am trying to use bower components in my Rails application
[08:46:36] Sheperson: everything works fine, except that the bower components use some sprites, but Rails doesn???t find those sprites
[08:48:02] Sheperson: universa1: I added vendor/assets/components to my asset load path
[08:48:15] Sheperson: and included the libraries in my js and css
[08:52:46] Sheperson: Ping timeout: 250 seconds
[08:54:10] Sheperson: universa1: Yes, I can change the url(???) in css
[08:54:22] Sheperson: but what about when other team members try to install the bower components?
[08:55:42] Sheperson: thanks universa1
[09:08:35] Sheperson: Quit: sheperson

2015-09-24

[10:42:09] Sheperson: has joined #ruby
[11:18:00] Sheperson: Ping timeout: 246 seconds
[12:47:04] Sheperson: has joined #ruby
[13:49:33] Sheperson: has joined #RubyOnRails
[13:58:37] Sheperson: Quit: sheperson

2015-09-15

[18:35:32] Sheperson: has joined #ruby
[18:36:57] Sheperson: I am trying to write a class which reads all lines of a file and if valid, it will yield each line (after some parsing) using #each
[18:37:18] Sheperson: when the file is valid, I return yield the parsed lines
[18:37:37] Sheperson: I wonder what should I do when the file is not valid?
[18:38:59] Sheperson: baweaver: raise and error?
[18:45:59] Sheperson: @baweaver If I raise an error, how should I write the spec to check for that?
[18:46:16] Sheperson: I know how spec a yield and how to spec an error
[18:46:21] Sheperson: but together, I have no idea!
[18:46:49] Sheperson: but it???s #each and should be passed a block
[20:51:01] Sheperson: Quit: sheperson

2015-09-05

[18:37:06] Sheperson: has joined #RubyOnRails
[18:46:47] Sheperson: What is a good location for custom validators?
[18:46:53] Sheperson: app/validators ?
[19:16:17] Sheperson: Quit: sheperson

2015-08-31

[14:30:43] Sheperson: has joined #RubyOnRails
[14:38:07] Sheperson: Quit: sheperson

2015-08-28

[08:03:22] Sheperson: has joined #ruby
[08:03:22] Sheperson: has joined #RubyOnRails
[08:08:57] Sheperson: I am testing a service I have written
[08:09:13] Sheperson: And I wonder, which one of these is better
[08:13:45] Sheperson: https://gist.github.com/sheperson/e99e3d126de8375ee36b
[08:13:55] Sheperson: rvanlieshout: :-P
[08:16:15] Sheperson: any thoughts?
[08:19:45] Sheperson: but if I change the factory I have to calculate the expected amount again, and change the spec
[08:20:16] Sheperson: isn???t it better to use the more flexible approach?
[08:23:29] Sheperson: rushed: any hints for that one?
[08:23:59] Sheperson: any hints on the last hint
[08:33:43] Sheperson: rushed: any recommendations for reading about working with money?
[08:39:24] Sheperson: not a home work
[08:39:33] Sheperson: a real project
[08:40:29] Sheperson: I am that someone
[08:40:39] Sheperson: but the fact is, it is not very complicated
[08:41:20] Sheperson: all I need to do is calculate the tax based on user???s country (EU)
[08:54:13] Sheperson: atmosx: which book?
[12:00:44] Sheperson: Quit: sheperson

2015-08-19

[05:54:05] Sheperson: has joined #ruby
[05:54:05] Sheperson: has joined #RubyOnRails
[05:55:39] Sheperson: I have 4 levels of indentation in my config/secrets.yml file
[05:56:16] Sheperson: When I try to access them using Rails.application.secrets.something.other
[05:56:30] Sheperson: it says there is no method other defined on hash
[05:57:03] Sheperson: Hi sevenseacat
[05:57:34] Sheperson: If I use Rails.application.secrets.something[???other???] it works
[05:57:54] Sheperson: I know this is a hash and I have to access it this way
[05:58:27] Sheperson: but what confuses me, is that the dot notation works on my team mates machine!
[05:58:35] Sheperson: (well, he said it works)
[06:00:30] Sheperson: rvanlieshout: :-D
[06:02:19] Sheperson: rvanlieshout: It???s a hash, and the error indicates that it is a hash too
[06:04:51] Sheperson: rvanlieshout: I agree
[06:34:58] Sheperson: Quit: sheperson

2015-07-27

[04:48:02] Sheperson: has joined #ruby
[04:48:02] Sheperson: has joined #RubyOnRails
[05:06:32] Sheperson: Quit: sheperson
[12:27:06] Sheperson: has joined #ruby
[12:27:06] Sheperson: has joined #RubyOnRails
[12:27:58] Sheperson: has left #RubyOnRails: ()
[12:27:59] Sheperson: has left #ruby: ()

2015-07-17

[18:56:20] Sheperson: has joined #ruby
[18:56:20] Sheperson: has joined #RubyOnRails
[18:56:36] Sheperson: Hi everyone
[20:07:27] Sheperson: Quit: sheperson