rock_motive 1.0.0.beta1 → 1.0.0.beta2

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