utter_events 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +4 -0
  6. data/CODE_OF_CONDUCT.md +12 -0
  7. data/Gemfile +4 -0
  8. data/Guardfile +70 -0
  9. data/README.md +110 -0
  10. data/Rakefile +1 -0
  11. data/bin/console +8 -0
  12. data/bin/setup +8 -0
  13. data/lib/utter.rb +47 -0
  14. data/lib/utter/version.rb +3 -0
  15. data/sample_rails_app/.gitignore +17 -0
  16. data/sample_rails_app/Gemfile +17 -0
  17. data/sample_rails_app/Gemfile.lock +157 -0
  18. data/sample_rails_app/README.rdoc +28 -0
  19. data/sample_rails_app/Rakefile +6 -0
  20. data/sample_rails_app/app/assets/images/.keep +0 -0
  21. data/sample_rails_app/app/assets/javascripts/application.js +15 -0
  22. data/sample_rails_app/app/assets/javascripts/articles.js +2 -0
  23. data/sample_rails_app/app/assets/javascripts/comments.js +2 -0
  24. data/sample_rails_app/app/assets/javascripts/welcome.js +2 -0
  25. data/sample_rails_app/app/assets/stylesheets/application.css +15 -0
  26. data/sample_rails_app/app/assets/stylesheets/articles.scss +3 -0
  27. data/sample_rails_app/app/assets/stylesheets/comments.scss +3 -0
  28. data/sample_rails_app/app/assets/stylesheets/welcome.scss +3 -0
  29. data/sample_rails_app/app/controllers/application_controller.rb +5 -0
  30. data/sample_rails_app/app/controllers/articles_controller.rb +51 -0
  31. data/sample_rails_app/app/controllers/comments_controller.rb +19 -0
  32. data/sample_rails_app/app/controllers/concerns/.keep +0 -0
  33. data/sample_rails_app/app/controllers/welcome_controller.rb +4 -0
  34. data/sample_rails_app/app/helpers/application_helper.rb +2 -0
  35. data/sample_rails_app/app/helpers/articles_helper.rb +2 -0
  36. data/sample_rails_app/app/helpers/comments_helper.rb +2 -0
  37. data/sample_rails_app/app/helpers/welcome_helper.rb +2 -0
  38. data/sample_rails_app/app/mailers/.keep +0 -0
  39. data/sample_rails_app/app/models/.keep +0 -0
  40. data/sample_rails_app/app/models/article.rb +5 -0
  41. data/sample_rails_app/app/models/comment.rb +3 -0
  42. data/sample_rails_app/app/models/concerns/.keep +0 -0
  43. data/sample_rails_app/app/views/articles/_form.html.erb +31 -0
  44. data/sample_rails_app/app/views/articles/edit.html.erb +5 -0
  45. data/sample_rails_app/app/views/articles/index.html.erb +21 -0
  46. data/sample_rails_app/app/views/articles/new.html.erb +5 -0
  47. data/sample_rails_app/app/views/articles/show.html.erb +18 -0
  48. data/sample_rails_app/app/views/comments/_comment.html.erb +15 -0
  49. data/sample_rails_app/app/views/comments/_form.html.erb +13 -0
  50. data/sample_rails_app/app/views/layouts/application.html.erb +14 -0
  51. data/sample_rails_app/app/views/welcome/index.html.erb +2 -0
  52. data/sample_rails_app/bin/bundle +3 -0
  53. data/sample_rails_app/bin/rails +9 -0
  54. data/sample_rails_app/bin/rake +9 -0
  55. data/sample_rails_app/bin/setup +29 -0
  56. data/sample_rails_app/bin/spring +15 -0
  57. data/sample_rails_app/config.ru +4 -0
  58. data/sample_rails_app/config/application.rb +35 -0
  59. data/sample_rails_app/config/boot.rb +3 -0
  60. data/sample_rails_app/config/database.yml +25 -0
  61. data/sample_rails_app/config/environment.rb +5 -0
  62. data/sample_rails_app/config/environments/development.rb +41 -0
  63. data/sample_rails_app/config/environments/production.rb +79 -0
  64. data/sample_rails_app/config/environments/test.rb +42 -0
  65. data/sample_rails_app/config/initializers/assets.rb +11 -0
  66. data/sample_rails_app/config/initializers/backtrace_silencers.rb +7 -0
  67. data/sample_rails_app/config/initializers/cookies_serializer.rb +3 -0
  68. data/sample_rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  69. data/sample_rails_app/config/initializers/inflections.rb +16 -0
  70. data/sample_rails_app/config/initializers/mime_types.rb +4 -0
  71. data/sample_rails_app/config/initializers/session_store.rb +3 -0
  72. data/sample_rails_app/config/initializers/utter.rb +8 -0
  73. data/sample_rails_app/config/initializers/wrap_parameters.rb +14 -0
  74. data/sample_rails_app/config/locales/en.yml +23 -0
  75. data/sample_rails_app/config/routes.rb +7 -0
  76. data/sample_rails_app/config/secrets.yml +22 -0
  77. data/sample_rails_app/db/migrate/20160218085536_create_articles.rb +10 -0
  78. data/sample_rails_app/db/migrate/20160222061605_create_comments.rb +11 -0
  79. data/sample_rails_app/db/schema.rb +33 -0
  80. data/sample_rails_app/db/seeds.rb +7 -0
  81. data/sample_rails_app/lib/assets/.keep +0 -0
  82. data/sample_rails_app/lib/tasks/.keep +0 -0
  83. data/sample_rails_app/log/.keep +0 -0
  84. data/sample_rails_app/public/404.html +67 -0
  85. data/sample_rails_app/public/422.html +67 -0
  86. data/sample_rails_app/public/500.html +66 -0
  87. data/sample_rails_app/public/favicon.ico +0 -0
  88. data/sample_rails_app/public/robots.txt +5 -0
  89. data/sample_rails_app/vendor/assets/javascripts/.keep +0 -0
  90. data/sample_rails_app/vendor/assets/stylesheets/.keep +0 -0
  91. data/utter.gemspec +31 -0
  92. metadata +221 -0
@@ -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,5 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'utter/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "utter_events"
8
+ spec.version = Utter::VERSION
9
+ spec.authors = ["parasquid"]
10
+ spec.email = ["parasquid@gmail.com"]
11
+
12
+ spec.summary = %q{Easily allow any object to emits events.}
13
+ spec.description = %q{Utter provides a standard API to allow any class to
14
+ emit events. It abstracts away event queueing and
15
+ propagation so you don't have to worry about it.}
16
+ spec.homepage = "https://github.com/parasquid/utter"
17
+ spec.license = "LGPLv3"
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.11"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.0"
27
+
28
+ spec.add_development_dependency "guard-rspec"
29
+ spec.add_development_dependency "rspec-given"
30
+ spec.add_development_dependency "pry"
31
+ end
metadata ADDED
@@ -0,0 +1,221 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: utter_events
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - parasquid
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-given
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: |-
98
+ Utter provides a standard API to allow any class to
99
+ emit events. It abstracts away event queueing and
100
+ propagation so you don't have to worry about it.
101
+ email:
102
+ - parasquid@gmail.com
103
+ executables: []
104
+ extensions: []
105
+ extra_rdoc_files: []
106
+ files:
107
+ - .gitignore
108
+ - .rspec
109
+ - .ruby-version
110
+ - .travis.yml
111
+ - CODE_OF_CONDUCT.md
112
+ - Gemfile
113
+ - Guardfile
114
+ - README.md
115
+ - Rakefile
116
+ - bin/console
117
+ - bin/setup
118
+ - lib/utter.rb
119
+ - lib/utter/version.rb
120
+ - sample_rails_app/.gitignore
121
+ - sample_rails_app/Gemfile
122
+ - sample_rails_app/Gemfile.lock
123
+ - sample_rails_app/README.rdoc
124
+ - sample_rails_app/Rakefile
125
+ - sample_rails_app/app/assets/images/.keep
126
+ - sample_rails_app/app/assets/javascripts/application.js
127
+ - sample_rails_app/app/assets/javascripts/articles.js
128
+ - sample_rails_app/app/assets/javascripts/comments.js
129
+ - sample_rails_app/app/assets/javascripts/welcome.js
130
+ - sample_rails_app/app/assets/stylesheets/application.css
131
+ - sample_rails_app/app/assets/stylesheets/articles.scss
132
+ - sample_rails_app/app/assets/stylesheets/comments.scss
133
+ - sample_rails_app/app/assets/stylesheets/welcome.scss
134
+ - sample_rails_app/app/controllers/application_controller.rb
135
+ - sample_rails_app/app/controllers/articles_controller.rb
136
+ - sample_rails_app/app/controllers/comments_controller.rb
137
+ - sample_rails_app/app/controllers/concerns/.keep
138
+ - sample_rails_app/app/controllers/welcome_controller.rb
139
+ - sample_rails_app/app/helpers/application_helper.rb
140
+ - sample_rails_app/app/helpers/articles_helper.rb
141
+ - sample_rails_app/app/helpers/comments_helper.rb
142
+ - sample_rails_app/app/helpers/welcome_helper.rb
143
+ - sample_rails_app/app/mailers/.keep
144
+ - sample_rails_app/app/models/.keep
145
+ - sample_rails_app/app/models/article.rb
146
+ - sample_rails_app/app/models/comment.rb
147
+ - sample_rails_app/app/models/concerns/.keep
148
+ - sample_rails_app/app/views/articles/_form.html.erb
149
+ - sample_rails_app/app/views/articles/edit.html.erb
150
+ - sample_rails_app/app/views/articles/index.html.erb
151
+ - sample_rails_app/app/views/articles/new.html.erb
152
+ - sample_rails_app/app/views/articles/show.html.erb
153
+ - sample_rails_app/app/views/comments/_comment.html.erb
154
+ - sample_rails_app/app/views/comments/_form.html.erb
155
+ - sample_rails_app/app/views/layouts/application.html.erb
156
+ - sample_rails_app/app/views/welcome/index.html.erb
157
+ - sample_rails_app/bin/bundle
158
+ - sample_rails_app/bin/rails
159
+ - sample_rails_app/bin/rake
160
+ - sample_rails_app/bin/setup
161
+ - sample_rails_app/bin/spring
162
+ - sample_rails_app/config.ru
163
+ - sample_rails_app/config/application.rb
164
+ - sample_rails_app/config/boot.rb
165
+ - sample_rails_app/config/database.yml
166
+ - sample_rails_app/config/environment.rb
167
+ - sample_rails_app/config/environments/development.rb
168
+ - sample_rails_app/config/environments/production.rb
169
+ - sample_rails_app/config/environments/test.rb
170
+ - sample_rails_app/config/initializers/assets.rb
171
+ - sample_rails_app/config/initializers/backtrace_silencers.rb
172
+ - sample_rails_app/config/initializers/cookies_serializer.rb
173
+ - sample_rails_app/config/initializers/filter_parameter_logging.rb
174
+ - sample_rails_app/config/initializers/inflections.rb
175
+ - sample_rails_app/config/initializers/mime_types.rb
176
+ - sample_rails_app/config/initializers/session_store.rb
177
+ - sample_rails_app/config/initializers/utter.rb
178
+ - sample_rails_app/config/initializers/wrap_parameters.rb
179
+ - sample_rails_app/config/locales/en.yml
180
+ - sample_rails_app/config/routes.rb
181
+ - sample_rails_app/config/secrets.yml
182
+ - sample_rails_app/db/migrate/20160218085536_create_articles.rb
183
+ - sample_rails_app/db/migrate/20160222061605_create_comments.rb
184
+ - sample_rails_app/db/schema.rb
185
+ - sample_rails_app/db/seeds.rb
186
+ - sample_rails_app/lib/assets/.keep
187
+ - sample_rails_app/lib/tasks/.keep
188
+ - sample_rails_app/log/.keep
189
+ - sample_rails_app/public/404.html
190
+ - sample_rails_app/public/422.html
191
+ - sample_rails_app/public/500.html
192
+ - sample_rails_app/public/favicon.ico
193
+ - sample_rails_app/public/robots.txt
194
+ - sample_rails_app/vendor/assets/javascripts/.keep
195
+ - sample_rails_app/vendor/assets/stylesheets/.keep
196
+ - utter.gemspec
197
+ homepage: https://github.com/parasquid/utter
198
+ licenses:
199
+ - LGPLv3
200
+ metadata: {}
201
+ post_install_message:
202
+ rdoc_options: []
203
+ require_paths:
204
+ - lib
205
+ required_ruby_version: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ required_rubygems_version: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - '>='
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ requirements: []
216
+ rubyforge_project:
217
+ rubygems_version: 2.4.8
218
+ signing_key:
219
+ specification_version: 4
220
+ summary: Easily allow any object to emits events.
221
+ test_files: []