cascadence 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +36 -0
- data/LICENSE.txt +20 -0
- data/README.markdown +23 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/cascadence.gemspec +111 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +588 -0
- data/coverage/assets/0.7.1/application.css +1110 -0
- data/coverage/assets/0.7.1/application.js +626 -0
- data/coverage/assets/0.7.1/fancybox/blank.gif +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_close.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_loading.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_nav_left.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_nav_right.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_e.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_n.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_s.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_se.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_shadow_w.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_title_left.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_title_main.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_title_over.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancy_title_right.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancybox-x.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancybox-y.png +0 -0
- data/coverage/assets/0.7.1/fancybox/fancybox.png +0 -0
- data/coverage/assets/0.7.1/favicon_green.png +0 -0
- data/coverage/assets/0.7.1/favicon_red.png +0 -0
- data/coverage/assets/0.7.1/favicon_yellow.png +0 -0
- data/coverage/assets/0.7.1/loading.gif +0 -0
- data/coverage/assets/0.7.1/magnify.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +3702 -0
- data/lib/cascadence/class_methods.rb +39 -0
- data/lib/cascadence/flow.rb +17 -0
- data/lib/cascadence/helper.rb +21 -0
- data/lib/cascadence/stateful.rb +81 -0
- data/lib/cascadence.rb +7 -0
- data/spec/cascadence/class_methods_spec.rb +128 -0
- data/spec/cascadence/flow_spec.rb +64 -0
- data/spec/cascadence/fork_merge_spec.rb +86 -0
- data/spec/cascadence/helper_spec.rb +106 -0
- data/spec/cascadence/stateful_spec.rb +136 -0
- data/spec/cascadence_spec.rb +13 -0
- data/spec/spec_helper.rb +4 -0
- metadata +178 -0
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.3)
|
5
|
+
git (1.2.5)
|
6
|
+
jeweler (1.8.4)
|
7
|
+
bundler (~> 1.0)
|
8
|
+
git (>= 1.2.5)
|
9
|
+
rake
|
10
|
+
rdoc
|
11
|
+
json (1.7.6)
|
12
|
+
multi_json (1.5.0)
|
13
|
+
rake (10.0.3)
|
14
|
+
rdoc (3.12)
|
15
|
+
json (~> 1.4)
|
16
|
+
rspec (2.12.0)
|
17
|
+
rspec-core (~> 2.12.0)
|
18
|
+
rspec-expectations (~> 2.12.0)
|
19
|
+
rspec-mocks (~> 2.12.0)
|
20
|
+
rspec-core (2.12.2)
|
21
|
+
rspec-expectations (2.12.1)
|
22
|
+
diff-lcs (~> 1.1.3)
|
23
|
+
rspec-mocks (2.12.1)
|
24
|
+
simplecov (0.7.1)
|
25
|
+
multi_json (~> 1.0)
|
26
|
+
simplecov-html (~> 0.7.1)
|
27
|
+
simplecov-html (0.7.1)
|
28
|
+
|
29
|
+
PLATFORMS
|
30
|
+
ruby
|
31
|
+
|
32
|
+
DEPENDENCIES
|
33
|
+
jeweler
|
34
|
+
rdoc
|
35
|
+
rspec
|
36
|
+
simplecov
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Thomas Chen
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.markdown
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
= cascadence
|
2
|
+
|
3
|
+
Helper for organizing flow-based specs for such things as writing integration tests with rspec-capybara
|
4
|
+
|
5
|
+
Notes
|
6
|
+
=
|
7
|
+
You (I guess that would be me) need to fix how cascadence order is read, right now, the dependence on
|
8
|
+
recursion is extremely resource heavy and definitely a bad idea (if not a target for memory leaks)
|
9
|
+
== Contributing to cascadence
|
10
|
+
|
11
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
12
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
13
|
+
* Fork the project.
|
14
|
+
* Start a feature/bugfix branch.
|
15
|
+
* Commit and push until you are happy with your contribution.
|
16
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
17
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
18
|
+
|
19
|
+
== Copyright
|
20
|
+
|
21
|
+
Copyright (c) 2013 Thomas Chen. See LICENSE.txt for
|
22
|
+
further details.
|
23
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "cascadence"
|
18
|
+
gem.homepage = "http://github.com/foxnewsnetwork/cascadence"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Organization helper for writing flow-based integration tests using capybara and whatnot}
|
21
|
+
gem.description = %Q{This doesn't even show up so what's the point of writing it?}
|
22
|
+
gem.email = "foxnewsnetwork@gmail.com"
|
23
|
+
gem.authors = ["Thomas Chen"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rdoc/task'
|
29
|
+
Rake::RDocTask.new do |rdoc|
|
30
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
31
|
+
|
32
|
+
rdoc.rdoc_dir = 'rdoc'
|
33
|
+
rdoc.title = "cascadence #{version}"
|
34
|
+
rdoc.rdoc_files.include('README*')
|
35
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
36
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
data/cascadence.gemspec
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "cascadence"
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Thomas Chen"]
|
12
|
+
s.date = "2013-02-14"
|
13
|
+
s.description = "This doesn't even show up so what's the point of writing it?"
|
14
|
+
s.email = "foxnewsnetwork@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.markdown"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".rspec",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.markdown",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"cascadence.gemspec",
|
28
|
+
"coverage/.last_run.json",
|
29
|
+
"coverage/.resultset.json",
|
30
|
+
"coverage/assets/0.7.1/application.css",
|
31
|
+
"coverage/assets/0.7.1/application.js",
|
32
|
+
"coverage/assets/0.7.1/fancybox/blank.gif",
|
33
|
+
"coverage/assets/0.7.1/fancybox/fancy_close.png",
|
34
|
+
"coverage/assets/0.7.1/fancybox/fancy_loading.png",
|
35
|
+
"coverage/assets/0.7.1/fancybox/fancy_nav_left.png",
|
36
|
+
"coverage/assets/0.7.1/fancybox/fancy_nav_right.png",
|
37
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_e.png",
|
38
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_n.png",
|
39
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png",
|
40
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png",
|
41
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_s.png",
|
42
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_se.png",
|
43
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png",
|
44
|
+
"coverage/assets/0.7.1/fancybox/fancy_shadow_w.png",
|
45
|
+
"coverage/assets/0.7.1/fancybox/fancy_title_left.png",
|
46
|
+
"coverage/assets/0.7.1/fancybox/fancy_title_main.png",
|
47
|
+
"coverage/assets/0.7.1/fancybox/fancy_title_over.png",
|
48
|
+
"coverage/assets/0.7.1/fancybox/fancy_title_right.png",
|
49
|
+
"coverage/assets/0.7.1/fancybox/fancybox-x.png",
|
50
|
+
"coverage/assets/0.7.1/fancybox/fancybox-y.png",
|
51
|
+
"coverage/assets/0.7.1/fancybox/fancybox.png",
|
52
|
+
"coverage/assets/0.7.1/favicon_green.png",
|
53
|
+
"coverage/assets/0.7.1/favicon_red.png",
|
54
|
+
"coverage/assets/0.7.1/favicon_yellow.png",
|
55
|
+
"coverage/assets/0.7.1/loading.gif",
|
56
|
+
"coverage/assets/0.7.1/magnify.png",
|
57
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png",
|
58
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png",
|
59
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png",
|
60
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png",
|
61
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png",
|
62
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png",
|
63
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png",
|
64
|
+
"coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png",
|
65
|
+
"coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png",
|
66
|
+
"coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png",
|
67
|
+
"coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png",
|
68
|
+
"coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png",
|
69
|
+
"coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png",
|
70
|
+
"coverage/index.html",
|
71
|
+
"lib/cascadence.rb",
|
72
|
+
"lib/cascadence/class_methods.rb",
|
73
|
+
"lib/cascadence/flow.rb",
|
74
|
+
"lib/cascadence/helper.rb",
|
75
|
+
"lib/cascadence/stateful.rb",
|
76
|
+
"spec/cascadence/class_methods_spec.rb",
|
77
|
+
"spec/cascadence/flow_spec.rb",
|
78
|
+
"spec/cascadence/fork_merge_spec.rb",
|
79
|
+
"spec/cascadence/helper_spec.rb",
|
80
|
+
"spec/cascadence/stateful_spec.rb",
|
81
|
+
"spec/cascadence_spec.rb",
|
82
|
+
"spec/spec_helper.rb"
|
83
|
+
]
|
84
|
+
s.homepage = "http://github.com/foxnewsnetwork/cascadence"
|
85
|
+
s.licenses = ["MIT"]
|
86
|
+
s.require_paths = ["lib"]
|
87
|
+
s.rubygems_version = "1.8.24"
|
88
|
+
s.summary = "Organization helper for writing flow-based integration tests using capybara and whatnot"
|
89
|
+
|
90
|
+
if s.respond_to? :specification_version then
|
91
|
+
s.specification_version = 3
|
92
|
+
|
93
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
94
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
95
|
+
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
96
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
97
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
98
|
+
else
|
99
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
100
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
101
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
102
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
103
|
+
end
|
104
|
+
else
|
105
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
106
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
107
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
108
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|