estore_conventions 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDUxODI5ZDc4YjM5YzJjYTU3MGQzYWM5MTZiZjRlNTVkYzhjMTc0Mw==
4
+ NDM0NGU5MTQ3ZDliMzcwOTRlNmNhNGQ3MGFkNmIwZjk5MzFiMGMwNQ==
5
5
  data.tar.gz: !binary |-
6
- ODQwOWMwZmQwNDdhNTgyY2JiY2E1OTQ0MDc5NTdkNmI0Yzk5ZmMyNg==
6
+ OWE2NTU5OTk3NGMzMDcxMTRjMjJkNTU0NDgxOTY0YWFmMjFhNmI2MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjI3NzdmZTFjNThjMmIxOGJlOTdiMDc4ZDRhN2JkMGM0MTZhNzE0M2FjOTRl
10
- NjQ1MzRjZjczYzBkNTJlNmExYTJkMjMxNmM3NTM2NGM3ZTg3MmM0MWQ5Njk0
11
- ZTYzY2Y4YjYyOGQwMmIzNjA5ZjhiNDMwNzlmMTQ5ZGMyYTc5ODQ=
9
+ ZTBlYWU5Yzg5NDE0OGMzNjc0MGMxMWNlNDIyMjNmZmMyZjBmOThmYWViZmRh
10
+ Mjc4OTQyNTliM2ZhMzk1NjAyOGE2ODMyMDQ2ZWE5ZmRkNTMyMDQyMjRlMGFi
11
+ YTBmYzJlMTY3YjI2Y2VjMjU3ZjQ1MmViMWIwZjNhZjZjZWYyZDk=
12
12
  data.tar.gz: !binary |-
13
- OWFlZWI1MWMwYTliMjU4NjRjMTNiNzNmY2E3ZTVkMzY5NWNkN2Q1ZDJhMTZi
14
- OWQ0OTBkNmU1ZWI1MTFmMWYzZjNhYTcxMTE5ZTBiMjhkYjVjMDc2Nzk2ZjJi
15
- ZTllMDYyY2NiYzM5NjNjNjdhNmFjNmMxNGRiZmQ5OGRlM2Q4MDQ=
13
+ MGQ5ODcxMjI5M2E2ZjU3MGNlZDc5YmJjYTgzODc2Nzc3NWM4NjJmZGY4YjI3
14
+ ZGI1Y2FhODMxZTFlYjE2ODc2MjI2OTllMzI5NmIzZTZjNTg2MmQyOTg0MTk4
15
+ OWYyNTJiNzQ1MjQwYjdjOGVmNWE0ODQ3OGY1MDMwOTk5MWY0NjA=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.2
@@ -0,0 +1,63 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "estore_conventions"
8
+ s.version = "0.1.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Andrew Callahan"]
12
+ s.date = "2013-09-30"
13
+ s.description = "abstracting out things"
14
+ s.email = "andrew.callahan@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "estore_conventions.gemspec",
28
+ "lib/estore_conventions.rb",
29
+ "lib/estore_conventions/builder.rb",
30
+ "test/helper.rb",
31
+ "test/test_estore_conventions.rb"
32
+ ]
33
+ s.homepage = "http://github.com/andrewcallahan/estore_conventions"
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "2.0.3"
37
+ s.summary = "abstracting out things"
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 4
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
44
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
45
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
46
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
47
+ s.add_development_dependency(%q<rcov>, ["= 0.9.11"])
48
+ else
49
+ s.add_dependency(%q<shoulda>, [">= 0"])
50
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
51
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
52
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
53
+ s.add_dependency(%q<rcov>, ["= 0.9.11"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<shoulda>, [">= 0"])
57
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
58
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
59
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
60
+ s.add_dependency(%q<rcov>, ["= 0.9.11"])
61
+ end
62
+ end
63
+
@@ -33,9 +33,6 @@ module EstoreConventions
33
33
 
34
34
  end
35
35
 
36
-
37
-
38
-
39
36
  def timestamp_attributes_for_create
40
37
  super << :rails_created_at
41
38
  end
@@ -0,0 +1,11 @@
1
+ module EstoreConventions
2
+ module Builder
3
+
4
+ def self.build_from_object(klass, obj, attributes_hash)
5
+ object = klass.where(:t_id => obj[:id]).first_or_initialize
6
+ object.assign_attributes(attributes_hash)
7
+ object
8
+ end
9
+
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: estore_conventions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Callahan
@@ -95,7 +95,9 @@ files:
95
95
  - README.rdoc
96
96
  - Rakefile
97
97
  - VERSION
98
+ - estore_conventions.gemspec
98
99
  - lib/estore_conventions.rb
100
+ - lib/estore_conventions/builder.rb
99
101
  - test/helper.rb
100
102
  - test/test_estore_conventions.rb
101
103
  homepage: http://github.com/andrewcallahan/estore_conventions