flashatron 0.3.0 → 0.3.1

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.
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ rdoc
19
19
  pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
+ Flashatron.gemspec
data/README.md CHANGED
@@ -4,7 +4,9 @@ Handle your flash notices etc via javascript. Why would you want to do this? It
4
4
 
5
5
  ## Installation ##
6
6
 
7
- add flashatron to your 'Gemfile' and bundle install
7
+ add flashatron to your 'Gemfile' and bundle install and then
8
+
9
+ rails g flashatron
8
10
 
9
11
  ## Useage ##
10
12
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/lib/Flashatron.rb CHANGED
@@ -5,10 +5,11 @@ module Flashatron
5
5
  render '/flashatron', :format => :js
6
6
  end
7
7
  end
8
+
9
+ def self.init
10
+ ActionView::Helpers::AssetTagHelper.register_javascript_include_default('flashatron')
11
+ ActionView::Base.send :include, Flashatron::ViewHelper
12
+ ActionController::Base.append_view_path File.join(File.dirname(__FILE__),'..','app','views')
13
+ end
8
14
  end
9
15
 
10
- ActionView::Helpers::AssetTagHelper.register_javascript_include_default('flashatron')
11
-
12
- ActionView::Base.send :include, Flashatron::ViewHelper
13
-
14
- ActionController::Base.append_view_path File.join(File.dirname(__FILE__),'..','app','views')
@@ -27,4 +27,11 @@ var Flashatron = {
27
27
  JS
28
28
  end
29
29
  end
30
+
31
+ def create_initializer
32
+ create_file "config/initializers/flashatron.rb" do
33
+ "Flashatron.init"
34
+ end
35
+
36
+ end
30
37
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dan Williams
@@ -42,7 +42,6 @@ extra_rdoc_files:
42
42
  files:
43
43
  - .document
44
44
  - .gitignore
45
- - Flashatron.gemspec
46
45
  - MIT-LICENSE
47
46
  - README.md
48
47
  - Rakefile
data/Flashatron.gemspec DELETED
@@ -1,59 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{flashatron}
8
- s.version = "0.3.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Dan Williams"]
12
- s.date = %q{2010-02-27}
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
- s.email = %q{dan.williams@itthugs.com}
15
- s.extra_rdoc_files = [
16
- "README.md"
17
- ]
18
- s.files = [
19
- ".document",
20
- ".gitignore",
21
- "Flashatron.gemspec",
22
- "MIT-LICENSE",
23
- "README.md",
24
- "Rakefile",
25
- "VERSION",
26
- "app/views/_flashatron.js.erb",
27
- "app/views/layouts/application.js.erb",
28
- "init.rb",
29
- "lib/Flashatron.rb",
30
- "lib/generators/USAGE",
31
- "lib/generators/flashatron_generator.rb",
32
- "spec/Flashatron_spec.rb",
33
- "spec/spec.opts",
34
- "spec/spec_helper.rb"
35
- ]
36
- s.homepage = %q{http://github.com/deedubs/Flashatron}
37
- s.rdoc_options = ["--charset=UTF-8"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.6}
40
- s.summary = %q{There's a JS in my Flash Message}
41
- s.test_files = [
42
- "spec/Flashatron_spec.rb",
43
- "spec/spec_helper.rb"
44
- ]
45
-
46
- if s.respond_to? :specification_version then
47
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
- s.specification_version = 3
49
-
50
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
52
- else
53
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
54
- end
55
- else
56
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
57
- end
58
- end
59
-