pluginator 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +10 -0
  3. data/README.md +7 -5
  4. data/lib/pluginator/autodetect/finder.rb +85 -0
  5. data/lib/pluginator/autodetect/formatted_finder.rb +110 -0
  6. data/lib/pluginator/autodetect.rb +41 -73
  7. data/lib/pluginator/errors.rb +3 -2
  8. data/lib/pluginator/extendable_autodetect.rb +5 -9
  9. data/lib/pluginator/name_converter.rb +6 -16
  10. data/lib/pluginator/version.rb +2 -2
  11. data/lib/pluginator.rb +2 -2
  12. data/lib/plugins/pluginator/extensions/conversions.rb +8 -5
  13. data/lib/plugins/pluginator/extensions/first_ask.rb +2 -2
  14. data/lib/plugins/pluginator/extensions/first_class.rb +3 -3
  15. data/lib/plugins/pluginator/extensions/plugins_map.rb +8 -3
  16. metadata +43 -103
  17. data/.gitignore +0 -5
  18. data/.noexec.yaml +0 -1
  19. data/.travis.yml +0 -26
  20. data/Gemfile +0 -34
  21. data/Guardfile +0 -17
  22. data/Rakefile +0 -49
  23. data/pluginator.gemspec +0 -44
  24. data/test/gems/gems/fake-gem-name-a-1.0.0/lib/fake-gem-name-a.rb +0 -1
  25. data/test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/math/decrease.rb +0 -27
  26. data/test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/math/increase.rb +0 -27
  27. data/test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/nested/structure/test.rb +0 -25
  28. data/test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/stats/max.rb +0 -29
  29. data/test/gems/gems/fake-gem-name-activated-1.0.0/lib/fake-gem-name-activated.rb +0 -1
  30. data/test/gems/gems/fake-gem-name-activated-1.0.0/lib/plugins/activated/version1/max.rb +0 -29
  31. data/test/gems/gems/fake-gem-name-activated-2.0.0/lib/fake-gem-name-activated.rb +0 -1
  32. data/test/gems/gems/fake-gem-name-activated-2.0.0/lib/plugins/activated/version1/max.rb +0 -29
  33. data/test/gems/gems/fake-gem-name-latest-1.0.0/lib/fake-gem-name-latest.rb +0 -1
  34. data/test/gems/gems/fake-gem-name-latest-1.0.0/lib/plugins/latest/version1/max.rb +0 -29
  35. data/test/gems/gems/fake-gem-name-latest-2.0.0/lib/fake-gem-name-latest.rb +0 -1
  36. data/test/gems/gems/fake-gem-name-latest-2.0.0/lib/plugins/latest/version2/max.rb +0 -29
  37. data/test/gems/gems/fake-gem-name-v1a-1.0.0/lib/fake-gem-name-v1a.rb +0 -1
  38. data/test/gems/gems/fake-gem-name-v1a-1.0.0/lib/plugins/v1test/stats/max.rb +0 -29
  39. data/test/gems/gems/fake-gem-name-v1b-1.0.0/lib/fake-gem-name-v1a.rb +0 -1
  40. data/test/gems/gems/fake-gem-name-v1b-1.0.0/lib/plugins/v1test/stats/max.rb +0 -29
  41. data/test/gems/gems/fake-gem-name-v2a-1.0.0/lib/fake-gem-name-v2a.rb +0 -1
  42. data/test/gems/gems/fake-gem-name-v2a-1.0.0/lib/plugins/v2test/stats/max.rb +0 -29
  43. data/test/gems/gems/fake-gem-name-v2b-1.0.0/lib/fake-gem-name-v2b.rb +0 -1
  44. data/test/gems/gems/fake-gem-name-v2b-1.0.0/lib/plugins/v2test/stats/max.rb +0 -29
  45. data/test/gems/specifications/fake-gem-name-a-1.0.0.gemspec +0 -21
  46. data/test/gems/specifications/fake-gem-name-activated-1.0.0.gemspec +0 -21
  47. data/test/gems/specifications/fake-gem-name-activated-2.0.0.gemspec +0 -21
  48. data/test/gems/specifications/fake-gem-name-latest-1.0.0.gemspec +0 -21
  49. data/test/gems/specifications/fake-gem-name-latest-2.0.0.gemspec +0 -21
  50. data/test/gems/specifications/fake-gem-name-v1a-1.0.0.gemspec +0 -21
  51. data/test/gems/specifications/fake-gem-name-v1b-1.0.0.gemspec +0 -24
  52. data/test/gems/specifications/fake-gem-name-v2a-1.0.0.gemspec +0 -24
  53. data/test/gems/specifications/fake-gem-name-v2b-1.0.0.gemspec +0 -24
  54. data/test/pluginator/autodetect_test.rb +0 -170
  55. data/test/pluginator/extendable_autodetect_test.rb +0 -43
  56. data/test/pluginator/group_test.rb +0 -45
  57. data/test/pluginator/name_converter_test.rb +0 -52
  58. data/test/pluginator_test.rb +0 -132
  59. data/test/plugins_test/extensions/class_exist_test.rb +0 -45
  60. data/test/plugins_test/extensions/conversions_test.rb +0 -34
  61. data/test/plugins_test/extensions/first_ask_test.rb +0 -63
  62. data/test/plugins_test/extensions/first_class_test.rb +0 -63
  63. data/test/plugins_test/extensions/matching_test.rb +0 -55
  64. data/test/plugins_test/extensions/plugins_map_test.rb +0 -35
  65. data/test/test_helper.rb +0 -88
metadata CHANGED
@@ -1,43 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluginator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis
8
8
  - Jordon Bedwell
9
9
  - Mose
10
+ - John O'Gara
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2014-10-20 00:00:00.000000000 Z
14
+ date: 2017-05-14 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rake
17
18
  requirement: !ruby/object:Gem::Requirement
18
19
  requirements:
19
- - - '>='
20
+ - - ">="
20
21
  - !ruby/object:Gem::Version
21
22
  version: '0'
22
23
  type: :development
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
26
  requirements:
26
- - - '>='
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rubocop
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
27
42
  - !ruby/object:Gem::Version
28
43
  version: '0'
29
44
  - !ruby/object:Gem::Dependency
30
45
  name: minitest
31
46
  requirement: !ruby/object:Gem::Requirement
32
47
  requirements:
33
- - - '>='
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ - !ruby/object:Gem::Dependency
59
+ name: minitest-reporters
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
34
63
  - !ruby/object:Gem::Version
35
64
  version: '0'
36
65
  type: :development
37
66
  prerelease: false
38
67
  version_requirements: !ruby/object:Gem::Requirement
39
68
  requirements:
40
- - - '>='
69
+ - - ">="
41
70
  - !ruby/object:Gem::Version
42
71
  version: '0'
43
72
  description:
@@ -45,22 +74,19 @@ email:
45
74
  - mpapis@gmail.com
46
75
  - envygeeks@gmail.com
47
76
  - mose@mose.com
77
+ - johnogara@gmail.com
48
78
  executables: []
49
79
  extensions: []
50
80
  extra_rdoc_files: []
51
81
  files:
52
- - .gitignore
53
- - .noexec.yaml
54
- - .travis.yml
55
82
  - COPYING
56
83
  - COPYING.LESSER
57
84
  - Changelog.md
58
- - Gemfile
59
- - Guardfile
60
85
  - README.md
61
- - Rakefile
62
86
  - lib/pluginator.rb
63
87
  - lib/pluginator/autodetect.rb
88
+ - lib/pluginator/autodetect/finder.rb
89
+ - lib/pluginator/autodetect/formatted_finder.rb
64
90
  - lib/pluginator/errors.rb
65
91
  - lib/pluginator/extendable_autodetect.rb
66
92
  - lib/pluginator/group.rb
@@ -72,49 +98,6 @@ files:
72
98
  - lib/plugins/pluginator/extensions/first_class.rb
73
99
  - lib/plugins/pluginator/extensions/matching.rb
74
100
  - lib/plugins/pluginator/extensions/plugins_map.rb
75
- - pluginator.gemspec
76
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/fake-gem-name-a.rb
77
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/math/decrease.rb
78
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/math/increase.rb
79
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/nested/structure/test.rb
80
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/stats/max.rb
81
- - test/gems/gems/fake-gem-name-activated-1.0.0/lib/fake-gem-name-activated.rb
82
- - test/gems/gems/fake-gem-name-activated-1.0.0/lib/plugins/activated/version1/max.rb
83
- - test/gems/gems/fake-gem-name-activated-2.0.0/lib/fake-gem-name-activated.rb
84
- - test/gems/gems/fake-gem-name-activated-2.0.0/lib/plugins/activated/version1/max.rb
85
- - test/gems/gems/fake-gem-name-latest-1.0.0/lib/fake-gem-name-latest.rb
86
- - test/gems/gems/fake-gem-name-latest-1.0.0/lib/plugins/latest/version1/max.rb
87
- - test/gems/gems/fake-gem-name-latest-2.0.0/lib/fake-gem-name-latest.rb
88
- - test/gems/gems/fake-gem-name-latest-2.0.0/lib/plugins/latest/version2/max.rb
89
- - test/gems/gems/fake-gem-name-v1a-1.0.0/lib/fake-gem-name-v1a.rb
90
- - test/gems/gems/fake-gem-name-v1a-1.0.0/lib/plugins/v1test/stats/max.rb
91
- - test/gems/gems/fake-gem-name-v1b-1.0.0/lib/fake-gem-name-v1a.rb
92
- - test/gems/gems/fake-gem-name-v1b-1.0.0/lib/plugins/v1test/stats/max.rb
93
- - test/gems/gems/fake-gem-name-v2a-1.0.0/lib/fake-gem-name-v2a.rb
94
- - test/gems/gems/fake-gem-name-v2a-1.0.0/lib/plugins/v2test/stats/max.rb
95
- - test/gems/gems/fake-gem-name-v2b-1.0.0/lib/fake-gem-name-v2b.rb
96
- - test/gems/gems/fake-gem-name-v2b-1.0.0/lib/plugins/v2test/stats/max.rb
97
- - test/gems/specifications/fake-gem-name-a-1.0.0.gemspec
98
- - test/gems/specifications/fake-gem-name-activated-1.0.0.gemspec
99
- - test/gems/specifications/fake-gem-name-activated-2.0.0.gemspec
100
- - test/gems/specifications/fake-gem-name-latest-1.0.0.gemspec
101
- - test/gems/specifications/fake-gem-name-latest-2.0.0.gemspec
102
- - test/gems/specifications/fake-gem-name-v1a-1.0.0.gemspec
103
- - test/gems/specifications/fake-gem-name-v1b-1.0.0.gemspec
104
- - test/gems/specifications/fake-gem-name-v2a-1.0.0.gemspec
105
- - test/gems/specifications/fake-gem-name-v2b-1.0.0.gemspec
106
- - test/pluginator/autodetect_test.rb
107
- - test/pluginator/extendable_autodetect_test.rb
108
- - test/pluginator/group_test.rb
109
- - test/pluginator/name_converter_test.rb
110
- - test/pluginator_test.rb
111
- - test/plugins_test/extensions/class_exist_test.rb
112
- - test/plugins_test/extensions/conversions_test.rb
113
- - test/plugins_test/extensions/first_ask_test.rb
114
- - test/plugins_test/extensions/first_class_test.rb
115
- - test/plugins_test/extensions/matching_test.rb
116
- - test/plugins_test/extensions/plugins_map_test.rb
117
- - test/test_helper.rb
118
101
  homepage: https://github.com/rvm/pluginator
119
102
  licenses:
120
103
  - LGPL v3
@@ -125,61 +108,18 @@ require_paths:
125
108
  - lib
126
109
  required_ruby_version: !ruby/object:Gem::Requirement
127
110
  requirements:
128
- - - '>='
111
+ - - ">="
129
112
  - !ruby/object:Gem::Version
130
113
  version: 1.8.7
131
114
  required_rubygems_version: !ruby/object:Gem::Requirement
132
115
  requirements:
133
- - - '>='
116
+ - - ">="
134
117
  - !ruby/object:Gem::Version
135
118
  version: '0'
136
119
  requirements: []
137
120
  rubyforge_project:
138
- rubygems_version: 2.2.2
121
+ rubygems_version: 2.6.11
139
122
  signing_key:
140
123
  specification_version: 4
141
- summary: Rubygems plugin system using Gem.find_files.
142
- test_files:
143
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/fake-gem-name-a.rb
144
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/math/decrease.rb
145
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/math/increase.rb
146
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/nested/structure/test.rb
147
- - test/gems/gems/fake-gem-name-a-1.0.0/lib/plugins/something/stats/max.rb
148
- - test/gems/gems/fake-gem-name-activated-1.0.0/lib/fake-gem-name-activated.rb
149
- - test/gems/gems/fake-gem-name-activated-1.0.0/lib/plugins/activated/version1/max.rb
150
- - test/gems/gems/fake-gem-name-activated-2.0.0/lib/fake-gem-name-activated.rb
151
- - test/gems/gems/fake-gem-name-activated-2.0.0/lib/plugins/activated/version1/max.rb
152
- - test/gems/gems/fake-gem-name-latest-1.0.0/lib/fake-gem-name-latest.rb
153
- - test/gems/gems/fake-gem-name-latest-1.0.0/lib/plugins/latest/version1/max.rb
154
- - test/gems/gems/fake-gem-name-latest-2.0.0/lib/fake-gem-name-latest.rb
155
- - test/gems/gems/fake-gem-name-latest-2.0.0/lib/plugins/latest/version2/max.rb
156
- - test/gems/gems/fake-gem-name-v1a-1.0.0/lib/fake-gem-name-v1a.rb
157
- - test/gems/gems/fake-gem-name-v1a-1.0.0/lib/plugins/v1test/stats/max.rb
158
- - test/gems/gems/fake-gem-name-v1b-1.0.0/lib/fake-gem-name-v1a.rb
159
- - test/gems/gems/fake-gem-name-v1b-1.0.0/lib/plugins/v1test/stats/max.rb
160
- - test/gems/gems/fake-gem-name-v2a-1.0.0/lib/fake-gem-name-v2a.rb
161
- - test/gems/gems/fake-gem-name-v2a-1.0.0/lib/plugins/v2test/stats/max.rb
162
- - test/gems/gems/fake-gem-name-v2b-1.0.0/lib/fake-gem-name-v2b.rb
163
- - test/gems/gems/fake-gem-name-v2b-1.0.0/lib/plugins/v2test/stats/max.rb
164
- - test/gems/specifications/fake-gem-name-a-1.0.0.gemspec
165
- - test/gems/specifications/fake-gem-name-activated-1.0.0.gemspec
166
- - test/gems/specifications/fake-gem-name-activated-2.0.0.gemspec
167
- - test/gems/specifications/fake-gem-name-latest-1.0.0.gemspec
168
- - test/gems/specifications/fake-gem-name-latest-2.0.0.gemspec
169
- - test/gems/specifications/fake-gem-name-v1a-1.0.0.gemspec
170
- - test/gems/specifications/fake-gem-name-v1b-1.0.0.gemspec
171
- - test/gems/specifications/fake-gem-name-v2a-1.0.0.gemspec
172
- - test/gems/specifications/fake-gem-name-v2b-1.0.0.gemspec
173
- - test/pluginator/autodetect_test.rb
174
- - test/pluginator/extendable_autodetect_test.rb
175
- - test/pluginator/group_test.rb
176
- - test/pluginator/name_converter_test.rb
177
- - test/pluginator_test.rb
178
- - test/plugins_test/extensions/class_exist_test.rb
179
- - test/plugins_test/extensions/conversions_test.rb
180
- - test/plugins_test/extensions/first_ask_test.rb
181
- - test/plugins_test/extensions/first_class_test.rb
182
- - test/plugins_test/extensions/matching_test.rb
183
- - test/plugins_test/extensions/plugins_map_test.rb
184
- - test/test_helper.rb
185
- has_rdoc:
124
+ summary: Rubygems plugin system using Gem.find_files, $LOAD_PATH and $LOADED_FEATURES.
125
+ test_files: []
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- /*.gem
2
- /Gemfile.lock
3
- /coverage
4
- /doc
5
- /.yardoc
data/.noexec.yaml DELETED
@@ -1 +0,0 @@
1
- exclude: [rake,guard]
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - jruby
4
- - ruby-head
5
- - 2.1
6
- - 2.0.0
7
- - 1.9.3
8
- - 1.9.2
9
- - 1.8.7
10
- - rbx
11
- before_script:
12
- - 'if [[ "$TRAVIS_RUBY_VERSION" == rbx ]]; then gem update bundler; fi'
13
- script:
14
- - NOEXEC_DISABLE=1 rake
15
- notifications:
16
- irc:
17
- channels:
18
- - "irc.freenode.org#rvm-test"
19
- email:
20
- recipients:
21
- - mpapis@gmail.com
22
- on_failure: change
23
- matrix:
24
- fast_finish: true
25
- allow_failures:
26
- - rvm: rbx
data/Gemfile DELETED
@@ -1,34 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- source "https://rubygems.org"
21
-
22
- #ruby=2.0.0
23
-
24
- gemspec
25
-
26
- group :development do
27
- # statistics only on MRI 2.0 - avoid problems on older rubies
28
- gem "redcarpet", :platforms => [:mri_20]
29
- gem "simplecov", :platforms => [:mri_20]
30
- gem "coveralls", :platforms => [:mri_20]
31
- gem "guard", :platforms => [:mri_20]
32
- gem "guard-minitest", :platforms => [:mri_20]
33
- gem "guard-yard", :platforms => [:mri_20]
34
- end
data/Guardfile DELETED
@@ -1,17 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard :minitest, :include => %w[lib test], :bundler => false do
5
- watch(%r{^lib/plugins/pluginator/(.*/)?([^/]+)\.rb$}) { |m|
6
- "test/plugins_test/#{m[1]}#{m[2]}_test.rb"
7
- }
8
- watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m|
9
- "test/#{m[1]}#{m[2]}_test.rb"
10
- }
11
- watch(%r{^test/(.*)\/?(.*)_test\.rb$})
12
- watch(%r{^test/test_helper\.rb$}) { "test" }
13
- end
14
-
15
- guard "yard" do
16
- watch(%r{^lib/.+\.rb})
17
- end
data/Rakefile DELETED
@@ -1,49 +0,0 @@
1
- =begin
2
- Copyright 2013
3
- - Michal Papis <mpapis@gmail.com>
4
- - Jordon Bedwell <envygeeks@gmail.com>
5
-
6
- This file is part of pluginator.
7
-
8
- pluginator is free software: you can redistribute it and/or modify
9
- it under the terms of the GNU Lesser General Public License as published
10
- by the Free Software Foundation, either version 3 of the License, or
11
- (at your option) any later version.
12
-
13
- pluginator is distributed in the hope that it will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- GNU Lesser General Public License for more details.
17
-
18
- You should have received a copy of the GNU Lesser General Public License
19
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
20
- =end
21
-
22
- default_tasks = []
23
-
24
- begin
25
- require "yard"
26
- YARD::Rake::YardocTask.new do |t|
27
- t.files = ["lib/**/*.rb"]
28
- # TODO: see https://github.com/lsegal/yard/pull/800
29
- #~ t.stats_options = ["--list-undoc", "--compact"]
30
- t.options = ["--no-stats"]
31
- t.after = Proc.new do
32
- YARD::CLI::Stats.new.run("--list-undoc", "--compact", "--use-cache")
33
- end
34
- end
35
-
36
- task :docs => [:yard]
37
- default_tasks << :yard
38
- rescue LoadError
39
- end
40
-
41
- require "rake/testtask"
42
- Rake::TestTask.new do |t|
43
- t.verbose = true
44
- t.libs.push("test")
45
- t.pattern = "test/**/*_test.rb"
46
- end
47
- default_tasks << :test
48
-
49
- task :default => default_tasks
data/pluginator.gemspec DELETED
@@ -1,44 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # -*- encoding: utf-8 -*-
3
- # stub: PLUGINATOR ruby lib
4
-
5
- =begin
6
- Copyright 2013
7
- - Michal Papis <mpapis@gmail.com>
8
- - Jordon Bedwell <envygeeks@gmail.com>
9
-
10
- This file is part of pluginator.
11
-
12
- pluginator is free software: you can redistribute it and/or modify
13
- it under the terms of the GNU Lesser General Public License as published
14
- by the Free Software Foundation, either version 3 of the License, or
15
- (at your option) any later version.
16
-
17
- pluginator is distributed in the hope that it will be useful,
18
- but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- GNU Lesser General Public License for more details.
21
-
22
- You should have received a copy of the GNU Lesser General Public License
23
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
24
- =end
25
-
26
- lib = File.expand_path("../lib", __FILE__)
27
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
28
- require "pluginator/version"
29
-
30
- Gem::Specification.new do |s|
31
- s.email = ["mpapis@gmail.com", "envygeeks@gmail.com", "mose@mose.com"]
32
- s.authors = ["Michal Papis", "Jordon Bedwell", "Mose"]
33
- s.name = "pluginator"
34
- s.version = Pluginator::VERSION
35
- s.license = "LGPL v3"
36
- s.files = `git ls-files`.split("\n")
37
- s.required_ruby_version = ">= 1.8.7"
38
- s.add_development_dependency("rake")
39
- s.add_development_dependency("minitest")
40
- # s.add_development_dependency("smf-gem")
41
- s.homepage = "https://github.com/rvm/pluginator"
42
- s.summary = "Rubygems plugin system using Gem.find_files."
43
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
44
- end
@@ -1,27 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Something::Math::Decrease
21
- def self.type
22
- "decrease"
23
- end
24
- def self.action(number)
25
- number - 1
26
- end
27
- end
@@ -1,27 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Something::Math::Increase
21
- def self.type
22
- "increase"
23
- end
24
- def self.action(number)
25
- number + 1
26
- end
27
- end
@@ -1,25 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Something::Nested::Structure::Test
21
-
22
- def self.action
23
- 42
24
- end
25
- end
@@ -1,29 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Something::Stats::Max
21
-
22
- def self.handles?(what)
23
- %w{ max maximum }.include?(what)
24
- end
25
-
26
- def self.action
27
- 42
28
- end
29
- end
@@ -1,29 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Activated::Version1::Max
21
-
22
- def self.handles?(what)
23
- %w{ max maximum }.include?(what)
24
- end
25
-
26
- def self.action
27
- 41
28
- end
29
- end
@@ -1,29 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Activated::Version1::Max
21
-
22
- def self.handles?(what)
23
- %w{ max maximum }.include?(what)
24
- end
25
-
26
- def self.action
27
- 42
28
- end
29
- end
@@ -1,29 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Latest::Version1::Max
21
-
22
- def self.handles?(what)
23
- %w{ max maximum }.include?(what)
24
- end
25
-
26
- def self.action
27
- 42
28
- end
29
- end
@@ -1,29 +0,0 @@
1
- =begin
2
- Copyright 2013 Michal Papis <mpapis@gmail.com>
3
-
4
- This file is part of pluginator.
5
-
6
- pluginator is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Lesser General Public License as published
8
- by the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- pluginator is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Lesser General Public License for more details.
15
-
16
- You should have received a copy of the GNU Lesser General Public License
17
- along with pluginator. If not, see <http://www.gnu.org/licenses/>.
18
- =end
19
-
20
- class Latest::Version2::Max
21
-
22
- def self.handles?(what)
23
- %w{ max maximum }.include?(what)
24
- end
25
-
26
- def self.action
27
- 42
28
- end
29
- end