ffxiv 1.0.2 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1becbd19dd128a50c0c1af0c5e8879f2a0f653d9
4
- data.tar.gz: b25c8dfed29a730089276d22286a4cd74a166fb2
3
+ metadata.gz: b64f0a8d791504a75c914948f0c381bf2a22ae69
4
+ data.tar.gz: 270b50536e241570adb5592737fb98b598cf13c4
5
5
  SHA512:
6
- metadata.gz: 7077204714d60cb3d981169766b60aafc66f40fb31e541ee50b75c0d48ea139bb2526c219d4a409bae25c218bbfced34ad8d6717ea8d0a2a9cd7ef5327667470
7
- data.tar.gz: ba0d386acd589c391b796f2401710062012e5ab89b12f87af0e538f9c0e242cb4d37fc302cc473b0182c0eee31446d8851f86e06cfdf0690ccb7e5a5ec9b14c6
6
+ metadata.gz: 9ce881c5f6d70b08d83eac2a0b58358772a41e07627969f4a3e7803dc1198794a5cf8bd3fb793ac23ae893605c44b59e891858d2779301e8bab73d24107fe85a
7
+ data.tar.gz: c9fc9e3c54906ae8f0b186be2f1fe08e832b3a01c2b0fe324d92b72c51614589313c4e81d73853d97bfbb35acb1ea009a0082127d0bcaf23a27dbaa232263d53
@@ -63,6 +63,7 @@ module FFXIV
63
63
  ch_name = dom.at("div.player_name_txt h2 a")
64
64
  props[:name] = ch_name.content
65
65
  props[:server] = ch_name.next_element.content.strip[1...-1]
66
+ props[:data_center] = Utils.data_center(props[:server])
66
67
  props[:thumbnail_uri] = drop_uts(dom.at("div.player_name_thumb img").attr("src"))
67
68
  props[:image_uri] = drop_uts(dom.at("div.bg_chara_264 img").attr("src"))
68
69
  props[:race], props[:subrace], gender = dom.at("div.chara_profile_title").content.strip.split(" / ")
@@ -94,8 +95,7 @@ module FFXIV
94
95
  case dd.content
95
96
  when "Nameday"
96
97
  props[:nameday] = t
97
- match = t.match /^(\d+).+?the\s(.*)$/
98
- props[:birthday] = Date.new(2013, months[match[2]], match[1].to_i)
98
+ props[:birthday] = Utils.ed2gd(props[:nameday])
99
99
  when "Guardian"
100
100
  props[:guardian] = t
101
101
  when "City-state"
@@ -158,14 +158,6 @@ module FFXIV
158
158
  @free_company
159
159
  end
160
160
 
161
- def birthday
162
- Utils.ed2gd(@nameday)
163
- end
164
-
165
- def data_center
166
- Utils.data_center(@server)
167
- end
168
-
169
161
  def num_blogs
170
162
  init_blog; @num_blogs
171
163
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffxiv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syro Bonkus