active-component 0.0.7 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcb8f44437e5e17143a734d22165b998f38ac334
4
- data.tar.gz: e9cf276676957b12c99908c8040d50d2c65690c9
3
+ metadata.gz: 402735abd48e9e7a0135019a452af166936cf16c
4
+ data.tar.gz: eb521350b4ecd38e9938243bbee388476d3a715d
5
5
  SHA512:
6
- metadata.gz: 68e130a5c39615f4dd7e0a493dc3185bf4f2ac893d3987594154a71b29c771ed001ec35fdb6bf7e7d8a62878c7fb63012c93b0d31201f7826152d15e4245e607
7
- data.tar.gz: 102ab3d90b8b47605754ca20c6bd287af3952791291b2f331a07f4f231de318afbcbf2ae77ebb2f12713be39a72a38bd7bed85d57b66945b4424c797bd4405b8
6
+ metadata.gz: aa84221dcf17a31f85db59628dd3c63d50d6523d758f44244cbd726c81246db3d62f9d5857a6ed5efc8b2cbb155fee86dce0716f4faf00daed33841c20c8dcea
7
+ data.tar.gz: e5f9cad87861eaba702215c0d56e86265136bbe05c98c7d5e92eb5c7ee8fd94e6f2805f1b2c98903f9a9b5cc316feeb35ff1abc1410c9d8b8dd9d20040b63dfc
@@ -16,9 +16,6 @@ module ActiveComponent
16
16
 
17
17
  def constantize(type)
18
18
  type = type.camelize.constantize
19
- unless type.superclass == ActiveComponent::Base
20
- raise TypeError, ":type must be compliant to any existing component class"
21
- end
22
19
  type
23
20
  end
24
21
 
@@ -1,3 +1,3 @@
1
1
  module ActiveComponent
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -61,5 +61,70 @@ ActiveComponent::RenderableTest: test_renders_a_component
61
61
   (0.1ms) begin transaction
62
62
  -----------------------------------------------------
63
63
  ActiveComponentTest: test_has_a_get_controller_method
64
+ -----------------------------------------------------
65
+  (0.1ms) rollback transaction
66
+  (0.4ms) begin transaction
67
+ --------------------------------------------------------------------------------------------------------
68
+ ActiveComponent::BaseTest: test_a_new_instance_of_active_component/base_accepts_only_a_hash_of_arguments
69
+ --------------------------------------------------------------------------------------------------------
70
+  (0.1ms) rollback transaction
71
+  (0.1ms) begin transaction
72
+ -------------------------------------------------------------------------------------------------------------------------
73
+ ActiveComponent::BaseTest: test_a_new_instance_of_active_component_should_raise_an_error_if_the_given_value_is_not_a_hash
74
+ -------------------------------------------------------------------------------------------------------------------------
75
+  (0.0ms) rollback transaction
76
+  (0.1ms) begin transaction
77
+ ------------------------------------------------------------------------
78
+ ActiveComponent::BaseTest: test_assigns_the_values_to_instance_variables
79
+ ------------------------------------------------------------------------
80
+  (0.0ms) rollback transaction
81
+  (0.1ms) begin transaction
82
+ -------------------------------------------------------------------------
83
+ ActiveComponent::BaseTest: test_has_included_date_helper_from_action_view
84
+ -------------------------------------------------------------------------
85
+  (0.2ms) rollback transaction
86
+  (0.1ms) begin transaction
87
+ -------------------------------------------------------------------------
88
+ ActiveComponent::BaseTest: test_sets_controller_for_the_component_context
89
+ -------------------------------------------------------------------------
90
+  (0.1ms) rollback transaction
91
+  (0.1ms) begin transaction
92
+ ------------------------------------------------------------------------------
93
+ ActiveComponent::ContextTest: test_it_returns_exactly_the_same_controller_sent
94
+ ------------------------------------------------------------------------------
95
+  (0.1ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ ---------------------------------------------------------------
98
+ ActiveComponent::ContextTest: test_returns_a_cotroller_instance
99
+ ---------------------------------------------------------------
100
+  (0.1ms) rollback transaction
101
+  (0.1ms) begin transaction
102
+ -------------------------------------------------------------------------------
103
+ ActiveComponent::ContextTest: test_saves_the_controller_in_a_@@controllers_hash
104
+ -------------------------------------------------------------------------------
105
+  (0.1ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ ----------------------------------------------------
108
+ ActiveComponent::RailtieTest: test_has_before_filter
109
+ ----------------------------------------------------
110
+  (0.1ms) rollback transaction
111
+  (0.0ms) begin transaction
112
+ ---------------------------------------------------------
113
+ ActiveComponent::RailtieTest: test_has_the_context_method
114
+ ---------------------------------------------------------
115
+  (0.0ms) rollback transaction
116
+  (0.1ms) begin transaction
117
+ ---------------------------------------------------------------------------
118
+ ActiveComponent::RenderableTest: test_gets_a_component_instance_from_symbol
119
+ ---------------------------------------------------------------------------
120
+  (0.1ms) rollback transaction
121
+  (0.1ms) begin transaction
122
+ ---------------------------------------------------------
123
+ ActiveComponent::RenderableTest: test_renders_a_component
124
+ ---------------------------------------------------------
125
+  (0.1ms) rollback transaction
126
+  (0.0ms) begin transaction
127
+ -----------------------------------------------------
128
+ ActiveComponentTest: test_has_a_get_controller_method
64
129
  -----------------------------------------------------
65
130
   (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Chavez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-04 00:00:00.000000000 Z
12
+ date: 2013-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails