rules_engine 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -62,7 +62,7 @@ class RePlan < ActiveRecord::Base
62
62
  workflow_data = rule_data["workflow_#{rule_data["workflow"]}"]
63
63
  while (workflow_data && orig_re_workflows.length < 500)
64
64
  workflow_code = workflow_data["code"]
65
- re_workflow = ReWorkflow.find_by_code(workflow_code) || ReWorkflow.new
65
+ re_workflow = ReWorkflow.find_by_code(workflow_code) || ReWorkflow.new(:code => workflow_code)
66
66
  re_workflow.revert!(workflow_data)
67
67
  orig_re_workflows << re_workflow
68
68
 
@@ -41,7 +41,8 @@ class ReRule < ActiveRecord::Base
41
41
  end
42
42
 
43
43
  def publish
44
- { "rule_class_name" => rule_class_name,
44
+ { "uuid" => id,
45
+ "rule_class_name" => rule_class_name,
45
46
  "title" => title,
46
47
  "summary" => summary,
47
48
  "data" => data
@@ -40,7 +40,15 @@ class ReWorkflow < ActiveRecord::Base
40
40
  self.title = rule_data["title"]
41
41
  self.description = rule_data["description"]
42
42
 
43
- self.re_rules = (rule_data["rules"] || []).map { |rule| ReRule.new.revert!(rule) }
43
+ # self.re_rules = (rule_data["rules"] || []).map { |rule| ReRule.new.revert!(rule) }
44
+ orig_re_rules = []
45
+ (rule_data["rules"] || []).each do |rule|
46
+ re_rule = ReRule.find_by_id(rule["uuid"]) || ReRule.new
47
+ re_rule.revert!(rule)
48
+ orig_re_rules << re_rule
49
+ end
50
+
51
+ self.re_rules = orig_re_rules
44
52
  self
45
53
  end
46
54
 
@@ -1,7 +1,7 @@
1
1
  # Be sure to restart your server when you modify this file
2
2
 
3
3
  # Specifies gem version of Rails to use when vendor/rails is not present
4
- RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
4
+ RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
5
5
 
6
6
  # Bootstrap the Rails environment, frameworks, and default configuration
7
7
  require File.join(File.dirname(__FILE__), 'boot')
@@ -13717,3 +13717,378 @@
13717
13717
  WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13718
13718
  
13719
13719
  SQL (0.1ms) SELECT version FROM "schema_migrations"
13720
+ SQL (1.4ms) select sqlite_version(*)
13721
+ SQL (0.8ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13722
+ SQL (0.1ms)  SELECT name
13723
+ FROM sqlite_master
13724
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13725
+ 
13726
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13727
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
13728
+ SQL (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13729
+ SQL (0.1ms)  SELECT name
13730
+ FROM sqlite_master
13731
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13732
+ 
13733
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13734
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
13735
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
13736
+ SQL (0.1ms)  SELECT name
13737
+ FROM sqlite_master
13738
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13739
+ 
13740
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13741
+ SQL (0.3ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
13742
+ SQL (0.2ms)  SELECT name
13743
+ FROM sqlite_master
13744
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13745
+ 
13746
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13747
+ SQL (0.1ms) select sqlite_version(*)
13748
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13749
+ SQL (0.1ms)  SELECT name
13750
+ FROM sqlite_master
13751
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13752
+ 
13753
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13754
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
13755
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13756
+ SQL (0.1ms)  SELECT name
13757
+ FROM sqlite_master
13758
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13759
+ 
13760
+ SQL (0.0ms) SELECT version FROM "schema_migrations"
13761
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
13762
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
13763
+ SQL (0.1ms)  SELECT name
13764
+ FROM sqlite_master
13765
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13766
+ 
13767
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13768
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
13769
+ SQL (0.1ms)  SELECT name
13770
+ FROM sqlite_master
13771
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13772
+ 
13773
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13774
+ SQL (0.1ms) select sqlite_version(*)
13775
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13776
+ SQL (0.1ms)  SELECT name
13777
+ FROM sqlite_master
13778
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13779
+ 
13780
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13781
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
13782
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13783
+ SQL (0.1ms)  SELECT name
13784
+ FROM sqlite_master
13785
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13786
+ 
13787
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13788
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
13789
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
13790
+ SQL (0.1ms)  SELECT name
13791
+ FROM sqlite_master
13792
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13793
+ 
13794
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13795
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
13796
+ SQL (0.2ms)  SELECT name
13797
+ FROM sqlite_master
13798
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13799
+ 
13800
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13801
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13802
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13803
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13804
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
13805
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
13806
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13807
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13808
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13809
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
13810
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13811
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13812
+ RulesEngine::Publish::RePublishedPlan Create (0.4ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13813
+ RulesEngine::Publish::RePublishedPlan Load (0.3ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
13814
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
13815
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13816
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13817
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13818
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
13819
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13820
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13821
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13822
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
13823
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
13824
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:05:13', 1001, 1, 'message 1')
13825
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:06:13', 1001, 1, 'message 2')
13826
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:07:13', 1001, 1, 'message 3')
13827
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:05:13', 1002, 1, 'message 4')
13828
+ RulesEngine::Process::ReProcessAudit Load (0.2ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
13829
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'mock_code', 0, NULL)
13830
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'mock_code', 1, '2010-09-07 04:05:14')
13831
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', '2010-09-07 04:06:14', 'mock_code', 2, '2010-09-07 04:04:14')
13832
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', '2010-09-07 04:07:14', 'mock_code', 3, '2010-09-07 04:03:14')
13833
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'invalid_dates', 1, '2010-09-07 04:02:14')
13834
+ RulesEngine::Process::ReProcessRun Load (0.3ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
13835
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'mock_code', 0, NULL)
13836
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'mock_code', 1, '2010-09-07 04:05:14')
13837
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', '2010-09-07 04:06:14', 'mock_code', 2, '2010-09-07 04:04:14')
13838
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', '2010-09-07 04:07:14', 'mock_code', 3, '2010-09-07 04:03:14')
13839
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'invalid_dates', 1, '2010-09-07 04:02:14')
13840
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'mock_code', 0, NULL)
13841
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'mock_code', 1, '2010-09-07 04:05:14')
13842
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', '2010-09-07 04:06:14', 'mock_code', 2, '2010-09-07 04:04:14')
13843
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', '2010-09-07 04:07:14', 'mock_code', 3, '2010-09-07 04:03:14')
13844
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:14', NULL, 'invalid_dates', 1, '2010-09-07 04:02:14')
13845
+ SQL (0.3ms) select sqlite_version(*)
13846
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13847
+ SQL (0.1ms)  SELECT name
13848
+ FROM sqlite_master
13849
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13850
+ 
13851
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13852
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
13853
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13854
+ SQL (0.1ms)  SELECT name
13855
+ FROM sqlite_master
13856
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13857
+ 
13858
+ SQL (0.0ms) SELECT version FROM "schema_migrations"
13859
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
13860
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
13861
+ SQL (0.1ms)  SELECT name
13862
+ FROM sqlite_master
13863
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13864
+ 
13865
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13866
+ SQL (0.3ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
13867
+ SQL (0.1ms)  SELECT name
13868
+ FROM sqlite_master
13869
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13870
+ 
13871
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13872
+ SQL (0.1ms) select sqlite_version(*)
13873
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13874
+ SQL (0.1ms)  SELECT name
13875
+ FROM sqlite_master
13876
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13877
+ 
13878
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13879
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
13880
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13881
+ SQL (0.1ms)  SELECT name
13882
+ FROM sqlite_master
13883
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13884
+ 
13885
+ SQL (0.0ms) SELECT version FROM "schema_migrations"
13886
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
13887
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
13888
+ SQL (0.1ms)  SELECT name
13889
+ FROM sqlite_master
13890
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13891
+ 
13892
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13893
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
13894
+ SQL (0.1ms)  SELECT name
13895
+ FROM sqlite_master
13896
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13897
+ 
13898
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13899
+ SQL (0.1ms) select sqlite_version(*)
13900
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13901
+ SQL (0.1ms)  SELECT name
13902
+ FROM sqlite_master
13903
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13904
+ 
13905
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13906
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
13907
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13908
+ SQL (0.1ms)  SELECT name
13909
+ FROM sqlite_master
13910
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13911
+ 
13912
+ SQL (0.0ms) SELECT version FROM "schema_migrations"
13913
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
13914
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
13915
+ SQL (0.1ms)  SELECT name
13916
+ FROM sqlite_master
13917
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13918
+ 
13919
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13920
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
13921
+ SQL (0.1ms)  SELECT name
13922
+ FROM sqlite_master
13923
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13924
+ 
13925
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13926
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13927
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13928
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13929
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
13930
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
13931
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13932
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13933
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13934
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
13935
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13936
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13937
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13938
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
13939
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
13940
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13941
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13942
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13943
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
13944
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
13945
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
13946
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
13947
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
13948
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
13949
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:05:17', 1001, 1, 'message 1')
13950
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:06:17', 1001, 1, 'message 2')
13951
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:07:17', 1001, 1, 'message 3')
13952
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:05:17', 1002, 1, 'message 4')
13953
+ RulesEngine::Process::ReProcessAudit Load (0.2ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
13954
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'mock_code', 0, NULL)
13955
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'mock_code', 1, '2010-09-07 04:05:17')
13956
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', '2010-09-07 04:06:17', 'mock_code', 2, '2010-09-07 04:04:17')
13957
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', '2010-09-07 04:07:17', 'mock_code', 3, '2010-09-07 04:03:17')
13958
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'invalid_dates', 1, '2010-09-07 04:02:17')
13959
+ RulesEngine::Process::ReProcessRun Load (0.3ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
13960
+ RulesEngine::Process::ReProcessRun Create (0.2ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'mock_code', 0, NULL)
13961
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'mock_code', 1, '2010-09-07 04:05:17')
13962
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', '2010-09-07 04:06:17', 'mock_code', 2, '2010-09-07 04:04:17')
13963
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', '2010-09-07 04:07:17', 'mock_code', 3, '2010-09-07 04:03:17')
13964
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'invalid_dates', 1, '2010-09-07 04:02:17')
13965
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'mock_code', 0, NULL)
13966
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'mock_code', 1, '2010-09-07 04:05:17')
13967
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', '2010-09-07 04:06:17', 'mock_code', 2, '2010-09-07 04:04:17')
13968
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', '2010-09-07 04:07:17', 'mock_code', 3, '2010-09-07 04:03:17')
13969
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:17', NULL, 'invalid_dates', 1, '2010-09-07 04:02:17')
13970
+ SQL (0.3ms) select sqlite_version(*)
13971
+ SQL (0.4ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13972
+ SQL (0.1ms)  SELECT name
13973
+ FROM sqlite_master
13974
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13975
+ 
13976
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
13977
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
13978
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13979
+ SQL (0.1ms)  SELECT name
13980
+ FROM sqlite_master
13981
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13982
+ 
13983
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13984
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
13985
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
13986
+ SQL (0.1ms)  SELECT name
13987
+ FROM sqlite_master
13988
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13989
+ 
13990
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13991
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
13992
+ SQL (0.2ms)  SELECT name
13993
+ FROM sqlite_master
13994
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
13995
+ 
13996
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
13997
+ SQL (0.1ms) select sqlite_version(*)
13998
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
13999
+ SQL (0.1ms)  SELECT name
14000
+ FROM sqlite_master
14001
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14002
+ 
14003
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
14004
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
14005
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14006
+ SQL (0.1ms)  SELECT name
14007
+ FROM sqlite_master
14008
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14009
+ 
14010
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
14011
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
14012
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
14013
+ SQL (0.1ms)  SELECT name
14014
+ FROM sqlite_master
14015
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14016
+ 
14017
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
14018
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
14019
+ SQL (0.1ms)  SELECT name
14020
+ FROM sqlite_master
14021
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14022
+ 
14023
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
14024
+ SQL (0.1ms) select sqlite_version(*)
14025
+ SQL (0.3ms) CREATE TABLE "re_published_plans" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "plan_version" integer, "version_tag" varchar(255), "published_at" datetime, "data" text) 
14026
+ SQL (0.1ms)  SELECT name
14027
+ FROM sqlite_master
14028
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14029
+ 
14030
+ SQL (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
14031
+ SQL (0.0ms) PRAGMA index_list("schema_migrations")
14032
+ SQL (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14033
+ SQL (0.1ms)  SELECT name
14034
+ FROM sqlite_master
14035
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14036
+ 
14037
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
14038
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
14039
+ SQL (0.2ms) CREATE TABLE "re_process_runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "plan_code" varchar(255), "process_status" integer, "created_at" datetime, "started_at" datetime, "finished_at" datetime) 
14040
+ SQL (0.1ms)  SELECT name
14041
+ FROM sqlite_master
14042
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14043
+ 
14044
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
14045
+ SQL (0.2ms) CREATE TABLE "re_process_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "process_id" integer, "created_at" datetime, "code" integer, "message" varchar(255)) 
14046
+ SQL (0.1ms)  SELECT name
14047
+ FROM sqlite_master
14048
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14049
+ 
14050
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
14051
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
14052
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
14053
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
14054
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC
14055
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'other_code') ORDER BY plan_version DESC
14056
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
14057
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
14058
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
14059
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'dummy') ORDER BY plan_version DESC
14060
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
14061
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
14062
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
14063
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
14064
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'mock_code') ORDER BY plan_version DESC LIMIT 1
14065
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
14066
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
14067
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
14068
+ RulesEngine::Publish::RePublishedPlan Load (0.2ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 1) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
14069
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 1, NULL, 'mock_tag')
14070
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["mock data"]', 'mock_code', 2, NULL, 'mock_tag')
14071
+ RulesEngine::Publish::RePublishedPlan Create (0.1ms) INSERT INTO "re_published_plans" ("data", "plan_code", "plan_version", "published_at", "version_tag") VALUES('["not found data"]', 'other_code', 1, NULL, 'other_code_tag')
14072
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE ((plan_version = 3) AND (plan_code = 'mock_code')) ORDER BY plan_version DESC LIMIT 1
14073
+ RulesEngine::Publish::RePublishedPlan Load (0.1ms) SELECT * FROM "re_published_plans" WHERE (plan_code = 'not_a_code') ORDER BY plan_version DESC LIMIT 1
14074
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:05:28', 1001, 1, 'message 1')
14075
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:06:28', 1001, 1, 'message 2')
14076
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:07:28', 1001, 1, 'message 3')
14077
+ RulesEngine::Process::ReProcessAudit Create (0.1ms) INSERT INTO "re_process_audits" ("created_at", "process_id", "code", "message") VALUES('2010-09-07 04:05:28', 1002, 1, 'message 4')
14078
+ RulesEngine::Process::ReProcessAudit Load (0.2ms) SELECT * FROM "re_process_audits" WHERE (process_id = 1001) ORDER BY created_at ASC, id ASC
14079
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'mock_code', 0, NULL)
14080
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'mock_code', 1, '2010-09-07 04:05:28')
14081
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', '2010-09-07 04:06:28', 'mock_code', 2, '2010-09-07 04:04:28')
14082
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', '2010-09-07 04:07:28', 'mock_code', 3, '2010-09-07 04:03:28')
14083
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'invalid_dates', 1, '2010-09-07 04:02:28')
14084
+ RulesEngine::Process::ReProcessRun Load (0.3ms) SELECT * FROM "re_process_runs" WHERE (process_status > 0) ORDER BY started_at DESC, id DESC LIMIT 10 OFFSET 0
14085
+ RulesEngine::Process::ReProcessRun Create (0.2ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'mock_code', 0, NULL)
14086
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'mock_code', 1, '2010-09-07 04:05:28')
14087
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', '2010-09-07 04:06:28', 'mock_code', 2, '2010-09-07 04:04:28')
14088
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', '2010-09-07 04:07:28', 'mock_code', 3, '2010-09-07 04:03:28')
14089
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'invalid_dates', 1, '2010-09-07 04:02:28')
14090
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'mock_code', 0, NULL)
14091
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'mock_code', 1, '2010-09-07 04:05:28')
14092
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', '2010-09-07 04:06:28', 'mock_code', 2, '2010-09-07 04:04:28')
14093
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', '2010-09-07 04:07:28', 'mock_code', 3, '2010-09-07 04:03:28')
14094
+ RulesEngine::Process::ReProcessRun Create (0.1ms) INSERT INTO "re_process_runs" ("created_at", "finished_at", "plan_code", "process_status", "started_at") VALUES('2010-09-07 04:05:28', NULL, 'invalid_dates', 1, '2010-09-07 04:02:28')
@@ -1258,3 +1258,72 @@
1258
1258
  ***** 1009, 3, Plan : mock_plan : failure
1259
1259
  ***** 1009, 1, Plan : mock_plan : started
1260
1260
  ***** 1009, 3, Plan : mock_plan : failure
1261
+ ***** 1009, 1, Plan : mock_plan : started
1262
+ ***** 1009, 3, Plan : mock_plan : failure
1263
+ ***** 1009, 1, Plan : mock_plan : started
1264
+ ***** 1009, 3, Plan : mock_plan : failure
1265
+ ***** 1009, 1, Plan : mock_plan : started
1266
+ ***** 1009, 2, Plan : mock_plan : success
1267
+ ***** 1009, 1, Plan : mock_plan : started
1268
+ ***** 1009, 2, Plan : mock_plan : success
1269
+ ***** 1009, 1, Plan : mock_plan : started
1270
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1271
+ ***** 1009, 3, Plan : mock_plan : failure
1272
+ ***** 1009, 1, Plan : mock_plan : started
1273
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1274
+ ***** 1009, 3, Plan : mock_plan : failure
1275
+ ***** 1009, 1, Plan : mock_plan : started
1276
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1277
+ ***** 1009, 3, Plan : mock_plan : failure
1278
+ ***** 1009, 3, Process missing
1279
+ ***** 1009, 1, Plan : mock_plan : started
1280
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1281
+ ***** 1009, 3, Plan : mock_plan : failure
1282
+ ***** 1009, 1, Plan : mock_plan : started
1283
+ ***** 1009, 3, Plan : mock_plan : failure
1284
+ ***** 1009, 1, Plan : mock_plan : started
1285
+ ***** 1009, 3, Plan : mock_plan : failure
1286
+ ***** 1009, 1, Plan : mock_plan : started
1287
+ ***** 1009, 3, Plan : mock_plan : failure
1288
+ ***** 1009, 1, Plan : mock_plan : started
1289
+ ***** 1009, 2, Plan : mock_plan : success
1290
+ ***** 1009, 1, Plan : mock_plan : started
1291
+ ***** 1009, 2, Plan : mock_plan : success
1292
+ ***** 1009, 1, Plan : mock_plan : started
1293
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1294
+ ***** 1009, 3, Plan : mock_plan : failure
1295
+ ***** 1009, 1, Plan : mock_plan : started
1296
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1297
+ ***** 1009, 3, Plan : mock_plan : failure
1298
+ ***** 1009, 1, Plan : mock_plan : started
1299
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1300
+ ***** 1009, 3, Plan : mock_plan : failure
1301
+ ***** 1009, 3, Process missing
1302
+ ***** 1009, 1, Plan : mock_plan : started
1303
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1304
+ ***** 1009, 3, Plan : mock_plan : failure
1305
+ ***** 1009, 1, Plan : mock_plan : started
1306
+ ***** 1009, 3, Plan : mock_plan : failure
1307
+ ***** 1009, 1, Plan : mock_plan : started
1308
+ ***** 1009, 3, Plan : mock_plan : failure
1309
+ ***** 1009, 1, Plan : mock_plan : started
1310
+ ***** 1009, 3, Plan : mock_plan : failure
1311
+ ***** 1009, 1, Plan : mock_plan : started
1312
+ ***** 1009, 2, Plan : mock_plan : success
1313
+ ***** 1009, 1, Plan : mock_plan : started
1314
+ ***** 1009, 2, Plan : mock_plan : success
1315
+ ***** 1009, 1, Plan : mock_plan : started
1316
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1317
+ ***** 1009, 3, Plan : mock_plan : failure
1318
+ ***** 1009, 1, Plan : mock_plan : started
1319
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1320
+ ***** 1009, 3, Plan : mock_plan : failure
1321
+ ***** 1009, 1, Plan : mock_plan : started
1322
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1323
+ ***** 1009, 3, Plan : mock_plan : failure
1324
+ ***** 1009, 3, Process missing
1325
+ ***** 1009, 1, Plan : mock_plan : started
1326
+ ***** 1009, 3, Workflow : db_runner_workflow : not found
1327
+ ***** 1009, 3, Plan : mock_plan : failure
1328
+ ***** 1009, 1, Plan : mock_plan : started
1329
+ ***** 1009, 3, Plan : mock_plan : failure
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rules_engine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Douglas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-26 00:00:00 +10:00
18
+ date: 2010-09-07 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency