personhood 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -1
- data/VERSION +1 -1
- data/lib/juscribe/personhood.rb +2 -2
- data/personhood.gemspec +107 -0
- metadata +4 -3
data/README.rdoc
CHANGED
@@ -38,7 +38,9 @@ Typically, I would suggest you defining your custom +#to_param+ within your mode
|
|
38
38
|
|
39
39
|
Gemfile:
|
40
40
|
|
41
|
-
gem 'personhood'
|
41
|
+
gem 'personhood'
|
42
|
+
# or GitHub latest:
|
43
|
+
# gem 'personhood', github: 'caleon/personhood'
|
42
44
|
|
43
45
|
Model class file (i.e. +app/models/user.rb+):
|
44
46
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/juscribe/personhood.rb
CHANGED
@@ -15,8 +15,8 @@ module Juscribe # :nodoc:
|
|
15
15
|
x.validates :middle_name
|
16
16
|
end
|
17
17
|
|
18
|
-
attr_accessible :last_name, :first_name, :middle_name, :name, :birthdate, :sex
|
19
|
-
attr_accessible :last_name, :first_name, :middle_name, :name, :birthdate, :sex, :email, :username, as: :admin
|
18
|
+
# attr_accessible :last_name, :first_name, :middle_name, :name, :birthdate, :sex
|
19
|
+
# attr_accessible :last_name, :first_name, :middle_name, :name, :birthdate, :sex, :email, :username, as: :admin
|
20
20
|
end
|
21
21
|
|
22
22
|
# ----------------------------------------
|
data/personhood.gemspec
ADDED
@@ -0,0 +1,107 @@
|
|
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 = "personhood"
|
8
|
+
s.version = "0.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["caleon"]
|
12
|
+
s.date = "2014-09-07"
|
13
|
+
s.description = " When you are tired of coding the same kinds of things for your User model\n (or any other person-like model) with all its typical `first_name`,\n `full_name`, and other brouhaha, use the Personhood gem to clean up your\n code by getting rid of those pesky lines and instead focusing on the lines of\n code that *truly* set your app apart.\n"
|
14
|
+
s.email = "caleon@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/juscribe/display_optional.rb",
|
29
|
+
"lib/juscribe/name.rb",
|
30
|
+
"lib/juscribe/personhood.rb",
|
31
|
+
"lib/juscribe/tos_acceptable.rb",
|
32
|
+
"lib/personhood.rb",
|
33
|
+
"personhood.gemspec",
|
34
|
+
"spec/dummy/Rakefile",
|
35
|
+
"spec/dummy/app/assets/javascripts/application.js",
|
36
|
+
"spec/dummy/app/assets/stylesheets/application.css",
|
37
|
+
"spec/dummy/app/controllers/application_controller.rb",
|
38
|
+
"spec/dummy/app/helpers/application_helper.rb",
|
39
|
+
"spec/dummy/app/mailers/.gitkeep",
|
40
|
+
"spec/dummy/app/models/.gitkeep",
|
41
|
+
"spec/dummy/app/models/user.rb",
|
42
|
+
"spec/dummy/app/views/layouts/application.html.erb",
|
43
|
+
"spec/dummy/config.ru",
|
44
|
+
"spec/dummy/config/application.rb",
|
45
|
+
"spec/dummy/config/boot.rb",
|
46
|
+
"spec/dummy/config/database.yml",
|
47
|
+
"spec/dummy/config/environment.rb",
|
48
|
+
"spec/dummy/config/environments/development.rb",
|
49
|
+
"spec/dummy/config/environments/production.rb",
|
50
|
+
"spec/dummy/config/environments/test.rb",
|
51
|
+
"spec/dummy/config/initializers/backtrace_silencers.rb",
|
52
|
+
"spec/dummy/config/initializers/inflections.rb",
|
53
|
+
"spec/dummy/config/initializers/mime_types.rb",
|
54
|
+
"spec/dummy/config/initializers/secret_token.rb",
|
55
|
+
"spec/dummy/config/initializers/session_store.rb",
|
56
|
+
"spec/dummy/config/initializers/wrap_parameters.rb",
|
57
|
+
"spec/dummy/config/locales/en.yml",
|
58
|
+
"spec/dummy/config/routes.rb",
|
59
|
+
"spec/dummy/db/migrate/20121022000000_create_users.rb",
|
60
|
+
"spec/dummy/db/schema.rb",
|
61
|
+
"spec/dummy/db/test.sqlite3",
|
62
|
+
"spec/dummy/lib/assets/.gitkeep",
|
63
|
+
"spec/dummy/log/.gitkeep",
|
64
|
+
"spec/dummy/log/development.log",
|
65
|
+
"spec/dummy/public/404.html",
|
66
|
+
"spec/dummy/public/422.html",
|
67
|
+
"spec/dummy/public/500.html",
|
68
|
+
"spec/dummy/public/favicon.ico",
|
69
|
+
"spec/dummy/script/rails",
|
70
|
+
"spec/personhood_spec.rb",
|
71
|
+
"spec/spec_helper.rb",
|
72
|
+
"spec/support/have_error_matchers.rb"
|
73
|
+
]
|
74
|
+
s.homepage = "http://github.com/caleon/personhood"
|
75
|
+
s.licenses = ["MIT"]
|
76
|
+
s.require_paths = ["lib"]
|
77
|
+
s.rubygems_version = "1.8.24"
|
78
|
+
s.summary = "ActiveRecord abstraction for attributes pertaining to a person-like model"
|
79
|
+
|
80
|
+
if s.respond_to? :specification_version then
|
81
|
+
s.specification_version = 3
|
82
|
+
|
83
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
84
|
+
s.add_development_dependency(%q<rspec-rails>, ["~> 2.11"])
|
85
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
86
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
87
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
88
|
+
s.add_development_dependency(%q<rails>, [">= 3.1.0"])
|
89
|
+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
90
|
+
else
|
91
|
+
s.add_dependency(%q<rspec-rails>, ["~> 2.11"])
|
92
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
93
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
94
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
95
|
+
s.add_dependency(%q<rails>, [">= 3.1.0"])
|
96
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
97
|
+
end
|
98
|
+
else
|
99
|
+
s.add_dependency(%q<rspec-rails>, ["~> 2.11"])
|
100
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
101
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
102
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
103
|
+
s.add_dependency(%q<rails>, [">= 3.1.0"])
|
104
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: personhood
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-09-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-rails
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- lib/juscribe/personhood.rb
|
133
133
|
- lib/juscribe/tos_acceptable.rb
|
134
134
|
- lib/personhood.rb
|
135
|
+
- personhood.gemspec
|
135
136
|
- spec/dummy/Rakefile
|
136
137
|
- spec/dummy/app/assets/javascripts/application.js
|
137
138
|
- spec/dummy/app/assets/stylesheets/application.css
|
@@ -186,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
187
|
version: '0'
|
187
188
|
segments:
|
188
189
|
- 0
|
189
|
-
hash:
|
190
|
+
hash: 2672219197787683349
|
190
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
192
|
none: false
|
192
193
|
requirements:
|