hyper-store 1.0.alpha1.5 → 1.0.0.lap28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -4
- data/.rubocop.yml +107 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/DOCS.md +312 -0
- data/Gemfile +1 -4
- data/LICENSE.txt +21 -0
- data/README.md +80 -0
- data/Rakefile +2 -0
- data/dciy.toml +3 -0
- data/hyper-store.gemspec +8 -15
- data/lib/hyper-store.rb +16 -19
- data/lib/hyper-store/class_methods.rb +32 -0
- data/lib/hyper-store/dispatch_receiver.rb +38 -0
- data/lib/hyper-store/instance_methods.rb +40 -0
- data/lib/hyper-store/mutator_wrapper.rb +71 -0
- data/lib/hyper-store/state_wrapper.rb +107 -0
- data/lib/hyper-store/state_wrapper/argument_validator.rb +91 -0
- data/lib/hyper-store/version.rb +3 -0
- data/lib/hyperloop/application/boot.rb +34 -0
- data/lib/hyperloop/store.rb +12 -0
- data/lib/hyperloop/store/mixin.rb +21 -0
- data/lib/react/observable.rb +29 -0
- data/lib/react/state.rb +143 -0
- metadata +36 -116
- data/lib/hyperstack/internal/store/class_methods.rb +0 -36
- data/lib/hyperstack/internal/store/dispatch_receiver.rb +0 -41
- data/lib/hyperstack/internal/store/instance_methods.rb +0 -45
- data/lib/hyperstack/internal/store/mutator_wrapper.rb +0 -84
- data/lib/hyperstack/internal/store/observable.rb +0 -33
- data/lib/hyperstack/internal/store/state_wrapper.rb +0 -116
- data/lib/hyperstack/internal/store/state_wrapper/argument_validator.rb +0 -93
- data/lib/hyperstack/legacy/store.rb +0 -23
- data/lib/hyperstack/legacy/store/version.rb +0 -7
@@ -1,23 +0,0 @@
|
|
1
|
-
module Hyperstack
|
2
|
-
module Legacy
|
3
|
-
module Store
|
4
|
-
class InvalidOptionError < StandardError; end
|
5
|
-
class InvalidOperationError < StandardError; end
|
6
|
-
class << self
|
7
|
-
def included(base)
|
8
|
-
base.include(Hyperstack::Internal::Store::InstanceMethods)
|
9
|
-
base.extend(Hyperstack::Internal::Store::ClassMethods)
|
10
|
-
base.extend(Hyperstack::Internal::Store::DispatchReceiver)
|
11
|
-
|
12
|
-
base.singleton_class.define_singleton_method(:__state_wrapper) do
|
13
|
-
@__state_wrapper ||= Class.new(Hyperstack::Internal::Store::StateWrapper)
|
14
|
-
end
|
15
|
-
|
16
|
-
base.singleton_class.define_singleton_method(:state) do |*args, &block|
|
17
|
-
__state_wrapper.define_state_methods(base, *args, &block)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|