gittr 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gittr do
4
+ it "should return an enum when no block" do
5
+ expect(Gittr.configure).to be_instance_of(Enumerator)
6
+ end
7
+
8
+ it "should set token with block" do
9
+ Gittr.configure{ |config| config.token = 'asdf' }
10
+ expect(Gittr.token).to eq('asdf')
11
+ end
12
+ end
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gittr::HashConstructor do
4
+ # Are there better ways of testing modules?
5
+ class Klass
6
+ include Gittr::HashConstructor
7
+ attr_accessor :foo_bar, :baz
8
+ end
9
+
10
+ it 'sets variables from hash' do
11
+ vars = {fooBar: 'asdf', Baz: 'fdsa'}
12
+ klass = Klass.new(vars)
13
+
14
+ expect(klass.foo_bar).to eq('asdf')
15
+ expect(klass.baz).to eq('fdsa')
16
+ end
17
+
18
+ it 'turns string to snake case' do
19
+ expect(Klass.new.to_snake_case('FooBar')).to eq('foo_bar')
20
+ expect(Klass.new.to_snake_case('foo_bar')).to eq('foo_bar')
21
+ expect(Klass.new.to_snake_case('fooBar')).to eq('foo_bar')
22
+ end
23
+
24
+ it 'creates and sets a non-existent instance variable' do
25
+ vars = {cat: 'cat', "dog" => 'dog'}
26
+ klass = Klass.new(vars)
27
+
28
+ expect(klass.cat).to eq('cat')
29
+ expect(klass.dog).to eq('dog')
30
+ end
31
+ end
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gittr::Message do
4
+ subject(:message){Gittr::Message.new({"id" => "54bd1b4a573df0f92345a00f","text" => "This is a sample message","html" => "This is a sample message","sent" => "2015-01-19T14 => 57 => 14.492Z","editedAt" => nil,"fromUser" => {"id" => "54b7df5bdb8155e6700eb552","username" => "zoso10","displayName" => "Tyler Ewing","url" => "/zoso10","avatarUrlSmall" => "https => //avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium" => "https => //avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread" => false,"readBy" => 0,"urls" => [],"mentions" => [],"issues" => [],"meta" => {},"v" => 1})}
5
+
6
+ it 'should instantiate from hash' do
7
+ expect(message.text).to eq('This is a sample message')
8
+ expect(message.unread).to eq(false)
9
+ expect(message.from_user.username).to eq('zoso10')
10
+ expect(message.from_user.display_name).to eq('Tyler Ewing')
11
+ end
12
+ end
13
+
14
+
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gittr::Organization do
4
+ subject(:organization){Gittr::Organization.new({"id" => 13542,"name" => "secondrotation","avatar_url" => "https://avatars.githubusercontent.com/u/13542?v=3","room" => nil,"premium" => false})}
5
+
6
+ it 'should instantiate from hash' do
7
+ expect(organization).to_not be_nil
8
+ expect(organization.name).to eq('secondrotation')
9
+ expect(organization.premium).to eq(false)
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gittr::Repository do
4
+
5
+ subject(:repository){Gittr::Repository.new({"id"=>29428880, "name"=>"zoso10/Gittr", "description"=>"Gitter REST API wrapper", "uri"=>"zoso10/Gittr", "private"=>false, "room"=> {"id"=>"54bc01e3db8155e6700ecbca", "name"=>"zoso10/Gittr", "topic"=>"Gitter REST API wrapper", "uri"=>"zoso10/Gittr", "oneToOne"=>false, "userCount"=>1, "unreadItems"=>0, "mentions"=>0, "lurk"=>false, "url"=>"/zoso10/Gittr", "githubType"=>"REPO", "security"=>"PUBLIC", "premium"=>false, "noindex"=>false}, "exists"=>true, "avatar_url"=>"https://avatars.githubusercontent.com/u/1211946?v=3"})}
6
+ it 'should instantiate from hash' do
7
+ expect(repository).to_not be_nil
8
+ expect(repository.name).to eq('zoso10/Gittr')
9
+ expect(repository.uri).to eq('zoso10/Gittr')
10
+ expect(repository.private).to eq(false)
11
+ expect(repository.room.name).to eq('zoso10/Gittr')
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gittr::Room do
4
+ subject(:room){Gittr::Room.new({"id" => "54b7e136db8155e6700eb569","name" => "zoso10/skriv","topic" => "Advanced Note-Taking Application","uri" => "zoso10/skriv","oneToOne" => false,"userCount" => 2,"unreadItems" => 0,"mentions" => 0,"lastAccessTime" => "2015-01-18T15 => 14 => 53.598Z","lurk" => false,"url" => "/zoso10/skriv","githubType" => "REPO","security" => "PUBLIC","premium" => false,"noindex" => false,"v" => 1})}
5
+
6
+ it 'should instantiate from hash' do
7
+ expect(room.name).to eq('zoso10/skriv')
8
+ expect(room.uri).to eq('zoso10/skriv')
9
+ expect(room.user_count).to eq(2)
10
+ end
11
+ end
@@ -0,0 +1,21 @@
1
+ require 'codeclimate-test-reporter'
2
+ CodeClimate::TestReporter.start
3
+
4
+ require 'bundler/setup'
5
+
6
+ Bundler.setup
7
+
8
+ require 'vcr'
9
+ require 'pry'
10
+ require 'pry-byebug'
11
+ require 'gittr'
12
+
13
+ RSpec.configure do |config|
14
+ config.order = 'random'
15
+ end
16
+
17
+ VCR.configure do |config|
18
+ config.cassette_library_dir = 'spec/vcr'
19
+ config.hook_into :webmock
20
+ config.ignore_hosts 'codeclimate.com'
21
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gittr::User do
4
+ subject(:user){ Gittr::User.new({"id" => "54b7df5bdb8155e6700eb552","username" => "zoso10","displayName" => "Tyler Ewing","url" => "/zoso10","avatarUrlSmall" => "https => //avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium" => "https => //avatars.githubusercontent.com/u/1211946?v=3&s=128","role" => "admin"}) }
5
+
6
+ it 'should instantiate from hash' do
7
+ expect(user.username).to eq('zoso10')
8
+ expect(user.display_name).to eq('Tyler Ewing')
9
+ expect(user.url).to eq('/zoso10')
10
+ expect(user.role).to eq('admin')
11
+ end
12
+ end
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.gitter.im/v1/rooms?uri=zoso10/gittr
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - Bearer redacted
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Expose-Headers:
22
+ - X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
23
+ Cache-Control:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Sun, 18 Jan 2015 18:56:35 GMT
29
+ Server:
30
+ - nginx
31
+ Vary:
32
+ - Origin
33
+ X-Ratelimit-Limit:
34
+ - '100'
35
+ X-Ratelimit-Remaining:
36
+ - '99'
37
+ X-Ratelimit-Reset:
38
+ - '1421607455153'
39
+ X-Server-Id:
40
+ - app-003
41
+ X-Upstream:
42
+ - 127.0.0.1:5025
43
+ Content-Length:
44
+ - '554'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"id":"54bc01e3db8155e6700ecbca","name":"zoso10/Gittr","topic":"Gitter
50
+ REST API wrapper","uri":"zoso10/Gittr","oneToOne":false,"userCount":1,"users":[{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
51
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128","role":"admin"}],"unreadItems":0,"mentions":0,"lurk":false,"url":"/zoso10/Gittr","githubType":"REPO","security":"PUBLIC","premium":false,"noindex":false}'
52
+ http_version:
53
+ recorded_at: Sun, 18 Jan 2015 18:56:35 GMT
54
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,292 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.gitter.im/v1/rooms/54b7e136db8155e6700eb569/chatMessages
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - Bearer redacted
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Access-Control-Expose-Headers:
22
+ - X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Date:
26
+ - Mon, 19 Jan 2015 11:59:26 GMT
27
+ Etag:
28
+ - W/"JcUQ/JkncJa96HHGFtRbbA=="
29
+ Server:
30
+ - nginx
31
+ Vary:
32
+ - Origin
33
+ X-Ratelimit-Limit:
34
+ - '100'
35
+ X-Ratelimit-Remaining:
36
+ - '99'
37
+ X-Ratelimit-Reset:
38
+ - '1421668826819'
39
+ X-Server-Id:
40
+ - app-003
41
+ X-Upstream:
42
+ - 127.0.0.1:5025
43
+ Content-Length:
44
+ - '30550'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '[{"id":"54b813d8573df0f923452810","text":"thats pretty cool","html":"thats
50
+ pretty cool","sent":"2015-01-15T19:24:08.324Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
51
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b813f6573df0f923452819","text":"geesh,
52
+ no wonder i felt so jaded after work yesterday. i worked 9 hours and 52 minutes.","html":"geesh,
53
+ no wonder i felt so jaded after work yesterday. i worked 9 hours and 52 minutes.","sent":"2015-01-15T19:24:38.639Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
54
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b81470573df0f923452834","text":"oh
55
+ man! why you working so long?","html":"oh man! why you working so long?","sent":"2015-01-15T19:26:40.723Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
56
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b814df723506dd0c0ed7c3","text":"i
57
+ don''t remember. i think i was reading some stuff that i wanted to finish","html":"i
58
+ don't remember. i think i was reading some stuff that i wanted to finish","sent":"2015-01-15T19:28:31.977Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
59
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b816d1723506dd0c0ed828","text":"ah
60
+ ok","html":"ah ok","sent":"2015-01-15T19:36:49.426Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
61
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b81851573df0f923452914","text":"bah!!
62
+ Finally found an issue I''ve been hunting for, for a while","html":"bah!!
63
+ Finally found an issue I've been hunting for, for a while","sent":"2015-01-15T19:43:13.820Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
64
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8185d723506dd0c0ed868","text":"regex
65
+ was incorrect, needed it to ignore case","html":"regex was incorrect, needed
66
+ it to ignore case","sent":"2015-01-15T19:43:25.791Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
67
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8198d573df0f923452975","text":"a
68
+ (A-Z|a-z) kind of thing?","html":"a (A-Z|a-z) kind of thing?","sent":"2015-01-15T19:48:29.569Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
69
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b81b49723506dd0c0ed92e","text":"just
70
+ did /asdf/i","html":"just did /asdf/i","sent":"2015-01-15T19:55:53.234Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
71
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b81b4d73b182a117e9ca37","text":"i
72
+ for ignore case","html":"i for ignore case","sent":"2015-01-15T19:55:57.501Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
73
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b81b73573df0f923452a0c","text":"i
74
+ see","html":"i see","sent":"2015-01-15T19:56:35.253Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
75
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b825b9573df0f923452c6b","text":"Holy
76
+ cow, i just spent like a milion years working on this CodeEval: https://www.codeeval.com/open_challenges/113/","html":"Holy
77
+ cow, i just spent like a milion years working on this CodeEval: <a href=\"https://www.codeeval.com/open_challenges/113/\"
78
+ rel=\"nofollow\" target=\"_blank\" class=\"link\">https://www.codeeval.com/open_challenges/113/</a>","sent":"2015-01-15T20:40:25.107Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
79
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[{"url":"https://www.codeeval.com/open_challenges/113/"}],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b825cb573df0f923452c73","text":"i
80
+ finally got it to compile and it worked the first time I tried with test input","html":"i
81
+ finally got it to compile and it worked the first time I tried with test input","sent":"2015-01-15T20:40:43.171Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
82
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82616723506dd0c0edbe7","text":"eh,
83
+ but i''m displaying it wrong, of course","html":"eh, but i&#39;m displaying
84
+ it wrong, of course","sent":"2015-01-15T20:41:58.150Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
85
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b826e973b182a117e9cd0a","text":"haha
86
+ hate that! they worry too much about the format of the output","html":"haha
87
+ hate that! they worry too much about the format of the output","sent":"2015-01-15T20:45:29.036Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
88
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82747573df0f923452cba","text":"did
89
+ you do it in C?","html":"did you do it in C?","sent":"2015-01-15T20:47:03.280Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
90
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82906723506dd0c0edc95","text":"Haskell.
91
+ It is an easy level problem (multiply two given list) but it turns out hard
92
+ in Haskell.","html":"Haskell. It is an easy level problem (multiply two given
93
+ list) but it turns out hard in Haskell.","sent":"2015-01-15T20:54:30.371Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
94
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8291b573df0f923452d30","text":"```haskell\nimport
95
+ System.Environment (getArgs)\n\nmain :: IO ()\nmain = do\n [filename] <-
96
+ getArgs\n fileContent <- readFile filename\n let linesList = lines fileContent\n let
97
+ resultList = map parseLine linesList\n mapM_ printResults resultList\n where
98
+ parseLine xs = let numList = words xs\n firstHalf
99
+ = map (\\x -> read x :: Int) $ take (fromEnum ((fromIntegral (length numList
100
+ - 1)) / 2)) numList\n secondHalf = map (\\x ->
101
+ read x :: Int) $ drop (fromEnum ((fromIntegral (length numList + 1)) / 2))
102
+ numList\n in multiplyList firstHalf secondHalf\n printResults
103
+ xs = putStrLn $ unwords $ map show xs\n\nmultiplyList :: Num a => [a] -> [a]
104
+ -> [a]\nmultiplyList [] _ = []\nmultiplyList _ [] = []\nmultiplyList (x:[])
105
+ (y:[]) = x*y : []\nmultiplyList (x:xs) (y:ys) = x*y : multiplyList xs ys\n```","html":"<pre><code
106
+ class=\"haskell\"><span class=\"import\"><span class=\"keyword\">import</span>
107
+ System.Environment <span class=\"container\">(<span class=\"title\">getArgs</span>)</span></span>\n\n<span
108
+ class=\"title\">main</span> :: <span class=\"type\">IO</span> ()\n<span class=\"title\">main</span>
109
+ = <span class=\"keyword\">do</span>\n [filename] &lt;- getArgs\n fileContent
110
+ &lt;- readFile filename\n <span class=\"keyword\">let</span> linesList
111
+ = lines fileContent\n <span class=\"keyword\">let</span> resultList = map
112
+ parseLine linesList\n mapM_ printResults resultList\n <span class=\"keyword\">where</span>
113
+ parseLine xs = <span class=\"keyword\">let</span> numList = words xs\n firstHalf
114
+ = map (\\x -&gt; read x :: <span class=\"type\">Int</span>) $ take (fromEnum
115
+ ((fromIntegral (length numList - <span class=\"number\">1</span>)) / <span
116
+ class=\"number\">2</span>)) numList\n secondHalf
117
+ = map (\\x -&gt; read x :: <span class=\"type\">Int</span>) $ drop (fromEnum
118
+ ((fromIntegral (length numList + <span class=\"number\">1</span>)) / <span
119
+ class=\"number\">2</span>)) numList\n <span class=\"keyword\">in</span>
120
+ multiplyList firstHalf secondHalf\n printResults xs = putStrLn $
121
+ unwords $ map show xs\n\n<span class=\"title\">multiplyList</span> :: <span
122
+ class=\"type\">Num</span> a =&gt; [a] -&gt; [a] -&gt; [a]\n<span class=\"title\">multiplyList</span>
123
+ [] _ = []\n<span class=\"title\">multiplyList</span> _ [] = []\n<span class=\"title\">multiplyList</span>
124
+ (x:[]) (y:[]) = x*y : []\n<span class=\"title\">multiplyList</span> (x:xs)
125
+ (y:ys) = x*y : multiplyList xs ys</code></pre>","sent":"2015-01-15T20:54:51.369Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
126
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82942573df0f923452d34","text":"wow...
127
+ that is the closest i''ve ever gotten to a full 35 points on an easy problem","html":"wow...
128
+ that is the closest i&#39;ve ever gotten to a full 35 points on an easy problem","sent":"2015-01-15T20:55:30.286Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
129
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8299a73b182a117e9cd93","text":"nice!","html":"nice!","sent":"2015-01-15T20:56:58.113Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
130
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829b073b182a117e9cd9d","text":"```ruby\nFile.open(ARGV[0]).each_line
131
+ do |line|\n ar1, ar2 = line.split(''|'').map(&:split)\n ar1.each_with_index{|n,i|
132
+ print \"#{n.to_i * ar2[i].to_i} \"}\n puts\nend\n```","html":"<pre><code
133
+ class=\"ruby\"><span class=\"constant\">File</span>.open(<span class=\"constant\">ARGV</span>[<span
134
+ class=\"number\">0</span>]).each_line <span class=\"keyword\">do</span> |line|\n ar1,
135
+ ar2 = line.split(<span class=\"string\">''|''</span>).map(&amp;<span class=\"symbol\">:split</span>)\n ar1.each_with_index{|n,i|
136
+ print <span class=\"string\">\"<span class=\"subst\">#{n.to_i * ar2[i].to_i}</span>
137
+ \"</span>}\n puts\n<span class=\"keyword\">end</span></code></pre>","sent":"2015-01-15T20:57:20.519Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
138
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829b4573df0f923452d4e","text":"thats
139
+ what i did in ruby","html":"thats what i did in ruby","sent":"2015-01-15T20:57:24.637Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
140
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829c2573df0f923452d51","text":":(","html":":(","sent":"2015-01-15T20:57:38.459Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
141
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829c9723506dd0c0edcb7","text":"ranking
142
+ was pretty poor at 31.635 lololol","html":"ranking was pretty poor at 31.635
143
+ lololol","sent":"2015-01-15T20:57:45.998Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
144
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829cb723506dd0c0edcb9","text":"or
145
+ rather :''(","html":"or rather :&#39;(","sent":"2015-01-15T20:57:47.103Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
146
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829ce723506dd0c0edcbb","text":"typical
147
+ ruby","html":"typical ruby","sent":"2015-01-15T20:57:50.637Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
148
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829dd73b182a117e9cdaa","text":"i
149
+ did a lot of shortcuts :grin: ","html":"i did a lot of shortcuts :grin: ","sent":"2015-01-15T20:58:05.568Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
150
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b829ff73b182a117e9cdb1","text":"Now
151
+ that I look at all my scores, my C/C++ solutions are usually .010 pointers
152
+ more but my haskell solution is 34.939","html":"Now that I look at all my
153
+ scores, my C/C++ solutions are usually .010 pointers more but my haskell solution
154
+ is 34.939","sent":"2015-01-15T20:58:39.694Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
155
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82a21723506dd0c0edcd2","text":"wow
156
+ thats so close!!","html":"wow thats so close!!","sent":"2015-01-15T20:59:13.398Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
157
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82a27723506dd0c0edcd4","text":"theyre
158
+ still using Ruby 1.9.3","html":"theyre still using Ruby 1.9.3","sent":"2015-01-15T20:59:19.113Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
159
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82a39723506dd0c0edcd5","text":"2.2.0
160
+ is out :/","html":"2.2.0 is out :/","sent":"2015-01-15T20:59:37.254Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
161
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82a46573df0f923452d67","text":"yeah,
162
+ i notice that they tend to be quite behind","html":"yeah, i notice that they
163
+ tend to be quite behind","sent":"2015-01-15T20:59:50.611Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
164
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82a7d723506dd0c0edce7","text":"my
165
+ python solution to a different problem is 30.908 with it''s 191 ms runtime
166
+ and 4.29MB of data usage","html":"my python solution to a different problem
167
+ is 30.908 with it&#39;s 191 ms runtime and 4.29MB of data usage","sent":"2015-01-15T21:00:45.715Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
168
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82ac4573df0f923452d84","text":"i''m
169
+ sad that most of the stuff in my Haskell code is just getting around the type
170
+ system or dealing with IO","html":"i&#39;m sad that most of the stuff in my
171
+ Haskell code is just getting around the type system or dealing with IO","sent":"2015-01-15T21:01:56.334Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
172
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82bb8573df0f923452dad","text":"using
173
+ Lua is a lot like using Python or Ruby (more like JavaScript I guess) and
174
+ it get similar scores compared to my C/C++ and Haskell code","html":"using
175
+ Lua is a lot like using Python or Ruby (more like JavaScript I guess) and
176
+ it get similar scores compared to my C/C++ and Haskell code","sent":"2015-01-15T21:06:00.906Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
177
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82def73b182a117e9ce81","text":"Maybe
178
+ I''ll do some in that then. ","html":"Maybe I&#39;ll do some in that then.
179
+ ","sent":"2015-01-15T21:15:27.241Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
180
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":2,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82dfd573df0f923452e2c","text":"Ruby
181
+ can never be a contender for most points","html":"Ruby can never be a contender
182
+ for most points","sent":"2015-01-15T21:15:41.441Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
183
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":2,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b82e0773b182a117e9ce8b","text":"maybe
184
+ least amount of lines","html":"maybe least amount of lines","sent":"2015-01-15T21:15:51.798Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
185
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":2,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b830e873b182a117e9cf75","text":"according
186
+ to the benchmarks game, ruby is always smaller than Haskell, and Haskell is
187
+ often smaller than C or C++","html":"according to the benchmarks game, ruby
188
+ is always smaller than Haskell, and Haskell is often smaller than C or C++","sent":"2015-01-15T21:28:08.666Z","editedAt":"2015-01-15T21:28:18.687Z","fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
189
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":2},{"id":"54b83119723506dd0c0ede60","text":"Smaller
190
+ as in?","html":"Smaller as in?","sent":"2015-01-15T21:28:57.405Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
191
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8311e73b182a117e9cf90","text":"code
192
+ size","html":"code size","sent":"2015-01-15T21:29:02.325Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
193
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b83121573df0f923452f1c","text":"SLOC","html":"SLOC","sent":"2015-01-15T21:29:05.886Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
194
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8312a73b182a117e9cf94","text":"or
195
+ KB of code","html":"or KB of code","sent":"2015-01-15T21:29:14.908Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
196
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8313b723506dd0c0ede6d","text":"Ah
197
+ ok. Yeah I believe that ","html":"Ah ok. Yeah I believe that ","sent":"2015-01-15T21:29:31.030Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
198
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8317873b182a117e9cfaf","text":"Hopefully
199
+ I don''t come off as evangelizing Haskell. I''m not convinced that it is the
200
+ end all and be all.","html":"Hopefully I don&#39;t come off as evangelizing
201
+ Haskell. I&#39;m not convinced that it is the end all and be all.","sent":"2015-01-15T21:30:32.270Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
202
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831a273b182a117e9cfbe","text":"I
203
+ think a lisp is probably more practical.","html":"I think a lisp is probably
204
+ more practical.","sent":"2015-01-15T21:31:14.593Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
205
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831b2723506dd0c0ede91","text":"Haha
206
+ nah it''s cool","html":"Haha nah it&#39;s cool","sent":"2015-01-15T21:31:30.750Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
207
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831b8573df0f923452f55","text":"Rust
208
+ will be a good mish-mash of the lot but I''m sure there are some problems
209
+ with it too.","html":"Rust will be a good mish-mash of the lot but I&#39;m
210
+ sure there are some problems with it too.","sent":"2015-01-15T21:31:36.443Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
211
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831d5723506dd0c0ede9e","text":"Anyways,
212
+ I''m going home for the day. Chat with you later","html":"Anyways, I&#39;m
213
+ going home for the day. Chat with you later","sent":"2015-01-15T21:32:05.821Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
214
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831fd573df0f923452f66","text":"Alright
215
+ see ya ","html":"Alright see ya ","sent":"2015-01-15T21:32:45.429Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
216
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1}]'
217
+ http_version:
218
+ recorded_at: Mon, 19 Jan 2015 11:59:26 GMT
219
+ - request:
220
+ method: get
221
+ uri: https://api.gitter.im/v1/rooms/54b7e136db8155e6700eb569/chatMessages?limit=10
222
+ body:
223
+ encoding: US-ASCII
224
+ string: ''
225
+ headers:
226
+ Accept:
227
+ - application/json
228
+ Authorization:
229
+ - Bearer redacted
230
+ Content-Type:
231
+ - application/json
232
+ response:
233
+ status:
234
+ code: 200
235
+ message: OK
236
+ headers:
237
+ Access-Control-Expose-Headers:
238
+ - X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
239
+ Content-Type:
240
+ - application/json; charset=utf-8
241
+ Date:
242
+ - Mon, 19 Jan 2015 12:13:19 GMT
243
+ Etag:
244
+ - W/"SnLpQFUPIECV4wXL/HPuLQ=="
245
+ Server:
246
+ - nginx
247
+ Vary:
248
+ - Origin
249
+ X-Ratelimit-Limit:
250
+ - '100'
251
+ X-Ratelimit-Remaining:
252
+ - '99'
253
+ X-Ratelimit-Reset:
254
+ - '1421669659543'
255
+ X-Server-Id:
256
+ - app-003
257
+ X-Upstream:
258
+ - 127.0.0.1:5025
259
+ Content-Length:
260
+ - '5339'
261
+ Connection:
262
+ - keep-alive
263
+ body:
264
+ encoding: UTF-8
265
+ string: '[{"id":"54b8311e73b182a117e9cf90","text":"code size","html":"code size","sent":"2015-01-15T21:29:02.325Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
266
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b83121573df0f923452f1c","text":"SLOC","html":"SLOC","sent":"2015-01-15T21:29:05.886Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
267
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8312a73b182a117e9cf94","text":"or
268
+ KB of code","html":"or KB of code","sent":"2015-01-15T21:29:14.908Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
269
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8313b723506dd0c0ede6d","text":"Ah
270
+ ok. Yeah I believe that ","html":"Ah ok. Yeah I believe that ","sent":"2015-01-15T21:29:31.030Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
271
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b8317873b182a117e9cfaf","text":"Hopefully
272
+ I don''t come off as evangelizing Haskell. I''m not convinced that it is the
273
+ end all and be all.","html":"Hopefully I don&#39;t come off as evangelizing
274
+ Haskell. I&#39;m not convinced that it is the end all and be all.","sent":"2015-01-15T21:30:32.270Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
275
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831a273b182a117e9cfbe","text":"I
276
+ think a lisp is probably more practical.","html":"I think a lisp is probably
277
+ more practical.","sent":"2015-01-15T21:31:14.593Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
278
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831b2723506dd0c0ede91","text":"Haha
279
+ nah it''s cool","html":"Haha nah it&#39;s cool","sent":"2015-01-15T21:31:30.750Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
280
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831b8573df0f923452f55","text":"Rust
281
+ will be a good mish-mash of the lot but I''m sure there are some problems
282
+ with it too.","html":"Rust will be a good mish-mash of the lot but I&#39;m
283
+ sure there are some problems with it too.","sent":"2015-01-15T21:31:36.443Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
284
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831d5723506dd0c0ede9e","text":"Anyways,
285
+ I''m going home for the day. Chat with you later","html":"Anyways, I&#39;m
286
+ going home for the day. Chat with you later","sent":"2015-01-15T21:32:05.821Z","editedAt":null,"fromUser":{"id":"54b7e066db8155e6700eb55e","username":"Phyllostachys","displayName":"Jacob
287
+ Shaffer","url":"/Phyllostachys","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1503954?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1503954?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1},{"id":"54b831fd573df0f923452f66","text":"Alright
288
+ see ya ","html":"Alright see ya ","sent":"2015-01-15T21:32:45.429Z","editedAt":null,"fromUser":{"id":"54b7df5bdb8155e6700eb552","username":"zoso10","displayName":"Tyler
289
+ Ewing","url":"/zoso10","avatarUrlSmall":"https://avatars.githubusercontent.com/u/1211946?v=3&s=60","avatarUrlMedium":"https://avatars.githubusercontent.com/u/1211946?v=3&s=128"},"unread":false,"readBy":1,"urls":[],"mentions":[],"issues":[],"meta":{},"v":1}]'
290
+ http_version:
291
+ recorded_at: Mon, 19 Jan 2015 12:13:19 GMT
292
+ recorded_with: VCR 2.9.3