hamburger 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hamburger.rb +2 -1
- data/lib/hamburger/version.rb +1 -1
- data/lib/modules/backupable.rb +5 -0
- data/lib/railties/hamburger.rb +12 -4
- data/lib/tasks/data_to_json.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f8c3194fd8efb8abcf7a431a882ce2ec2ed93c8
|
4
|
+
data.tar.gz: 485703285b25152cfffcd0e6cce12f54848952d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 285981f92a7a3256e2d1e13a5e88c78770adc914f8814d58c64a2d75d55abced76ddeed1c3726863c6c1f05b878352e859264ffdc1a2655642d3b1a2182b3fe0
|
7
|
+
data.tar.gz: 38b984cb57a70531448d4c69038283078c68b686983090ecf24de7b469d32b7bfe46fd93cfc7c1ca5f32161ddf0718d33bc1289fe3acad503f52b2bb5a1c9c73
|
data/lib/hamburger.rb
CHANGED
data/lib/hamburger/version.rb
CHANGED
data/lib/railties/hamburger.rb
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
module HamburgerRails
|
2
|
+
class HamburgerRailtie < Rails::Railtie
|
3
|
+
|
4
|
+
initializer "hamburger_railtie.backupable" do
|
5
|
+
ActiveRecord::Base.send :include, Backupable
|
5
6
|
end
|
7
|
+
|
8
|
+
rake_tasks do
|
9
|
+
Dir[File.join(File.dirname(__FILE__),'../tasks/')+"*.rb"].each do |file|
|
10
|
+
load file
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
end
|
7
15
|
end
|
data/lib/tasks/data_to_json.rb
CHANGED
@@ -8,7 +8,7 @@ namespace :hamburger do
|
|
8
8
|
Rails.application.eager_load!
|
9
9
|
ActiveRecord::Base.descendants.each do |record|
|
10
10
|
record.all.each do |data|
|
11
|
-
file_handle.write(data.
|
11
|
+
file_handle.write(data.to_backupable_json)
|
12
12
|
file_handle.write("\n\r");
|
13
13
|
end
|
14
14
|
file_handle.write("\n\r")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamburger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Pessetto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- hamburger.gemspec
|
55
55
|
- lib/hamburger.rb
|
56
56
|
- lib/hamburger/version.rb
|
57
|
+
- lib/modules/backupable.rb
|
57
58
|
- lib/railties/hamburger.rb
|
58
59
|
- lib/tasks/data_to_json.rb
|
59
60
|
homepage: https://helpsheets.co
|