redacted 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/circle.yml +1 -1
- data/lib/redacted/action_view/helpers.rb +2 -2
- data/lib/redacted/version.rb +1 -1
- data/redacted.gemspec +2 -3
- data/test/test_helper.rb +2 -2
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41c0723bc4cd2c42ff41ae1570a0360dae40f87a
|
4
|
+
data.tar.gz: 2db5b8ce115017cbae88cba45f4f507d150e5530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6441aaf2a78048493c69e3ab6ee0454ae56a0204f3b957dedfc76fdd36353028743f5d3752daa223b27e107b7e559ad81db02a424cc1bc6e6c916523f4645170
|
7
|
+
data.tar.gz: fc626a309b21b5363f804febb9aa4ec0c7b3d6f5e122eafa2bd99a7ef7ef005a7af6b1cf10a2657ce78a75dc73411a9d216e0a5b28fde76ae2b291947d815643
|
data/circle.yml
CHANGED
@@ -36,8 +36,8 @@ module Redacted
|
|
36
36
|
private
|
37
37
|
def generate_fake_text str
|
38
38
|
word_count = str.split.size
|
39
|
-
fake_text =
|
40
|
-
fake_text <<
|
39
|
+
fake_text = FFaker::Lorem.words(word_count).join(' ')
|
40
|
+
fake_text << FFaker::Lorem.characters(str.length - fake_text.length) if str.length > fake_text.length
|
41
41
|
fake_text.slice(0, str.length)
|
42
42
|
end
|
43
43
|
end
|
data/lib/redacted/version.rb
CHANGED
data/redacted.gemspec
CHANGED
@@ -18,11 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "ffaker", "~>
|
22
|
-
spec.add_dependency "nokogiri", "~> 1.6
|
21
|
+
spec.add_dependency "ffaker", "~> 2.3"
|
22
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
23
23
|
spec.add_dependency "railties", ">= 3.2", "< 5.0"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.6"
|
26
|
-
spec.add_development_dependency "rake"
|
27
26
|
spec.add_development_dependency "rails", "~> 4.1"
|
28
27
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redacted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kurt Funai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffaker
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '2.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '2.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.6
|
33
|
+
version: '1.6'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.6
|
40
|
+
version: '1.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: railties
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,20 +72,6 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '1.6'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: rake
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
76
|
name: rails
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|