pseudo_entity 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 87b2c3e4e1b76f53dd83e944a62574811ca1fc50
4
+ data.tar.gz: 4828e030a98fd0ae03c4a76c096e2982bb4911c6
5
+ SHA512:
6
+ metadata.gz: 12f20b5a0dee07b906b6f4ac30e8042e22fded9c7cbda1c4ef4fa9c7801c4ea46e271b15fd5fb42575edc01a0089d14d4aca49d9730b6e9444b88d9418f242f5
7
+ data.tar.gz: f9d61bf57d08c692c227543edbbf9874c1751e85dcd878e17f034a423252f6c7695d081c5dd614c249fc5ddd08318fa74da81f95afd54ac79acec4bc6300f4de
@@ -60,7 +60,7 @@ module PseudoEntity::Randoms
60
60
  command = "random_#{name}".to_sym
61
61
  relay = arity_random?(command)
62
62
  if !relay
63
- size = /.*_(\d+)$/.match(name)[1].to_i
63
+ size = /.*_(\d+)$/.match(name.to_s)[1].to_i
64
64
  command = (/(.*)_\d+$/.match(name.to_s)[1]).to_sym
65
65
  object = Kernel
66
66
  end
@@ -1,3 +1,3 @@
1
1
  class PseudoEntity
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
File without changes
@@ -257,17 +257,28 @@ describe PseudoEntity::Randoms do
257
257
 
258
258
  end
259
259
 
260
+ context "#rand_X" do
261
+
262
+ it "generates a random number" do
263
+ Kernel.should_receive(:rand).with(10).once.and_call_original
264
+ first = instance.rand_10
265
+ second = instance.rand_10
266
+ first.should eql(second)
267
+ end
268
+
269
+ end
270
+
260
271
  end
261
272
 
262
273
  context "as itself" do
263
274
 
264
275
  subject(:random) { PseudoEntity::Randoms }
265
276
 
266
- it "should create a token smaller than 32 characters" do
277
+ it "creates a token smaller than 32 characters" do
267
278
  random.token(3).size.should eq(3)
268
279
  end
269
280
 
270
- it "should create a token larger than 32 characters" do
281
+ it "creates a token larger than 32 characters" do
271
282
  random.token(128).size.should eq(128)
272
283
  end
273
284
 
metadata CHANGED
@@ -1,148 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pseudo_entity
3
- version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 3
10
- version: 0.0.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Frank Hall
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-06-06 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2013-06-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: bundler
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 9
29
- segments:
30
- - 1
31
- - 3
32
- version: "1.3"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
33
20
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rake
37
21
  prerelease: false
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"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
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'
47
34
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: rspec
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
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:
55
45
  - - ~>
56
- - !ruby/object:Gem::Version
57
- hash: 25
58
- segments:
59
- - 2
60
- - 13
61
- version: "2.13"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.13'
62
48
  type: :development
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: uuidtools
66
49
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
70
52
  - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 1
73
- segments:
74
- - 2
75
- - 1
76
- version: "2.1"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.13'
55
+ - !ruby/object:Gem::Dependency
56
+ name: uuidtools
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
77
62
  type: :runtime
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: activesupport
81
63
  prerelease: false
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"
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
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'
92
76
  type: :runtime
93
- version_requirements: *id005
94
- - !ruby/object:Gem::Dependency
95
- name: iconv
96
77
  prerelease: false
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"
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'
106
90
  type: :runtime
107
- version_requirements: *id006
108
- - !ruby/object:Gem::Dependency
109
- name: tzinfo
110
91
  prerelease: false
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"
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'
120
104
  type: :runtime
121
- version_requirements: *id007
122
- - !ruby/object:Gem::Dependency
123
- name: huge_enumerable
124
105
  prerelease: false
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"
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'
134
118
  type: :runtime
135
- version_requirements: *id008
136
- description: A class for generating realistic looking data for people, companies, etc.
137
- email:
119
+ 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:
138
128
  - ChapterHouse.Dune@gmail.com
139
129
  executables: []
140
-
141
130
  extensions: []
142
-
143
131
  extra_rdoc_files: []
144
-
145
- files:
132
+ files:
146
133
  - .gitignore
147
134
  - Gemfile
148
135
  - LICENSE.txt
@@ -155,44 +142,35 @@ files:
155
142
  - lib/pseudo_entity/randoms/locations_hash.rb
156
143
  - lib/pseudo_entity/randoms/zip_code_database.csv
157
144
  - lib/pseudo_entity/version.rb
158
- - psuedo_entity.gemspec
145
+ - pseudo_entity.gemspec
159
146
  - spec/lib/pseudo_entity/randoms_spec.rb
160
147
  - spec/lib/pseudo_entity_spec.rb
161
148
  - spec/spec_helper.rb
162
149
  homepage: http://chapterhouse.github.io/pseudo_entity
163
- licenses:
150
+ licenses:
164
151
  - MIT
152
+ metadata: {}
165
153
  post_install_message:
166
154
  rdoc_options: []
167
-
168
- require_paths:
155
+ require_paths:
169
156
  - lib
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"
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'
188
167
  requirements: []
189
-
190
168
  rubyforge_project:
191
- rubygems_version: 1.8.25
169
+ rubygems_version: 2.0.3
192
170
  signing_key:
193
- specification_version: 3
171
+ specification_version: 4
194
172
  summary: A class for generating realistic looking data for people, companies, etc.
195
- test_files:
173
+ test_files:
196
174
  - spec/lib/pseudo_entity/randoms_spec.rb
197
175
  - spec/lib/pseudo_entity_spec.rb
198
176
  - spec/spec_helper.rb