digital_opera 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
File without changes
|
data/lib/digital_opera/token.rb
CHANGED
@@ -8,9 +8,8 @@
|
|
8
8
|
module DigitalOpera
|
9
9
|
class Token
|
10
10
|
def self.generate(key_len = 40)
|
11
|
-
|
12
|
-
|
13
|
-
secret_key
|
11
|
+
alphanumerics = [('a'..'z'), ('A'..'Z'), ('0'..'9')].map { |i| i.to_a }.flatten
|
12
|
+
(0...key_len).map{ alphanumerics[rand(alphanumerics.length)] }.join
|
14
13
|
end
|
15
14
|
end
|
16
15
|
end
|
data/lib/digital_opera.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digital_opera
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-11-
|
13
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -44,6 +44,70 @@ dependencies:
|
|
44
44
|
- - ! '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: mocha
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.13.1
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.13.1
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: guard
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 2.2.3
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 2.2.3
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: guard-rspec
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.3.0
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 2.3.0
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: guard-spork
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ~>
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.5.0
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.5.0
|
47
111
|
description: Tools and utilities for helping out in developing Ruby applications
|
48
112
|
email:
|
49
113
|
- support@digitalopera.com
|
@@ -52,7 +116,7 @@ extensions: []
|
|
52
116
|
extra_rdoc_files: []
|
53
117
|
files:
|
54
118
|
- lib/digital_opera/banker.rb
|
55
|
-
- lib/digital_opera/
|
119
|
+
- lib/digital_opera/base_extensions/object.rb
|
56
120
|
- lib/digital_opera/presenter/base.rb
|
57
121
|
- lib/digital_opera/token.rb
|
58
122
|
- lib/digital_opera/version.rb
|
@@ -73,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
137
|
version: '0'
|
74
138
|
segments:
|
75
139
|
- 0
|
76
|
-
hash:
|
140
|
+
hash: -1015125407450019260
|
77
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
142
|
none: false
|
79
143
|
requirements:
|
@@ -82,10 +146,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
146
|
version: '0'
|
83
147
|
segments:
|
84
148
|
- 0
|
85
|
-
hash:
|
149
|
+
hash: -1015125407450019260
|
86
150
|
requirements: []
|
87
151
|
rubyforge_project:
|
88
|
-
rubygems_version: 1.8.
|
152
|
+
rubygems_version: 1.8.23
|
89
153
|
signing_key:
|
90
154
|
specification_version: 3
|
91
155
|
summary: Tools and utilities for helping out in developing Ruby applications
|