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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9c55094d34e875077e3903ba1ed4acbb282d7c9
4
- data.tar.gz: 5b92580dcd86e828e61d4f65f0ace15355dce657
3
+ metadata.gz: d803d5f6babf80f004cd398f2382922d67a87519
4
+ data.tar.gz: fd1b5ac34b364a14462b97ff9d17ad73f3fea035
5
5
  SHA512:
6
- metadata.gz: 8e94fc28aba2a14e917d69b0b9c2eb0de0200f4c2e1c7853567d5a5456707147d3cfce297e01a690e30db5934a15bfdd1cc3e7619a7c70aa2ed0603c5f69daed
7
- data.tar.gz: c8d31b9d5bcd03cca0e9647317d3a50cdd657f17811bf39fe0debb2640fcf99c830fef4556b86b83a1a997c611b1d3d37b3c22fd5bc9b912d11ef72c53e04d96
6
+ metadata.gz: c4af0bbf905bf99954219818b4436142b1b635ad221ee26015ae088c17340598c9d8bbbcaff8b9c7e4207d1168924a712542e2320a8a784613708e58b10fedcf
7
+ data.tar.gz: b690507ce51a5b18c221315822748f84164eddb90995526b7831b1de4ef8a5419e81f561290b95e3e4114e900d83b71f2702e35549015df16692e03913aea343
@@ -1,3 +1,3 @@
1
1
  module Filterer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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,2 @@
1
+ class <%= class_name %> < Filterer::Base
2
+ 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,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe <%= class_name %> do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ 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
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class <%= class_name %> < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ 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.1
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