mycroseconds 0.1.0 → 0.1.1
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.
- data/VERSION +1 -1
- data/lib/mycroseconds/getting.rb +6 -0
- data/lib/mycroseconds/setting.rb +0 -5
- data/mycroseconds.gemspec +60 -0
- metadata +2 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/mycroseconds/getting.rb
CHANGED
data/lib/mycroseconds/setting.rb
CHANGED
@@ -21,10 +21,5 @@ module Mycroseconds
|
|
21
21
|
def set_updated_at_precision
|
22
22
|
write_attribute(:updated_at_precision, read_attribute_without_precision(:updated_at).usec)
|
23
23
|
end
|
24
|
-
|
25
|
-
def precise_updated_at?
|
26
|
-
required = %w(updated_at updated_at_precision)
|
27
|
-
(self.class.column_names & required) == required
|
28
|
-
end
|
29
24
|
end
|
30
25
|
end
|
@@ -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{mycroseconds}
|
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 = ["Steve Richert"]
|
12
|
+
s.date = %q{2010-01-22}
|
13
|
+
s.description = %q{Enjoy microsecond precision in your MySQL updated_at timestamp}
|
14
|
+
s.email = %q{steve.richert@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
|
+
"init.rb",
|
27
|
+
"lib/mycroseconds.rb",
|
28
|
+
"lib/mycroseconds/cache_key.rb",
|
29
|
+
"lib/mycroseconds/getting.rb",
|
30
|
+
"lib/mycroseconds/migration.rb",
|
31
|
+
"lib/mycroseconds/setting.rb",
|
32
|
+
"mycroseconds.gemspec",
|
33
|
+
"spec/mycroseconds_spec.rb",
|
34
|
+
"spec/spec.opts",
|
35
|
+
"spec/spec_helper.rb"
|
36
|
+
]
|
37
|
+
s.homepage = %q{http://github.com/laserlemon/mycroseconds}
|
38
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
39
|
+
s.require_paths = ["lib"]
|
40
|
+
s.rubygems_version = %q{1.3.5}
|
41
|
+
s.summary = %q{Enjoy microsecond precision in your MySQL updated_at timestamp}
|
42
|
+
s.test_files = [
|
43
|
+
"spec/mycroseconds_spec.rb",
|
44
|
+
"spec/spec_helper.rb"
|
45
|
+
]
|
46
|
+
|
47
|
+
if s.respond_to? :specification_version then
|
48
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
|
+
s.specification_version = 3
|
50
|
+
|
51
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
52
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
55
|
+
end
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mycroseconds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Richert
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/mycroseconds/getting.rb
|
45
45
|
- lib/mycroseconds/migration.rb
|
46
46
|
- lib/mycroseconds/setting.rb
|
47
|
+
- mycroseconds.gemspec
|
47
48
|
- spec/mycroseconds_spec.rb
|
48
49
|
- spec/spec.opts
|
49
50
|
- spec/spec_helper.rb
|