app_attributes 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -4
- data/app_attributes.gemspec +5 -4
- data/lib/app_attributes/version.rb +1 -1
- metadata +60 -8
data/README.md
CHANGED
@@ -20,7 +20,7 @@ bundle install
|
|
20
20
|
in your model:
|
21
21
|
|
22
22
|
<pre>
|
23
|
-
class Author
|
23
|
+
class Author < ActiveRecord::Base
|
24
24
|
include AppAttributes
|
25
25
|
|
26
26
|
ext_attribute :hat_size
|
@@ -30,9 +30,8 @@ end
|
|
30
30
|
|
31
31
|
# TODO
|
32
32
|
|
33
|
-
* automate migration. currently, you must manually copy/rename migration file in db/migrate
|
34
|
-
*
|
35
|
-
* specify dependencies
|
33
|
+
* automate db migration. currently, you must manually copy/rename migration file in app_attributes/db/migrate
|
34
|
+
* build out tests likely as a nested Rails app
|
36
35
|
|
37
36
|
# Copyright and license
|
38
37
|
|
data/app_attributes.gemspec
CHANGED
@@ -8,14 +8,15 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Luke Wendling"]
|
10
10
|
s.email = ["noreply@example.com"]
|
11
|
-
s.homepage =
|
11
|
+
s.homepage = %q{http://github.com/lukewendling/app_attributes}
|
12
12
|
s.summary = %q{Add simple name-value pairs to any ActiveRecord model}
|
13
|
-
s.description = %q{Add simple name-value pairs to any ActiveRecord model}
|
14
|
-
|
15
|
-
s.rubyforge_project = "app_attributes"
|
13
|
+
s.description = %q{Add simple name-value pairs to any ActiveRecord model and provide seamless getters, setters, and interrogators.}
|
16
14
|
|
17
15
|
s.files = `git ls-files`.split("\n")
|
18
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
18
|
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
s.add_dependency(%q<activerecord>, [">= 2.0.0", "< 3.0.0"])
|
21
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 2.11.0"])
|
21
22
|
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Luke Wendling
|
@@ -10,10 +15,50 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-04-
|
14
|
-
|
15
|
-
|
16
|
-
|
18
|
+
date: 2011-04-21 00:00:00 -05:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: activerecord
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 0
|
33
|
+
- 0
|
34
|
+
version: 2.0.0
|
35
|
+
- - <
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
hash: 7
|
38
|
+
segments:
|
39
|
+
- 3
|
40
|
+
- 0
|
41
|
+
- 0
|
42
|
+
version: 3.0.0
|
43
|
+
type: :runtime
|
44
|
+
version_requirements: *id001
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: thoughtbot-shoulda
|
47
|
+
prerelease: false
|
48
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
hash: 35
|
54
|
+
segments:
|
55
|
+
- 2
|
56
|
+
- 11
|
57
|
+
- 0
|
58
|
+
version: 2.11.0
|
59
|
+
type: :development
|
60
|
+
version_requirements: *id002
|
61
|
+
description: Add simple name-value pairs to any ActiveRecord model and provide seamless getters, setters, and interrogators.
|
17
62
|
email:
|
18
63
|
- noreply@example.com
|
19
64
|
executables: []
|
@@ -35,7 +80,8 @@ files:
|
|
35
80
|
- test/app_attribute_test.rb
|
36
81
|
- test/app_attributes_test.rb
|
37
82
|
- test/test_helper.rb
|
38
|
-
|
83
|
+
has_rdoc: true
|
84
|
+
homepage: http://github.com/lukewendling/app_attributes
|
39
85
|
licenses: []
|
40
86
|
|
41
87
|
post_install_message:
|
@@ -48,17 +94,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
94
|
requirements:
|
49
95
|
- - ">="
|
50
96
|
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
98
|
+
segments:
|
99
|
+
- 0
|
51
100
|
version: "0"
|
52
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
102
|
none: false
|
54
103
|
requirements:
|
55
104
|
- - ">="
|
56
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
57
109
|
version: "0"
|
58
110
|
requirements: []
|
59
111
|
|
60
|
-
rubyforge_project:
|
61
|
-
rubygems_version: 1.
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 1.6.2
|
62
114
|
signing_key:
|
63
115
|
specification_version: 3
|
64
116
|
summary: Add simple name-value pairs to any ActiveRecord model
|