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.
@@ -14,6 +14,10 @@ module DigitalOpera
14
14
  def _h
15
15
  @view_context
16
16
  end
17
+
18
+ def source
19
+ __getobj__
20
+ end
17
21
  end
18
22
  end
19
23
  end
@@ -8,9 +8,8 @@
8
8
  module DigitalOpera
9
9
  class Token
10
10
  def self.generate(key_len = 40)
11
- alphanumerics = ('a'..'z').to_a.concat(('A'..'Z').to_a.concat(('0'..'9').to_a))
12
- secret_key = alphanumerics.sort_by{rand}.join[0..key_len]
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
@@ -1,3 +1,3 @@
1
1
  module DigitalOpera
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/digital_opera.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "digital_opera/token"
2
- require "digital_opera/object_extensions/nil_or_zero"
2
+ require "digital_opera/base_extensions/object"
3
3
  require "digital_opera/banker"
4
4
  require "digital_opera/presenter/base"
5
5
 
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.6
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-09 00:00:00.000000000 Z
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/object_extensions/nil_or_zero.rb
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: 467026832867851686
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: 467026832867851686
149
+ hash: -1015125407450019260
86
150
  requirements: []
87
151
  rubyforge_project:
88
- rubygems_version: 1.8.24
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