replication 0.1.0

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.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/Gemfile +14 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +120 -0
  6. data/Rakefile +13 -0
  7. data/db/migrate/714417722_replication_migration.rb +15 -0
  8. data/lib/replication/active_record/strand.rb +13 -0
  9. data/lib/replication/config.rb +21 -0
  10. data/lib/replication/engine.rb +5 -0
  11. data/lib/replication/modules/proofreading.rb +27 -0
  12. data/lib/replication/modules/semi_conservative.rb +35 -0
  13. data/lib/replication/process.rb +57 -0
  14. data/lib/replication/strand_methods.rb +16 -0
  15. data/lib/replication/version.rb +3 -0
  16. data/lib/replication.rb +27 -0
  17. data/replication.gemspec +24 -0
  18. data/test/orm/active_record.rb +10 -0
  19. data/test/rails_app/Rakefile +6 -0
  20. data/test/rails_app/app/models/.keep +0 -0
  21. data/test/rails_app/app/models/concerns/.keep +0 -0
  22. data/test/rails_app/app/models/organism.rb +3 -0
  23. data/test/rails_app/config/application.rb +34 -0
  24. data/test/rails_app/config/boot.rb +3 -0
  25. data/test/rails_app/config/database.yml +22 -0
  26. data/test/rails_app/config/environment.rb +5 -0
  27. data/test/rails_app/config/environments/test.rb +37 -0
  28. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  29. data/test/rails_app/config/initializers/cookies_serializer.rb +3 -0
  30. data/test/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  31. data/test/rails_app/config/initializers/inflections.rb +16 -0
  32. data/test/rails_app/config/initializers/mime_types.rb +4 -0
  33. data/test/rails_app/config/initializers/session_store.rb +3 -0
  34. data/test/rails_app/config/initializers/wrap_parameters.rb +14 -0
  35. data/test/rails_app/config/routes.rb +56 -0
  36. data/test/rails_app/config/secrets.yml +22 -0
  37. data/test/rails_app/config.ru +4 -0
  38. data/test/rails_app/db/migrate/830335961_organism_migration.rb +15 -0
  39. data/test/rails_app/log/test.log +1476 -0
  40. data/test/replication/modules/proofreading_test.rb +22 -0
  41. data/test/replication/modules/semi_conservative_test.rb +24 -0
  42. data/test/replication/process_test.rb +51 -0
  43. data/test/replication_test.rb +9 -0
  44. data/test/test_helper.rb +11 -0
  45. metadata +142 -0
@@ -0,0 +1,56 @@
1
+ Rails.application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: a33315a1bc61edd0f7a7269a0b3c2180e5546a55cf37a021618c6035f6fb0cd8ac8837b7ebc09c0e3fbad147f7c8bf3aef5a4ff964ad376c6fb2fa6948f965ed
15
+
16
+ test:
17
+ secret_key_base: 41445497c73c1ec30ac52cce37fdfac8d6176b787e3ffb933b851d41e2b7ba28cd8f985ac6afa1bea0e9f704818042bc60d2dd000175141ad5aa51826204d792
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -0,0 +1,15 @@
1
+ class OrganismMigration < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :organisms do |t|
4
+ t.string :name
5
+ t.integer :number_of_legs
6
+ t.datetime :birth_date
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+
12
+ def self.down
13
+ drop_table :organisms
14
+ end
15
+ end