cfaker 0.0.1
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.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/cfaker.gemspec +24 -0
- data/lib/cfaker/version.rb +3 -0
- data/lib/cfaker.rb +16 -0
- metadata +71 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/cfaker.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "cfaker/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "cfaker"
|
7
|
+
s.version = Cfaker::VERSION
|
8
|
+
s.authors = ["dongsx"]
|
9
|
+
s.email = ["dongshuxiang888@126.com"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{This is my first gem}
|
12
|
+
s.description = %q{This is my first gem,you can use it to generate data when test}
|
13
|
+
|
14
|
+
s.rubyforge_project = "cfaker"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
# s.add_development_dependency "rspec"
|
23
|
+
# s.add_runtime_dependency "rest-client"
|
24
|
+
end
|
data/lib/cfaker.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "cfaker/version"
|
2
|
+
|
3
|
+
BITS = ("a".."z").to_a
|
4
|
+
BITS_LENGTH = BITS.length
|
5
|
+
C_BITS = %w(的 一 是 在 不 了 有 和 人 这 中 大 为 上 个 国 我 以 要 他 时)
|
6
|
+
C_BITS_LENGTH = C_BITS.length
|
7
|
+
|
8
|
+
D_BITS = (0..9).to_a
|
9
|
+
D_BITS_LENGTH = D_BITS.length
|
10
|
+
|
11
|
+
module Cfaker
|
12
|
+
autoload :Address, 'cfaker/address'
|
13
|
+
autoload :Email, 'cfaker/email'
|
14
|
+
autoload :MobilePhone, 'cfaker/mobile_phone'
|
15
|
+
autoload :Name, 'cfaker/name'
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cfaker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- dongsx
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-03-30 00:00:00 Z
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: This is my first gem,you can use it to generate data when test
|
22
|
+
email:
|
23
|
+
- dongshuxiang888@126.com
|
24
|
+
executables: []
|
25
|
+
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- .gitignore
|
32
|
+
- Gemfile
|
33
|
+
- Rakefile
|
34
|
+
- cfaker.gemspec
|
35
|
+
- lib/cfaker.rb
|
36
|
+
- lib/cfaker/version.rb
|
37
|
+
homepage: ""
|
38
|
+
licenses: []
|
39
|
+
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options: []
|
42
|
+
|
43
|
+
require_paths:
|
44
|
+
- lib
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
none: false
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
hash: 3
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
version: "0"
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
requirements: []
|
64
|
+
|
65
|
+
rubyforge_project: cfaker
|
66
|
+
rubygems_version: 1.8.15
|
67
|
+
signing_key:
|
68
|
+
specification_version: 3
|
69
|
+
summary: This is my first gem
|
70
|
+
test_files: []
|
71
|
+
|