spartacus 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/spartacus.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cceffd5410cb044595ad8a2244d7b5ffb710a68b
|
4
|
+
data.tar.gz: d9b1dbecfa915ffe2aafeaf7de539d5cd60ae4eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 128a75169598bd77a3622171fa5cb897366e945dc51f336edcf49c15d306b6e830ae3361a79108e49a27471d88361cb31394eddd061c3c17de0e844e50e407fa
|
7
|
+
data.tar.gz: 1c9348fd2753f3cfc59bbab7c1e35285f1df3ccbeb266ef4e5e9e1cda6c5e5885b204d8a875a14c70f32225197009488e259ef81af1c21f54172ab6d6411f54c
|
data/lib/spartacus.rb
CHANGED
@@ -8,12 +8,13 @@ class Spartacus
|
|
8
8
|
include Checkpoints
|
9
9
|
include Users
|
10
10
|
include RoadmapSections
|
11
|
+
include AlumniStories
|
11
12
|
|
12
13
|
def initialize(email, password, api_base_path="https://www.bloc.io/api/v1")
|
13
14
|
@api_base_path = api_base_path
|
14
15
|
url = "#{@api_base_path}/sessions"
|
15
16
|
|
16
|
-
response = self.class.post(url, query: { email: email, password: password }
|
17
|
+
response = self.class.post(url, query: { email: email, password: password })
|
17
18
|
|
18
19
|
if success?(response.code)
|
19
20
|
response_hash = JSON.parse(response.body)
|