ripped_params 0.0.2 → 0.0.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad8da616f64162a6c287415486cbe6bf6dad0294
4
- data.tar.gz: 170885080e97f4193590b5b0b1d9b438ca21cad8
3
+ metadata.gz: 00591bbbc99fb551bdaecb75353f77a025361148
4
+ data.tar.gz: 127afd4911e2831692f6c093f3620f1ec8622425
5
5
  SHA512:
6
- metadata.gz: d13238e6a5900c62c9c067afcb5b0a53bdf54958ee52431f535edaf79b2c15bbc0bf45224f0dfc972ac7e5b32b29f4787a1b4611e05f79e58d819dc06c934f2d
7
- data.tar.gz: bc9ad070a337945a4a5e76d8a3b442eb0e9ff29fb0e200d36c9212ba321da89db6e7e3177d0f95416cd5035beb5c09efa13f06c9530c566b93b93219ecaf289e
6
+ metadata.gz: aedbaf9a8b985e5f37dff8947cbc556ce48e5d69c1643aa2b18282530645c0e9148fe2de3888923123d9da51ed9a939e89e64a70fc5f54b6739e8aae8097388f
7
+ data.tar.gz: d6d1cc64999f0842b0b6287db2fe8502576a06c75dfd9772bad1b86f30f9a30a4cb5fa75e68028f2c967f9e9cd3a58a0913672086e7e3b354540794bd8b8666f
@@ -14,13 +14,14 @@ module RippedParams
14
14
  @params.require(params_data[:require]).permit(params_data[:permit])
15
15
  end
16
16
 
17
- private
18
- def params_data
19
- @params_data ||= begin
20
- raise NoYAMLFileFoundError, "Could not find #{params_yaml_file_name} in #{yaml_files_directory} directory" if !params_yaml_file_path
21
- YAML.load_file(params_yaml_file_path)
22
- end
17
+ def params_data
18
+ @params_data ||= begin
19
+ raise NoYAMLFileFoundError, "Could not find #{params_yaml_file_name} in #{yaml_files_directory} directory" if !params_yaml_file_path
20
+ YAML.load_file(params_yaml_file_path)
23
21
  end
22
+ end
23
+
24
+ private
24
25
 
25
26
  def params_yaml_file_path
26
27
  @params_yaml_file_path ||= Find.find(yaml_files_directory).find do |file_path|
@@ -1,3 +1,3 @@
1
1
  module RippedParams
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripped_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nemrow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-17 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler