clean_params 0.0.3 → 0.0.4

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
- OGFhMjk1MDMxNWE4NjYwMDE5MGE0NWU0Y2Q2ZWVjMDhjNTZkZjRhMQ==
4
+ ZWYzZGNhZThiNDg5ZDVjYTc5YjI1ZmE3ZDJjNjc4ODgxNzIwMDg1NA==
5
5
  data.tar.gz: !binary |-
6
- YjdmMzIxNjc4YmVhNGEwYjEwYzQwYjFhZjQzMTVkNDExZmYyODBhYw==
6
+ N2RiNTA4OTY5MDA3NTJiZjk4NmFmNzVmNzUyZDc0ODgwZDg2MGQyOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTI2NGY2ZGE1YzljYWVjYmNiZGFiMzNmYzQ1NjkwYTdiYTZkOGVkNTljZDUx
10
- NzBhNzRmY2I1OGMyNWNjMjZmZjgzOTA5N2U2NjkwNWRkYjc4NmI5NjhiY2Q1
11
- YWIzNmY4NzZjN2I5NjBlMzU1MWFhZDA0MTVkY2M5OWE4ZmI3NGU=
9
+ MjNhZDVkYzk3NzUxZDY2Njg1NTVhMWQ0MTA1NDI4NjlhYzQ0MjQ0ZGY1YWNj
10
+ NTEzNDkyOTgyNzdhZmQwOTkzN2MzODQxZDE4ODZiNWE2ZjI2OGFiNjdhNTQx
11
+ NzIwYTljMTMyZmEwZGM1ZDBiYzRjYTY2ODdiMDEzYzhlMjA4ODY=
12
12
  data.tar.gz: !binary |-
13
- Y2I2MWRlYmVhZDIzZTc1NmZiZDhjNWUxMWI4Njg5NjQ5YzBhN2I5MzM4YTg2
14
- ZWI3Njg5MjhiNzVhNDQxNDBkZGI4YmZiYmEyZmVmZmM2NjA3OWE2YTkyY2M4
15
- MzQzMmJiOGEyNzhlZjExYzU5YzRkMjM5NzcyZjc2ZGVjMDQ3MDY=
13
+ MmQyMjNmMmUwNDAxNzgyODVjNjBlMDAwZjJlYzRkOWFhYWNjMDJhZWQ2OGI3
14
+ ZmIxMDE5MWU1ZjY2ZDg1ZmVmNzI0MTlmZjY3MjlhNTljODE2ZmUzYjhhY2Jh
15
+ YzExZjY3NWNkYmM2ZmIzNDM0MjljNjNiNTI3MDYxNjM1YTVmMGE=
@@ -1,3 +1,3 @@
1
1
  module CleanParams
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,13 @@
1
+ module CleanParams
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ def self.source_root
5
+ File.dirname(__FILE__) + "/templates"
6
+ end
7
+
8
+ def copy_files
9
+ template "clean_params.rb", "config/clean_params.rb"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,6 @@
1
+ CleanParams.configure do |config|
2
+ config.params = {
3
+ # Customize your params here
4
+ # 'key' => ['key', 'Key']
5
+ }
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clean_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yogesh Pendharkar
@@ -53,6 +53,8 @@ files:
53
53
  - clean_params.gemspec
54
54
  - lib/clean_params.rb
55
55
  - lib/clean_params/version.rb
56
+ - lib/generators/clean_params/install_generator.rb
57
+ - lib/generators/clean_params/templates/clean_params.rb
56
58
  homepage: ''
57
59
  licenses:
58
60
  - MIT