chinese_name 0.1.4 → 0.1.5

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: df0fa1ab59852ccafc978f16cd282c66206f6dfa
4
- data.tar.gz: 06af3a7afe0063bd760845939def0848e3942b3d
3
+ metadata.gz: 2e7e892fa939292388a854bd0256ffb77b849d8b
4
+ data.tar.gz: 95e0d41dc22b5b209dde1d125f06d9b3bc31f121
5
5
  SHA512:
6
- metadata.gz: 70af7c859b34627011ceeb2183080f4a364a9b83077d807e4bea704de72ff29dac6904023d5f88780267174ce3750dad0cebab564c98c6cc8fa5ad9e7ec897d2
7
- data.tar.gz: 0b146f663611db776f36b596c00f72615268b935ad7fd1373f46c46857aab1799a42be5b6e84dcb733ed6ad12d95bdf4a7e2ab47c73eddefe76f1db40672b66d
6
+ metadata.gz: bf5c3fe9d0afff2883ee5a352a8ca4b5156eb5bb19d6fd706274967dd2bc43b945b8e57a2f72adf03ebb535ed7ae4519f8cb026bf945b7c85b2ecfb18977b3cf
7
+ data.tar.gz: f265febcc41d3bea93b54c82a99d696bb89d6f61eada246738ffbbf3de486382552f0ad7ee82eac26d72a2a1f0c154aaee1a0a962376b09d06f8709b938b9291
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ before_install: gem install bundler
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # ChineseName
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/chinese_name`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ [![Build Status](https://travis-ci.org/graysonchen/chinese_name.svg?branch=master)](https://travis-ci.org/graysonchen/chinese_name)
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Generate a Random Chinese Name
6
6
 
7
7
  ## Installation
8
8
 
data/Rakefile CHANGED
@@ -1,2 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
- task :default => :spec
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :test
@@ -29,7 +29,8 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.add_development_dependency "bundler", "~> 1.14"
32
+ spec.add_development_dependency "bundler", ">= 1.10"
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "pry"
35
+ spec.add_development_dependency "minitest"
35
36
  end
@@ -52,6 +52,7 @@ class ChineseName
52
52
  end
53
53
 
54
54
  def file_data
55
+ return ENV["LAST_NAME_FILE"] if ENV["LAST_NAME_FILE"]
55
56
  File.dirname(__FILE__) + "/../data/#{LAST_NAME_DATA}"
56
57
  end
57
58
  end
@@ -1,3 +1,3 @@
1
1
  class ChineseName
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chinese_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson Chen
@@ -14,16 +14,16 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: '1.10'
20
20
  type: :development
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: '1.14'
26
+ version: '1.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Generate a Random Chinese Name.
56
70
  email:
57
71
  - cgg5207@sina.com
@@ -61,6 +75,7 @@ extensions: []
61
75
  extra_rdoc_files: []
62
76
  files:
63
77
  - ".gitignore"
78
+ - ".travis.yml"
64
79
  - Gemfile
65
80
  - README.md
66
81
  - Rakefile
@@ -91,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
106
  version: '0'
92
107
  requirements: []
93
108
  rubyforge_project:
94
- rubygems_version: 2.6.8
109
+ rubygems_version: 2.5.1
95
110
  signing_key:
96
111
  specification_version: 4
97
112
  summary: Generate a Random Chinese Name