state_pattern 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +8 -4
- data/examples/rails_3_button_example/script/rails +0 -0
- data/examples/rails_4_button_example/Gemfile +46 -0
- data/examples/rails_4_button_example/Gemfile.lock +157 -0
- data/examples/rails_4_button_example/README.rdoc +28 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/Rakefile +2 -6
- data/examples/rails_4_button_example/app/assets/javascripts/application.js +16 -0
- data/examples/rails_4_button_example/app/assets/stylesheets/application.css +15 -0
- data/examples/rails_4_button_example/app/controllers/application_controller.rb +5 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/app/controllers/buttons_controller.rb +3 -8
- data/examples/rails_4_button_example/app/helpers/application_helper.rb +2 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/app/models/button.rb +0 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/app/models/button/off.rb +0 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/app/models/button/on.rb +0 -0
- data/examples/rails_4_button_example/app/views/buttons/_form.html.erb +21 -0
- data/examples/rails_4_button_example/app/views/buttons/edit.html.erb +6 -0
- data/examples/rails_4_button_example/app/views/buttons/index.html.erb +23 -0
- data/examples/rails_4_button_example/app/views/buttons/new.html.erb +5 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/app/views/buttons/show.html.erb +1 -1
- data/examples/rails_4_button_example/app/views/layouts/application.html.erb +12 -0
- data/examples/rails_4_button_example/bin/bundle +3 -0
- data/examples/rails_4_button_example/bin/rails +8 -0
- data/examples/rails_4_button_example/bin/rake +8 -0
- data/examples/rails_4_button_example/bin/setup +29 -0
- data/examples/rails_4_button_example/bin/spring +15 -0
- data/examples/rails_4_button_example/config.ru +4 -0
- data/examples/rails_4_button_example/config/application.rb +26 -0
- data/examples/rails_4_button_example/config/boot.rb +3 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/config/database.yml +0 -0
- data/examples/rails_4_button_example/config/environment.rb +5 -0
- data/examples/rails_4_button_example/config/environments/development.rb +41 -0
- data/examples/rails_4_button_example/config/environments/production.rb +79 -0
- data/examples/rails_4_button_example/config/environments/test.rb +42 -0
- data/examples/rails_4_button_example/config/initializers/assets.rb +11 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/config/initializers/backtrace_silencers.rb +2 -2
- data/examples/rails_4_button_example/config/initializers/cookies_serializer.rb +3 -0
- data/examples/rails_4_button_example/config/initializers/filter_parameter_logging.rb +4 -0
- data/examples/rails_4_button_example/config/initializers/inflections.rb +16 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/config/initializers/mime_types.rb +0 -1
- data/examples/rails_4_button_example/config/initializers/session_store.rb +3 -0
- data/examples/rails_4_button_example/config/initializers/wrap_parameters.rb +14 -0
- data/examples/rails_4_button_example/config/locales/en.yml +23 -0
- data/examples/rails_4_button_example/config/routes.rb +5 -0
- data/examples/rails_4_button_example/config/secrets.yml +22 -0
- data/examples/{rails_3_button_example → rails_4_button_example}/db/development.sqlite3 +0 -0
- data/examples/rails_4_button_example/db/schema.rb +21 -0
- data/examples/{rails_2_3_8_button_example → rails_4_button_example}/db/seeds.rb +3 -3
- data/examples/rails_4_button_example/db/test.sqlite3 +0 -0
- data/examples/rails_4_button_example/public/404.html +67 -0
- data/examples/rails_4_button_example/public/422.html +67 -0
- data/examples/rails_4_button_example/public/500.html +66 -0
- data/examples/rails_4_button_example/public/favicon.ico +0 -0
- data/examples/rails_4_button_example/public/robots.txt +5 -0
- data/examples/rails_4_button_example/test/test_helper.rb +10 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/0BJF3aE6L9I-CdqfM1vkFjpFBWqYfezN_FW0Lj8RF4A.cache +2 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/25cnngfH_LUdZUzCkWGHXzOa7gYAIbK1KokOftWRmAQ.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/3hl1sZkns5ee8V-i-WR-XsJ9Q1Eb8R4ae2xOpLheBN0.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/AgXtbwKSwhtftp5wI3VQUtwmz6kB4r6m75W7b-iFYZ4.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/BRmY2myye-FTQX-95MjIHm2DL2xKXJlLcGl7Xh1lE_I.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/D4INSAJh2MuaZXOe1khQPTL-_wxRvNDwJb3gTkgnye4.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ESVS2t_92m256UsCWPucHsMgAf3mK8kYdKuc1047Lwo.cache +3 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/GpmXMnR78YiAOw85MO8NNmw2iLQ79-a_9GExT6Vt0lI.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/GyoBO1Lr-5cRy5clwoTZ5p1jZFNLHymE44cE0tlBKFY.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/IEoe5zOhmWy0JaBQe7z0EuqQ7QyiWkdBzstXZjsEKZo.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ISkwmSSt8rrkdRL1GwBn9o4ILWaNnOJyixxf4RX94z4.cache +2 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/Im0488zfiXCJH-KMbI4A7h6A1rax9XpKQnC3DFko1Tg.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/LiJ9_nrPkr74731F6YeBknQUCRFqzKeo-P1LntAfTl8.cache +2 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/N7RuW5y7R05Kmq0ismjda4wp0u1UCLE5TqStjtASNMU.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/OuEnX_z_G8Ja1YbbCjd5aQ9O9ry06I8X0EKCdZ0GO04.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/TMI1rsUDvy6QDgEC4o39T2vtzA2PbuzLav-J4rCXSuM.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/VT3u8_h-fkin9_cEH_E8D6BLsz_3vEtZF2KwWX3RZE8.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/X7l7HU-zo5WW5WmIJE9MnY5wKmCphQiqiI0l00JWUA4.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/XU4CHJPKIryEop9D5jhiVfnW-9F5Cxzujoa6zwA9egE.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/aOzh5w6UU36ks31JV_onH2aPBTI5dFTF-zF7-vvKK1c.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/bMj6M9wSBtZfHLG65eW2u9NINz-F2yWF0wvJnx5xBpg.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/c8UWC3Xah91Ham9SSBwpt2O02vgnSIUTWNiCyfI5YJ8.cache +2 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/dHBwAzZ_u-AXSdVdNW0B7bIzniKy2EAWcNcrvMTxh_k.cache +2 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/fZ12J5mB4ihVvZDBTocYdXAen7YEXjkzDkaqa3D1mI8.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/fnePkpq2OgSfrlujhk1_fNG6kjuMZ61mDG0c0Ivit9U.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/g0XgcH-GeMIj0lwPaHV5IqDcQzJvnR3Xw_8dg0DBVho.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/iGYHI6OqKX0w3ivvIXR-boAWL5x81VEM_GqoNJCBr6s.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/l4fHH1Zo47D2G0zAnbfyDyaxlUq4_R6O1R_xNoqmHhw.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/mKQKN_P_8jYD-Q80hhjvo4e3LImaXAMIThYLqa9Apvw.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/mWqYee_LlZoGLCIvrCNU_U1gCixLtE_1c-aRqNkooZE.cache +2 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/my8kgZGxmOFYs4sBIlBx4mPLa3-bz0D1PfUl737ixlU.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/nW-hLkhpsu1Zh2w1u0dXHVkdIslZUKkcvE8CLVIW62Y.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/p_8FlTUmjyxhzHW7PiP9gJydL0GWbtF7zMAsolZQt7s.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/sRmbkRkNO0Rz5igafyTEwypjH6THAj7wiv24NFKOouw.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/uHtYDCLtnVci3xvC8mW10dfUdR20jK-cAPNTSx-uWBg.cache +0 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/vWSj4lAxWQ9AJD4chDHnsj4iDBTcPAQKSVOIqHe_4Pg.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ychj6_LlHUXHJTPKIinw5cIDiTrudXh6MR_7zO-kpAw.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/zh122yIBAuJyzL1VU2PIldcpbQl7ecXz-EmuWGZYFrk.cache +1 -0
- data/examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/zo647VN_kDb913bXE7Ta0qarVlYZJ2iCgNNAmquQftQ.cache +0 -0
- data/lib/state_pattern/active_record.rb +1 -1
- data/test/state_pattern/active_record/active_record_test.rb +1 -0
- data/test/test_helper.rb +2 -5
- metadata +309 -233
- data/examples/rails_2_3_8_button_example/README +0 -243
- data/examples/rails_2_3_8_button_example/app/controllers/application_controller.rb +0 -2
- data/examples/rails_2_3_8_button_example/app/helpers/application_helper.rb +0 -3
- data/examples/rails_2_3_8_button_example/app/views/layouts/application.html.erb +0 -12
- data/examples/rails_2_3_8_button_example/config/boot.rb +0 -110
- data/examples/rails_2_3_8_button_example/config/environment.rb +0 -41
- data/examples/rails_2_3_8_button_example/config/environments/development.rb +0 -17
- data/examples/rails_2_3_8_button_example/config/environments/production.rb +0 -28
- data/examples/rails_2_3_8_button_example/config/environments/test.rb +0 -28
- data/examples/rails_2_3_8_button_example/config/initializers/cookie_verification_secret.rb +0 -7
- data/examples/rails_2_3_8_button_example/config/initializers/inflections.rb +0 -10
- data/examples/rails_2_3_8_button_example/config/initializers/new_rails_defaults.rb +0 -21
- data/examples/rails_2_3_8_button_example/config/initializers/session_store.rb +0 -15
- data/examples/rails_2_3_8_button_example/config/locales/en.yml +0 -5
- data/examples/rails_2_3_8_button_example/config/routes.rb +0 -4
- data/examples/rails_2_3_8_button_example/db/development.sqlite3 +0 -0
- data/examples/rails_2_3_8_button_example/db/migrate/20101009073737_create_buttons.rb +0 -13
- data/examples/rails_2_3_8_button_example/db/schema.rb +0 -20
- data/examples/rails_2_3_8_button_example/db/test.sqlite3 +0 -0
- data/examples/rails_2_3_8_button_example/doc/README_FOR_APP +0 -2
- data/examples/rails_2_3_8_button_example/public/images/rails.png +0 -0
- data/examples/rails_2_3_8_button_example/public/javascripts/application.js +0 -2
- data/examples/rails_2_3_8_button_example/public/javascripts/controls.js +0 -963
- data/examples/rails_2_3_8_button_example/public/javascripts/dragdrop.js +0 -973
- data/examples/rails_2_3_8_button_example/public/javascripts/effects.js +0 -1128
- data/examples/rails_2_3_8_button_example/public/javascripts/prototype.js +0 -4320
- data/examples/rails_2_3_8_button_example/public/javascripts/rails.js +0 -175
- data/examples/rails_2_3_8_button_example/script/about +0 -4
- data/examples/rails_2_3_8_button_example/script/console +0 -3
- data/examples/rails_2_3_8_button_example/script/dbconsole +0 -3
- data/examples/rails_2_3_8_button_example/script/destroy +0 -3
- data/examples/rails_2_3_8_button_example/script/generate +0 -3
- data/examples/rails_2_3_8_button_example/script/performance/benchmarker +0 -3
- data/examples/rails_2_3_8_button_example/script/performance/profiler +0 -3
- data/examples/rails_2_3_8_button_example/script/plugin +0 -3
- data/examples/rails_2_3_8_button_example/script/runner +0 -3
- data/examples/rails_2_3_8_button_example/script/server +0 -3
@@ -2,6 +2,6 @@
|
|
2
2
|
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
3
|
#
|
4
4
|
# Examples:
|
5
|
-
#
|
6
|
-
# cities = City.create([{ :
|
7
|
-
#
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
Binary file
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
7
|
+
fixtures :all
|
8
|
+
|
9
|
+
# Add more helper methods to be used by all tests here...
|
10
|
+
end
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"yfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"ifile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets;TT
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
@@ -0,0 +1 @@
|
|
1
|
+
"%Ѱč@�����6H�uZoX�Z�gbh0W��V
|
@@ -0,0 +1 @@
|
|
1
|
+
"%S�{�l�n��E!�����cpKbjƮ.\�=
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee?type=application/javascript&pipeline=self&id=564f435abe321e7ee2ebfddb4e23bb284da44ff257394780a07ebc729cb14264:ET
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"yfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/application.css;TTI"ifile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=b2b1909de1c277a6b0b43c436d85fb8b9c8841e186cd6f5cb0d61fe91f7c4f70:ET
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"wfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee;TT
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%����`��
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/application.css?type=text/css&id=971a77b784cc90442497bbb46e6fd5746e2a1bff33c502a8947084f7e5de5286:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%X�p5����9~]~BK�����s��}^���%
|
@@ -0,0 +1 @@
|
|
1
|
+
"%����r���7-���>j��7؝o�7�a>�
|
@@ -0,0 +1 @@
|
|
1
|
+
"%����"m�J���S��E�j!�/�d�]�/[���
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/application.js?type=application/javascript&id=96d9473d54f774f715e70b6dc3c471a113bce6f50e73974b912918505b0bdd53:ET
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{'I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"xfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/application.js;TTI"dfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images;TTI"kfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images/jquery;TTI"ifile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts;TTI"pfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/jquery;TTI"ifile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets;TTI"pfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/jquery;TTI"lfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts;TTI"sfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts/jquery;TTI"lfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets;TTI"sfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets/jquery;TTI"bfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts;TTI"ifile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/jquery;TTI"gfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts;TTI"nfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery;TTI"qfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery.js;TTI"ofile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images/jquery_ujs;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/jquery_ujs;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/jquery_ujs;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts/jquery_ujs;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets/jquery_ujs;TTI"mfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/jquery_ujs;TTI"rfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery_ujs;TTI"ufile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery_ujs.js;TTI"ofile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images/turbolinks;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/turbolinks;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/turbolinks;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts/turbolinks;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets/turbolinks;TTI"mfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks;TTI"wfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee;TT
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{)I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"xfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"qfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery.js;TTI"ufile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery_ujs.js;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"wfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee;TTI"dfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images;TTI"kfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images/jquery;TTI"ifile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts;TTI"pfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/jquery;TTI"ifile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets;TTI"pfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/jquery;TTI"lfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts;TTI"sfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts/jquery;TTI"lfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets;TTI"sfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets/jquery;TTI"bfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts;TTI"ifile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/jquery;TTI"gfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts;TTI"nfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery;TTI"ofile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images/jquery_ujs;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/jquery_ujs;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/jquery_ujs;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts/jquery_ujs;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets/jquery_ujs;TTI"mfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/jquery_ujs;TTI"rfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery_ujs;TTI"ofile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/images/turbolinks;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/turbolinks;TTI"tfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/turbolinks;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/javascripts/turbolinks;TTI"wfile-digest:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/vendor/assets/stylesheets/turbolinks;TTI"mfile-digest:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%������$�P���p��>T?*��"dl�.�
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=1e456939896b56e350a0e984a993b25150e05c5b1064915e5911684051ed0368:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/daniel/oss/state_pattern/examples/rails_4_button_example/app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=b12a0a241458e769835de20908862e4b45ed3dc04d149bd26722a28de8846863:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/daniel/.rvm/gems/ruby-2.2.0/gems/jquery-rails-4.0.3/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=b85f3eb17e21b6bdb23d7662a326d38540fc92f2820ac19a4d79189bdb1d3e9b:ET
|
Binary file
|
@@ -26,7 +26,7 @@ module StatePattern
|
|
26
26
|
set_state(state_string_as_class(new_state_string))
|
27
27
|
end
|
28
28
|
|
29
|
-
def state_string_as_class(state_string =
|
29
|
+
def state_string_as_class(state_string = read_attribute(self.class.state_attribute))
|
30
30
|
state_string.camelize.constantize unless state_string.nil?
|
31
31
|
end
|
32
32
|
|
data/test/test_helper.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
require '
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'minitest/unit'
|
2
3
|
require 'expectations'
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
5
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
6
|
-
|
7
4
|
require 'state_pattern'
|
8
5
|
require 'test_class_creation_helper'
|
9
6
|
|
metadata
CHANGED
@@ -1,258 +1,334 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: state_pattern
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 2.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.2
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Daniel Cadenas
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2010-10-09 00:00:00 Z
|
11
|
+
date: 2010-10-09 00:00:00.000000000 Z
|
14
12
|
dependencies: []
|
15
|
-
|
16
|
-
description:
|
13
|
+
description: A ruby state pattern implementation
|
17
14
|
email: dcadenas@gmail.com
|
18
15
|
executables: []
|
19
|
-
|
20
16
|
extensions: []
|
21
|
-
|
22
17
|
extra_rdoc_files: []
|
23
|
-
|
24
|
-
|
25
|
-
- .
|
26
|
-
-
|
18
|
+
files:
|
19
|
+
- "./examples/rails_3_button_example/Gemfile"
|
20
|
+
- "./examples/rails_3_button_example/Gemfile.lock"
|
21
|
+
- "./examples/rails_3_button_example/Rakefile"
|
22
|
+
- "./examples/rails_3_button_example/app/controllers/application_controller.rb"
|
23
|
+
- "./examples/rails_3_button_example/app/controllers/buttons_controller.rb"
|
24
|
+
- "./examples/rails_3_button_example/app/models/button.rb"
|
25
|
+
- "./examples/rails_3_button_example/app/models/button/off.rb"
|
26
|
+
- "./examples/rails_3_button_example/app/models/button/on.rb"
|
27
|
+
- "./examples/rails_3_button_example/app/views/buttons/_form.html.erb"
|
28
|
+
- "./examples/rails_3_button_example/app/views/buttons/edit.html.erb"
|
29
|
+
- "./examples/rails_3_button_example/app/views/buttons/index.html.erb"
|
30
|
+
- "./examples/rails_3_button_example/app/views/buttons/new.html.erb"
|
31
|
+
- "./examples/rails_3_button_example/app/views/buttons/show.html.erb"
|
32
|
+
- "./examples/rails_3_button_example/app/views/layouts/application.html.erb"
|
33
|
+
- "./examples/rails_3_button_example/config.ru"
|
34
|
+
- "./examples/rails_3_button_example/config/application.rb"
|
35
|
+
- "./examples/rails_3_button_example/config/boot.rb"
|
36
|
+
- "./examples/rails_3_button_example/config/database.yml"
|
37
|
+
- "./examples/rails_3_button_example/config/environment.rb"
|
38
|
+
- "./examples/rails_3_button_example/config/environments/development.rb"
|
39
|
+
- "./examples/rails_3_button_example/config/environments/production.rb"
|
40
|
+
- "./examples/rails_3_button_example/config/environments/test.rb"
|
41
|
+
- "./examples/rails_3_button_example/config/initializers/backtrace_silencers.rb"
|
42
|
+
- "./examples/rails_3_button_example/config/initializers/inflections.rb"
|
43
|
+
- "./examples/rails_3_button_example/config/initializers/mime_types.rb"
|
44
|
+
- "./examples/rails_3_button_example/config/initializers/secret_token.rb"
|
45
|
+
- "./examples/rails_3_button_example/config/initializers/session_store.rb"
|
46
|
+
- "./examples/rails_3_button_example/config/locales/en.yml"
|
47
|
+
- "./examples/rails_3_button_example/config/routes.rb"
|
48
|
+
- "./examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb"
|
49
|
+
- "./examples/rails_3_button_example/db/schema.rb"
|
50
|
+
- "./examples/rails_3_button_example/public/javascripts/application.js"
|
51
|
+
- "./examples/rails_3_button_example/public/javascripts/controls.js"
|
52
|
+
- "./examples/rails_3_button_example/public/javascripts/dragdrop.js"
|
53
|
+
- "./examples/rails_3_button_example/public/javascripts/effects.js"
|
54
|
+
- "./examples/rails_3_button_example/public/javascripts/prototype.js"
|
55
|
+
- "./examples/rails_3_button_example/public/javascripts/rails.js"
|
56
|
+
- "./examples/rails_3_button_example/public/robots.txt"
|
57
|
+
- "./examples/rails_3_button_example/public/stylesheets/scaffold.css"
|
58
|
+
- "./examples/rails_3_button_example/script/rails"
|
59
|
+
- "./examples/rails_4_button_example/Gemfile"
|
60
|
+
- "./examples/rails_4_button_example/Gemfile.lock"
|
61
|
+
- "./examples/rails_4_button_example/README.rdoc"
|
62
|
+
- "./examples/rails_4_button_example/Rakefile"
|
63
|
+
- "./examples/rails_4_button_example/app/assets/javascripts/application.js"
|
64
|
+
- "./examples/rails_4_button_example/app/assets/stylesheets/application.css"
|
65
|
+
- "./examples/rails_4_button_example/app/controllers/application_controller.rb"
|
66
|
+
- "./examples/rails_4_button_example/app/controllers/buttons_controller.rb"
|
67
|
+
- "./examples/rails_4_button_example/app/helpers/application_helper.rb"
|
68
|
+
- "./examples/rails_4_button_example/app/models/button.rb"
|
69
|
+
- "./examples/rails_4_button_example/app/models/button/off.rb"
|
70
|
+
- "./examples/rails_4_button_example/app/models/button/on.rb"
|
71
|
+
- "./examples/rails_4_button_example/app/views/buttons/_form.html.erb"
|
72
|
+
- "./examples/rails_4_button_example/app/views/buttons/edit.html.erb"
|
73
|
+
- "./examples/rails_4_button_example/app/views/buttons/index.html.erb"
|
74
|
+
- "./examples/rails_4_button_example/app/views/buttons/new.html.erb"
|
75
|
+
- "./examples/rails_4_button_example/app/views/buttons/show.html.erb"
|
76
|
+
- "./examples/rails_4_button_example/app/views/layouts/application.html.erb"
|
77
|
+
- "./examples/rails_4_button_example/bin/bundle"
|
78
|
+
- "./examples/rails_4_button_example/bin/rails"
|
79
|
+
- "./examples/rails_4_button_example/bin/rake"
|
80
|
+
- "./examples/rails_4_button_example/bin/setup"
|
81
|
+
- "./examples/rails_4_button_example/bin/spring"
|
82
|
+
- "./examples/rails_4_button_example/config.ru"
|
83
|
+
- "./examples/rails_4_button_example/config/application.rb"
|
84
|
+
- "./examples/rails_4_button_example/config/boot.rb"
|
85
|
+
- "./examples/rails_4_button_example/config/database.yml"
|
86
|
+
- "./examples/rails_4_button_example/config/environment.rb"
|
87
|
+
- "./examples/rails_4_button_example/config/environments/development.rb"
|
88
|
+
- "./examples/rails_4_button_example/config/environments/production.rb"
|
89
|
+
- "./examples/rails_4_button_example/config/environments/test.rb"
|
90
|
+
- "./examples/rails_4_button_example/config/initializers/assets.rb"
|
91
|
+
- "./examples/rails_4_button_example/config/initializers/backtrace_silencers.rb"
|
92
|
+
- "./examples/rails_4_button_example/config/initializers/cookies_serializer.rb"
|
93
|
+
- "./examples/rails_4_button_example/config/initializers/filter_parameter_logging.rb"
|
94
|
+
- "./examples/rails_4_button_example/config/initializers/inflections.rb"
|
95
|
+
- "./examples/rails_4_button_example/config/initializers/mime_types.rb"
|
96
|
+
- "./examples/rails_4_button_example/config/initializers/session_store.rb"
|
97
|
+
- "./examples/rails_4_button_example/config/initializers/wrap_parameters.rb"
|
98
|
+
- "./examples/rails_4_button_example/config/locales/en.yml"
|
99
|
+
- "./examples/rails_4_button_example/config/routes.rb"
|
100
|
+
- "./examples/rails_4_button_example/config/secrets.yml"
|
101
|
+
- "./examples/rails_4_button_example/db/development.sqlite3"
|
102
|
+
- "./examples/rails_4_button_example/db/schema.rb"
|
103
|
+
- "./examples/rails_4_button_example/db/seeds.rb"
|
104
|
+
- "./examples/rails_4_button_example/db/test.sqlite3"
|
105
|
+
- "./examples/rails_4_button_example/log/development.log"
|
106
|
+
- "./examples/rails_4_button_example/public/404.html"
|
107
|
+
- "./examples/rails_4_button_example/public/422.html"
|
108
|
+
- "./examples/rails_4_button_example/public/500.html"
|
109
|
+
- "./examples/rails_4_button_example/public/favicon.ico"
|
110
|
+
- "./examples/rails_4_button_example/public/robots.txt"
|
111
|
+
- "./examples/rails_4_button_example/test/test_helper.rb"
|
112
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/0BJF3aE6L9I-CdqfM1vkFjpFBWqYfezN_FW0Lj8RF4A.cache"
|
113
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/25cnngfH_LUdZUzCkWGHXzOa7gYAIbK1KokOftWRmAQ.cache"
|
114
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/3hl1sZkns5ee8V-i-WR-XsJ9Q1Eb8R4ae2xOpLheBN0.cache"
|
115
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/AgXtbwKSwhtftp5wI3VQUtwmz6kB4r6m75W7b-iFYZ4.cache"
|
116
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/BRmY2myye-FTQX-95MjIHm2DL2xKXJlLcGl7Xh1lE_I.cache"
|
117
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/D4INSAJh2MuaZXOe1khQPTL-_wxRvNDwJb3gTkgnye4.cache"
|
118
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ESVS2t_92m256UsCWPucHsMgAf3mK8kYdKuc1047Lwo.cache"
|
119
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/GpmXMnR78YiAOw85MO8NNmw2iLQ79-a_9GExT6Vt0lI.cache"
|
120
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/GyoBO1Lr-5cRy5clwoTZ5p1jZFNLHymE44cE0tlBKFY.cache"
|
121
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/IEoe5zOhmWy0JaBQe7z0EuqQ7QyiWkdBzstXZjsEKZo.cache"
|
122
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ISkwmSSt8rrkdRL1GwBn9o4ILWaNnOJyixxf4RX94z4.cache"
|
123
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/Im0488zfiXCJH-KMbI4A7h6A1rax9XpKQnC3DFko1Tg.cache"
|
124
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/LiJ9_nrPkr74731F6YeBknQUCRFqzKeo-P1LntAfTl8.cache"
|
125
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/N7RuW5y7R05Kmq0ismjda4wp0u1UCLE5TqStjtASNMU.cache"
|
126
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/OuEnX_z_G8Ja1YbbCjd5aQ9O9ry06I8X0EKCdZ0GO04.cache"
|
127
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/TMI1rsUDvy6QDgEC4o39T2vtzA2PbuzLav-J4rCXSuM.cache"
|
128
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/VT3u8_h-fkin9_cEH_E8D6BLsz_3vEtZF2KwWX3RZE8.cache"
|
129
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/X7l7HU-zo5WW5WmIJE9MnY5wKmCphQiqiI0l00JWUA4.cache"
|
130
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/XU4CHJPKIryEop9D5jhiVfnW-9F5Cxzujoa6zwA9egE.cache"
|
131
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/aOzh5w6UU36ks31JV_onH2aPBTI5dFTF-zF7-vvKK1c.cache"
|
132
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/bMj6M9wSBtZfHLG65eW2u9NINz-F2yWF0wvJnx5xBpg.cache"
|
133
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/c8UWC3Xah91Ham9SSBwpt2O02vgnSIUTWNiCyfI5YJ8.cache"
|
134
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/dHBwAzZ_u-AXSdVdNW0B7bIzniKy2EAWcNcrvMTxh_k.cache"
|
135
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/fZ12J5mB4ihVvZDBTocYdXAen7YEXjkzDkaqa3D1mI8.cache"
|
136
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/fnePkpq2OgSfrlujhk1_fNG6kjuMZ61mDG0c0Ivit9U.cache"
|
137
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/g0XgcH-GeMIj0lwPaHV5IqDcQzJvnR3Xw_8dg0DBVho.cache"
|
138
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/iGYHI6OqKX0w3ivvIXR-boAWL5x81VEM_GqoNJCBr6s.cache"
|
139
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/l4fHH1Zo47D2G0zAnbfyDyaxlUq4_R6O1R_xNoqmHhw.cache"
|
140
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/mKQKN_P_8jYD-Q80hhjvo4e3LImaXAMIThYLqa9Apvw.cache"
|
141
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/mWqYee_LlZoGLCIvrCNU_U1gCixLtE_1c-aRqNkooZE.cache"
|
142
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/my8kgZGxmOFYs4sBIlBx4mPLa3-bz0D1PfUl737ixlU.cache"
|
143
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/nW-hLkhpsu1Zh2w1u0dXHVkdIslZUKkcvE8CLVIW62Y.cache"
|
144
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/p_8FlTUmjyxhzHW7PiP9gJydL0GWbtF7zMAsolZQt7s.cache"
|
145
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/sRmbkRkNO0Rz5igafyTEwypjH6THAj7wiv24NFKOouw.cache"
|
146
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/uHtYDCLtnVci3xvC8mW10dfUdR20jK-cAPNTSx-uWBg.cache"
|
147
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/vWSj4lAxWQ9AJD4chDHnsj4iDBTcPAQKSVOIqHe_4Pg.cache"
|
148
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ychj6_LlHUXHJTPKIinw5cIDiTrudXh6MR_7zO-kpAw.cache"
|
149
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/zh122yIBAuJyzL1VU2PIldcpbQl7ecXz-EmuWGZYFrk.cache"
|
150
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/zo647VN_kDb913bXE7Ta0qarVlYZJ2iCgNNAmquQftQ.cache"
|
151
|
+
- "./examples/semaphore.rb"
|
152
|
+
- "./lib/state_pattern.rb"
|
153
|
+
- "./lib/state_pattern/active_record.rb"
|
154
|
+
- "./lib/state_pattern/state.rb"
|
155
|
+
- "./test/arguments_of_event_delegation_test.rb"
|
156
|
+
- "./test/hook_test.rb"
|
157
|
+
- "./test/state_pattern/active_record/active_record_test.rb"
|
158
|
+
- "./test/state_pattern/active_record/schema.rb"
|
159
|
+
- "./test/state_pattern/active_record/test_helper.rb"
|
160
|
+
- "./test/state_pattern_test.rb"
|
161
|
+
- "./test/test_class_creation_helper.rb"
|
162
|
+
- "./test/test_helper.rb"
|
163
|
+
- ".document"
|
164
|
+
- ".gitignore"
|
27
165
|
- LICENSE
|
28
166
|
- README.md
|
29
167
|
- Rakefile
|
30
168
|
- rails/init.rb
|
31
|
-
- ./lib/state_pattern/active_record.rb
|
32
|
-
- ./lib/state_pattern/state.rb
|
33
|
-
- ./lib/state_pattern.rb
|
34
|
-
- ./examples/rails_2_3_8_button_example/app/controllers/application_controller.rb
|
35
|
-
- ./examples/rails_2_3_8_button_example/app/controllers/buttons_controller.rb
|
36
|
-
- ./examples/rails_2_3_8_button_example/app/helpers/application_helper.rb
|
37
|
-
- ./examples/rails_2_3_8_button_example/app/models/button/off.rb
|
38
|
-
- ./examples/rails_2_3_8_button_example/app/models/button/on.rb
|
39
|
-
- ./examples/rails_2_3_8_button_example/app/models/button.rb
|
40
|
-
- ./examples/rails_2_3_8_button_example/app/views/buttons/show.html.erb
|
41
|
-
- ./examples/rails_2_3_8_button_example/app/views/layouts/application.html.erb
|
42
|
-
- ./examples/rails_2_3_8_button_example/config/boot.rb
|
43
|
-
- ./examples/rails_2_3_8_button_example/config/database.yml
|
44
|
-
- ./examples/rails_2_3_8_button_example/config/environment.rb
|
45
|
-
- ./examples/rails_2_3_8_button_example/config/environments/development.rb
|
46
|
-
- ./examples/rails_2_3_8_button_example/config/environments/production.rb
|
47
|
-
- ./examples/rails_2_3_8_button_example/config/environments/test.rb
|
48
|
-
- ./examples/rails_2_3_8_button_example/config/initializers/backtrace_silencers.rb
|
49
|
-
- ./examples/rails_2_3_8_button_example/config/initializers/cookie_verification_secret.rb
|
50
|
-
- ./examples/rails_2_3_8_button_example/config/initializers/inflections.rb
|
51
|
-
- ./examples/rails_2_3_8_button_example/config/initializers/mime_types.rb
|
52
|
-
- ./examples/rails_2_3_8_button_example/config/initializers/new_rails_defaults.rb
|
53
|
-
- ./examples/rails_2_3_8_button_example/config/initializers/session_store.rb
|
54
|
-
- ./examples/rails_2_3_8_button_example/config/locales/en.yml
|
55
|
-
- ./examples/rails_2_3_8_button_example/config/routes.rb
|
56
|
-
- ./examples/rails_2_3_8_button_example/db/development.sqlite3
|
57
|
-
- ./examples/rails_2_3_8_button_example/db/migrate/20101009073737_create_buttons.rb
|
58
|
-
- ./examples/rails_2_3_8_button_example/db/schema.rb
|
59
|
-
- ./examples/rails_2_3_8_button_example/db/seeds.rb
|
60
|
-
- ./examples/rails_2_3_8_button_example/db/test.sqlite3
|
61
|
-
- ./examples/rails_2_3_8_button_example/doc/README_FOR_APP
|
62
|
-
- ./examples/rails_2_3_8_button_example/public/images/rails.png
|
63
|
-
- ./examples/rails_2_3_8_button_example/public/javascripts/application.js
|
64
|
-
- ./examples/rails_2_3_8_button_example/public/javascripts/controls.js
|
65
|
-
- ./examples/rails_2_3_8_button_example/public/javascripts/dragdrop.js
|
66
|
-
- ./examples/rails_2_3_8_button_example/public/javascripts/effects.js
|
67
|
-
- ./examples/rails_2_3_8_button_example/public/javascripts/prototype.js
|
68
|
-
- ./examples/rails_2_3_8_button_example/public/javascripts/rails.js
|
69
|
-
- ./examples/rails_2_3_8_button_example/Rakefile
|
70
|
-
- ./examples/rails_2_3_8_button_example/README
|
71
|
-
- ./examples/rails_2_3_8_button_example/script/about
|
72
|
-
- ./examples/rails_2_3_8_button_example/script/console
|
73
|
-
- ./examples/rails_2_3_8_button_example/script/dbconsole
|
74
|
-
- ./examples/rails_2_3_8_button_example/script/destroy
|
75
|
-
- ./examples/rails_2_3_8_button_example/script/generate
|
76
|
-
- ./examples/rails_2_3_8_button_example/script/performance/benchmarker
|
77
|
-
- ./examples/rails_2_3_8_button_example/script/performance/profiler
|
78
|
-
- ./examples/rails_2_3_8_button_example/script/plugin
|
79
|
-
- ./examples/rails_2_3_8_button_example/script/runner
|
80
|
-
- ./examples/rails_2_3_8_button_example/script/server
|
81
|
-
- ./examples/rails_3_button_example/app/controllers/application_controller.rb
|
82
|
-
- ./examples/rails_3_button_example/app/controllers/buttons_controller.rb
|
83
|
-
- ./examples/rails_3_button_example/app/models/button/off.rb
|
84
|
-
- ./examples/rails_3_button_example/app/models/button/on.rb
|
85
|
-
- ./examples/rails_3_button_example/app/models/button.rb
|
86
|
-
- ./examples/rails_3_button_example/app/views/buttons/_form.html.erb
|
87
|
-
- ./examples/rails_3_button_example/app/views/buttons/edit.html.erb
|
88
|
-
- ./examples/rails_3_button_example/app/views/buttons/index.html.erb
|
89
|
-
- ./examples/rails_3_button_example/app/views/buttons/new.html.erb
|
90
|
-
- ./examples/rails_3_button_example/app/views/buttons/show.html.erb
|
91
|
-
- ./examples/rails_3_button_example/app/views/layouts/application.html.erb
|
92
|
-
- ./examples/rails_3_button_example/config/application.rb
|
93
|
-
- ./examples/rails_3_button_example/config/boot.rb
|
94
|
-
- ./examples/rails_3_button_example/config/database.yml
|
95
|
-
- ./examples/rails_3_button_example/config/environment.rb
|
96
|
-
- ./examples/rails_3_button_example/config/environments/development.rb
|
97
|
-
- ./examples/rails_3_button_example/config/environments/production.rb
|
98
|
-
- ./examples/rails_3_button_example/config/environments/test.rb
|
99
|
-
- ./examples/rails_3_button_example/config/initializers/backtrace_silencers.rb
|
100
|
-
- ./examples/rails_3_button_example/config/initializers/inflections.rb
|
101
|
-
- ./examples/rails_3_button_example/config/initializers/mime_types.rb
|
102
|
-
- ./examples/rails_3_button_example/config/initializers/secret_token.rb
|
103
|
-
- ./examples/rails_3_button_example/config/initializers/session_store.rb
|
104
|
-
- ./examples/rails_3_button_example/config/locales/en.yml
|
105
|
-
- ./examples/rails_3_button_example/config/routes.rb
|
106
|
-
- ./examples/rails_3_button_example/config.ru
|
107
|
-
- ./examples/rails_3_button_example/db/development.sqlite3
|
108
|
-
- ./examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb
|
109
|
-
- ./examples/rails_3_button_example/db/schema.rb
|
110
|
-
- ./examples/rails_3_button_example/Gemfile
|
111
|
-
- ./examples/rails_3_button_example/Gemfile.lock
|
112
|
-
- ./examples/rails_3_button_example/log/development.log
|
113
|
-
- ./examples/rails_3_button_example/public/javascripts/application.js
|
114
|
-
- ./examples/rails_3_button_example/public/javascripts/controls.js
|
115
|
-
- ./examples/rails_3_button_example/public/javascripts/dragdrop.js
|
116
|
-
- ./examples/rails_3_button_example/public/javascripts/effects.js
|
117
|
-
- ./examples/rails_3_button_example/public/javascripts/prototype.js
|
118
|
-
- ./examples/rails_3_button_example/public/javascripts/rails.js
|
119
|
-
- ./examples/rails_3_button_example/public/robots.txt
|
120
|
-
- ./examples/rails_3_button_example/public/stylesheets/scaffold.css
|
121
|
-
- ./examples/rails_3_button_example/Rakefile
|
122
|
-
- ./examples/rails_3_button_example/script/rails
|
123
|
-
- ./examples/semaphore.rb
|
124
|
-
- ./test/arguments_of_event_delegation_test.rb
|
125
|
-
- ./test/hook_test.rb
|
126
|
-
- ./test/state_pattern/active_record/active_record_test.rb
|
127
|
-
- ./test/state_pattern/active_record/schema.rb
|
128
|
-
- ./test/state_pattern/active_record/test_helper.rb
|
129
|
-
- ./test/state_pattern_test.rb
|
130
|
-
- ./test/test_class_creation_helper.rb
|
131
|
-
- ./test/test_helper.rb
|
132
169
|
homepage: http://github.com/dcadenas/state_pattern
|
133
|
-
licenses:
|
134
|
-
|
170
|
+
licenses:
|
171
|
+
- MIT
|
172
|
+
metadata: {}
|
135
173
|
post_install_message:
|
136
174
|
rdoc_options: []
|
137
|
-
|
138
|
-
require_paths:
|
175
|
+
require_paths:
|
139
176
|
- lib
|
140
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
-
|
142
|
-
requirements:
|
177
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
143
179
|
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version:
|
146
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
-
|
148
|
-
requirements:
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
149
184
|
- - ">="
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version:
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
152
187
|
requirements: []
|
153
|
-
|
154
188
|
rubyforge_project: statepattern
|
155
|
-
rubygems_version:
|
189
|
+
rubygems_version: 2.4.5
|
156
190
|
signing_key:
|
157
|
-
specification_version:
|
191
|
+
specification_version: 4
|
158
192
|
summary: A Ruby state pattern implementation
|
159
|
-
test_files:
|
160
|
-
- ./examples/
|
161
|
-
- ./examples/
|
162
|
-
- ./examples/
|
163
|
-
- ./examples/
|
164
|
-
- ./examples/
|
165
|
-
- ./examples/
|
166
|
-
- ./examples/
|
167
|
-
- ./examples/
|
168
|
-
- ./examples/
|
169
|
-
- ./examples/
|
170
|
-
- ./examples/
|
171
|
-
- ./examples/
|
172
|
-
- ./examples/
|
173
|
-
- ./examples/
|
174
|
-
- ./examples/
|
175
|
-
- ./examples/
|
176
|
-
- ./examples/
|
177
|
-
- ./examples/
|
178
|
-
- ./examples/
|
179
|
-
- ./examples/
|
180
|
-
- ./examples/
|
181
|
-
- ./examples/
|
182
|
-
- ./examples/
|
183
|
-
- ./examples/
|
184
|
-
- ./examples/
|
185
|
-
- ./examples/
|
186
|
-
- ./examples/
|
187
|
-
- ./examples/
|
188
|
-
- ./examples/
|
189
|
-
- ./examples/
|
190
|
-
- ./examples/
|
191
|
-
- ./examples/
|
192
|
-
- ./examples/
|
193
|
-
- ./examples/
|
194
|
-
- ./examples/
|
195
|
-
- ./examples/
|
196
|
-
- ./examples/
|
197
|
-
- ./examples/
|
198
|
-
- ./examples/
|
199
|
-
- ./examples/
|
200
|
-
- ./examples/
|
201
|
-
- ./examples/
|
202
|
-
- ./examples/
|
203
|
-
- ./examples/
|
204
|
-
- ./examples/
|
205
|
-
- ./examples/
|
206
|
-
- ./examples/
|
207
|
-
- ./examples/
|
208
|
-
- ./examples/
|
209
|
-
- ./examples/
|
210
|
-
- ./examples/
|
211
|
-
- ./examples/
|
212
|
-
- ./examples/
|
213
|
-
- ./examples/
|
214
|
-
- ./examples/
|
215
|
-
- ./examples/
|
216
|
-
- ./examples/
|
217
|
-
- ./examples/
|
218
|
-
- ./examples/
|
219
|
-
- ./examples/
|
220
|
-
- ./examples/
|
221
|
-
- ./examples/
|
222
|
-
- ./examples/
|
223
|
-
- ./examples/
|
224
|
-
- ./examples/
|
225
|
-
- ./examples/
|
226
|
-
- ./examples/
|
227
|
-
- ./examples/
|
228
|
-
- ./examples/
|
229
|
-
- ./examples/
|
230
|
-
- ./examples/
|
231
|
-
- ./examples/
|
232
|
-
- ./examples/
|
233
|
-
- ./examples/
|
234
|
-
- ./examples/
|
235
|
-
- ./examples/
|
236
|
-
- ./examples/
|
237
|
-
- ./examples/
|
238
|
-
- ./examples/
|
239
|
-
- ./examples/
|
240
|
-
- ./examples/
|
241
|
-
- ./examples/
|
242
|
-
- ./examples/
|
243
|
-
- ./examples/
|
244
|
-
- ./examples/
|
245
|
-
- ./examples/
|
246
|
-
- ./examples/
|
247
|
-
- ./examples/
|
248
|
-
- ./examples/
|
249
|
-
- ./examples/
|
250
|
-
- ./
|
251
|
-
- ./
|
252
|
-
- ./
|
253
|
-
- ./
|
254
|
-
- ./
|
255
|
-
- ./
|
256
|
-
- ./
|
257
|
-
- ./
|
258
|
-
|
193
|
+
test_files:
|
194
|
+
- "./examples/rails_3_button_example/app/controllers/application_controller.rb"
|
195
|
+
- "./examples/rails_3_button_example/app/controllers/buttons_controller.rb"
|
196
|
+
- "./examples/rails_3_button_example/app/models/button/off.rb"
|
197
|
+
- "./examples/rails_3_button_example/app/models/button/on.rb"
|
198
|
+
- "./examples/rails_3_button_example/app/models/button.rb"
|
199
|
+
- "./examples/rails_3_button_example/app/views/buttons/_form.html.erb"
|
200
|
+
- "./examples/rails_3_button_example/app/views/buttons/edit.html.erb"
|
201
|
+
- "./examples/rails_3_button_example/app/views/buttons/index.html.erb"
|
202
|
+
- "./examples/rails_3_button_example/app/views/buttons/new.html.erb"
|
203
|
+
- "./examples/rails_3_button_example/app/views/buttons/show.html.erb"
|
204
|
+
- "./examples/rails_3_button_example/app/views/layouts/application.html.erb"
|
205
|
+
- "./examples/rails_3_button_example/config/application.rb"
|
206
|
+
- "./examples/rails_3_button_example/config/boot.rb"
|
207
|
+
- "./examples/rails_3_button_example/config/database.yml"
|
208
|
+
- "./examples/rails_3_button_example/config/environment.rb"
|
209
|
+
- "./examples/rails_3_button_example/config/environments/development.rb"
|
210
|
+
- "./examples/rails_3_button_example/config/environments/production.rb"
|
211
|
+
- "./examples/rails_3_button_example/config/environments/test.rb"
|
212
|
+
- "./examples/rails_3_button_example/config/initializers/backtrace_silencers.rb"
|
213
|
+
- "./examples/rails_3_button_example/config/initializers/inflections.rb"
|
214
|
+
- "./examples/rails_3_button_example/config/initializers/mime_types.rb"
|
215
|
+
- "./examples/rails_3_button_example/config/initializers/secret_token.rb"
|
216
|
+
- "./examples/rails_3_button_example/config/initializers/session_store.rb"
|
217
|
+
- "./examples/rails_3_button_example/config/locales/en.yml"
|
218
|
+
- "./examples/rails_3_button_example/config/routes.rb"
|
219
|
+
- "./examples/rails_3_button_example/config.ru"
|
220
|
+
- "./examples/rails_3_button_example/db/migrate/20101009052900_create_buttons.rb"
|
221
|
+
- "./examples/rails_3_button_example/db/schema.rb"
|
222
|
+
- "./examples/rails_3_button_example/Gemfile"
|
223
|
+
- "./examples/rails_3_button_example/Gemfile.lock"
|
224
|
+
- "./examples/rails_3_button_example/public/javascripts/application.js"
|
225
|
+
- "./examples/rails_3_button_example/public/javascripts/controls.js"
|
226
|
+
- "./examples/rails_3_button_example/public/javascripts/dragdrop.js"
|
227
|
+
- "./examples/rails_3_button_example/public/javascripts/effects.js"
|
228
|
+
- "./examples/rails_3_button_example/public/javascripts/prototype.js"
|
229
|
+
- "./examples/rails_3_button_example/public/javascripts/rails.js"
|
230
|
+
- "./examples/rails_3_button_example/public/robots.txt"
|
231
|
+
- "./examples/rails_3_button_example/public/stylesheets/scaffold.css"
|
232
|
+
- "./examples/rails_3_button_example/Rakefile"
|
233
|
+
- "./examples/rails_3_button_example/script/rails"
|
234
|
+
- "./examples/rails_4_button_example/app/assets/javascripts/application.js"
|
235
|
+
- "./examples/rails_4_button_example/app/assets/stylesheets/application.css"
|
236
|
+
- "./examples/rails_4_button_example/app/controllers/application_controller.rb"
|
237
|
+
- "./examples/rails_4_button_example/app/controllers/buttons_controller.rb"
|
238
|
+
- "./examples/rails_4_button_example/app/helpers/application_helper.rb"
|
239
|
+
- "./examples/rails_4_button_example/app/models/button/off.rb"
|
240
|
+
- "./examples/rails_4_button_example/app/models/button/on.rb"
|
241
|
+
- "./examples/rails_4_button_example/app/models/button.rb"
|
242
|
+
- "./examples/rails_4_button_example/app/views/buttons/_form.html.erb"
|
243
|
+
- "./examples/rails_4_button_example/app/views/buttons/edit.html.erb"
|
244
|
+
- "./examples/rails_4_button_example/app/views/buttons/index.html.erb"
|
245
|
+
- "./examples/rails_4_button_example/app/views/buttons/new.html.erb"
|
246
|
+
- "./examples/rails_4_button_example/app/views/buttons/show.html.erb"
|
247
|
+
- "./examples/rails_4_button_example/app/views/layouts/application.html.erb"
|
248
|
+
- "./examples/rails_4_button_example/bin/bundle"
|
249
|
+
- "./examples/rails_4_button_example/bin/rails"
|
250
|
+
- "./examples/rails_4_button_example/bin/rake"
|
251
|
+
- "./examples/rails_4_button_example/bin/setup"
|
252
|
+
- "./examples/rails_4_button_example/bin/spring"
|
253
|
+
- "./examples/rails_4_button_example/config/application.rb"
|
254
|
+
- "./examples/rails_4_button_example/config/boot.rb"
|
255
|
+
- "./examples/rails_4_button_example/config/database.yml"
|
256
|
+
- "./examples/rails_4_button_example/config/environment.rb"
|
257
|
+
- "./examples/rails_4_button_example/config/environments/development.rb"
|
258
|
+
- "./examples/rails_4_button_example/config/environments/production.rb"
|
259
|
+
- "./examples/rails_4_button_example/config/environments/test.rb"
|
260
|
+
- "./examples/rails_4_button_example/config/initializers/assets.rb"
|
261
|
+
- "./examples/rails_4_button_example/config/initializers/backtrace_silencers.rb"
|
262
|
+
- "./examples/rails_4_button_example/config/initializers/cookies_serializer.rb"
|
263
|
+
- "./examples/rails_4_button_example/config/initializers/filter_parameter_logging.rb"
|
264
|
+
- "./examples/rails_4_button_example/config/initializers/inflections.rb"
|
265
|
+
- "./examples/rails_4_button_example/config/initializers/mime_types.rb"
|
266
|
+
- "./examples/rails_4_button_example/config/initializers/session_store.rb"
|
267
|
+
- "./examples/rails_4_button_example/config/initializers/wrap_parameters.rb"
|
268
|
+
- "./examples/rails_4_button_example/config/locales/en.yml"
|
269
|
+
- "./examples/rails_4_button_example/config/routes.rb"
|
270
|
+
- "./examples/rails_4_button_example/config/secrets.yml"
|
271
|
+
- "./examples/rails_4_button_example/config.ru"
|
272
|
+
- "./examples/rails_4_button_example/db/development.sqlite3"
|
273
|
+
- "./examples/rails_4_button_example/db/schema.rb"
|
274
|
+
- "./examples/rails_4_button_example/db/seeds.rb"
|
275
|
+
- "./examples/rails_4_button_example/db/test.sqlite3"
|
276
|
+
- "./examples/rails_4_button_example/Gemfile"
|
277
|
+
- "./examples/rails_4_button_example/Gemfile.lock"
|
278
|
+
- "./examples/rails_4_button_example/log/development.log"
|
279
|
+
- "./examples/rails_4_button_example/public/404.html"
|
280
|
+
- "./examples/rails_4_button_example/public/422.html"
|
281
|
+
- "./examples/rails_4_button_example/public/500.html"
|
282
|
+
- "./examples/rails_4_button_example/public/favicon.ico"
|
283
|
+
- "./examples/rails_4_button_example/public/robots.txt"
|
284
|
+
- "./examples/rails_4_button_example/Rakefile"
|
285
|
+
- "./examples/rails_4_button_example/README.rdoc"
|
286
|
+
- "./examples/rails_4_button_example/test/test_helper.rb"
|
287
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/0BJF3aE6L9I-CdqfM1vkFjpFBWqYfezN_FW0Lj8RF4A.cache"
|
288
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/25cnngfH_LUdZUzCkWGHXzOa7gYAIbK1KokOftWRmAQ.cache"
|
289
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/3hl1sZkns5ee8V-i-WR-XsJ9Q1Eb8R4ae2xOpLheBN0.cache"
|
290
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/AgXtbwKSwhtftp5wI3VQUtwmz6kB4r6m75W7b-iFYZ4.cache"
|
291
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/aOzh5w6UU36ks31JV_onH2aPBTI5dFTF-zF7-vvKK1c.cache"
|
292
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/bMj6M9wSBtZfHLG65eW2u9NINz-F2yWF0wvJnx5xBpg.cache"
|
293
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/BRmY2myye-FTQX-95MjIHm2DL2xKXJlLcGl7Xh1lE_I.cache"
|
294
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/c8UWC3Xah91Ham9SSBwpt2O02vgnSIUTWNiCyfI5YJ8.cache"
|
295
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/D4INSAJh2MuaZXOe1khQPTL-_wxRvNDwJb3gTkgnye4.cache"
|
296
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/dHBwAzZ_u-AXSdVdNW0B7bIzniKy2EAWcNcrvMTxh_k.cache"
|
297
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ESVS2t_92m256UsCWPucHsMgAf3mK8kYdKuc1047Lwo.cache"
|
298
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/fnePkpq2OgSfrlujhk1_fNG6kjuMZ61mDG0c0Ivit9U.cache"
|
299
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/fZ12J5mB4ihVvZDBTocYdXAen7YEXjkzDkaqa3D1mI8.cache"
|
300
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/g0XgcH-GeMIj0lwPaHV5IqDcQzJvnR3Xw_8dg0DBVho.cache"
|
301
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/GpmXMnR78YiAOw85MO8NNmw2iLQ79-a_9GExT6Vt0lI.cache"
|
302
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/GyoBO1Lr-5cRy5clwoTZ5p1jZFNLHymE44cE0tlBKFY.cache"
|
303
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/IEoe5zOhmWy0JaBQe7z0EuqQ7QyiWkdBzstXZjsEKZo.cache"
|
304
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/iGYHI6OqKX0w3ivvIXR-boAWL5x81VEM_GqoNJCBr6s.cache"
|
305
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/Im0488zfiXCJH-KMbI4A7h6A1rax9XpKQnC3DFko1Tg.cache"
|
306
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ISkwmSSt8rrkdRL1GwBn9o4ILWaNnOJyixxf4RX94z4.cache"
|
307
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/l4fHH1Zo47D2G0zAnbfyDyaxlUq4_R6O1R_xNoqmHhw.cache"
|
308
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/LiJ9_nrPkr74731F6YeBknQUCRFqzKeo-P1LntAfTl8.cache"
|
309
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/mKQKN_P_8jYD-Q80hhjvo4e3LImaXAMIThYLqa9Apvw.cache"
|
310
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/mWqYee_LlZoGLCIvrCNU_U1gCixLtE_1c-aRqNkooZE.cache"
|
311
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/my8kgZGxmOFYs4sBIlBx4mPLa3-bz0D1PfUl737ixlU.cache"
|
312
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/N7RuW5y7R05Kmq0ismjda4wp0u1UCLE5TqStjtASNMU.cache"
|
313
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/nW-hLkhpsu1Zh2w1u0dXHVkdIslZUKkcvE8CLVIW62Y.cache"
|
314
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/OuEnX_z_G8Ja1YbbCjd5aQ9O9ry06I8X0EKCdZ0GO04.cache"
|
315
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/p_8FlTUmjyxhzHW7PiP9gJydL0GWbtF7zMAsolZQt7s.cache"
|
316
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/sRmbkRkNO0Rz5igafyTEwypjH6THAj7wiv24NFKOouw.cache"
|
317
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/TMI1rsUDvy6QDgEC4o39T2vtzA2PbuzLav-J4rCXSuM.cache"
|
318
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/uHtYDCLtnVci3xvC8mW10dfUdR20jK-cAPNTSx-uWBg.cache"
|
319
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/VT3u8_h-fkin9_cEH_E8D6BLsz_3vEtZF2KwWX3RZE8.cache"
|
320
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/vWSj4lAxWQ9AJD4chDHnsj4iDBTcPAQKSVOIqHe_4Pg.cache"
|
321
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/X7l7HU-zo5WW5WmIJE9MnY5wKmCphQiqiI0l00JWUA4.cache"
|
322
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/XU4CHJPKIryEop9D5jhiVfnW-9F5Cxzujoa6zwA9egE.cache"
|
323
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/ychj6_LlHUXHJTPKIinw5cIDiTrudXh6MR_7zO-kpAw.cache"
|
324
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/zh122yIBAuJyzL1VU2PIldcpbQl7ecXz-EmuWGZYFrk.cache"
|
325
|
+
- "./examples/rails_4_button_example/tmp/cache/assets/development/sprockets/v3.0/zo647VN_kDb913bXE7Ta0qarVlYZJ2iCgNNAmquQftQ.cache"
|
326
|
+
- "./examples/semaphore.rb"
|
327
|
+
- "./test/arguments_of_event_delegation_test.rb"
|
328
|
+
- "./test/hook_test.rb"
|
329
|
+
- "./test/state_pattern/active_record/active_record_test.rb"
|
330
|
+
- "./test/state_pattern/active_record/schema.rb"
|
331
|
+
- "./test/state_pattern/active_record/test_helper.rb"
|
332
|
+
- "./test/state_pattern_test.rb"
|
333
|
+
- "./test/test_class_creation_helper.rb"
|
334
|
+
- "./test/test_helper.rb"
|