dyna_model 0.0.6 → 0.0.7

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: 3d4119683395f95048ae0ed35672385aea2df2f8
4
- data.tar.gz: f7f8414f60c84ccc93993a7a4aee03d783938878
3
+ metadata.gz: 4e9716917403f2d28b549c5e9e9f1a7e144a2082
4
+ data.tar.gz: 779225e3e1a8ac16912436c339ee88595fa135f1
5
5
  SHA512:
6
- metadata.gz: 40af3a2a4463e8faf09d540eda9a05659262e82060310a298407d925a2a3e6179c65bdbf30d75273d1febfcc63f65e6afae6949239bb4e24f40ce30b7505e01c
7
- data.tar.gz: 08b185924d7ad03fe7d02d26bd8d3f3e238a863d35f7c2158388e3274ae6883066d769eeaea87b77f6d9a449df7901e0c970201a94ea578800a3b62d116120b3
6
+ metadata.gz: aeb08a60336433d6c658d672ea18ae44ea191d3807a93d4d29d8282c24c9f7052510f05fe6661dd8b9cefeed7b06b20819c59fa8470e028c478109030d14a196
7
+ data.tar.gz: c10bc62289f546099b233261b47a3b450a0957bac194e0c1642e757932d8ea0db309cff1ba32c71032d3e60eef977d087ac102294594c27bb7833cb5a167a10a
data/README.md CHANGED
@@ -96,6 +96,7 @@ end
96
96
  ```
97
97
 
98
98
  ## S3 Backup
99
+ Persist DynaModel records for a particular model to S3 for extra backup. Intended for incremental backups of important records and not intended for low value records or models with high frequency writes.
99
100
  ```
100
101
  class Item
101
102
  include DynaModel::Document
@@ -42,7 +42,7 @@ module DynaModel
42
42
 
43
43
  def dyna_model_s3_backup(options={})
44
44
  raise "DynaModel::Extensions::S3Backup requires a bucket." unless options[:bucket]
45
- options[:prefix] ||= self.to_s.underscore
45
+ options[:prefix] ||= "#{self.to_s.underscore.pluralize}-#{Rails.env}"
46
46
  #options[:after_save] = lambda { |obj| ... }
47
47
  @@dyna_model_s3_backup_config = options
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module DynaModel
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyna_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cary Dunn