grand_central 0.1.5 → 0.2.0

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: c2be2c20623f04ce6995884705921350e60d115b
4
- data.tar.gz: 1a54838fd92e40d2024ee5948c35907fe4b47e00
3
+ metadata.gz: 6b45f78ea1757bbbbc1c82b7af2160fddeb6a553
4
+ data.tar.gz: e277a7ae9bab10b26b8491243400929563dfae47
5
5
  SHA512:
6
- metadata.gz: a4cb19996d121c46c2793d77db7e57973c7e8463ef112423ba907573ff3c63e0e283ba4c25fbd0164688198773b5c61397843a3ab6569055c260a1b87d4ef7c6
7
- data.tar.gz: b5dd809cd9bf530e0306180d439150649ecbe1c1d52c1a109ad25aace4e2b3e190196328b64ce616edf285d15792ec5185dc3e77e00d1e9da6c964d48bd48c96
6
+ metadata.gz: 335b2ef9e6eeb2d0f783aa506cfe4af029051f7b7c9a0216c7ee0c8b656caac985c07e64826e521b821c7facae8064984fc2a12fe991c05d04f8c77f8c4f8304
7
+ data.tar.gz: 717c93ab776b1903f8e16d69666bfc4038a431dbcd1fa9cf381bf20bb22ad83bea394c8e8c0bd97c51669d9d0e5cbf0b2a982fdfff635798ddeed920ddda4bb9
@@ -12,5 +12,21 @@ module GrandCentral
12
12
 
13
13
  klass
14
14
  end
15
+
16
+ def self.create &block
17
+ with_attributes &block
18
+ end
19
+
20
+ def then &block
21
+ promise.then &block
22
+ end
23
+
24
+ def fail &block
25
+ promise.fail &block
26
+ end
27
+
28
+ def always
29
+ promise.always &block
30
+ end
15
31
  end
16
32
  end
@@ -12,7 +12,7 @@ module GrandCentral
12
12
  old_state = state
13
13
  @state = @reducer.call state, action
14
14
  run_callbacks old_state, state, action
15
- self
15
+ action
16
16
  end
17
17
 
18
18
  def on_dispatch &block
@@ -1,3 +1,3 @@
1
1
  module GrandCentral
2
- VERSION = "0.1.5"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grand_central
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Gaskins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-08 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description:
@@ -73,9 +73,9 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".gitignore"
77
- - ".rspec"
78
- - ".travis.yml"
76
+ - .gitignore
77
+ - .rspec
78
+ - .travis.yml
79
79
  - CODE_OF_CONDUCT.md
80
80
  - Gemfile
81
81
  - README.md
@@ -97,17 +97,17 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">="
100
+ - - '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ">="
105
+ - - '>='
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.4.5.1
110
+ rubygems_version: 2.0.14
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: State and action management for Opal apps