faker-precure 0.0.2 → 0.0.3

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: cae014ac5a55ef6da9df2350d7a31c12f86e3f40
4
- data.tar.gz: 07ccfac6acbcca1abb6c684e36f3e3a037251e55
3
+ metadata.gz: 5430955f55a5e974c2810014edb2d8721eac7757
4
+ data.tar.gz: ef7dc6a08e5996dd3ec74e588d2eada1ae151b21
5
5
  SHA512:
6
- metadata.gz: bd6668137d3a221dab152bd22f3be8ee5f958214a15c51efe4163f5c76baf2724a1b4f8a9180ad161352532baa63a7be5f1060493ea1d697c6d9e1fb3df22256
7
- data.tar.gz: e0cfe931e41321affc5d09e85fa917624a9c44bdf907fc306e6e7bb60a6d390172f8667a4e0c868060d69170129ba8201766cc36f90c5eaf7d98709e0517fd50
6
+ metadata.gz: 65d2ea56ab24dc2f2590f47d7741de99781ebda1a62ea46f091dcfe4117470cea82297e821aa443ff13fe1e1a31f0678d8faff5e016dde0cf569770d1c9518dc
7
+ data.tar.gz: 6fab398d8982820414b83dcc6bc06d7ca2b2f914f3b647720252d9c4ffc7e6b6f8a0c275f21be745e08ced94ba25729e08218344d255658b63d22d09244a31aa
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
1
+ --format progress
2
2
  --color
3
3
  --require spec_helper
@@ -1,10 +1,20 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.2
3
+ - 2.0
4
+ - 2.1
5
+ - 2.2
6
+ - ruby-head
7
+ bundler_args: "--jobs=2"
8
+ before_script:
9
+ - export COVERAGE=true
5
10
  script: bundle exec rspec
6
11
  branches:
7
12
  only:
8
- - master
13
+ - master
9
14
  notifications:
10
15
  email: false
16
+ slack:
17
+ secure: HKvrZjP1KUWhyNMA/3TfIe7vGXARu0gZFnntYPpIGm0N3Y8o3IHBc0Z0cY6N/VpFLinA95mfG8fk6SWUyqqlIfJiEQ7eIMj6kkOqWL+ro7BDMmi+pVSlE+Q2RmroY8pBKhFC7RsVW0JEjJ2OU4GqrVlxTncMNsfKNDCU3BXpWAU=
18
+ matrix:
19
+ allow_failures:
20
+ - rvm: ruby-head
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
- # Faker::Precure [![Gem Version](https://badge.fury.io/rb/faker-precure.svg)](http://badge.fury.io/rb/faker-precure) [![Build Status](https://travis-ci.org/sue445/faker-precure.svg?branch=master)](https://travis-ci.org/sue445/faker-precure) [![Code Climate](https://codeclimate.com/github/sue445/faker-precure.png)](https://codeclimate.com/github/sue445/faker-precure) [![Coverage Status](https://coveralls.io/repos/sue445/faker-precure/badge.png)](https://coveralls.io/r/sue445/faker-precure) [![Dependency Status](https://gemnasium.com/sue445/faker-precure.svg)](https://gemnasium.com/sue445/faker-precure)
1
+ # Faker::Precure
2
+ Test data generator using Precure(Pretty Cure)
2
3
 
3
- Test data generator using precure
4
+ [![Gem Version](https://badge.fury.io/rb/faker-precure.svg)](http://badge.fury.io/rb/faker-precure)
5
+ [![Build Status](https://travis-ci.org/sue445/faker-precure.svg?branch=master)](https://travis-ci.org/sue445/faker-precure)
6
+ [![Code Climate](https://codeclimate.com/github/sue445/faker-precure.png)](https://codeclimate.com/github/sue445/faker-precure)
7
+ [![Coverage Status](https://coveralls.io/repos/sue445/faker-precure/badge.png)](https://coveralls.io/r/sue445/faker-precure)
8
+ [![Dependency Status](https://gemnasium.com/sue445/faker-precure.svg)](https://gemnasium.com/sue445/faker-precure)
4
9
 
5
10
  ## Installation
6
11
 
@@ -27,6 +32,9 @@ Faker::Precure.human_name
27
32
  Faker::Precure.precure_name
28
33
  #=> "キュアアクア"
29
34
 
35
+ Faker::Precure.cast_name
36
+ #=> "豊口めぐみ"
37
+
30
38
  Faker::Precure.title
31
39
  #=> "Yes! プリキュア5"
32
40
 
@@ -48,7 +56,13 @@ end
48
56
 
49
57
  ## Changelog
50
58
  ### master
51
- [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.2...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
52
66
 
53
67
  ### v0.0.2
54
68
  [full changelog](http://github.com/sue445/faker-precure/compare/v0.0.1...v0.0.2)
@@ -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"
21
+ spec.add_dependency "rubicure", ">= 0.2.1"
22
22
 
23
23
  spec.add_development_dependency "bundler", ">= 1.5"
24
24
  spec.add_development_dependency "rake"
@@ -0,0 +1 @@
1
+ require "faker/precure"
@@ -19,6 +19,11 @@ module Faker
19
19
  sample_girl.transform_message
20
20
  end
21
21
 
22
+ # @return [String]
23
+ def self.cast_name
24
+ sample_girl.cast_name
25
+ end
26
+
22
27
  # @return [String]
23
28
  def self.user_name
24
29
  ::Rubicure::Girl.uniq_names.sample.to_s
@@ -1,5 +1,5 @@
1
1
  module Faker
2
2
  module Precure
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -48,4 +48,13 @@ describe Faker::Precure do
48
48
  it{ should_not be_blank }
49
49
  it{ should be_an_element_of all_titles }
50
50
  end
51
+
52
+ describe "#cast_name" do
53
+ subject{ Faker::Precure.cast_name }
54
+
55
+ let(:all_cast_names){ ::Precure.all_stars.map(&:cast_name) }
56
+
57
+ it{ should_not be_blank }
58
+ it{ should be_an_element_of all_cast_names }
59
+ end
51
60
  end
@@ -1,9 +1,11 @@
1
+ if ENV["COVERAGE"]
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+ end
5
+
1
6
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
7
  require 'faker/precure'
3
8
 
4
- require 'coveralls'
5
- Coveralls.wear!
6
-
7
9
  # Requires supporting ruby files with custom matchers and macros, etc,
8
10
  # in spec/support/ and its subdirectories.
9
11
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2015-01-18 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: 0.2.1
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: 0.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -111,6 +111,7 @@ files:
111
111
  - README.md
112
112
  - Rakefile
113
113
  - faker-precure.gemspec
114
+ - lib/faker-precure.rb
114
115
  - lib/faker/precure.rb
115
116
  - lib/faker/precure/version.rb
116
117
  - spec/faker/precure_spec.rb
@@ -136,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
137
  version: '0'
137
138
  requirements: []
138
139
  rubyforge_project:
139
- rubygems_version: 2.2.2
140
+ rubygems_version: 2.4.5
140
141
  signing_key:
141
142
  specification_version: 4
142
143
  summary: Test data generator using precure