newmy-plugin 0.0.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 ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in newplugin.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
data/lib/newplugin.rb ADDED
@@ -0,0 +1,20 @@
1
+ require "newplugin/version"
2
+
3
+ module Newplugin
4
+ # namespace our plugin and inherit from Rails::Railtie
5
+ # to get our plugin into the initialization process
6
+ class Railtie < Rails::Railtie
7
+
8
+ # configure our plugin on boot. other extension points such
9
+ # as configuration, rake tasks, etc, are also available
10
+ initializer "newplugin.initialize" do |app|
11
+
12
+ # subscribe to all rails notifications: controllers, AR, etc.
13
+ ActiveSupport::Notifications.subscribe do |*args|
14
+ event = ActiveSupport::Notifications::Event.new(*args)
15
+ puts "Got ========== notification: #{event.inspect}"
16
+ end
17
+
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,3 @@
1
+ module Newplugin
2
+ VERSION = "0.0.1"
3
+ end
data/newplugin.gemspec ADDED
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "newplugin/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "newmy-plugin"
7
+ s.version = Newplugin::VERSION
8
+ s.authors = ["TOD: Write your name"]
9
+ s.email = ["TOD: Write your email address"]
10
+ s.homepage = ""
11
+ s.summary = %q{TOD: Write a gem summary}
12
+ s.description = %q{TOD: Write a gem description}
13
+
14
+ s.rubyforge_project = "newplugin"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: newmy-plugin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - ! 'TOD: Write your name'
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-06-15 00:00:00.000000000Z
13
+ dependencies: []
14
+ description: ! 'TOD: Write a gem description'
15
+ email:
16
+ - ! 'TOD: Write your email address'
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - Rakefile
24
+ - lib/newplugin.rb
25
+ - lib/newplugin/version.rb
26
+ - newplugin.gemspec
27
+ homepage: ''
28
+ licenses: []
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project: newplugin
47
+ rubygems_version: 1.8.5
48
+ signing_key:
49
+ specification_version: 3
50
+ summary: ! 'TOD: Write a gem summary'
51
+ test_files: []