mercadolibre_rails 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +0 -0
- data/README.md +4 -0
- data/Rakefile +0 -0
- data/app/assets/config/mercadolibre_rails_manifest.js +0 -0
- data/app/assets/javascripts/mercadolibre_rails/application.js +0 -0
- data/app/assets/stylesheets/mercadolibre_rails/application.css +0 -0
- data/app/controllers/mercadolibre_rails/application_controller.rb +0 -0
- data/app/helpers/mercadolibre_rails/application_helper.rb +0 -0
- data/app/jobs/mercadolibre_rails/application_job.rb +0 -0
- data/app/mailers/mercadolibre_rails/application_mailer.rb +0 -0
- data/app/models/mercadolibre_rails/application_record.rb +0 -0
- data/app/models/mercadolibre_rails/product.rb +4 -0
- data/app/models/mercadolibre_rails/seller.rb +0 -0
- data/app/models/mercadolibre_rails/site.rb +0 -0
- data/app/models/mercadolibre_rails/version.rb +7 -0
- data/app/models/paper_trail/version.rb +8 -0
- data/app/views/layouts/mercadolibre_rails/application.html.erb +0 -0
- data/config/routes.rb +0 -0
- data/db/migrate/20181003152541_create_mercadolibre_rails_sites.rb +0 -0
- data/db/migrate/20181004142438_create_mercadolibre_rails_products.rb +0 -0
- data/db/migrate/20181004143133_create_mercadolibre_rails_sellers.rb +0 -0
- data/db/migrate/20181004143244_add_site_to_products.rb +0 -0
- data/db/migrate/20181004150308_add_seller_to_mercadolibre_rails_products.rb +0 -0
- data/db/migrate/20181010142220_create_mercadolibre_rails_versions.rb +16 -0
- data/db/migrate/20181010142221_add_object_changes_to_mercadolibre_rails_versions.rb +7 -0
- data/lib/mercadolibre_rails/engine.rb +0 -0
- data/lib/mercadolibre_rails/version.rb +1 -1
- data/lib/mercadolibre_rails.rb +0 -0
- data/lib/tasks/mercadolibre_rails_tasks.rake +0 -0
- metadata +21 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2808a25a1a26bfee2d40aa8dcd84f080a693f179c7e871cc2be7dcf79604eb4f
|
4
|
+
data.tar.gz: 6f09a5c5ec37e450d80c743041caacbbb1e4d6b936c4d5d838736065e495b38c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba774819ca432ad43aba6e32464aac68556a4f4d6e4174c00564e1da78a30db844f742d524be32766be4d259723347242a06a77c63dd4acaded5f112f7a3086
|
7
|
+
data.tar.gz: bf3db2fbf6dd2063db75f82347eb0ab826f3c1d35b85a49a86b7f0a33a50cbbbedeb76d2fe58b7e53a4365e06f285dd7201d7eba1a16c46f5cbcef918d7c680e
|
data/MIT-LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +1,11 @@
|
|
1
1
|
require 'mercadolibre_api'
|
2
|
+
require 'paper_trail'
|
2
3
|
|
3
4
|
module MercadolibreRails
|
4
5
|
class Product < ApplicationRecord
|
6
|
+
PAPER_TRAIL_VERSION_LIMIT = 2500
|
7
|
+
has_paper_trail class_name: 'MercadolibreRails::Version', on: :update, ignore: %i[created_at updated_at]
|
8
|
+
|
5
9
|
belongs_to :seller, optional: true
|
6
10
|
belongs_to :site, optional: true
|
7
11
|
|
File without changes
|
File without changes
|
File without changes
|
data/config/routes.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class CreateMercadolibreRailsVersions < ActiveRecord::Migration[5.2]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
|
4
|
+
def change
|
5
|
+
create_table :mercadolibre_rails_versions do |t|
|
6
|
+
t.string :item_type, null: false
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
|
12
|
+
t.datetime :created_at
|
13
|
+
end
|
14
|
+
add_index :mercadolibre_rails_versions, %i[item_type item_id]
|
15
|
+
end
|
16
|
+
end
|
File without changes
|
data/lib/mercadolibre_rails.rb
CHANGED
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercadolibre_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Gonzaga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercadolibre_api
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: paper_trail
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 10.0.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 10.0.1
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rails
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,6 +171,8 @@ files:
|
|
157
171
|
- app/models/mercadolibre_rails/product.rb
|
158
172
|
- app/models/mercadolibre_rails/seller.rb
|
159
173
|
- app/models/mercadolibre_rails/site.rb
|
174
|
+
- app/models/mercadolibre_rails/version.rb
|
175
|
+
- app/models/paper_trail/version.rb
|
160
176
|
- app/views/layouts/mercadolibre_rails/application.html.erb
|
161
177
|
- config/routes.rb
|
162
178
|
- db/migrate/20181003152541_create_mercadolibre_rails_sites.rb
|
@@ -164,6 +180,8 @@ files:
|
|
164
180
|
- db/migrate/20181004143133_create_mercadolibre_rails_sellers.rb
|
165
181
|
- db/migrate/20181004143244_add_site_to_products.rb
|
166
182
|
- db/migrate/20181004150308_add_seller_to_mercadolibre_rails_products.rb
|
183
|
+
- db/migrate/20181010142220_create_mercadolibre_rails_versions.rb
|
184
|
+
- db/migrate/20181010142221_add_object_changes_to_mercadolibre_rails_versions.rb
|
167
185
|
- lib/mercadolibre_rails.rb
|
168
186
|
- lib/mercadolibre_rails/engine.rb
|
169
187
|
- lib/mercadolibre_rails/version.rb
|
@@ -188,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
206
|
version: '0'
|
189
207
|
requirements: []
|
190
208
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.7.
|
209
|
+
rubygems_version: 2.7.7
|
192
210
|
signing_key:
|
193
211
|
specification_version: 4
|
194
212
|
summary: Library to integrate MercadolibreApi into a Rails Project.
|