rock_motive 1.0.0.beta1 → 1.0.0.beta2
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 +4 -4
- data/lib/rock_motive/context.rb +41 -26
- data/lib/rock_motive/version.rb +1 -1
- data/test/dummy/log/test.log +380 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46b1ff2834674f5f77f2369fa56a304ba0773f62
|
4
|
+
data.tar.gz: 2dd15660e48457ed98ce78ec92f769c00b8b4332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0ef47e53df9e2d22c62a2e7150606534e51ce5fc911891f249311333eff005b011df668f1a809963183aaf84c5d6d75ba70e5f91d67c47a22b5954c1a18804c
|
7
|
+
data.tar.gz: 29d883f5063f637959e0902059eafa15bab6636a588e6bd7c095bff12b2a6a6e852d1e43bc64a3c477fdbb61e211d2ff74e383ef52d8da8e87abdace08b9c182
|
data/lib/rock_motive/context.rb
CHANGED
@@ -9,20 +9,20 @@ class RockMotive::Context
|
|
9
9
|
new.execute(*args)
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
class << klass
|
14
|
-
def method_added(method_name)
|
15
|
-
return if method_name != :execute || @__override_now
|
12
|
+
private
|
16
13
|
|
17
|
-
|
18
|
-
|
14
|
+
def method_added(method_name)
|
15
|
+
return if method_name != :execute || @__override_now
|
19
16
|
|
20
|
-
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
17
|
+
for_args, for_keywords = *roles_by_execute_method
|
18
|
+
return if for_args.reject(&:nil?).empty? && for_keywords.values.reject(&:nil?).empty?
|
24
19
|
|
25
|
-
|
20
|
+
override_execute_method(for_args, for_keywords)
|
21
|
+
|
22
|
+
@__override_now = true
|
23
|
+
alias_method_chain :execute, :roles
|
24
|
+
@__override_now = false
|
25
|
+
end
|
26
26
|
|
27
27
|
def execute_method
|
28
28
|
instance_method(:execute)
|
@@ -53,27 +53,42 @@ class RockMotive::Context
|
|
53
53
|
(const.is_a?(Module) && !const.is_a?(Class)) ? const : nil
|
54
54
|
end
|
55
55
|
|
56
|
-
# rubocop:disable all
|
57
56
|
def override_execute_method(for_args, for_keywords)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
57
|
+
method_definition = ['def execute_with_roles(*args, &block)']
|
58
|
+
method_definition << 'kv = args.last'
|
59
|
+
method_definition << for_args_definition(for_args, :extend)
|
60
|
+
method_definition << for_keywords_definition(for_keywords, :extend)
|
61
|
+
method_definition << 'ret = execute_without_roles(*args, &block)'
|
62
|
+
method_definition << for_args_definition(for_args, :unextend)
|
63
|
+
method_definition << for_keywords_definition(for_keywords, :unextend)
|
64
|
+
method_definition << 'ret'
|
65
|
+
method_definition << 'end'
|
66
|
+
|
67
|
+
class_eval(method_definition.join("\n"))
|
68
|
+
end
|
63
69
|
|
64
|
-
|
70
|
+
def for_args_definition(for_args, method_name)
|
71
|
+
defs = for_args.map.with_index do |role, n|
|
72
|
+
if role.nil?
|
73
|
+
''
|
74
|
+
else
|
75
|
+
"args[#{n}].#{method_name}(#{role.name})"
|
76
|
+
end
|
77
|
+
end
|
65
78
|
|
66
|
-
|
67
|
-
|
79
|
+
defs.reject(&:empty?).join('; ')
|
80
|
+
end
|
68
81
|
|
69
|
-
|
82
|
+
def for_keywords_definition(for_keywords, method_name)
|
83
|
+
defs = for_keywords.map do |key, role|
|
84
|
+
if role.nil?
|
85
|
+
''
|
86
|
+
else
|
87
|
+
"kv[:#{key}].#{method_name}(#{role.name})"
|
70
88
|
end
|
71
|
-
|
89
|
+
end
|
72
90
|
|
73
|
-
|
74
|
-
alias_method_chain :execute, :roles
|
75
|
-
@__override_now = false
|
91
|
+
defs.reject(&:empty?).join('; ')
|
76
92
|
end
|
77
93
|
end
|
78
|
-
# rubocop:enable all
|
79
94
|
end
|
data/lib/rock_motive/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -1703,3 +1703,383 @@ RockMotive::ContextTest: test_#execute_with_keyword_argument
|
|
1703
1703
|
RockMotive::ContextTest: test_#execute_with_extend
|
1704
1704
|
--------------------------------------------------
|
1705
1705
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1706
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1707
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1708
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1709
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1710
|
+
Migrating to CreateBirds (20150201003815)
|
1711
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1712
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1713
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201003815"]]
|
1714
|
+
[1m[35m (0.7ms)[0m commit transaction
|
1715
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1716
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1718
|
+
--------------------------
|
1719
|
+
RockMotiveTest: test_truth
|
1720
|
+
--------------------------
|
1721
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1722
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1723
|
+
--------------------------------------
|
1724
|
+
RockMotive::ContextTest: test_.execute
|
1725
|
+
--------------------------------------
|
1726
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1727
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1728
|
+
------------------------------------------------------
|
1729
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1730
|
+
------------------------------------------------------
|
1731
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1732
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1733
|
+
--------------------------------------------------
|
1734
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1735
|
+
--------------------------------------------------
|
1736
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1737
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1738
|
+
------------------------------------------------------------
|
1739
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1740
|
+
------------------------------------------------------------
|
1741
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1742
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1743
|
+
----------------------------------------------------
|
1744
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1745
|
+
----------------------------------------------------
|
1746
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1747
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1748
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1749
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1750
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1751
|
+
Migrating to CreateBirds (20150201003815)
|
1752
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1753
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1754
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201003815"]]
|
1755
|
+
[1m[35m (0.5ms)[0m commit transaction
|
1756
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1757
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1758
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1759
|
+
--------------------------
|
1760
|
+
RockMotiveTest: test_truth
|
1761
|
+
--------------------------
|
1762
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1763
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1764
|
+
--------------------------------------------------
|
1765
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1766
|
+
--------------------------------------------------
|
1767
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1768
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1769
|
+
--------------------------------------
|
1770
|
+
RockMotive::ContextTest: test_.execute
|
1771
|
+
--------------------------------------
|
1772
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1773
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1774
|
+
------------------------------------------------------
|
1775
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1776
|
+
------------------------------------------------------
|
1777
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1778
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1779
|
+
------------------------------------------------------------
|
1780
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1781
|
+
------------------------------------------------------------
|
1782
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1784
|
+
----------------------------------------------------
|
1785
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1786
|
+
----------------------------------------------------
|
1787
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1788
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1789
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1790
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1791
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1792
|
+
Migrating to CreateBirds (20150201003815)
|
1793
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1794
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1795
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201003815"]]
|
1796
|
+
[1m[35m (0.7ms)[0m commit transaction
|
1797
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1798
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1799
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1800
|
+
--------------------------
|
1801
|
+
RockMotiveTest: test_truth
|
1802
|
+
--------------------------
|
1803
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1804
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1805
|
+
----------------------------------------------------
|
1806
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1807
|
+
----------------------------------------------------
|
1808
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1809
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1810
|
+
------------------------------------------------------
|
1811
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1812
|
+
------------------------------------------------------
|
1813
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1814
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1815
|
+
------------------------------------------------------------
|
1816
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1817
|
+
------------------------------------------------------------
|
1818
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1819
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1820
|
+
--------------------------------------
|
1821
|
+
RockMotive::ContextTest: test_.execute
|
1822
|
+
--------------------------------------
|
1823
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1824
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1825
|
+
--------------------------------------------------
|
1826
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1827
|
+
--------------------------------------------------
|
1828
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1829
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1830
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1831
|
+
--------------------------------------
|
1832
|
+
RockMotive::ContextTest: test_.execute
|
1833
|
+
--------------------------------------
|
1834
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1835
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1836
|
+
------------------------------------------------------------
|
1837
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1838
|
+
------------------------------------------------------------
|
1839
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1840
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1841
|
+
----------------------------------------------------
|
1842
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1843
|
+
----------------------------------------------------
|
1844
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1845
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1846
|
+
------------------------------------------------------
|
1847
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1848
|
+
------------------------------------------------------
|
1849
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1850
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1851
|
+
--------------------------------------------------
|
1852
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1853
|
+
--------------------------------------------------
|
1854
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1855
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1856
|
+
--------------------------
|
1857
|
+
RockMotiveTest: test_truth
|
1858
|
+
--------------------------
|
1859
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1860
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1861
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1862
|
+
----------------------------------------------------
|
1863
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1864
|
+
----------------------------------------------------
|
1865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1867
|
+
------------------------------------------------------
|
1868
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1869
|
+
------------------------------------------------------
|
1870
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1871
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1872
|
+
------------------------------------------------------------
|
1873
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1874
|
+
------------------------------------------------------------
|
1875
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1876
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1877
|
+
--------------------------------------
|
1878
|
+
RockMotive::ContextTest: test_.execute
|
1879
|
+
--------------------------------------
|
1880
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1881
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1882
|
+
--------------------------------------------------
|
1883
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1884
|
+
--------------------------------------------------
|
1885
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1886
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1887
|
+
--------------------------
|
1888
|
+
RockMotiveTest: test_truth
|
1889
|
+
--------------------------
|
1890
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1891
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1892
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1893
|
+
--------------------------------------
|
1894
|
+
RockMotive::ContextTest: test_.execute
|
1895
|
+
--------------------------------------
|
1896
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1897
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1898
|
+
------------------------------------------------------
|
1899
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1900
|
+
------------------------------------------------------
|
1901
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1902
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1903
|
+
--------------------------------------------------
|
1904
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1905
|
+
--------------------------------------------------
|
1906
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1907
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1908
|
+
------------------------------------------------------------
|
1909
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1910
|
+
------------------------------------------------------------
|
1911
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1912
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1913
|
+
----------------------------------------------------
|
1914
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1915
|
+
----------------------------------------------------
|
1916
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1917
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1918
|
+
--------------------------
|
1919
|
+
RockMotiveTest: test_truth
|
1920
|
+
--------------------------
|
1921
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1922
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1923
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1924
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1925
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1926
|
+
Migrating to CreateBirds (20150201003815)
|
1927
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1928
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1929
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201003815"]]
|
1930
|
+
[1m[35m (0.6ms)[0m commit transaction
|
1931
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1932
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1933
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1934
|
+
------------------------------------------------------------
|
1935
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1936
|
+
------------------------------------------------------------
|
1937
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1938
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1939
|
+
--------------------------------------
|
1940
|
+
RockMotive::ContextTest: test_.execute
|
1941
|
+
--------------------------------------
|
1942
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1943
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1944
|
+
------------------------------------------------------
|
1945
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1946
|
+
------------------------------------------------------
|
1947
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1949
|
+
--------------------------------------------------
|
1950
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1951
|
+
--------------------------------------------------
|
1952
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1953
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1954
|
+
----------------------------------------------------
|
1955
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1956
|
+
----------------------------------------------------
|
1957
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1958
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1959
|
+
--------------------------
|
1960
|
+
RockMotiveTest: test_truth
|
1961
|
+
--------------------------
|
1962
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1963
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1964
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1965
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1966
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1967
|
+
Migrating to CreateBirds (20150201003815)
|
1968
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1969
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1970
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201003815"]]
|
1971
|
+
[1m[35m (0.7ms)[0m commit transaction
|
1972
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1973
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1974
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1975
|
+
--------------------------------------
|
1976
|
+
RockMotive::ContextTest: test_.execute
|
1977
|
+
--------------------------------------
|
1978
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1979
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1980
|
+
----------------------------------------------------
|
1981
|
+
RockMotive::ContextTest: test_.execute_with_override
|
1982
|
+
----------------------------------------------------
|
1983
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1984
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1985
|
+
------------------------------------------------------
|
1986
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
1987
|
+
------------------------------------------------------
|
1988
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1989
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1990
|
+
------------------------------------------------------------
|
1991
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
1992
|
+
------------------------------------------------------------
|
1993
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1994
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1995
|
+
--------------------------------------------------
|
1996
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
1997
|
+
--------------------------------------------------
|
1998
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1999
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2000
|
+
--------------------------
|
2001
|
+
RockMotiveTest: test_truth
|
2002
|
+
--------------------------
|
2003
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2004
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2005
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2006
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2007
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2008
|
+
Migrating to CreateBirds (20150201003815)
|
2009
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2010
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2011
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201003815"]]
|
2012
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2013
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2014
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2015
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2016
|
+
------------------------------------------------------
|
2017
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
2018
|
+
------------------------------------------------------
|
2019
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2020
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2021
|
+
--------------------------------------
|
2022
|
+
RockMotive::ContextTest: test_.execute
|
2023
|
+
--------------------------------------
|
2024
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2025
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2026
|
+
--------------------------------------------------
|
2027
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
2028
|
+
--------------------------------------------------
|
2029
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2030
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2031
|
+
------------------------------------------------------------
|
2032
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
2033
|
+
------------------------------------------------------------
|
2034
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2035
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2036
|
+
----------------------------------------------------
|
2037
|
+
RockMotive::ContextTest: test_.execute_with_override
|
2038
|
+
----------------------------------------------------
|
2039
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2040
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2041
|
+
--------------------------
|
2042
|
+
RockMotiveTest: test_truth
|
2043
|
+
--------------------------
|
2044
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2045
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2046
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2047
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2048
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2049
|
+
Migrating to CreateBirds (20150201003815)
|
2050
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2051
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "birds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2052
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201003815"]]
|
2053
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2054
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2055
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2056
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2057
|
+
--------------------------------------
|
2058
|
+
RockMotive::ContextTest: test_.execute
|
2059
|
+
--------------------------------------
|
2060
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2061
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2062
|
+
----------------------------------------------------
|
2063
|
+
RockMotive::ContextTest: test_.execute_with_override
|
2064
|
+
----------------------------------------------------
|
2065
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2066
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2067
|
+
------------------------------------------------------------
|
2068
|
+
RockMotive::ContextTest: test_#execute_with_keyword_argument
|
2069
|
+
------------------------------------------------------------
|
2070
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2072
|
+
------------------------------------------------------
|
2073
|
+
RockMotive::ContextTest: test_#execute_with_unextended
|
2074
|
+
------------------------------------------------------
|
2075
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2076
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2077
|
+
--------------------------------------------------
|
2078
|
+
RockMotive::ContextTest: test_#execute_with_extend
|
2079
|
+
--------------------------------------------------
|
2080
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2081
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2082
|
+
--------------------------
|
2083
|
+
RockMotiveTest: test_truth
|
2084
|
+
--------------------------
|
2085
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rock_motive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Kusano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|