faker-precure 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/.tachikoma.yml +1 -0
- data/.travis.yml +5 -3
- data/CHANGELOG.md +23 -0
- data/Gemfile +5 -0
- data/README.md +0 -18
- data/faker-precure.gemspec +1 -1
- data/lib/faker/precure.rb +2 -2
- data/lib/faker/precure/version.rb +1 -1
- data/spec/faker/precure_spec.rb +10 -10
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3b87faac8c7862b7e5d58dda765afe908cfafb3
|
4
|
+
data.tar.gz: 8ff4562791f9326de2d4d69b720b1a47c7741f0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a698c6790aee02e6df9dad3218e7d727a477bccb8e466338bd5eb629070f6b88f797df5cabdd3457647e6191d524a77046cb357301f385b7fb3f424bf3626387
|
7
|
+
data.tar.gz: 2668242b789c3bbf8548c22552f0ec9086e60d77324d6c43c30058409883d846a0884e25b09b544bd164e0d40fdb8ae63698c10a27bb0158b2e222e50654d477
|
data/.tachikoma.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
strategy: 'bundler'
|
data/.travis.yml
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 2.
|
3
|
+
- 2.2.2
|
4
|
+
- 2.3.3
|
5
|
+
- 2.4.0
|
6
6
|
- ruby-head
|
7
7
|
bundler_args: "--jobs=2"
|
8
|
+
cache: bundler
|
8
9
|
before_script:
|
9
10
|
- export COVERAGE=true
|
10
11
|
script: bundle exec rspec
|
@@ -18,3 +19,4 @@ notifications:
|
|
18
19
|
matrix:
|
19
20
|
allow_failures:
|
20
21
|
- rvm: ruby-head
|
22
|
+
sudo: false
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Changelog
|
2
|
+
## master
|
3
|
+
[full changelog](http://github.com/sue445/faker-precure/compare/v0.0.4...master)
|
4
|
+
|
5
|
+
## v0.0.4
|
6
|
+
[full changelog](http://github.com/sue445/faker-precure/compare/v0.0.3...v0.0.4)
|
7
|
+
|
8
|
+
* Follow rubicure 1.0.0+
|
9
|
+
* https://github.com/sue445/faker-precure/pull/8
|
10
|
+
|
11
|
+
## v0.0.3
|
12
|
+
[full changelog](http://github.com/sue445/faker-precure/compare/v0.0.2...v0.0.3)
|
13
|
+
|
14
|
+
* Impl `Faker::Precure#cast_name`
|
15
|
+
* https://github.com/sue445/faker-precure/pull/3
|
16
|
+
|
17
|
+
## v0.0.2
|
18
|
+
[full changelog](http://github.com/sue445/faker-precure/compare/v0.0.1...v0.0.2)
|
19
|
+
|
20
|
+
* Update dependency gem versions
|
21
|
+
|
22
|
+
## v0.0.1
|
23
|
+
* first release
|
data/Gemfile
CHANGED
@@ -2,3 +2,8 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in faker-precure.gemspec
|
4
4
|
gemspec
|
5
|
+
|
6
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
|
7
|
+
# NOTE: activesupport 5.x supports only ruby 2.2.2+
|
8
|
+
gem "activesupport", ">= 4.0.0", "< 5.0.0"
|
9
|
+
end
|
data/README.md
CHANGED
@@ -54,24 +54,6 @@ FactoryGirl.define do
|
|
54
54
|
end
|
55
55
|
```
|
56
56
|
|
57
|
-
## Changelog
|
58
|
-
### master
|
59
|
-
[full changelog](http://github.com/sue445/faker-precure/compare/v0.0.3...master)
|
60
|
-
|
61
|
-
### v0.0.3
|
62
|
-
[full changelog](http://github.com/sue445/faker-precure/compare/v0.0.2...v0.0.3)
|
63
|
-
|
64
|
-
* Impl Faker::Precure#cast_name
|
65
|
-
* https://github.com/sue445/faker-precure/pull/3
|
66
|
-
|
67
|
-
### v0.0.2
|
68
|
-
[full changelog](http://github.com/sue445/faker-precure/compare/v0.0.1...v0.0.2)
|
69
|
-
|
70
|
-
* Update dependency gem versions
|
71
|
-
|
72
|
-
### v0.0.1
|
73
|
-
* first release
|
74
|
-
|
75
57
|
## Contributing
|
76
58
|
|
77
59
|
1. Fork it ( https://github.com/sue445/faker-precure/fork )
|
data/faker-precure.gemspec
CHANGED
@@ -18,7 +18,7 @@ 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 "rubicure", ">= 0.
|
21
|
+
spec.add_dependency "rubicure", ">= 1.0.0"
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", ">= 1.5"
|
24
24
|
spec.add_development_dependency "rake"
|
data/lib/faker/precure.rb
CHANGED
@@ -16,7 +16,7 @@ module Faker
|
|
16
16
|
|
17
17
|
# @return [String]
|
18
18
|
def self.transform_message
|
19
|
-
|
19
|
+
::Precure.all.map(&:transform_message).compact.sample
|
20
20
|
end
|
21
21
|
|
22
22
|
# @return [String]
|
@@ -36,7 +36,7 @@ module Faker
|
|
36
36
|
|
37
37
|
private
|
38
38
|
def self.sample_girl
|
39
|
-
::Precure.
|
39
|
+
::Precure.all.sample
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.sample_series
|
data/spec/faker/precure_spec.rb
CHANGED
@@ -3,34 +3,34 @@ describe Faker::Precure do
|
|
3
3
|
expect(Faker::Precure::VERSION).not_to be nil
|
4
4
|
end
|
5
5
|
|
6
|
-
describe "
|
6
|
+
describe ".human_name" do
|
7
7
|
subject{ Faker::Precure.human_name }
|
8
8
|
|
9
|
-
let(:all_human_names){ ::Precure.
|
9
|
+
let(:all_human_names){ ::Precure.all.map(&:human_name) }
|
10
10
|
|
11
11
|
it{ should_not be_blank }
|
12
12
|
it{ should be_an_element_of all_human_names }
|
13
13
|
end
|
14
14
|
|
15
|
-
describe "
|
15
|
+
describe ".precure_name" do
|
16
16
|
subject{ Faker::Precure.precure_name }
|
17
17
|
|
18
|
-
let(:all_precure_names){ ::Precure.
|
18
|
+
let(:all_precure_names){ ::Precure.all.map(&:precure_name) }
|
19
19
|
|
20
20
|
it{ should_not be_blank }
|
21
21
|
it{ should be_an_element_of all_precure_names }
|
22
22
|
end
|
23
23
|
|
24
|
-
describe "
|
24
|
+
describe ".transform_message" do
|
25
25
|
subject{ Faker::Precure.transform_message }
|
26
26
|
|
27
|
-
let(:all_transform_messages){ ::Precure.
|
27
|
+
let(:all_transform_messages){ ::Precure.all.map(&:transform_message) }
|
28
28
|
|
29
29
|
it{ should_not be_blank }
|
30
30
|
it{ should be_an_element_of all_transform_messages }
|
31
31
|
end
|
32
32
|
|
33
|
-
describe "
|
33
|
+
describe ".user_name" do
|
34
34
|
subject{ Faker::Precure.user_name }
|
35
35
|
|
36
36
|
let(:all_user_names){ ::Rubicure::Girl.uniq_names.map(&:to_s) }
|
@@ -40,7 +40,7 @@ describe Faker::Precure do
|
|
40
40
|
it{ should match /^[0-9a-z_]+$/ }
|
41
41
|
end
|
42
42
|
|
43
|
-
describe "
|
43
|
+
describe ".title" do
|
44
44
|
subject{ Faker::Precure.title }
|
45
45
|
|
46
46
|
let(:all_titles){ ::Rubicure.core.map(&:title) }
|
@@ -49,10 +49,10 @@ describe Faker::Precure do
|
|
49
49
|
it{ should be_an_element_of all_titles }
|
50
50
|
end
|
51
51
|
|
52
|
-
describe "
|
52
|
+
describe ".cast_name" do
|
53
53
|
subject{ Faker::Precure.cast_name }
|
54
54
|
|
55
|
-
let(:all_cast_names){ ::Precure.
|
55
|
+
let(:all_cast_names){ ::Precure.all.map(&:cast_name) }
|
56
56
|
|
57
57
|
it{ should_not be_blank }
|
58
58
|
it{ should be_an_element_of all_cast_names }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faker-precure
|
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
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubicure
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.0
|
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: 0.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,8 +104,10 @@ files:
|
|
104
104
|
- ".coveralls.yml"
|
105
105
|
- ".gitignore"
|
106
106
|
- ".rspec"
|
107
|
+
- ".tachikoma.yml"
|
107
108
|
- ".travis.yml"
|
108
109
|
- ".yardopts"
|
110
|
+
- CHANGELOG.md
|
109
111
|
- Gemfile
|
110
112
|
- LICENSE.txt
|
111
113
|
- README.md
|
@@ -137,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
139
|
version: '0'
|
138
140
|
requirements: []
|
139
141
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.5.1
|
141
143
|
signing_key:
|
142
144
|
specification_version: 4
|
143
145
|
summary: Test data generator using precure
|