filterer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filterer/version.rb +1 -1
- data/lib/generators/filterer/filterer_generator.rb +13 -0
- data/lib/generators/filterer/templates/filter.rb +2 -0
- data/lib/generators/rspec/filterer_generator.rb +15 -0
- data/lib/generators/rspec/templates/filter_spec.rb +5 -0
- data/lib/generators/test_unit/filterer_generator.rb +15 -0
- data/lib/generators/test_unit/templates/filter_test.rb +7 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d803d5f6babf80f004cd398f2382922d67a87519
|
4
|
+
data.tar.gz: fd1b5ac34b364a14462b97ff9d17ad73f3fea035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4af0bbf905bf99954219818b4436142b1b635ad221ee26015ae088c17340598c9d8bbbcaff8b9c7e4207d1168924a712542e2320a8a784613708e58b10fedcf
|
7
|
+
data.tar.gz: b690507ce51a5b18c221315822748f84164eddb90995526b7831b1de4ef8a5419e81f561290b95e3e4114e900d83b71f2702e35549015df16692e03913aea343
|
data/lib/filterer/version.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
class FiltererGenerator < Rails::Generators::NamedBase
|
2
|
+
desc "Generate a Filterer in app/filterers/"
|
3
|
+
|
4
|
+
argument :name, :type => :string, :required => true, :banner => 'FiltererName'
|
5
|
+
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
|
8
|
+
def copy_files # :nodoc:
|
9
|
+
template "filter.rb", "app/filterers/#{file_name}.rb"
|
10
|
+
end
|
11
|
+
|
12
|
+
hook_for :test_framework
|
13
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Rspec
|
2
|
+
module Generators
|
3
|
+
class FiltererGenerator < Rails::Generators::NamedBase
|
4
|
+
desc "Generate a Filterer spec in spec/filterers/"
|
5
|
+
|
6
|
+
argument :name, :type => :string, :required => true, :banner => 'FiltererName'
|
7
|
+
|
8
|
+
source_root File.expand_path("../templates", __FILE__)
|
9
|
+
|
10
|
+
def copy_files # :nodoc:
|
11
|
+
template "filter_spec.rb", "spec/filterers/#{file_name}_spec.rb"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module TestUnit
|
2
|
+
module Generators
|
3
|
+
class FiltererGenerator < Rails::Generators::NamedBase
|
4
|
+
desc "Generate a Filterer test in test/filterers/"
|
5
|
+
|
6
|
+
argument :name, :type => :string, :required => true, :banner => 'FiltererName'
|
7
|
+
|
8
|
+
source_root File.expand_path("../templates", __FILE__)
|
9
|
+
|
10
|
+
def copy_files # :nodoc:
|
11
|
+
template "filter_test.rb", "test/filterers/#{file_name}_test.rb"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filterer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Becker
|
@@ -155,6 +155,12 @@ files:
|
|
155
155
|
- lib/filterer/paginator.rb
|
156
156
|
- lib/filterer/version.rb
|
157
157
|
- lib/filterer.rb
|
158
|
+
- lib/generators/filterer/filterer_generator.rb
|
159
|
+
- lib/generators/filterer/templates/filter.rb
|
160
|
+
- lib/generators/rspec/filterer_generator.rb
|
161
|
+
- lib/generators/rspec/templates/filter_spec.rb
|
162
|
+
- lib/generators/test_unit/filterer_generator.rb
|
163
|
+
- lib/generators/test_unit/templates/filter_test.rb
|
158
164
|
- lib/tasks/filterer_tasks.rake
|
159
165
|
- Rakefile
|
160
166
|
homepage: https://github.com/dobtco/filterer
|