swgem 0.1.0 → 0.1.1
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/swgem.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a9830fab7ebfae5c500bd5f97714fbce0b11335
|
|
4
|
+
data.tar.gz: c9e888fd46cebfdec574bd86faf6f3306430f1a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b7236cbdf8c08cb3a5d405a3d9087b78ee707d8c9b9904a9d4726ffd7cbdfb5ce3f9077ecfb06c57ad56242afa85d1868d1a4eef362c70ec1d4291b1b3e7db3
|
|
7
|
+
data.tar.gz: 7f4ed0c17f2d44929e8936e9d9d71dce68f24e32a76e3c0aa86205b85741d8902161bcce4969f02c9eea2bf84b347e3dada90b615dceef5a882874b7703a41c8
|
data/lib/swgem.rb
CHANGED
|
@@ -21,9 +21,6 @@ module SWGEM
|
|
|
21
21
|
JSON.parse((conn.get "#{class_name}/#{id}/").body)
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
def class_name
|
|
25
|
-
self.class.name.split("::")[1].downcase
|
|
26
|
-
end
|
|
27
24
|
|
|
28
25
|
def validate_api_status
|
|
29
26
|
(conn.get "#{class_name}/").status
|
|
@@ -31,6 +28,9 @@ module SWGEM
|
|
|
31
28
|
|
|
32
29
|
private
|
|
33
30
|
|
|
31
|
+
def class_name
|
|
32
|
+
self.class.name.split("::")[1].downcase
|
|
33
|
+
end
|
|
34
34
|
attr_reader :conn
|
|
35
35
|
|
|
36
36
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swgem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Igor Souza
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -65,7 +65,7 @@ files:
|
|
|
65
65
|
- lib/swgem/species.rb
|
|
66
66
|
- lib/swgem/starships.rb
|
|
67
67
|
- lib/swgem/vehicles.rb
|
|
68
|
-
homepage: http://
|
|
68
|
+
homepage: http://github.com/igordcsouza/swgem
|
|
69
69
|
licenses:
|
|
70
70
|
- MIT
|
|
71
71
|
metadata: {}
|