dm_preferences 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.rdoc +86 -0
- data/Gemfile +3 -0
- data/LICENSE +20 -0
- data/README.rdoc +224 -0
- data/Rakefile +36 -0
- data/app/models/preference.rb +65 -0
- data/dm_preferences.gemspec +21 -0
- data/lib/dm_preferences.rb +1 -0
- data/lib/generators/USAGE +5 -0
- data/lib/generators/preferences_generator.rb +17 -0
- data/lib/generators/templates/create_preferences.rb +12 -0
- data/lib/preferences.rb +634 -0
- data/lib/preferences/engine.rb +4 -0
- data/lib/preferences/preference_definition.rb +56 -0
- data/lib/preferences/version.rb +3 -0
- data/test/app_root/app/models/car.rb +2 -0
- data/test/app_root/app/models/employee.rb +2 -0
- data/test/app_root/app/models/manager.rb +3 -0
- data/test/app_root/app/models/user.rb +8 -0
- data/test/app_root/db/migrate/001_create_users.rb +11 -0
- data/test/app_root/db/migrate/002_create_cars.rb +11 -0
- data/test/app_root/db/migrate/003_create_employees.rb +12 -0
- data/test/app_root/db/migrate/004_migrate_preferences_to_version_1.rb +13 -0
- data/test/factory.rb +65 -0
- data/test/functional/preferences_test.rb +1387 -0
- data/test/test_helper.rb +26 -0
- data/test/unit/preference_definition_test.rb +237 -0
- data/test/unit/preference_test.rb +259 -0
- metadata +124 -0
metadata
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dm_preferences
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brett Walker
|
8
|
+
- Aaron Pfeifer
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: plugin_test_helper
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.3.2
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 0.3.2
|
42
|
+
description: Adds support for easily creating custom preferences for ActiveRecord
|
43
|
+
models
|
44
|
+
email: github@digitalmoksha.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files:
|
48
|
+
- README.rdoc
|
49
|
+
- CHANGELOG.rdoc
|
50
|
+
- LICENSE
|
51
|
+
files:
|
52
|
+
- ".gitignore"
|
53
|
+
- ".travis.yml"
|
54
|
+
- CHANGELOG.rdoc
|
55
|
+
- Gemfile
|
56
|
+
- LICENSE
|
57
|
+
- README.rdoc
|
58
|
+
- Rakefile
|
59
|
+
- app/models/preference.rb
|
60
|
+
- dm_preferences.gemspec
|
61
|
+
- lib/dm_preferences.rb
|
62
|
+
- lib/generators/USAGE
|
63
|
+
- lib/generators/preferences_generator.rb
|
64
|
+
- lib/generators/templates/create_preferences.rb
|
65
|
+
- lib/preferences.rb
|
66
|
+
- lib/preferences/engine.rb
|
67
|
+
- lib/preferences/preference_definition.rb
|
68
|
+
- lib/preferences/version.rb
|
69
|
+
- test/app_root/app/models/car.rb
|
70
|
+
- test/app_root/app/models/employee.rb
|
71
|
+
- test/app_root/app/models/manager.rb
|
72
|
+
- test/app_root/app/models/user.rb
|
73
|
+
- test/app_root/db/migrate/001_create_users.rb
|
74
|
+
- test/app_root/db/migrate/002_create_cars.rb
|
75
|
+
- test/app_root/db/migrate/003_create_employees.rb
|
76
|
+
- test/app_root/db/migrate/004_migrate_preferences_to_version_1.rb
|
77
|
+
- test/factory.rb
|
78
|
+
- test/functional/preferences_test.rb
|
79
|
+
- test/test_helper.rb
|
80
|
+
- test/unit/preference_definition_test.rb
|
81
|
+
- test/unit/preference_test.rb
|
82
|
+
homepage: https://github.com/digitalmoksha/preferences
|
83
|
+
licenses: []
|
84
|
+
metadata: {}
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options:
|
87
|
+
- "--line-numbers"
|
88
|
+
- "--inline-source"
|
89
|
+
- "--title"
|
90
|
+
- preferences
|
91
|
+
- "--main"
|
92
|
+
- README.rdoc
|
93
|
+
require_paths:
|
94
|
+
- lib
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
requirements: []
|
106
|
+
rubyforge_project:
|
107
|
+
rubygems_version: 2.4.5
|
108
|
+
signing_key:
|
109
|
+
specification_version: 4
|
110
|
+
summary: Custom preferences for ActiveRecord models
|
111
|
+
test_files:
|
112
|
+
- test/app_root/app/models/car.rb
|
113
|
+
- test/app_root/app/models/employee.rb
|
114
|
+
- test/app_root/app/models/manager.rb
|
115
|
+
- test/app_root/app/models/user.rb
|
116
|
+
- test/app_root/db/migrate/001_create_users.rb
|
117
|
+
- test/app_root/db/migrate/002_create_cars.rb
|
118
|
+
- test/app_root/db/migrate/003_create_employees.rb
|
119
|
+
- test/app_root/db/migrate/004_migrate_preferences_to_version_1.rb
|
120
|
+
- test/factory.rb
|
121
|
+
- test/functional/preferences_test.rb
|
122
|
+
- test/test_helper.rb
|
123
|
+
- test/unit/preference_definition_test.rb
|
124
|
+
- test/unit/preference_test.rb
|