flash_gordon 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,31 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class FlashGordonTest < ActiveSupport::TestCase
4
- test "truth" do
4
+
5
+ test "FlashGordon module defined" do
5
6
  assert_kind_of Module, FlashGordon
6
7
  end
8
+
9
+ test "FlashGordon::Flash class defined" do
10
+ assert_kind_of Class, FlashGordon::Flash
11
+ end
12
+
13
+ test "FlashGordon initializes with preset zones" do
14
+ assert_not_equal({}, FlashGordon.zones)
15
+ end
16
+
17
+ test "FlashGordon.reset_zones should give empty array for each zone" do
18
+ FlashGordon::Flash.append("Testing")
19
+ assert_equal(FlashGordon.zones, FlashGordon::Flash.reset)
20
+ end
21
+
22
+ test "FlashGordon.add_zone(:zone_name) should give a new zone in the zones hash" do
23
+ new_zones = [:pewpewpew, :bambambam, :beeroclock]
24
+ new_zones.each do |z|
25
+ FlashGordon.add_zone(z.to_sym)
26
+ end
27
+ new_zones << :anger # Test for initializer added zone
28
+ assert_equal(new_zones.sort, FlashGordon.new_zones.sort)
29
+ end
30
+
7
31
  end
metadata CHANGED
@@ -2,29 +2,29 @@
2
2
  name: flash_gordon
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ernest Sim
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-21 00:00:00.000000000 Z
12
+ date: 2013-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  version_requirements: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 4.0.0
21
+ version: '3.2'
22
22
  requirement: !ruby/object:Gem::Requirement
23
23
  none: false
24
24
  requirements:
25
- - - ~>
25
+ - - ! '>='
26
26
  - !ruby/object:Gem::Version
27
- version: 4.0.0
27
+ version: '3.2'
28
28
  type: :runtime
29
29
  prerelease: false
30
30
  - !ruby/object:Gem::Dependency
@@ -60,11 +60,14 @@ files:
60
60
  - lib/flash_gordon.rb
61
61
  - lib/tasks/flash_gordon_tasks.rake
62
62
  - Rakefile
63
+ - test/controllers/pages_controller_test.rb
63
64
  - test/dummy/app/assets/javascripts/application.js
64
65
  - test/dummy/app/assets/stylesheets/application.css
65
66
  - test/dummy/app/controllers/application_controller.rb
67
+ - test/dummy/app/controllers/pages_controller.rb
66
68
  - test/dummy/app/helpers/application_helper.rb
67
69
  - test/dummy/app/views/layouts/application.html.erb
70
+ - test/dummy/app/views/pages/home.html.erb
68
71
  - test/dummy/bin/bundle
69
72
  - test/dummy/bin/rails
70
73
  - test/dummy/bin/rake
@@ -77,6 +80,7 @@ files:
77
80
  - test/dummy/config/environments/test.rb
78
81
  - test/dummy/config/initializers/backtrace_silencers.rb
79
82
  - test/dummy/config/initializers/filter_parameter_logging.rb
83
+ - test/dummy/config/initializers/flash_gordon.rb
80
84
  - test/dummy/config/initializers/inflections.rb
81
85
  - test/dummy/config/initializers/mime_types.rb
82
86
  - test/dummy/config/initializers/secret_token.rb
@@ -85,12 +89,20 @@ files:
85
89
  - test/dummy/config/locales/en.yml
86
90
  - test/dummy/config/routes.rb
87
91
  - test/dummy/config.ru
92
+ - test/dummy/db/test.sqlite3
93
+ - test/dummy/log/test.log
88
94
  - test/dummy/public/404.html
89
95
  - test/dummy/public/422.html
90
96
  - test/dummy/public/500.html
91
97
  - test/dummy/public/favicon.ico
92
98
  - test/dummy/Rakefile
93
99
  - test/dummy/README.rdoc
100
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
101
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
102
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
103
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
104
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
105
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
94
106
  - test/flash_gordon_test.rb
95
107
  - test/test_helper.rb
96
108
  homepage: https://github.com/methodnow/flash_gordon
@@ -118,11 +130,14 @@ signing_key:
118
130
  specification_version: 3
119
131
  summary: Flash Gordon aims to simplify managing complex flash messages
120
132
  test_files:
133
+ - test/controllers/pages_controller_test.rb
121
134
  - test/dummy/app/assets/javascripts/application.js
122
135
  - test/dummy/app/assets/stylesheets/application.css
123
136
  - test/dummy/app/controllers/application_controller.rb
137
+ - test/dummy/app/controllers/pages_controller.rb
124
138
  - test/dummy/app/helpers/application_helper.rb
125
139
  - test/dummy/app/views/layouts/application.html.erb
140
+ - test/dummy/app/views/pages/home.html.erb
126
141
  - test/dummy/bin/bundle
127
142
  - test/dummy/bin/rails
128
143
  - test/dummy/bin/rake
@@ -135,6 +150,7 @@ test_files:
135
150
  - test/dummy/config/environments/test.rb
136
151
  - test/dummy/config/initializers/backtrace_silencers.rb
137
152
  - test/dummy/config/initializers/filter_parameter_logging.rb
153
+ - test/dummy/config/initializers/flash_gordon.rb
138
154
  - test/dummy/config/initializers/inflections.rb
139
155
  - test/dummy/config/initializers/mime_types.rb
140
156
  - test/dummy/config/initializers/secret_token.rb
@@ -143,12 +159,20 @@ test_files:
143
159
  - test/dummy/config/locales/en.yml
144
160
  - test/dummy/config/routes.rb
145
161
  - test/dummy/config.ru
162
+ - test/dummy/db/test.sqlite3
163
+ - test/dummy/log/test.log
146
164
  - test/dummy/public/404.html
147
165
  - test/dummy/public/422.html
148
166
  - test/dummy/public/500.html
149
167
  - test/dummy/public/favicon.ico
150
168
  - test/dummy/Rakefile
151
169
  - test/dummy/README.rdoc
170
+ - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
171
+ - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
172
+ - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
173
+ - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
174
+ - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
175
+ - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
152
176
  - test/flash_gordon_test.rb
153
177
  - test/test_helper.rb
154
178
  has_rdoc: