vidibus-uuid 0.4.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1 @@
1
- ---
2
- BUNDLE_DISABLE_SHARED_GEMS: "1"
1
+ --- {}
@@ -1 +1,4 @@
1
- script: "bundle exec rspec spec --format progress"
1
+ rvm:
2
+ - 1.9.3
3
+ script: 'bundle exec rspec spec --format progress'
4
+ services: mongodb
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Andre Pankratz
1
+ Copyright (c) 2010-2012 Andre Pankratz
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Vidibus::Uuid [![](http://travis-ci.org/vidibus/vidibus-uuid.png)](http://travis-ci.org/vidibus/vidibus-uuid) [![](http://stillmaintained.com/vidibus/vidibus-uuid.png)](http://stillmaintained.com/vidibus/vidibus-uuid)
1
+ # Vidibus::Uuid [![](http://travis-ci.org/vidibus/vidibus-uuid.png)](http://travis-ci.org/vidibus/vidibus-uuid)
2
2
 
3
3
  Generates and validates compact UUIDs. Basically, this is an abstraction of http://github.com/assaf/uuid
4
4
 
@@ -47,4 +47,4 @@ end
47
47
 
48
48
  ## Copyright
49
49
 
50
- © 2010-2011 Andre Pankratz. See LICENSE for details.
50
+ © 2010-2012 Andre Pankratz. See LICENSE for details.
data/Rakefile CHANGED
@@ -8,18 +8,10 @@ Bundler::GemHelper.install_tasks
8
8
  $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
9
9
  require "vidibus/uuid/version"
10
10
 
11
- RSpec::Core::RakeTask.new(:rcov) do |t|
12
- t.pattern = "spec/**/*_spec.rb"
13
- t.rcov = true
14
- t.rcov_opts = ["--exclude", "^spec,/gems/"]
15
- end
16
-
17
11
  Rake::RDocTask.new do |rdoc|
18
12
  rdoc.rdoc_dir = "rdoc"
19
- rdoc.title = "vidibus-sysinfo #{Vidibus::Uuid::VERSION}"
13
+ rdoc.title = "Vidibus::Uuid #{Vidibus::Uuid::VERSION}"
20
14
  rdoc.rdoc_files.include("README*")
21
15
  rdoc.rdoc_files.include("lib/**/*.rb")
22
16
  rdoc.options << "--charset=utf-8"
23
17
  end
24
-
25
- task :default => :rcov
@@ -5,7 +5,7 @@ module Vidibus
5
5
 
6
6
  included do
7
7
  field :uuid
8
- index :uuid, :unique => true
8
+ index({:uuid => 1}, {:unique => true})
9
9
  before_validation :generate_uuid
10
10
  validates :uuid, :uniqueness => true, :uuid => true
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Vidibus
2
2
  module Uuid
3
- VERSION = "0.4.1"
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
@@ -8,13 +8,14 @@ require "vidibus-uuid"
8
8
 
9
9
  Mongoid.configure do |config|
10
10
  name = "vidibus-uuid_test"
11
- host = "localhost"
12
- config.master = Mongo::Connection.new.db(name)
11
+ config.connect_to(name)
13
12
  end
14
13
 
15
14
  RSpec.configure do |config|
16
15
  config.after :suite do
17
- Mongoid.master.collections.select {|c| c.name !~ /system/}.each(&:drop)
16
+ Mongoid::Sessions.default.collections.select do |c|
17
+ c.name !~ /system/
18
+ end.each(&:drop)
18
19
  end
19
20
  end
20
21
 
@@ -17,14 +17,13 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.required_rubygems_version = ">= 1.3.6"
19
19
  s.rubyforge_project = "vidibus-uuid"
20
-
21
- s.add_dependency "mongoid", "~> 2"
20
+
21
+ s.add_dependency 'mongoid', '~> 3.0'
22
22
  s.add_dependency "uuid", "~> 2.3.1"
23
23
 
24
24
  s.add_development_dependency "bundler", ">= 1.0.0"
25
25
  s.add_development_dependency "rake"
26
26
  s.add_development_dependency "rdoc"
27
- s.add_development_dependency "rcov"
28
27
  s.add_development_dependency "rspec", "~> 2"
29
28
  s.add_development_dependency "rr"
30
29
 
metadata CHANGED
@@ -1,148 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vidibus-uuid
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 1
10
- version: 0.4.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Andre Pankratz
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-11 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-10-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: mongoid
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 2
32
- version: "2"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: uuid
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
39
25
  none: false
40
- requirements:
26
+ requirements:
41
27
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 1
44
- segments:
45
- - 2
46
- - 3
47
- - 1
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: uuid
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
48
37
  version: 2.3.1
49
38
  type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: bundler
53
39
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
55
41
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 23
60
- segments:
61
- - 1
62
- - 0
63
- - 0
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.3.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
64
53
  version: 1.0.0
65
54
  type: :development
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: rake
69
55
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
71
57
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
79
70
  type: :development
80
- version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
- name: rdoc
83
71
  prerelease: false
84
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rdoc
80
+ requirement: !ruby/object:Gem::Requirement
85
81
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
93
86
  type: :development
94
- version_requirements: *id005
95
- - !ruby/object:Gem::Dependency
96
- name: rcov
97
87
  prerelease: false
98
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
99
89
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
107
- type: :development
108
- version_requirements: *id006
109
- - !ruby/object:Gem::Dependency
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
110
95
  name: rspec
111
- prerelease: false
112
- requirement: &id007 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
113
97
  none: false
114
- requirements:
98
+ requirements:
115
99
  - - ~>
116
- - !ruby/object:Gem::Version
117
- hash: 7
118
- segments:
119
- - 2
120
- version: "2"
100
+ - !ruby/object:Gem::Version
101
+ version: '2'
121
102
  type: :development
122
- version_requirements: *id007
123
- - !ruby/object:Gem::Dependency
124
- name: rr
125
103
  prerelease: false
126
- requirement: &id008 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '2'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rr
112
+ requirement: !ruby/object:Gem::Requirement
127
113
  none: false
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- hash: 3
132
- segments:
133
- - 0
134
- version: "0"
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
135
118
  type: :development
136
- version_requirements: *id008
137
- description: Provides UUID generation for Mongoid models. It includes a validator for UUIDs.
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: Provides UUID generation for Mongoid models. It includes a validator
127
+ for UUIDs.
138
128
  email: andre@vidibus.com
139
129
  executables: []
140
-
141
130
  extensions: []
142
-
143
131
  extra_rdoc_files: []
144
-
145
- files:
132
+ files:
146
133
  - .bundle/config
147
134
  - .document
148
135
  - .gitignore
@@ -164,41 +151,31 @@ files:
164
151
  - spec/vidibus/uuid/validator_spec.rb
165
152
  - spec/vidibus/uuid_spec.rb
166
153
  - vidibus-uuid.gemspec
167
- has_rdoc: true
168
154
  homepage: https://github.com/vidibus/vidibus-uuid
169
155
  licenses: []
170
-
171
156
  post_install_message:
172
157
  rdoc_options: []
173
-
174
- require_paths:
158
+ require_paths:
175
159
  - lib
176
- required_ruby_version: !ruby/object:Gem::Requirement
160
+ required_ruby_version: !ruby/object:Gem::Requirement
177
161
  none: false
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- hash: 3
182
- segments:
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ segments:
183
167
  - 0
184
- version: "0"
185
- required_rubygems_version: !ruby/object:Gem::Requirement
168
+ hash: 748298944457176577
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
170
  none: false
187
- requirements:
188
- - - ">="
189
- - !ruby/object:Gem::Version
190
- hash: 23
191
- segments:
192
- - 1
193
- - 3
194
- - 6
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
195
174
  version: 1.3.6
196
175
  requirements: []
197
-
198
176
  rubyforge_project: vidibus-uuid
199
- rubygems_version: 1.6.2
177
+ rubygems_version: 1.8.24
200
178
  signing_key:
201
179
  specification_version: 3
202
180
  summary: Provides UUID generation through UUID gem.
203
181
  test_files: []
204
-