dumped_railers 0.1.3 → 0.1.4

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: 440f4c535538d4dc81d6b117d26c27a9639146776b11fa5358ee90bbd8528b8b
4
- data.tar.gz: ea53e8c0ca3a4220432bfcf40895e79a5bff18b616965b2627db7f78b73b39b0
3
+ metadata.gz: e4a93dbe684079409978553480483dbd5d2727f1f694470a8b62e89e0715fbe8
4
+ data.tar.gz: 266714eaca3eb9311effa69a5a6a1d4d784c758f04ea50574d24a44fcbe6a210
5
5
  SHA512:
6
- metadata.gz: 847f16c2456ddd871963feee72a95e57bffac72a63c7c67f714b93dfb7c95698f0ee44f368b0f2166a1a1bd1cc4bd9a4bc3d084fd0fc556c055d233bcc9f67f9
7
- data.tar.gz: 11e9d92b573fa02f1602af0035d5834648d6893b0b04c6ad64729c6b19504b99ba3ce1bdea7ee9c04a02e2833164a5c1e10e809badd8eacb09f06c35f4eb9c43
6
+ metadata.gz: f858057d3a62e389a01580a42fc926491a6c55e1f351a27a1d631fffba06727ccfecf6109848e1d547897218924398f1dc1176d9733205d8164cb7332987dae3
7
+ data.tar.gz: 4ee34e3d764eb00f8b244fdacce154f94cae38a6839c71bd7b640907fea235c84d8eaf83b1519fc6872fe305383d031253a55b5f91b79d39b5c96facb821c4f8
@@ -22,4 +22,7 @@
22
22
  - Cope with relations that has different name with the actual class name
23
23
  (e.g. associations defined using `:class_name` and `:foreign_key` options)
24
24
 
25
-
25
+ ## [0.1.4]
26
+ ### Changed
27
+ - Update documents not to eagerload DumpedRailers to prevent accidental data breakage / leakage.
28
+ To activate, it is preferable to require explicitly where necessary.
data/README.md CHANGED
@@ -22,7 +22,10 @@ This feature can particularily help you in the following senarios:
22
22
  Add this line to your application's Gemfile:
23
23
 
24
24
  ```ruby
25
- gem 'dumped_railers'
25
+ # if you use this gem in production, `require: false` would be recommended
26
+ # to prevent accidental database leakage/breakage.
27
+
28
+ gem 'dumped_railers', require: false
26
29
  ```
27
30
 
28
31
  And then execute:
@@ -37,7 +40,13 @@ Or install it yourself as:
37
40
 
38
41
  ### Getting Started
39
42
 
40
- * if you want to dump (let's say) User, Item, and Tag models, just run the following.
43
+ * Require dumped_railers where necessary (e.g. in your rake tasks, or script files)
44
+
45
+ ```ruby
46
+ require 'dumped_railers'
47
+ ```
48
+
49
+ * if you want to dump records from (let's say) User, Item, and Tag, just run the following.
41
50
 
42
51
  ```ruby
43
52
  DumpedRailers.dump!(User, Item, Tag, base_dir: 'tmp/fixtures/')
@@ -146,9 +155,13 @@ class Egg < ActiveRecord::Base
146
155
  end
147
156
  ```
148
157
 
149
- * When exception raised, checking your log might give you a good hint (desperately staring at the backtrace won't give much information)
158
+ * For the same reason, self-associated model cannot be imported currently. (might be updated in the future version)
159
+
160
+ * When an exception was raised, checking your log might give you a good hint (desperately staring at the backtrace won't give much information)
150
161
  consider displaying `tail -f logs/development.log` while executing your script.
151
162
 
163
+ * DumpedRailers is tested against various association types, as long as target models and underlying tables have 1-on-1 mapping (straightforward ActiveRecord pattern). Currently we haven't test this against STI, CTI, as such. Applying this gem to such models might lead to some unexpected results.
164
+
152
165
  ## Development
153
166
 
154
167
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,3 +1,3 @@
1
1
  module DumpedRailers
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumped_railers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koji Onishi
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.0.3
196
+ rubygems_version: 3.2.0
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: A flexible fixture importer/exporter, that can transport ActiveRecord data