rails_timeseries 0.1.0 → 0.1.1

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: 74293924cccbcada4fd5c93f35ac966a5e656384
4
- data.tar.gz: 391e29617edf9760c26f4f5103768473a7972fbb
3
+ metadata.gz: 29a0b61724bdd2040e994ccb905ff23a6c4f5855
4
+ data.tar.gz: aec6295fd3000337097631afc1e022d8c91c7530
5
5
  SHA512:
6
- metadata.gz: 330ab655f44149107c2578acca912ea15d2bf754b4423eaae59a8619c9f70b5eecda4248bf6631fe83c869427b5d25bd41f0154500b0d67157d5632a3fded914
7
- data.tar.gz: 69c5827010ff7542d470e40ce99aabe973edc8506cc81c8e558dd1237aa1cc3ae791d925bf8b76dcc6e76f593d917cad18de457d39edadd358edf2848dc9a2e7
6
+ metadata.gz: a02552bdb267380ccb13d670204d83c68b6dc798bea4d52519de59f81244a13a9bc9124de8e4dfe08c9374ffc5a6b2c383880856cc8bbcacb8cc8665004b9518
7
+ data.tar.gz: 220c4425e3d38ca92b41b6765a20ff37898569251a5c2c95d84ce270975f335402dc5deb2b72494a733fe03c21c0c42d1e962c743a6d15ed83deed1045157892
@@ -1,6 +1,6 @@
1
- class Timeseries < ActiveRecord::Base
1
+ class Timeseries < ApplicationRecord
2
2
  def self.generate
3
- ActiveRecord::Base.subclasses.each do |model|
3
+ ApplicationRecord.subclasses.each do |model|
4
4
  next unless model.respond_to?(:timeseries_scopes)
5
5
  model.send(:timeseries_scopes).each do |scope|
6
6
  timeseries = Timeseries.find_or_initialize_by(date: Time.now.to_date, scope: scope.to_s)
@@ -1,3 +1,3 @@
1
1
  module RailsTimeseries
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_timeseries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JonghunYu