lacuna 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lacuna.rb +12 -1
- data/lib/lacuna/extras/buildings.rb +130 -0
- data/lib/lacuna/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b604b27e7413743e949ea81a99da2a6e5a721d
|
4
|
+
data.tar.gz: e36511ee139b6d0ec184480bb264d7a419b8990f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 375b1c0a48d3202fcb9cb09e45b12ebb89c65124553e29ff1cda8adf7f0b2ad04497b96ff398d78500ec33121e8262820011b2964727b32ef1fe5de668d5fd87
|
7
|
+
data.tar.gz: 00796b6dbedfdf772f20f40278102a5fc2257baef1823b2def4f810c08fe07c1fa2d4a2ad30dc82cc3cc93422b62234af78a77e1885be8faa541a8c16557cd71
|
data/lib/lacuna.rb
CHANGED
@@ -76,6 +76,17 @@ module Lacuna
|
|
76
76
|
end
|
77
77
|
|
78
78
|
class Captcha < Lacuna::Extras::Captcha
|
79
|
-
@module_name = '
|
79
|
+
@module_name = 'captcha'
|
80
|
+
end
|
81
|
+
|
82
|
+
# Note: this has no support for building specific extras. I guess we could
|
83
|
+
# just define them manually?
|
84
|
+
Lacuna::Buildings.types.each do |name|
|
85
|
+
module_name = name.downcase
|
86
|
+
Lacuna.class_eval <<-ENDOFDEFINITION
|
87
|
+
class #{name} < Lacuna::Module
|
88
|
+
@module_name = "#{module_name}"
|
89
|
+
end
|
90
|
+
ENDOFDEFINITION
|
80
91
|
end
|
81
92
|
end
|
@@ -4,6 +4,136 @@ module Lacuna
|
|
4
4
|
class Extras
|
5
5
|
class Buildings < Lacuna::Module
|
6
6
|
|
7
|
+
# The list of all the buildings this client can interact with.
|
8
|
+
def self.types
|
9
|
+
%w[
|
10
|
+
Algae
|
11
|
+
AlgaePond
|
12
|
+
AmalgusMeadow
|
13
|
+
Apple
|
14
|
+
Archaeology
|
15
|
+
AtmosphericEvaporator
|
16
|
+
Beach
|
17
|
+
Bean
|
18
|
+
Beeldeban
|
19
|
+
BeeldebanNest
|
20
|
+
BlackHoleGenerator
|
21
|
+
Bread
|
22
|
+
Burger
|
23
|
+
Capitol
|
24
|
+
Cheese
|
25
|
+
Chip
|
26
|
+
Cider
|
27
|
+
CitadelOfKnope
|
28
|
+
CloakingLab
|
29
|
+
Corn
|
30
|
+
CornMeal
|
31
|
+
CrashedShipSite
|
32
|
+
Crater
|
33
|
+
Dairy
|
34
|
+
Denton
|
35
|
+
DentonBrambles
|
36
|
+
DeployedBleeder
|
37
|
+
Development
|
38
|
+
DistributionCenter
|
39
|
+
Embassy
|
40
|
+
EnergyReserve
|
41
|
+
Entertainment
|
42
|
+
Espionage
|
43
|
+
EssentiaVein
|
44
|
+
Fission
|
45
|
+
Fissure
|
46
|
+
FoodReserve
|
47
|
+
Fusion
|
48
|
+
GasGiantLab
|
49
|
+
GasGiantPlatform
|
50
|
+
GeneticsLab
|
51
|
+
Geo
|
52
|
+
GeoThermalVent
|
53
|
+
GratchsGauntlet
|
54
|
+
GreatBallOfJunk
|
55
|
+
Grove
|
56
|
+
HallsOfVrbansk
|
57
|
+
Hydrocarbon
|
58
|
+
Intelligence
|
59
|
+
IntelTraining
|
60
|
+
InterDimensionalRift
|
61
|
+
JunkHengeSculpture
|
62
|
+
KalavianRuins
|
63
|
+
KasternsKeep
|
64
|
+
Lake
|
65
|
+
Lagoon
|
66
|
+
Lapis
|
67
|
+
LapisForest
|
68
|
+
LibraryOfJith
|
69
|
+
LostCityOfTyleon
|
70
|
+
LuxuryHousing
|
71
|
+
Malcud
|
72
|
+
MalcudField
|
73
|
+
MassadsHenge
|
74
|
+
MayhemTraining
|
75
|
+
MercenariesGuild
|
76
|
+
MetalJunkArches
|
77
|
+
Mine
|
78
|
+
MiningMinistry
|
79
|
+
MissionCommand
|
80
|
+
MunitionsLab
|
81
|
+
NaturalSpring
|
82
|
+
Network19
|
83
|
+
Observatory
|
84
|
+
OracleOfAnid
|
85
|
+
OreRefinery
|
86
|
+
OreStorage
|
87
|
+
Oversight
|
88
|
+
Pancake
|
89
|
+
PantheonOfHagness
|
90
|
+
Park
|
91
|
+
Pie
|
92
|
+
PilotTraining
|
93
|
+
PlanetaryCommand
|
94
|
+
PoliticsTraining
|
95
|
+
Potato
|
96
|
+
Propulsion
|
97
|
+
PyramidJunkSculpture
|
98
|
+
Ravine
|
99
|
+
RockyOutcrop
|
100
|
+
Sand
|
101
|
+
SAW
|
102
|
+
Security
|
103
|
+
Shake
|
104
|
+
Shipyard
|
105
|
+
Singularity
|
106
|
+
Soup
|
107
|
+
SpaceJunkPark
|
108
|
+
SpacePort
|
109
|
+
SpaceStationLab
|
110
|
+
Stockpile
|
111
|
+
SubspaceSupplyDepot
|
112
|
+
SupplyPod
|
113
|
+
Syrup
|
114
|
+
TempleOfTheDrajilites
|
115
|
+
TerraformingLab
|
116
|
+
TerraformingPlatform
|
117
|
+
TheDillonForge
|
118
|
+
TheftTraining
|
119
|
+
ThemePark
|
120
|
+
Trade
|
121
|
+
Transporter
|
122
|
+
University
|
123
|
+
Volcano
|
124
|
+
WasteDigester
|
125
|
+
WasteEnergy
|
126
|
+
WasteExchanger
|
127
|
+
WasteRecycling
|
128
|
+
WasteSequestration
|
129
|
+
WasteTreatment
|
130
|
+
WaterProduction
|
131
|
+
WaterPurification
|
132
|
+
WaterReclamation
|
133
|
+
WaterStorage
|
134
|
+
Wheat
|
135
|
+
]
|
136
|
+
end
|
7
137
|
end
|
8
138
|
end
|
9
139
|
end
|
data/lib/lacuna/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lacuna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan McCallum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Lacuna is a Ruby library for using the API of The Lacuna Expanse.
|
14
14
|
email: nmccallum7@gmail.com
|