pseudo_entity 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,10 +46,9 @@ module PseudoEntity::Randoms
46
46
  end
47
47
 
48
48
  def method_missing(name, *args, &block)
49
-
50
49
  if arity_random?(name)
51
50
  # Define random_X helpers on the fly
52
- size = /.*_(\d+)$/.match(name)[1].to_i
51
+ size = /.*_(\d+)$/.match(name.to_s)[1].to_i
53
52
  base_name = (/(.*)_\d+$/.match(name.to_s)[1]).to_sym
54
53
  self.class.send(:define_method, name) do
55
54
  self.send(base_name, size)
@@ -84,7 +83,7 @@ module PseudoEntity::Randoms
84
83
  end if RUBY_VERSION < "1.9"
85
84
 
86
85
  def respond_to_missing?(method, include_all=false)
87
- include_all && arity_random?(method) || arity_value?(method) || super
86
+ include_all && arity_random?(method) || arity_value?(method) || super
88
87
  end if RUBY_VERSION >= "1.9"
89
88
 
90
89
  private
@@ -365,19 +364,19 @@ module PseudoEntity::Randoms
365
364
  end
366
365
 
367
366
  def random_token_8
368
- PseudoEntity::Randoms.token_8
367
+ PseudoEntity::Randoms.token(8)
369
368
  end
370
369
 
371
370
  def random_token_16
372
- PseudoEntity::Randoms.token_16
371
+ PseudoEntity::Randoms.token(16)
373
372
  end
374
373
 
375
374
  def random_token_32
376
- PseudoEntity::Randoms.token_32
375
+ PseudoEntity::Randoms.token(32)
377
376
  end
378
377
 
379
378
  def random_token_64
380
- PseudoEntity::Randoms.token_64
379
+ PseudoEntity::Randoms.token(64)
381
380
  end
382
381
 
383
382
  def random_uuid
@@ -1,3 +1,3 @@
1
1
  class PseudoEntity
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,135 +1,148 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pseudo_entity
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
5
11
  platform: ruby
6
- authors:
12
+ authors:
7
13
  - Frank Hall
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
- date: 2013-06-06 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-06-06 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
14
21
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
21
22
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
24
26
  - - ~>
25
- - !ruby/object:Gem::Version
26
- version: '1.3'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
27
+ - !ruby/object:Gem::Version
28
+ hash: 9
29
+ segments:
30
+ - 1
31
+ - 3
32
+ version: "1.3"
34
33
  type: :development
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rake
35
37
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '2.13'
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
48
47
  type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: rspec
49
51
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
52
55
  - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '2.13'
55
- - !ruby/object:Gem::Dependency
56
+ - !ruby/object:Gem::Version
57
+ hash: 25
58
+ segments:
59
+ - 2
60
+ - 13
61
+ version: "2.13"
62
+ type: :development
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
56
65
  name: uuidtools
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '2.1'
62
- type: :runtime
63
66
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
66
70
  - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '2.1'
69
- - !ruby/object:Gem::Dependency
70
- name: activesupport
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '2.0'
71
+ - !ruby/object:Gem::Version
72
+ hash: 1
73
+ segments:
74
+ - 2
75
+ - 1
76
+ version: "2.1"
76
77
  type: :runtime
78
+ version_requirements: *id004
79
+ - !ruby/object:Gem::Dependency
80
+ name: activesupport
77
81
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '2.0'
83
- - !ruby/object:Gem::Dependency
84
- name: iconv
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ hash: 3
88
+ segments:
89
+ - 2
90
+ - 0
91
+ version: "2.0"
90
92
  type: :runtime
93
+ version_requirements: *id005
94
+ - !ruby/object:Gem::Dependency
95
+ name: iconv
91
96
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: tzinfo
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
97
+ requirement: &id006 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
105
+ version: "0"
104
106
  type: :runtime
107
+ version_requirements: *id006
108
+ - !ruby/object:Gem::Dependency
109
+ name: tzinfo
105
110
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: huge_enumerable
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
111
+ requirement: &id007 !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ hash: 3
117
+ segments:
118
+ - 0
119
+ version: "0"
118
120
  type: :runtime
121
+ version_requirements: *id007
122
+ - !ruby/object:Gem::Dependency
123
+ name: huge_enumerable
119
124
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- description: A class for generating realistic looking data for people, companies,
126
- etc.
127
- email:
125
+ requirement: &id008 !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ hash: 3
131
+ segments:
132
+ - 0
133
+ version: "0"
134
+ type: :runtime
135
+ version_requirements: *id008
136
+ description: A class for generating realistic looking data for people, companies, etc.
137
+ email:
128
138
  - ChapterHouse.Dune@gmail.com
129
139
  executables: []
140
+
130
141
  extensions: []
142
+
131
143
  extra_rdoc_files: []
132
- files:
144
+
145
+ files:
133
146
  - .gitignore
134
147
  - Gemfile
135
148
  - LICENSE.txt
@@ -147,30 +160,39 @@ files:
147
160
  - spec/lib/pseudo_entity_spec.rb
148
161
  - spec/spec_helper.rb
149
162
  homepage: http://chapterhouse.github.io/pseudo_entity
150
- licenses:
163
+ licenses:
151
164
  - MIT
152
- metadata: {}
153
165
  post_install_message:
154
166
  rdoc_options: []
155
- require_paths:
167
+
168
+ require_paths:
156
169
  - lib
157
- required_ruby_version: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - '>='
160
- - !ruby/object:Gem::Version
161
- version: '0'
162
- required_rubygems_version: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '>='
165
- - !ruby/object:Gem::Version
166
- version: '0'
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ hash: 3
176
+ segments:
177
+ - 0
178
+ version: "0"
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ hash: 3
185
+ segments:
186
+ - 0
187
+ version: "0"
167
188
  requirements: []
189
+
168
190
  rubyforge_project:
169
- rubygems_version: 2.0.3
191
+ rubygems_version: 1.8.25
170
192
  signing_key:
171
- specification_version: 4
193
+ specification_version: 3
172
194
  summary: A class for generating realistic looking data for people, companies, etc.
173
- test_files:
195
+ test_files:
174
196
  - spec/lib/pseudo_entity/randoms_spec.rb
175
197
  - spec/lib/pseudo_entity_spec.rb
176
198
  - spec/spec_helper.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 944e96d14bb3349b33aa86e3b0cc5e2d7633a263
4
- data.tar.gz: e3013ccecd574e63d712fe913c24fed287e20e9e
5
- SHA512:
6
- metadata.gz: c062ed6d2eb2f45903b835b7d31d923a1cf5c1aba64b81844211d786a32fdf9a246428f23a9fdcf1e8e09b6a2e1d80657cacc8c7e048dfc09e2a3bb5fe18afea
7
- data.tar.gz: 62805824879d3740dccd16075fe2a5deb2ad08061807f5bb1d1ae55afc99d2cbc4c02ca027829bdd7032caad23d9e35397b6e62a63d33732e8268639e62d9522