my_plugin 0.0.1 → 0.0.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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWMyZjIxZGQ5NTY1M2NkNzM4OTBhYTZmODc0MTNkNzJlOTIwODg0YQ==
4
+ ZmJjYzk5YzE5M2UwZDdiOTY1OGEyM2IyNjk1YzViNDY1MzEyMDJiZQ==
5
5
  data.tar.gz: !binary |-
6
- MzQ3ZGI3YTFiMGM3MDdkZTczNGEzYTlhZGY4ZjVhODExZGNhODUwYQ==
6
+ NGIwYzExN2MyNDhmNmIyODM0MmI4ODg0NWU5YmY3ODFmMGM4ZWM4Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTQyYjNiZWJiYzQ1MDU4ZTU5MDlkYmIzZDk3ZWJmOTNkZjYzMWM5YmQ1ZGM4
10
- ZTYyM2ViNjJiZDA5YWNmNGYzNTRmNzhkN2U1MGEyNGEwOWI5NTUzYmY5MzQy
11
- MmMwN2M5MTI4ZjEyOWI0ZGY0ZmU0YTVkNjgwNmE0MzgzMmM5YTU=
9
+ NzdkZDY3MWRkYTViNDNmOGQwZGUxN2NlN2RjZGViMGJjN2M2ODEzMTY5OGVh
10
+ OWUwNDRmZTg1MjdiYTg1ODE3YTA4M2U4OTI4ZjhlMjJhZTM0ZGY4YjhhZDg5
11
+ NGE0MDE5YzFiYWRiNzE3Y2E5OTRmN2ZlOGJkZTUzOGVlZGUxZDY=
12
12
  data.tar.gz: !binary |-
13
- OWE2YjZiYzU3ODk4NDRjY2JmNDc3NzU5MWVkMmQxMDU3MTI0NWZhZmNjYmNk
14
- Y2I0NTY5MTBlNDVhNjAxMGRhOTc2NDc0YTZkMjFlN2U3Mzc2ZDNlNTE2OTRm
15
- Y2U0ZGZhNDJmZmUyODUzMDk5MTM2ZGM2YmY5ZTliNGM1MDJmYWE=
13
+ OTAzODU0OGRmODhiODY2NzEyZGRmYTRlOTk3MjZmOWQyNjc2MTRiNjNhZTBk
14
+ ZjE4NDg4MjVlNDBjNzMwODQ0NTUxYWI3MGIyZjFmMDA0OTE5Mjk4ZDE4Yzhl
15
+ Mzg1MWFjNjAxNDc2NzkxYmI3NDY1ZDE5ZWUwN2M2ODQ2YjEzZWI=
@@ -0,0 +1,12 @@
1
+ require 'my_plugin'
2
+ require 'rails'
3
+
4
+ module MyPlugin
5
+ class Railtie < Rails::Railtie
6
+ railtie_name :my_plugin
7
+
8
+ rake_tasks do
9
+ load "tasks/my_plugin.rake"
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module MyPlugin
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,4 @@
1
+ desc 'my plugins rake task'
2
+ task :do_something do
3
+ puts "the rake task did something"
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sohair Ahmad
@@ -45,14 +45,11 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
49
48
  - Gemfile
50
- - LICENSE.txt
51
- - README.md
52
- - Rakefile
53
49
  - lib/my_plugin.rb
50
+ - lib/my_plugin/railtie.rb
54
51
  - lib/my_plugin/version.rb
55
- - my_plugin.gemspec
52
+ - lib/tasks/my_plugin.rake
56
53
  homepage: ''
57
54
  licenses:
58
55
  - MIT
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2014 Sohair Ahmad
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,31 +0,0 @@
1
- # MyPlugin
2
-
3
- TODO: Write a gem description
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'my_plugin'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install my_plugin
20
-
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
24
-
25
- ## Contributing
26
-
27
- 1. Fork it ( https://github.com/[my-github-username]/my_plugin/fork )
28
- 2. Create your feature branch (`git checkout -b my-new-feature`)
29
- 3. Commit your changes (`git commit -am 'Add some feature'`)
30
- 4. Push to the branch (`git push origin my-new-feature`)
31
- 5. Create a new Pull Request
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
data/my_plugin.gemspec DELETED
@@ -1,23 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'my_plugin/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "my_plugin"
8
- spec.version = MyPlugin::VERSION
9
- spec.authors = ["Sohair Ahmad"]
10
- spec.email = ["sohair.ahmad@square63.com"]
11
- spec.summary = %q{a gem with rake task summary.}
12
- spec.description = %q{a gem with rake task description. Optional.}
13
- spec.homepage = ""
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.7"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- end