hero 0.1.2 → 0.1.3
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.
- data/LICENSE.txt +22 -0
- data/README.md +6 -4
- data/lib/hero/version.rb +3 -0
- metadata +6 -4
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Nathan Hopkins
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -26,6 +26,8 @@ One that evolved from the real world with concrete use cases and actual producti
|
|
26
26
|
* It easily handles changing requirements
|
27
27
|
* It reduces the ramp up time for new team members
|
28
28
|
|
29
|
+
Think of Hero as a simplified state machine which enables implementations that can be understood at a glance.
|
30
|
+
|
29
31
|
## Match the Implementation to the Business Process
|
30
32
|
|
31
33
|
The problem has always been: **How do you effectively model a business process within your app?**
|
@@ -169,10 +171,10 @@ We also need an initializer to set the formula up.
|
|
169
171
|
|
170
172
|
```ruby
|
171
173
|
# app/initializer.rb
|
172
|
-
Hero::Formula[:gather_news].add_step
|
173
|
-
Hero::Formula[:gather_news].add_step
|
174
|
-
Hero::Formula[:gather_news].add_step
|
175
|
-
Hero::Formula[:gather_news].add_step
|
174
|
+
Hero::Formula[:gather_news].add_step GatherNews::HackerNews.new
|
175
|
+
Hero::Formula[:gather_news].add_step GatherNews::Reddit.new
|
176
|
+
Hero::Formula[:gather_news].add_step GatherNews::Google.new
|
177
|
+
Hero::Formula[:gather_news].add_step GatherNews::Email.new
|
176
178
|
```
|
177
179
|
|
178
180
|
Now we have a well structured application thats ready to grow.
|
data/lib/hero/version.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! ' Simplify your app by effectively modeling business processes within
|
15
15
|
it.
|
@@ -23,9 +23,11 @@ extra_rdoc_files: []
|
|
23
23
|
files:
|
24
24
|
- lib/hero/formula.rb
|
25
25
|
- lib/hero/observer.rb
|
26
|
+
- lib/hero/version.rb
|
26
27
|
- lib/hero.rb
|
27
28
|
- Gemfile
|
28
29
|
- Gemfile.lock
|
30
|
+
- LICENSE.txt
|
29
31
|
- README.md
|
30
32
|
- spec/formula_spec.rb
|
31
33
|
- spec/observer_spec.rb
|
@@ -51,9 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
53
|
version: '0'
|
52
54
|
requirements: []
|
53
55
|
rubyforge_project:
|
54
|
-
rubygems_version: 1.8.
|
56
|
+
rubygems_version: 1.8.23
|
55
57
|
signing_key:
|
56
58
|
specification_version: 3
|
57
|
-
summary:
|
59
|
+
summary: You can think of Hero as a simplified state machine.
|
58
60
|
test_files: []
|
59
61
|
has_rdoc:
|