e621_export_downloader 0.0.11 → 0.0.12

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
  SHA256:
3
- metadata.gz: 570f83543711b092f8e72709bcc1c3a085ae7b865618551cf6fc4e3a9c749ec6
4
- data.tar.gz: 81af136bb9ed74d51284480bed0ae38c3dcc25865e503f19bc651ff6694ec174
3
+ metadata.gz: 71464892548f5aea175d642767ec9c081992971fa05cfa591786e30f05849fc2
4
+ data.tar.gz: 6dab31bc8938e5289981d952e2e674bf32e407e10f83d4fc5bef754174e21750
5
5
  SHA512:
6
- metadata.gz: b149322e32f32367c823377da011d5676227e7e4e454ff09eadabca03fdad57255bb72f5c10472a40e91594ec00e3bed8a47855dbc9deb7fd303c25a2fb941c3
7
- data.tar.gz: 4edfafff035bd495ed6a9822b401853c5cc74c822cdea909403f051e8e03d55fd159d950d719023117c56fa48c9d40632e378d9dc464d554311d51992464f2c3
6
+ metadata.gz: e5f44050f050ef991ac4ab7fecef628c665f449c46208a6d9e3734dbec95e9f088169adad6f3b81ab9133aef4afecce9f36109c25c7f007a3e2e8d2cb2d4807b
7
+ data.tar.gz: 453c7a2885eebc6681ec5954ae86430147f336806c2f34052cecf862cb6926626ec039df7a1f798b2f467e50a184883f4dc7c0bd28e3dc0fe37ca3d927ab57ad
@@ -25,6 +25,7 @@ module E621
25
25
  private_class_method(def self.attributes_from_export(record)
26
26
  {
27
27
  id: record.id,
28
+ post_id: record.post_id,
28
29
  added_locked_tags: record.added_locked_tags,
29
30
  added_tags: record.added_tags,
30
31
  description: record.description,
@@ -30,6 +30,9 @@ module E621ExportDownloader
30
30
  sig { returns(T.nilable(Integer)) }
31
31
  attr_reader(:parent_id)
32
32
 
33
+ sig { returns(Integer) }
34
+ attr_reader(:post_id)
35
+
33
36
  sig { returns(T.nilable(String)) }
34
37
  attr_reader(:rating)
35
38
 
@@ -76,6 +79,7 @@ module E621ExportDownloader
76
79
  @locked_tags = T.let(T.must(record["locked_tags"]).empty? ? nil : record["locked_tags"], T.nilable(String))
77
80
  @parent_changed = T.let(record["parent_changed"] == "t", T::Boolean)
78
81
  @parent_id = T.let(T.must(record["parent_id"]).empty? ? nil : record["parent_id"].to_i, T.nilable(Integer))
82
+ @post_id = T.let(record["post_id"].to_i, Integer)
79
83
  @rating = T.let(T.must(record["rating"]).empty? ? nil : record["rating"], T.nilable(String))
80
84
  @rating_changed = T.let(record["rating_changed"] == "t", T::Boolean)
81
85
  @reason = T.let(T.must(record["reason"]).empty? ? nil : record["reason"], T.nilable(String))
@@ -102,6 +106,7 @@ module E621ExportDownloader
102
106
  locked_tags: @locked_tags,
103
107
  parent_changed: @parent_changed,
104
108
  parent_id: @parent_id,
109
+ post_id: @post_id,
105
110
  rating: @rating,
106
111
  rating_changed: @rating_changed,
107
112
  reason: @reason,
@@ -4,7 +4,7 @@
4
4
  # loaded by bundler
5
5
  module E621ExportDownloader
6
6
  module Constants
7
- VERSION = "0.0.11"
7
+ VERSION = "0.0.12"
8
8
  WEBSITE = "https://github.com/DonovanDMC/E621ExportDownloader.rb"
9
9
  end
10
10
  end
@@ -19,7 +19,7 @@ class CreateE621Tables < ActiveRecord::Migration<%= migration_version %>
19
19
  t.string(:name, null: false, index: { unique: true })
20
20
  t.text(:other_names, array: true, null: false, default: [])
21
21
  t.datetime(:updated_at, null: false)
22
- t.text(:urls, array: true, null: false, default: [])
22
+ t.text(:urls, null: false)
23
23
  end
24
24
 
25
25
  create_table(<%= table_ref("bulk_update_requests") %>, id: :bigint, default: nil, force: :cascade) do |t|
@@ -100,6 +100,7 @@ class CreateE621Tables < ActiveRecord::Migration<%= migration_version %>
100
100
  t.text(:locked_tags)
101
101
  t.boolean(:parent_changed, null: false)
102
102
  t.bigint(:parent_id)
103
+ t.bigint(:post_id, null: false)
103
104
  t.string(:rating)
104
105
  t.boolean(:rating_changed, null: false)
105
106
  t.text(:reason)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e621_export_downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donovan_DMC