sets_uuid 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/VERSION +1 -1
  3. data/lib/sets_uuid.rb +2 -3
  4. data/sets_uuid.gemspec +60 -0
  5. metadata +7 -6
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/EmmanuelOga/sets_uuid"
12
12
  gem.authors = ["Emmanuel Oga"]
13
13
  gem.add_development_dependency "rspec"
14
- gem.add_dependency "uuid", "~> 2.0.2"
14
+ gem.add_dependency "uuid"
15
15
  gem.add_dependency "activerecord"
16
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
17
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/sets_uuid.rb CHANGED
@@ -1,6 +1,3 @@
1
- gem 'uuid', "~> 2.0.2"
2
- require 'uuid'
3
-
4
1
  module SetsUUID
5
2
  module ClassMethods
6
3
 
@@ -14,6 +11,8 @@ module SetsUUID
14
11
  # Inspect UUID::FORMATS for the complete list.
15
12
  #
16
13
  def sets_uuid(callback_name, attributes_and_formats_hash)
14
+ require 'uuid'
15
+
17
16
  raise ArgumentError, "attributes_and_formats_hash does not act as a Hash!" unless attributes_and_formats_hash.respond_to?(:each)
18
17
 
19
18
  attributes_and_formats_hash.each do |attribute, format|
data/sets_uuid.gemspec ADDED
@@ -0,0 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{sets_uuid}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Emmanuel Oga"]
12
+ s.date = %q{2009-12-06}
13
+ s.description = %q{UUID management for models}
14
+ s.email = %q{EmmanuelOga@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/sets_uuid.rb",
27
+ "sets_uuid.gemspec",
28
+ "spec/sets_uuid_spec.rb",
29
+ "spec/spec_helper.rb"
30
+ ]
31
+ s.homepage = %q{http://github.com/EmmanuelOga/sets_uuid}
32
+ s.rdoc_options = ["--charset=UTF-8"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = %q{1.3.5}
35
+ s.summary = %q{Adds declarative uuid attribute initialization to models}
36
+ s.test_files = [
37
+ "spec/spec_helper.rb",
38
+ "spec/sets_uuid_spec.rb"
39
+ ]
40
+
41
+ if s.respond_to? :specification_version then
42
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
+ s.specification_version = 3
44
+
45
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
46
+ s.add_development_dependency(%q<rspec>, [">= 0"])
47
+ s.add_runtime_dependency(%q<uuid>, [">= 0"])
48
+ s.add_runtime_dependency(%q<activerecord>, [">= 0"])
49
+ else
50
+ s.add_dependency(%q<rspec>, [">= 0"])
51
+ s.add_dependency(%q<uuid>, [">= 0"])
52
+ s.add_dependency(%q<activerecord>, [">= 0"])
53
+ end
54
+ else
55
+ s.add_dependency(%q<rspec>, [">= 0"])
56
+ s.add_dependency(%q<uuid>, [">= 0"])
57
+ s.add_dependency(%q<activerecord>, [">= 0"])
58
+ end
59
+ end
60
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sets_uuid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Oga
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-25 00:00:00 +00:00
12
+ date: 2009-12-06 00:00:00 -03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -28,9 +28,9 @@ dependencies:
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.2
33
+ version: "0"
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: activerecord
@@ -59,6 +59,7 @@ files:
59
59
  - Rakefile
60
60
  - VERSION
61
61
  - lib/sets_uuid.rb
62
+ - sets_uuid.gemspec
62
63
  - spec/sets_uuid_spec.rb
63
64
  - spec/spec_helper.rb
64
65
  has_rdoc: true
@@ -85,10 +86,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
86
  requirements: []
86
87
 
87
88
  rubyforge_project:
88
- rubygems_version: 1.3.3
89
+ rubygems_version: 1.3.5
89
90
  signing_key:
90
91
  specification_version: 3
91
92
  summary: Adds declarative uuid attribute initialization to models
92
93
  test_files:
93
- - spec/sets_uuid_spec.rb
94
94
  - spec/spec_helper.rb
95
+ - spec/sets_uuid_spec.rb