constant 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/constant.rb +10 -0
  3. metadata +43 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4d361ac5d278d87e802f9e8c3aa6300653f4adc6
4
+ data.tar.gz: d35745b2b6ab82a195f94e890b700c8a2ba60a70
5
+ SHA512:
6
+ metadata.gz: a09d3f81f502884c2b936419ace263f23101c7026941a3be1ca9dd1adf576722ffb81c9ab5d05d021284335da265983f2fe9629d1621bb29f444b9714280a113
7
+ data.tar.gz: 92e088cd058190eee86e77f97ddc065940f3d4a92784695cef83d3f1bb4abd436f1dc7b3606955d9d478df8f10946a2384d218ff086f882c5b81e195c2ef1eed
@@ -0,0 +1,10 @@
1
+
2
+ class Constant
3
+ PICPATH='D:/'
4
+
5
+ def Constant.random
6
+ o = [('0'..'9'),('a'..'z'),('A'..'Z')].map{|i| i.to_a}.flatten;
7
+ string = (0...50).map{ o[rand(o.length)] }.join;
8
+ return string+'.png'
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: constant
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Xiangyi Chen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-06 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: constant
14
+ email: 675240477@qq.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/constant.rb
20
+ homepage: http://rubygems.org/gems/constant
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubyforge_project:
39
+ rubygems_version: 2.4.5
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: constant!
43
+ test_files: []