dynamic_fieldsets 0.0.15 → 0.0.16

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/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.0.16
2
+
3
+ * Updated the migration generator with indices.
4
+ * Changed the rails version to be less strict.
5
+
1
6
  == 0.0.15
2
7
 
3
8
  * Fixed a bug when displaying field options in a view.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails", "3.0.7"
3
+ gem "rails", ">=3.0.7"
4
4
 
5
5
  group :development do
6
6
  gem "capybara", ">= 0.4.0"
data/Gemfile.lock CHANGED
@@ -149,7 +149,7 @@ DEPENDENCIES
149
149
  database_cleaner
150
150
  jeweler (~> 1.6.3)
151
151
  json
152
- rails (= 3.0.7)
152
+ rails (>= 3.0.7)
153
153
  rcov
154
154
  rspec (~> 2.6.0)
155
155
  rspec-rails (~> 2.6.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.16
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dynamic_fieldsets"
8
- s.version = "0.0.15"
8
+ s.version = "0.0.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremiah Hemphill", "Ethan Pemble", "John Carter"]
12
- s.date = "2012-01-30"
12
+ s.date = "2012-02-13"
13
13
  s.description = "Dynamic fieldsets for rails controllers"
14
14
  s.email = "jeremiah@cloudspace.com"
15
15
  s.extra_rdoc_files = [
@@ -111,7 +111,7 @@ Gem::Specification.new do |s|
111
111
  "spec/dummy/config/locales/en.yml",
112
112
  "spec/dummy/config/routes.rb",
113
113
  "spec/dummy/db/migrate/20110727210451_create_information_forms.rb",
114
- "spec/dummy/db/migrate/20111111154935_create_dynamic_fieldsets_tables.rb",
114
+ "spec/dummy/db/migrate/20120213211033_create_dynamic_fieldsets_tables.rb",
115
115
  "spec/dummy/db/schema.rb",
116
116
  "spec/dummy/features/field.feature",
117
117
  "spec/dummy/features/fieldset.feature",
@@ -177,7 +177,7 @@ Gem::Specification.new do |s|
177
177
  s.specification_version = 3
178
178
 
179
179
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
180
- s.add_runtime_dependency(%q<rails>, ["= 3.0.7"])
180
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.7"])
181
181
  s.add_development_dependency(%q<capybara>, [">= 0.4.0"])
182
182
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
183
183
  s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
@@ -193,7 +193,7 @@ Gem::Specification.new do |s|
193
193
  s.add_development_dependency(%q<json>, [">= 0"])
194
194
  s.add_development_dependency(%q<ci_reporter>, [">= 0"])
195
195
  else
196
- s.add_dependency(%q<rails>, ["= 3.0.7"])
196
+ s.add_dependency(%q<rails>, [">= 3.0.7"])
197
197
  s.add_dependency(%q<capybara>, [">= 0.4.0"])
198
198
  s.add_dependency(%q<sqlite3>, [">= 0"])
199
199
  s.add_dependency(%q<ruby-debug19>, [">= 0"])
@@ -210,7 +210,7 @@ Gem::Specification.new do |s|
210
210
  s.add_dependency(%q<ci_reporter>, [">= 0"])
211
211
  end
212
212
  else
213
- s.add_dependency(%q<rails>, ["= 3.0.7"])
213
+ s.add_dependency(%q<rails>, [">= 3.0.7"])
214
214
  s.add_dependency(%q<capybara>, [">= 0.4.0"])
215
215
  s.add_dependency(%q<sqlite3>, [">= 0"])
216
216
  s.add_dependency(%q<ruby-debug19>, [">= 0"])
@@ -8,6 +8,8 @@ class <%= migration_class_name %> < ActiveRecord::Migration
8
8
 
9
9
  t.timestamps
10
10
  end
11
+ add_index :dynamic_fieldsets_fieldset_associators, :fieldset_id, :name => "df_fsa_fieldset_id"
12
+ add_index :dynamic_fieldsets_fieldset_associators, [:fieldset_model_id, :fieldset_model_type], :name => "df_fsa_polymorphic_model"
11
13
 
12
14
  create_table :dynamic_fieldsets_fieldset_children do |t|
13
15
  t.integer :fieldset_id
@@ -17,6 +19,8 @@ class <%= migration_class_name %> < ActiveRecord::Migration
17
19
 
18
20
  t.timestamps
19
21
  end
22
+ add_index :dynamic_fieldsets_fieldset_children, :fieldset_id, :name => "df_fc_fieldset_id"
23
+ add_index :dynamic_fieldsets_fieldset_children, [:child_id, :child_type], :name => "df_fc_polymorphic_child"
20
24
 
21
25
  create_table :dynamic_fieldsets_fieldsets do |t|
22
26
  t.string :nkey, :null => false
@@ -45,6 +49,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
45
49
 
46
50
  t.timestamps
47
51
  end
52
+ add_index :dynamic_fieldsets_field_options, :field_id, :name => "df_fo_field_id"
48
53
 
49
54
  create_table :dynamic_fieldsets_field_defaults do |t|
50
55
  t.integer :field_id
@@ -52,6 +57,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
52
57
 
53
58
  t.timestamps
54
59
  end
60
+ add_index :dynamic_fieldsets_field_defaults, :field_id, :name => "df_fd_field_id"
55
61
 
56
62
  create_table :dynamic_fieldsets_field_html_attributes do |t|
57
63
  t.integer :field_id
@@ -60,6 +66,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
60
66
 
61
67
  t.timestamps
62
68
  end
69
+ add_index :dynamic_fieldsets_field_html_attributes, :field_id, :name => "df_fha_field_id"
63
70
 
64
71
  create_table :dynamic_fieldsets_field_records do |t|
65
72
  t.integer :fieldset_associator_id
@@ -68,6 +75,8 @@ class <%= migration_class_name %> < ActiveRecord::Migration
68
75
 
69
76
  t.timestamps
70
77
  end
78
+ add_index :dynamic_fieldsets_field_records, :fieldset_associator_id, :name => "df_fr_fieldset_associator_id"
79
+ add_index :dynamic_fieldsets_field_records, :fieldset_child_id, :name => "df_fr_fieldset_child_id"
71
80
 
72
81
  create_table :dynamic_fieldsets_dependencies do |t|
73
82
  t.integer :fieldset_child_id
@@ -77,12 +86,15 @@ class <%= migration_class_name %> < ActiveRecord::Migration
77
86
 
78
87
  t.timestamps
79
88
  end
89
+ add_index :dynamic_fieldsets_dependencies, :fieldset_child_id, :name => "df_d_fieldset_child_id"
90
+ add_index :dynamic_fieldsets_dependencies, :dependency_clause_id, :name => "df_d_dependency_clause_id"
80
91
 
81
92
  create_table :dynamic_fieldsets_dependency_clauses do |t|
82
93
  t.integer :dependency_group_id
83
94
 
84
95
  t.timestamps
85
96
  end
97
+ add_index :dynamic_fieldsets_dependency_clauses, :dependency_group_id, :name => "df_dc_dependency_group_id"
86
98
 
87
99
  create_table :dynamic_fieldsets_dependency_groups do |t|
88
100
  t.string :action
@@ -90,6 +102,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
90
102
 
91
103
  t.timestamps
92
104
  end
105
+ add_index :dynamic_fieldsets_dependency_groups, :fieldset_child_id, :name => "df_dg_fieldset_child_id"
93
106
  end
94
107
 
95
108
  def self.down
@@ -8,6 +8,8 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
8
8
 
9
9
  t.timestamps
10
10
  end
11
+ add_index :dynamic_fieldsets_fieldset_associators, :fieldset_id, :name => "df_fsa_fieldset_id"
12
+ add_index :dynamic_fieldsets_fieldset_associators, [:fieldset_model_id, :fieldset_model_type], :name => "df_fsa_polymorphic_model"
11
13
 
12
14
  create_table :dynamic_fieldsets_fieldset_children do |t|
13
15
  t.integer :fieldset_id
@@ -17,6 +19,8 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
17
19
 
18
20
  t.timestamps
19
21
  end
22
+ add_index :dynamic_fieldsets_fieldset_children, :fieldset_id, :name => "df_fc_fieldset_id"
23
+ add_index :dynamic_fieldsets_fieldset_children, [:child_id, :child_type], :name => "df_fc_polymorphic_child"
20
24
 
21
25
  create_table :dynamic_fieldsets_fieldsets do |t|
22
26
  t.string :nkey, :null => false
@@ -45,6 +49,7 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
45
49
 
46
50
  t.timestamps
47
51
  end
52
+ add_index :dynamic_fieldsets_field_options, :field_id, :name => "df_fo_field_id"
48
53
 
49
54
  create_table :dynamic_fieldsets_field_defaults do |t|
50
55
  t.integer :field_id
@@ -52,6 +57,7 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
52
57
 
53
58
  t.timestamps
54
59
  end
60
+ add_index :dynamic_fieldsets_field_defaults, :field_id, :name => "df_fd_field_id"
55
61
 
56
62
  create_table :dynamic_fieldsets_field_html_attributes do |t|
57
63
  t.integer :field_id
@@ -60,6 +66,7 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
60
66
 
61
67
  t.timestamps
62
68
  end
69
+ add_index :dynamic_fieldsets_field_html_attributes, :field_id, :name => "df_fha_field_id"
63
70
 
64
71
  create_table :dynamic_fieldsets_field_records do |t|
65
72
  t.integer :fieldset_associator_id
@@ -68,6 +75,8 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
68
75
 
69
76
  t.timestamps
70
77
  end
78
+ add_index :dynamic_fieldsets_field_records, :fieldset_associator_id, :name => "df_fr_fieldset_associator_id"
79
+ add_index :dynamic_fieldsets_field_records, :fieldset_child_id, :name => "df_fr_fieldset_child_id"
71
80
 
72
81
  create_table :dynamic_fieldsets_dependencies do |t|
73
82
  t.integer :fieldset_child_id
@@ -77,12 +86,15 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
77
86
 
78
87
  t.timestamps
79
88
  end
89
+ add_index :dynamic_fieldsets_dependencies, :fieldset_child_id, :name => "df_d_fieldset_child_id"
90
+ add_index :dynamic_fieldsets_dependencies, :dependency_clause_id, :name => "df_d_dependency_clause_id"
80
91
 
81
92
  create_table :dynamic_fieldsets_dependency_clauses do |t|
82
93
  t.integer :dependency_group_id
83
94
 
84
95
  t.timestamps
85
96
  end
97
+ add_index :dynamic_fieldsets_dependency_clauses, :dependency_group_id, :name => "df_dc_dependency_group_id"
86
98
 
87
99
  create_table :dynamic_fieldsets_dependency_groups do |t|
88
100
  t.string :action
@@ -90,6 +102,7 @@ class CreateDynamicFieldsetsTables < ActiveRecord::Migration
90
102
 
91
103
  t.timestamps
92
104
  end
105
+ add_index :dynamic_fieldsets_dependency_groups, :fieldset_child_id, :name => "df_dg_fieldset_child_id"
93
106
  end
94
107
 
95
108
  def self.down
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended to check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(:version => 20111111154935) do
13
+ ActiveRecord::Schema.define(:version => 20120213211033) do
14
14
 
15
15
  create_table "dynamic_fieldsets_dependencies", :force => true do |t|
16
16
  t.integer "fieldset_child_id"
@@ -21,12 +21,17 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
21
21
  t.datetime "updated_at"
22
22
  end
23
23
 
24
+ add_index "dynamic_fieldsets_dependencies", ["dependency_clause_id"], :name => "df_d_dependency_clause_id"
25
+ add_index "dynamic_fieldsets_dependencies", ["fieldset_child_id"], :name => "df_d_fieldset_child_id"
26
+
24
27
  create_table "dynamic_fieldsets_dependency_clauses", :force => true do |t|
25
28
  t.integer "dependency_group_id"
26
29
  t.datetime "created_at"
27
30
  t.datetime "updated_at"
28
31
  end
29
32
 
33
+ add_index "dynamic_fieldsets_dependency_clauses", ["dependency_group_id"], :name => "df_dc_dependency_group_id"
34
+
30
35
  create_table "dynamic_fieldsets_dependency_groups", :force => true do |t|
31
36
  t.string "action"
32
37
  t.integer "fieldset_child_id"
@@ -34,6 +39,8 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
34
39
  t.datetime "updated_at"
35
40
  end
36
41
 
42
+ add_index "dynamic_fieldsets_dependency_groups", ["fieldset_child_id"], :name => "df_dg_fieldset_child_id"
43
+
37
44
  create_table "dynamic_fieldsets_field_defaults", :force => true do |t|
38
45
  t.integer "field_id"
39
46
  t.string "value"
@@ -41,6 +48,8 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
41
48
  t.datetime "updated_at"
42
49
  end
43
50
 
51
+ add_index "dynamic_fieldsets_field_defaults", ["field_id"], :name => "df_fd_field_id"
52
+
44
53
  create_table "dynamic_fieldsets_field_html_attributes", :force => true do |t|
45
54
  t.integer "field_id"
46
55
  t.string "attribute_name"
@@ -49,6 +58,8 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
49
58
  t.datetime "updated_at"
50
59
  end
51
60
 
61
+ add_index "dynamic_fieldsets_field_html_attributes", ["field_id"], :name => "df_fha_field_id"
62
+
52
63
  create_table "dynamic_fieldsets_field_options", :force => true do |t|
53
64
  t.integer "field_id"
54
65
  t.string "name"
@@ -57,6 +68,8 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
57
68
  t.datetime "updated_at"
58
69
  end
59
70
 
71
+ add_index "dynamic_fieldsets_field_options", ["field_id"], :name => "df_fo_field_id"
72
+
60
73
  create_table "dynamic_fieldsets_field_records", :force => true do |t|
61
74
  t.integer "fieldset_associator_id"
62
75
  t.integer "fieldset_child_id"
@@ -65,6 +78,9 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
65
78
  t.datetime "updated_at"
66
79
  end
67
80
 
81
+ add_index "dynamic_fieldsets_field_records", ["fieldset_associator_id"], :name => "df_fr_fieldset_associator_id"
82
+ add_index "dynamic_fieldsets_field_records", ["fieldset_child_id"], :name => "df_fr_fieldset_child_id"
83
+
68
84
  create_table "dynamic_fieldsets_fields", :force => true do |t|
69
85
  t.string "name"
70
86
  t.string "label"
@@ -84,6 +100,9 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
84
100
  t.datetime "updated_at"
85
101
  end
86
102
 
103
+ add_index "dynamic_fieldsets_fieldset_associators", ["fieldset_id"], :name => "df_fsa_fieldset_id"
104
+ add_index "dynamic_fieldsets_fieldset_associators", ["fieldset_model_id", "fieldset_model_type"], :name => "df_fsa_polymorphic_model"
105
+
87
106
  create_table "dynamic_fieldsets_fieldset_children", :force => true do |t|
88
107
  t.integer "fieldset_id"
89
108
  t.integer "child_id"
@@ -93,6 +112,9 @@ ActiveRecord::Schema.define(:version => 20111111154935) do
93
112
  t.datetime "updated_at"
94
113
  end
95
114
 
115
+ add_index "dynamic_fieldsets_fieldset_children", ["child_id", "child_type"], :name => "df_fc_polymorphic_child"
116
+ add_index "dynamic_fieldsets_fieldset_children", ["fieldset_id"], :name => "df_fc_fieldset_id"
117
+
96
118
  create_table "dynamic_fieldsets_fieldsets", :force => true do |t|
97
119
  t.string "nkey", :null => false
98
120
  t.string "name"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynamic_fieldsets
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.15
5
+ version: 0.0.16
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeremiah Hemphill
@@ -12,14 +12,14 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2012-01-30 00:00:00 Z
15
+ date: 2012-02-13 00:00:00 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
19
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
- - - "="
22
+ - - ">="
23
23
  - !ruby/object:Gem::Version
24
24
  version: 3.0.7
25
25
  type: :runtime
@@ -283,7 +283,7 @@ files:
283
283
  - spec/dummy/config/locales/en.yml
284
284
  - spec/dummy/config/routes.rb
285
285
  - spec/dummy/db/migrate/20110727210451_create_information_forms.rb
286
- - spec/dummy/db/migrate/20111111154935_create_dynamic_fieldsets_tables.rb
286
+ - spec/dummy/db/migrate/20120213211033_create_dynamic_fieldsets_tables.rb
287
287
  - spec/dummy/db/schema.rb
288
288
  - spec/dummy/features/field.feature
289
289
  - spec/dummy/features/fieldset.feature
@@ -351,7 +351,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
351
351
  requirements:
352
352
  - - ">="
353
353
  - !ruby/object:Gem::Version
354
- hash: -1331530060703642871
354
+ hash: 1324608235564523881
355
355
  segments:
356
356
  - 0
357
357
  version: "0"