revepast 0.1.0 → 1.0.2
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 +8 -8
- data/README.md +130 -0
- data/lib/revepast/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
Y2NlOWIyMTU2ZmE1MmU5NGJjM2Y1YTA2M2RlMzY1MzIyYzI5NDA1Zg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MjQ0ZmVjY2M0ZTcxMjg5MGUxYmM2ZDU4OTRlZWQ2YTU2Mzg2OTY1Yg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OWM0NjVjZTJmMmVlODgwYzU1ZmI1OWVlMWMwODU1YmEyYTQyYzU3OTg3MWVi
|
|
10
|
+
OWZmOGE0MTgyOTZmNzc5NzFkZWY2M2QyZmYyYjM0ZmRlODFkMTVjNWUzYzM5
|
|
11
|
+
OGU2ZjVlZjY4NzE5ZWIwMmJmNDEwZjhiZDYzNGU5YjZmNzExOTI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YjVhYWNjNDRiZGExMjcwNjRiODQ0NzIxZmNlMzkxYjZkNDFhYTNmZWJjMjQ2
|
|
14
|
+
ZjczYmRjOWM2YTRlY2Y2ZDNkMGJjZWVhZTZkZDc3NjY4NjI0MGNiYzI0MTg2
|
|
15
|
+
MTQ5YmNhOGRiYjc2NDAwZDZmZDJiNWU4YWNhMjg2MzYwZDdmNWM=
|
data/README.md
CHANGED
|
@@ -26,6 +26,136 @@ Or install it yourself as:
|
|
|
26
26
|
$ gem install revepast
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
## Tests
|
|
30
|
+
```ruby
|
|
31
|
+
RSpec.describe Revepast do
|
|
32
|
+
it "Parse an EFT file" do
|
|
33
|
+
a = Revepast::Parse.new("[Cynabal, ICE Cynaballs]
|
|
34
|
+
Gyrostabilizer II
|
|
35
|
+
Gyrostabilizer II
|
|
36
|
+
Tracking Enhancer II
|
|
37
|
+
Tracking Enhancer II
|
|
38
|
+
Nanofiber Internal Structure II
|
|
39
|
+
|
|
40
|
+
Adaptive Invulnerability Field II
|
|
41
|
+
50MN Cold-Gas Enduring Microwarpdrive
|
|
42
|
+
Large Shield Extender II
|
|
43
|
+
Large Shield Extender II
|
|
44
|
+
Warp Disruptor II
|
|
45
|
+
|
|
46
|
+
425mm AutoCannon II
|
|
47
|
+
425mm AutoCannon II
|
|
48
|
+
425mm AutoCannon II
|
|
49
|
+
425mm AutoCannon II
|
|
50
|
+
Medium Energy Neutralizer II
|
|
51
|
+
|
|
52
|
+
Medium Anti-EM Screen Reinforcer I
|
|
53
|
+
Medium Core Defense Field Extender I
|
|
54
|
+
Medium Core Defense Field Extender I
|
|
55
|
+
|
|
56
|
+
Hornet II x5
|
|
57
|
+
Hornet EC-300 x5
|
|
58
|
+
|
|
59
|
+
Republic Fleet Fusion M x1000
|
|
60
|
+
Republic Fleet Phased Plasma M x1500
|
|
61
|
+
Republic Fleet EMP M x1500
|
|
62
|
+
Barrage M x600
|
|
63
|
+
Nanite Repair Paste x600
|
|
64
|
+
"
|
|
65
|
+
)
|
|
66
|
+
puts JSON.pretty_generate(a.result)
|
|
67
|
+
end
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Result
|
|
71
|
+
```ruby
|
|
72
|
+
[
|
|
73
|
+
"EFT",
|
|
74
|
+
{
|
|
75
|
+
"ship": "Cynabal",
|
|
76
|
+
"name": "ICE Cynaballs",
|
|
77
|
+
"modules": [
|
|
78
|
+
{
|
|
79
|
+
"name": "Hornet II",
|
|
80
|
+
"quantity": 5
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "Hornet EC-300",
|
|
84
|
+
"quantity": 5
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "Republic Fleet Fusion M",
|
|
88
|
+
"quantity": 1000
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "Republic Fleet Phased Plasma M",
|
|
92
|
+
"quantity": 1500
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "Republic Fleet EMP M",
|
|
96
|
+
"quantity": 1500
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "Barrage M",
|
|
100
|
+
"quantity": 600
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "Nanite Repair Paste",
|
|
104
|
+
"quantity": 600
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "Gyrostabilizer II",
|
|
108
|
+
"quantity": 2
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "Tracking Enhancer II",
|
|
112
|
+
"quantity": 2
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "Nanofiber Internal Structure II",
|
|
116
|
+
"quantity": 1
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "Adaptive Invulnerability Field II",
|
|
120
|
+
"quantity": 1
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "50MN Cold-Gas Enduring Microwarpdrive",
|
|
124
|
+
"quantity": 1
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "Large Shield Extender II",
|
|
128
|
+
"quantity": 2
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "Warp Disruptor II",
|
|
132
|
+
"quantity": 1
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "425mm AutoCannon II",
|
|
136
|
+
"quantity": 4
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "Medium Energy Neutralizer II",
|
|
140
|
+
"quantity": 1
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "Medium Anti-EM Screen Reinforcer I",
|
|
144
|
+
"quantity": 1
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "Medium Core Defense Field Extender I",
|
|
148
|
+
"quantity": 2
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
[
|
|
153
|
+
|
|
154
|
+
]
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
|
|
29
159
|
## License
|
|
30
160
|
|
|
31
161
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/revepast/version.rb
CHANGED