KerbalStuff 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kerbalstuff/mod.rb +5 -2
- data/lib/kerbalstuff/version.rb +1 -1
- metadata +2 -2
data/lib/kerbalstuff/mod.rb
CHANGED
@@ -8,6 +8,10 @@ module KerbalStuff
|
|
8
8
|
|
9
9
|
@name = @json['name']
|
10
10
|
@background = @json['background']
|
11
|
+
@license = @json['license']
|
12
|
+
@website = @json['website']
|
13
|
+
@donations = @json['donations']
|
14
|
+
@source_code = @json['source_code']
|
11
15
|
@author = @json['author']
|
12
16
|
@downloads = @json['downloads']
|
13
17
|
@id = @json['id']
|
@@ -16,7 +20,6 @@ module KerbalStuff
|
|
16
20
|
@followers = @json['followers']
|
17
21
|
@default_version_id = @json['default_version_id']
|
18
22
|
@description = @json['description']
|
19
|
-
@license = @json['license']
|
20
23
|
|
21
24
|
if @json.has_key?('versions')
|
22
25
|
@versions = []
|
@@ -30,7 +33,7 @@ module KerbalStuff
|
|
30
33
|
end
|
31
34
|
|
32
35
|
def to_s
|
33
|
-
"Mod:\nname=#{@name}\nbackground=#{@background}\nlicense=#{@license}\nauthor=#{@author}\ndownloads=#{@downloads}\nid=#{@id}\nshort_description=\"#{@short_description}\"\nversions=#{@versions}\ndescription_html=\"#{@description_html}\"\nfollowers=#{@followers}\ndefault_version_id=#{@default_version_id}\ndescription=\"#{@description}\"\n"
|
36
|
+
"Mod:\nname=#{@name}\nbackground=#{@background}\nlicense=#{@license}\nwebsite=#{@website}\ndonations=#{@donations}\nsource_code=#{@source_code}\nauthor=#{@author}\ndownloads=#{@downloads}\nid=#{@id}\nshort_description=\"#{@short_description}\"\nversions=#{@versions}\ndescription_html=\"#{@description_html}\"\nfollowers=#{@followers}\ndefault_version_id=#{@default_version_id}\ndescription=\"#{@description}\"\n"
|
34
37
|
end
|
35
38
|
end
|
36
39
|
|
data/lib/kerbalstuff/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: KerbalStuff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple API wrapper for KerbalStuff
|
15
15
|
email: rockytvbr@gmail.com
|