acts_as_keyed 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Jeremy Hubert"]
10
10
  s.email = ["jhubert@gmail.com"]
11
11
  s.homepage = "http://github.com/jhubert/acts_as_keyed"
12
- s.summary = %q{Automatically key an active record model}
12
+ s.summary = %q{Automatically key an active record model with a unique key}
13
13
  s.description = %q{A simple plugin that automatically generates a key for a model on create. It takes care of protecting the key, automatically generating it and making sure it is unique.}
14
14
 
15
15
  s.rubyforge_project = "acts_as_keyed"
data/lib/acts_as_keyed.rb CHANGED
@@ -58,7 +58,7 @@ module ActsAsKeyed
58
58
  def random_key
59
59
  code_array=[]
60
60
  1.upto(options[:size]) { code_array << options[:chars][rand(options[:chars].length)] }
61
- code_array.to_s
61
+ code_array.join('')
62
62
  end
63
63
  end
64
64
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsKeyed
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_keyed
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy Hubert
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-08 00:00:00 -05:00
19
- default_executable:
18
+ date: 2011-08-22 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: A simple plugin that automatically generates a key for a model on create. It takes care of protecting the key, automatically generating it and making sure it is unique.
@@ -36,7 +35,6 @@ files:
36
35
  - acts_as_keyed.gemspec
37
36
  - lib/acts_as_keyed.rb
38
37
  - lib/acts_as_keyed/version.rb
39
- has_rdoc: true
40
38
  homepage: http://github.com/jhubert/acts_as_keyed
41
39
  licenses: []
42
40
 
@@ -66,9 +64,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
64
  requirements: []
67
65
 
68
66
  rubyforge_project: acts_as_keyed
69
- rubygems_version: 1.4.2
67
+ rubygems_version: 1.8.6
70
68
  signing_key:
71
69
  specification_version: 3
72
- summary: Automatically key an active record model
70
+ summary: Automatically key an active record model with a unique key
73
71
  test_files: []
74
72