flashatron 0.4.1 → 0.4.2

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/flashatron.gemspec +3 -2
  3. data/lib/flashatron.rb +14 -0
  4. metadata +5 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
data/flashatron.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flashatron}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Williams"]
12
- s.date = %q{2010-07-29}
12
+ s.date = %q{2010-08-05}
13
13
  s.description = %q{Handle your flash notices etc via javascript. Why would you want to do this? It lets you easily handle flash notices from ajax calls.}
14
14
  s.email = %q{dan.williams@itthugs.com}
15
15
  s.extra_rdoc_files = [
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
27
27
  "flashatron.gemspec",
28
28
  "init.rb",
29
29
  "lib/Flashatron.rb",
30
+ "lib/flashatron.rb",
30
31
  "lib/generators/USAGE",
31
32
  "lib/generators/flashatron_generator.rb",
32
33
  "spec/Flashatron_spec.rb",
data/lib/flashatron.rb ADDED
@@ -0,0 +1,14 @@
1
+ # Flashatron
2
+ module Flashatron
3
+ module ViewHelper
4
+ def render_flashes
5
+ render '/flashatron'
6
+ end
7
+ end
8
+
9
+ def self.init
10
+ ActionView::Base.send :include, Flashatron::ViewHelper
11
+ ActionController::Base.append_view_path File.join(File.dirname(__FILE__),'..','app','views')
12
+ end
13
+ end
14
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flashatron
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Williams
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-29 00:00:00 -03:00
18
+ date: 2010-08-05 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -54,6 +54,7 @@ files:
54
54
  - flashatron.gemspec
55
55
  - init.rb
56
56
  - lib/Flashatron.rb
57
+ - lib/flashatron.rb
57
58
  - lib/generators/USAGE
58
59
  - lib/generators/flashatron_generator.rb
59
60
  - spec/Flashatron_spec.rb