multiinsert 0.0.1 → 0.0.2

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.
Files changed (153) hide show
  1. data/.gitignore +17 -15
  2. data/Gemfile +3 -48
  3. data/LICENSE.txt +22 -0
  4. data/README.md +28 -3
  5. data/Rakefile +1 -7
  6. data/lib/multiinsert.rb +38 -0
  7. data/lib/multiinsert/version.rb +3 -0
  8. data/multiinsert.gemspec +23 -0
  9. metadata +8 -180
  10. data/Gemfile.lock +0 -182
  11. data/README.rdoc +0 -261
  12. data/app/assets/images/Dashboard.jpg +0 -0
  13. data/app/assets/images/black.png +0 -0
  14. data/app/assets/images/giff.gif +0 -0
  15. data/app/assets/images/rails.png +0 -0
  16. data/app/assets/images/sprites.png +0 -0
  17. data/app/assets/javascripts/application.js +0 -15
  18. data/app/assets/javascripts/effects.js +0 -9
  19. data/app/assets/javascripts/evaluations.js.coffee +0 -3
  20. data/app/assets/javascripts/tabs_old.js +0 -42
  21. data/app/assets/stylesheets/application.css +0 -13
  22. data/app/assets/stylesheets/evaluations.css.scss +0 -3
  23. data/app/assets/stylesheets/style.css +0 -477
  24. data/app/assets/stylesheets/tab.css +0 -190
  25. data/app/controllers/application_controller.rb +0 -15
  26. data/app/controllers/employee_heirarchies_controller.rb +0 -2
  27. data/app/controllers/evaluations_controller.rb +0 -80
  28. data/app/controllers/sessions_controller.rb +0 -48
  29. data/app/helpers/application_helper.rb +0 -2
  30. data/app/helpers/employee_heirarchies_helper.rb +0 -2
  31. data/app/helpers/evaluations_helper.rb +0 -2
  32. data/app/mailers/.gitkeep +0 -0
  33. data/app/models/.gitkeep +0 -0
  34. data/app/models/employee.rb +0 -5
  35. data/app/models/employee_heirarchy.rb +0 -6
  36. data/app/models/evaluation.rb +0 -6
  37. data/app/models/evaluation_interval.rb +0 -5
  38. data/app/models/evaluation_period.rb +0 -6
  39. data/app/models/interval_format.rb +0 -4
  40. data/app/models/role.rb +0 -7
  41. data/app/models/score.rb +0 -3
  42. data/app/models/team.rb +0 -10
  43. data/app/models/team.rb~ +0 -10
  44. data/app/models/team_value.rb +0 -5
  45. data/app/models/user.rb +0 -49
  46. data/app/models/user.rb~ +0 -11
  47. data/app/models/user_history.rb +0 -6
  48. data/app/models/user_role.rb +0 -5
  49. data/app/models/value.rb +0 -8
  50. data/app/models/value.rb~ +0 -7
  51. data/app/views/devise/confirmations/new.html.erb +0 -12
  52. data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  53. data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  54. data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  55. data/app/views/devise/passwords/edit.html.erb +0 -16
  56. data/app/views/devise/passwords/new.html.erb +0 -12
  57. data/app/views/devise/registrations/edit.html.erb +0 -29
  58. data/app/views/devise/registrations/new.html.erb +0 -36
  59. data/app/views/devise/sessions/new.html.erb +0 -17
  60. data/app/views/devise/shared/_links.erb +0 -25
  61. data/app/views/devise/unlocks/new.html.erb +0 -12
  62. data/app/views/evaluations/edit.html.erb +0 -21
  63. data/app/views/evaluations/first.html.erb +0 -5
  64. data/app/views/evaluations/index.html.erb +0 -7
  65. data/app/views/evaluations/new.html.erb +0 -15
  66. data/app/views/evaluations/show.html.erb +0 -21
  67. data/app/views/layouts/application.html.erb +0 -87
  68. data/config.ru +0 -4
  69. data/config/application.rb +0 -63
  70. data/config/boot.rb +0 -6
  71. data/config/database.yml +0 -31
  72. data/config/database.yml~ +0 -31
  73. data/config/environment.rb +0 -5
  74. data/config/environments/development.rb +0 -37
  75. data/config/environments/production.rb +0 -67
  76. data/config/environments/test.rb +0 -37
  77. data/config/initializers/backtrace_silencers.rb +0 -7
  78. data/config/initializers/devise.rb +0 -240
  79. data/config/initializers/inflections.rb +0 -15
  80. data/config/initializers/mime_types.rb +0 -5
  81. data/config/initializers/rails_admin.rb +0 -116
  82. data/config/initializers/secret_token.rb +0 -7
  83. data/config/initializers/session_store.rb +0 -8
  84. data/config/initializers/wrap_parameters.rb +0 -14
  85. data/config/locales/devise.en.yml +0 -59
  86. data/config/locales/en.yml +0 -5
  87. data/config/routes.rb +0 -70
  88. data/db/migrate/20130220053413_devise_create_users.rb +0 -52
  89. data/db/migrate/20130220055237_create_rails_admin_histories_table.rb +0 -18
  90. data/db/migrate/20130220060116_create_values.rb +0 -9
  91. data/db/migrate/20130220060116_create_values.rb~ +0 -8
  92. data/db/migrate/20130220060206_create_scores.rb +0 -9
  93. data/db/migrate/20130220060258_create_teams.rb +0 -8
  94. data/db/migrate/20130220060347_create_team_values.rb +0 -9
  95. data/db/migrate/20130220060347_create_team_values.rb~ +0 -10
  96. data/db/migrate/20130220060427_create_roles.rb +0 -8
  97. data/db/migrate/20130220060605_create_evaluation_periods.rb +0 -10
  98. data/db/migrate/20130220060807_create_evaluation_intervals.rb +0 -9
  99. data/db/migrate/20130220060902_create_interval_formats.rb +0 -9
  100. data/db/migrate/20130220061022_create_user_histories.rb +0 -13
  101. data/db/migrate/20130220061242_create_evaluations.rb +0 -16
  102. data/db/migrate/20130305063738_create_user_roles.rb +0 -9
  103. data/db/migrate/20130305091849_create_employees.rb +0 -12
  104. data/db/migrate/20130305144125_create_employee_heirarchies.rb +0 -13
  105. data/db/migrate/20130305150244_add_foreign_keys_to_employee_heirarchies.rb +0 -6
  106. data/db/migrate/20130307035139_addmanagerid_to_evaluations.rb +0 -9
  107. data/db/schema.rb +0 -175
  108. data/db/seeds.rb +0 -7
  109. data/doc/README_FOR_APP +0 -2
  110. data/lib/assets/.gitkeep +0 -0
  111. data/lib/tasks/.gitkeep +0 -0
  112. data/log/.gitkeep +0 -0
  113. data/public/404.html +0 -26
  114. data/public/422.html +0 -26
  115. data/public/500.html +0 -25
  116. data/public/favicon.ico +0 -0
  117. data/public/robots.txt +0 -5
  118. data/script/rails +0 -6
  119. data/test/fixtures/.gitkeep +0 -0
  120. data/test/fixtures/evaluation_intervals.yml +0 -9
  121. data/test/fixtures/evaluation_periods.yml +0 -11
  122. data/test/fixtures/evaluations.yml +0 -19
  123. data/test/fixtures/interval_formats.yml +0 -7
  124. data/test/fixtures/roles.yml +0 -7
  125. data/test/fixtures/scores.yml +0 -9
  126. data/test/fixtures/team_values.yml +0 -9
  127. data/test/fixtures/teams.yml +0 -9
  128. data/test/fixtures/user_histories.yml +0 -15
  129. data/test/fixtures/users.yml +0 -11
  130. data/test/fixtures/values.yml +0 -7
  131. data/test/functional/.gitkeep +0 -0
  132. data/test/functional/employee_heirarchies_controller_test.rb +0 -7
  133. data/test/functional/evaluations_controller_test.rb +0 -7
  134. data/test/integration/.gitkeep +0 -0
  135. data/test/performance/browsing_test.rb +0 -12
  136. data/test/test_helper.rb +0 -13
  137. data/test/unit/.gitkeep +0 -0
  138. data/test/unit/evaluation_interval_test.rb +0 -7
  139. data/test/unit/evaluation_period_test.rb +0 -7
  140. data/test/unit/evaluation_test.rb +0 -7
  141. data/test/unit/helpers/employee_heirarchies_helper_test.rb +0 -4
  142. data/test/unit/helpers/evaluations_helper_test.rb +0 -4
  143. data/test/unit/interval_format_test.rb +0 -7
  144. data/test/unit/role_test.rb +0 -7
  145. data/test/unit/score_test.rb +0 -7
  146. data/test/unit/team_test.rb +0 -7
  147. data/test/unit/team_value_test.rb +0 -7
  148. data/test/unit/user_history_test.rb +0 -7
  149. data/test/unit/user_test.rb +0 -7
  150. data/test/unit/value_test.rb +0 -7
  151. data/vendor/assets/javascripts/.gitkeep +0 -0
  152. data/vendor/assets/stylesheets/.gitkeep +0 -0
  153. data/vendor/plugins/.gitkeep +0 -0
data/.gitignore CHANGED
@@ -1,15 +1,17 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile ~/.gitignore_global
6
-
7
- # Ignore bundler config
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
-
13
- # Ignore all logfiles and tempfiles.
14
- /log/*.log
15
- /tmp
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile CHANGED
@@ -1,49 +1,4 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '3.2.11'
4
-
5
- # Bundle edge Rails instead:
6
- # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
-
8
- gem 'mysql2'
9
- gem 'therubyracer'
10
- gem 'devise'
11
- gem 'cancan'
12
- gem 'rails_admin'
13
-
14
- gem 'foreigner'
15
-
16
- group :test,:development do
17
- gem 'rspec-rails'
18
- end
19
-
20
-
21
-
22
- # Gems used only for assets and not required
23
- # in production environments by default.
24
- group :assets do
25
- gem 'sass-rails', '~> 3.2.3'
26
- gem 'coffee-rails', '~> 3.2.1'
27
-
28
- # See https://github.com/sstephenson/execjs#readme for more supported runtimes
29
- # gem 'therubyracer', :platforms => :ruby
30
-
31
- gem 'uglifier', '>= 1.0.3'
32
- end
33
-
34
- gem 'jquery-rails'
35
-
36
- # To use ActiveModel has_secure_password
37
- # gem 'bcrypt-ruby', '~> 3.0.0'
38
-
39
- # To use Jbuilder templates for JSON
40
- # gem 'jbuilder'
41
-
42
- # Use unicorn as the app server
43
- # gem 'unicorn'
44
-
45
- # Deploy with Capistrano
46
- # gem 'capistrano'
47
-
48
- # To use debugger
49
- # gem 'debugger'
3
+ # Specify your gem's dependencies in multiinsert.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 TODO: Write your name
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,4 +1,29 @@
1
- emp_perf_management
2
- ===================
1
+ # Multiinsert
3
2
 
4
- This can be used to manage employee performance
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'multiinsert'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install multiinsert
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1,7 +1 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- EmployPerf::Application.load_tasks
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,38 @@
1
+ require "multiinsert/version"
2
+
3
+ module Multiinsert
4
+
5
+ class SaveRecords
6
+
7
+ # prepend the name of the model with a hyphen and append the id with a hyphen like book-author-1
8
+ def save(params,name_of_model,mode)
9
+ model_records = params.select{|param| param.match(/^#{name_of_model}/)}
10
+
11
+ value_ids = model_records.keys.collect{|rec| rec.split("-")[2]}.uniq!
12
+ @mod = instantiate_model(name_of_model)
13
+ @saved = false
14
+
15
+ value_ids.each do |item_id|
16
+ @mod = @mod.class.find(item_id) if mode == "update"
17
+ model_records.each do |the_model|
18
+ if the_model.first.split("-")[2] == item_id
19
+ @mod[the_model.first.split("-")[1]] = the_model.last.split.join
20
+ else
21
+ break if !@saved
22
+ end
23
+ end
24
+ saved = @mod.save
25
+ @mod = instantiate_model(name_of_model)
26
+ @saved = true
27
+ saved
28
+ end
29
+ end
30
+
31
+ def instantiate_model model
32
+ model.camelize.constantize.new
33
+ end
34
+
35
+ end
36
+
37
+
38
+ end
@@ -0,0 +1,3 @@
1
+ module Multiinsert
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'multiinsert/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "multiinsert"
8
+ spec.version = Multiinsert::VERSION
9
+ spec.authors = ["anjana nair"]
10
+ spec.email = ["anjana.arun@revenuemed.com"]
11
+ spec.description = %q{Inserting and updating multiple records for a model}
12
+ spec.summary = %q{Inserting and updating multiple records for a model on saving a form}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiinsert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,7 +43,7 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: Inserting multiple records for a model
46
+ description: Inserting and updating multiple records for a model
47
47
  email:
48
48
  - anjana.arun@revenuemed.com
49
49
  executables: []
@@ -52,152 +52,12 @@ extra_rdoc_files: []
52
52
  files:
53
53
  - .gitignore
54
54
  - Gemfile
55
- - Gemfile.lock
55
+ - LICENSE.txt
56
56
  - README.md
57
- - README.rdoc
58
57
  - Rakefile
59
- - app/assets/images/Dashboard.jpg
60
- - app/assets/images/black.png
61
- - app/assets/images/giff.gif
62
- - app/assets/images/rails.png
63
- - app/assets/images/sprites.png
64
- - app/assets/javascripts/application.js
65
- - app/assets/javascripts/effects.js
66
- - app/assets/javascripts/evaluations.js.coffee
67
- - app/assets/javascripts/tabs_old.js
68
- - app/assets/stylesheets/application.css
69
- - app/assets/stylesheets/evaluations.css.scss
70
- - app/assets/stylesheets/style.css
71
- - app/assets/stylesheets/tab.css
72
- - app/controllers/application_controller.rb
73
- - app/controllers/employee_heirarchies_controller.rb
74
- - app/controllers/evaluations_controller.rb
75
- - app/controllers/sessions_controller.rb
76
- - app/helpers/application_helper.rb
77
- - app/helpers/employee_heirarchies_helper.rb
78
- - app/helpers/evaluations_helper.rb
79
- - app/mailers/.gitkeep
80
- - app/models/.gitkeep
81
- - app/models/employee.rb
82
- - app/models/employee_heirarchy.rb
83
- - app/models/evaluation.rb
84
- - app/models/evaluation_interval.rb
85
- - app/models/evaluation_period.rb
86
- - app/models/interval_format.rb
87
- - app/models/role.rb
88
- - app/models/score.rb
89
- - app/models/team.rb
90
- - app/models/team.rb~
91
- - app/models/team_value.rb
92
- - app/models/user.rb
93
- - app/models/user.rb~
94
- - app/models/user_history.rb
95
- - app/models/user_role.rb
96
- - app/models/value.rb
97
- - app/models/value.rb~
98
- - app/views/devise/confirmations/new.html.erb
99
- - app/views/devise/mailer/confirmation_instructions.html.erb
100
- - app/views/devise/mailer/reset_password_instructions.html.erb
101
- - app/views/devise/mailer/unlock_instructions.html.erb
102
- - app/views/devise/passwords/edit.html.erb
103
- - app/views/devise/passwords/new.html.erb
104
- - app/views/devise/registrations/edit.html.erb
105
- - app/views/devise/registrations/new.html.erb
106
- - app/views/devise/sessions/new.html.erb
107
- - app/views/devise/shared/_links.erb
108
- - app/views/devise/unlocks/new.html.erb
109
- - app/views/evaluations/edit.html.erb
110
- - app/views/evaluations/first.html.erb
111
- - app/views/evaluations/index.html.erb
112
- - app/views/evaluations/new.html.erb
113
- - app/views/evaluations/show.html.erb
114
- - app/views/layouts/application.html.erb
115
- - config.ru
116
- - config/application.rb
117
- - config/boot.rb
118
- - config/database.yml
119
- - config/database.yml~
120
- - config/environment.rb
121
- - config/environments/development.rb
122
- - config/environments/production.rb
123
- - config/environments/test.rb
124
- - config/initializers/backtrace_silencers.rb
125
- - config/initializers/devise.rb
126
- - config/initializers/inflections.rb
127
- - config/initializers/mime_types.rb
128
- - config/initializers/rails_admin.rb
129
- - config/initializers/secret_token.rb
130
- - config/initializers/session_store.rb
131
- - config/initializers/wrap_parameters.rb
132
- - config/locales/devise.en.yml
133
- - config/locales/en.yml
134
- - config/routes.rb
135
- - db/migrate/20130220053413_devise_create_users.rb
136
- - db/migrate/20130220055237_create_rails_admin_histories_table.rb
137
- - db/migrate/20130220060116_create_values.rb
138
- - db/migrate/20130220060116_create_values.rb~
139
- - db/migrate/20130220060206_create_scores.rb
140
- - db/migrate/20130220060258_create_teams.rb
141
- - db/migrate/20130220060347_create_team_values.rb
142
- - db/migrate/20130220060347_create_team_values.rb~
143
- - db/migrate/20130220060427_create_roles.rb
144
- - db/migrate/20130220060605_create_evaluation_periods.rb
145
- - db/migrate/20130220060807_create_evaluation_intervals.rb
146
- - db/migrate/20130220060902_create_interval_formats.rb
147
- - db/migrate/20130220061022_create_user_histories.rb
148
- - db/migrate/20130220061242_create_evaluations.rb
149
- - db/migrate/20130305063738_create_user_roles.rb
150
- - db/migrate/20130305091849_create_employees.rb
151
- - db/migrate/20130305144125_create_employee_heirarchies.rb
152
- - db/migrate/20130305150244_add_foreign_keys_to_employee_heirarchies.rb
153
- - db/migrate/20130307035139_addmanagerid_to_evaluations.rb
154
- - db/schema.rb
155
- - db/seeds.rb
156
- - doc/README_FOR_APP
157
- - lib/assets/.gitkeep
158
- - lib/tasks/.gitkeep
159
- - log/.gitkeep
160
- - public/404.html
161
- - public/422.html
162
- - public/500.html
163
- - public/favicon.ico
164
- - public/robots.txt
165
- - script/rails
166
- - test/fixtures/.gitkeep
167
- - test/fixtures/evaluation_intervals.yml
168
- - test/fixtures/evaluation_periods.yml
169
- - test/fixtures/evaluations.yml
170
- - test/fixtures/interval_formats.yml
171
- - test/fixtures/roles.yml
172
- - test/fixtures/scores.yml
173
- - test/fixtures/team_values.yml
174
- - test/fixtures/teams.yml
175
- - test/fixtures/user_histories.yml
176
- - test/fixtures/users.yml
177
- - test/fixtures/values.yml
178
- - test/functional/.gitkeep
179
- - test/functional/employee_heirarchies_controller_test.rb
180
- - test/functional/evaluations_controller_test.rb
181
- - test/integration/.gitkeep
182
- - test/performance/browsing_test.rb
183
- - test/test_helper.rb
184
- - test/unit/.gitkeep
185
- - test/unit/evaluation_interval_test.rb
186
- - test/unit/evaluation_period_test.rb
187
- - test/unit/evaluation_test.rb
188
- - test/unit/helpers/employee_heirarchies_helper_test.rb
189
- - test/unit/helpers/evaluations_helper_test.rb
190
- - test/unit/interval_format_test.rb
191
- - test/unit/role_test.rb
192
- - test/unit/score_test.rb
193
- - test/unit/team_test.rb
194
- - test/unit/team_value_test.rb
195
- - test/unit/user_history_test.rb
196
- - test/unit/user_test.rb
197
- - test/unit/value_test.rb
198
- - vendor/assets/javascripts/.gitkeep
199
- - vendor/assets/stylesheets/.gitkeep
200
- - vendor/plugins/.gitkeep
58
+ - lib/multiinsert.rb
59
+ - lib/multiinsert/version.rb
60
+ - multiinsert.gemspec
201
61
  homepage: ''
202
62
  licenses:
203
63
  - MIT
@@ -222,37 +82,5 @@ rubyforge_project:
222
82
  rubygems_version: 1.8.25
223
83
  signing_key:
224
84
  specification_version: 3
225
- summary: Inserting multiple records for a model on saving a form
226
- test_files:
227
- - test/fixtures/.gitkeep
228
- - test/fixtures/evaluation_intervals.yml
229
- - test/fixtures/evaluation_periods.yml
230
- - test/fixtures/evaluations.yml
231
- - test/fixtures/interval_formats.yml
232
- - test/fixtures/roles.yml
233
- - test/fixtures/scores.yml
234
- - test/fixtures/team_values.yml
235
- - test/fixtures/teams.yml
236
- - test/fixtures/user_histories.yml
237
- - test/fixtures/users.yml
238
- - test/fixtures/values.yml
239
- - test/functional/.gitkeep
240
- - test/functional/employee_heirarchies_controller_test.rb
241
- - test/functional/evaluations_controller_test.rb
242
- - test/integration/.gitkeep
243
- - test/performance/browsing_test.rb
244
- - test/test_helper.rb
245
- - test/unit/.gitkeep
246
- - test/unit/evaluation_interval_test.rb
247
- - test/unit/evaluation_period_test.rb
248
- - test/unit/evaluation_test.rb
249
- - test/unit/helpers/employee_heirarchies_helper_test.rb
250
- - test/unit/helpers/evaluations_helper_test.rb
251
- - test/unit/interval_format_test.rb
252
- - test/unit/role_test.rb
253
- - test/unit/score_test.rb
254
- - test/unit/team_test.rb
255
- - test/unit/team_value_test.rb
256
- - test/unit/user_history_test.rb
257
- - test/unit/user_test.rb
258
- - test/unit/value_test.rb
85
+ summary: Inserting and updating multiple records for a model on saving a form
86
+ test_files: []
@@ -1,182 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- actionmailer (3.2.11)
5
- actionpack (= 3.2.11)
6
- mail (~> 2.4.4)
7
- actionpack (3.2.11)
8
- activemodel (= 3.2.11)
9
- activesupport (= 3.2.11)
10
- builder (~> 3.0.0)
11
- erubis (~> 2.7.0)
12
- journey (~> 1.0.4)
13
- rack (~> 1.4.0)
14
- rack-cache (~> 1.2)
15
- rack-test (~> 0.6.1)
16
- sprockets (~> 2.2.1)
17
- activemodel (3.2.11)
18
- activesupport (= 3.2.11)
19
- builder (~> 3.0.0)
20
- activerecord (3.2.11)
21
- activemodel (= 3.2.11)
22
- activesupport (= 3.2.11)
23
- arel (~> 3.0.2)
24
- tzinfo (~> 0.3.29)
25
- activeresource (3.2.11)
26
- activemodel (= 3.2.11)
27
- activesupport (= 3.2.11)
28
- activesupport (3.2.11)
29
- i18n (~> 0.6)
30
- multi_json (~> 1.0)
31
- arel (3.0.2)
32
- bcrypt-ruby (3.0.1)
33
- bootstrap-sass (2.3.0.0)
34
- sass (~> 3.2)
35
- builder (3.0.4)
36
- cancan (1.6.9)
37
- coffee-rails (3.2.2)
38
- coffee-script (>= 2.2.0)
39
- railties (~> 3.2.0)
40
- coffee-script (2.2.0)
41
- coffee-script-source
42
- execjs
43
- coffee-script-source (1.4.0)
44
- devise (2.2.3)
45
- bcrypt-ruby (~> 3.0)
46
- orm_adapter (~> 0.1)
47
- railties (~> 3.1)
48
- warden (~> 1.2.1)
49
- diff-lcs (1.2.1)
50
- erubis (2.7.0)
51
- execjs (1.4.0)
52
- multi_json (~> 1.0)
53
- font-awesome-sass-rails (3.0.2.1)
54
- railties (>= 3.1.1)
55
- sass-rails (>= 3.1.1)
56
- foreigner (1.4.0)
57
- activerecord (>= 3.0.0)
58
- haml (4.0.0)
59
- tilt
60
- hike (1.2.1)
61
- i18n (0.6.1)
62
- journey (1.0.4)
63
- jquery-rails (2.2.1)
64
- railties (>= 3.0, < 5.0)
65
- thor (>= 0.14, < 2.0)
66
- jquery-ui-rails (3.0.1)
67
- jquery-rails
68
- railties (>= 3.1.0)
69
- json (1.7.7)
70
- kaminari (0.14.1)
71
- actionpack (>= 3.0.0)
72
- activesupport (>= 3.0.0)
73
- libv8 (3.11.8.13)
74
- mail (2.4.4)
75
- i18n (>= 0.4.0)
76
- mime-types (~> 1.16)
77
- treetop (~> 1.4.8)
78
- mime-types (1.21)
79
- multi_json (1.6.1)
80
- mysql2 (0.3.11)
81
- nested_form (0.3.1)
82
- nokogiri (1.5.6)
83
- orm_adapter (0.4.0)
84
- polyglot (0.3.3)
85
- rack (1.4.5)
86
- rack-cache (1.2)
87
- rack (>= 0.4)
88
- rack-pjax (0.7.0)
89
- nokogiri (~> 1.5)
90
- rack (~> 1.3)
91
- rack-ssl (1.3.3)
92
- rack
93
- rack-test (0.6.2)
94
- rack (>= 1.0)
95
- rails (3.2.11)
96
- actionmailer (= 3.2.11)
97
- actionpack (= 3.2.11)
98
- activerecord (= 3.2.11)
99
- activeresource (= 3.2.11)
100
- activesupport (= 3.2.11)
101
- bundler (~> 1.0)
102
- railties (= 3.2.11)
103
- rails_admin (0.4.5)
104
- bootstrap-sass (~> 2.2)
105
- builder (~> 3.0)
106
- coffee-rails (~> 3.1)
107
- font-awesome-sass-rails (~> 3.0, >= 3.0.0.1)
108
- haml (~> 4.0)
109
- jquery-rails (~> 2.1)
110
- jquery-ui-rails (~> 3.0)
111
- kaminari (~> 0.14)
112
- nested_form (~> 0.3)
113
- rack-pjax (~> 0.6)
114
- rails (~> 3.1)
115
- remotipart (~> 1.0)
116
- safe_yaml (~> 0.6)
117
- sass-rails (~> 3.1)
118
- railties (3.2.11)
119
- actionpack (= 3.2.11)
120
- activesupport (= 3.2.11)
121
- rack-ssl (~> 1.3.2)
122
- rake (>= 0.8.7)
123
- rdoc (~> 3.4)
124
- thor (>= 0.14.6, < 2.0)
125
- rake (10.0.3)
126
- rdoc (3.12.1)
127
- json (~> 1.4)
128
- ref (1.0.2)
129
- remotipart (1.0.5)
130
- rspec-core (2.13.1)
131
- rspec-expectations (2.13.0)
132
- diff-lcs (>= 1.1.3, < 2.0)
133
- rspec-mocks (2.13.0)
134
- rspec-rails (2.13.0)
135
- actionpack (>= 3.0)
136
- activesupport (>= 3.0)
137
- railties (>= 3.0)
138
- rspec-core (~> 2.13.0)
139
- rspec-expectations (~> 2.13.0)
140
- rspec-mocks (~> 2.13.0)
141
- safe_yaml (0.8.2)
142
- sass (3.2.5)
143
- sass-rails (3.2.6)
144
- railties (~> 3.2.0)
145
- sass (>= 3.1.10)
146
- tilt (~> 1.3)
147
- sprockets (2.2.2)
148
- hike (~> 1.2)
149
- multi_json (~> 1.0)
150
- rack (~> 1.0)
151
- tilt (~> 1.1, != 1.3.0)
152
- therubyracer (0.11.3)
153
- libv8 (~> 3.11.8.12)
154
- ref
155
- thor (0.17.0)
156
- tilt (1.3.3)
157
- treetop (1.4.12)
158
- polyglot
159
- polyglot (>= 0.3.1)
160
- tzinfo (0.3.35)
161
- uglifier (1.3.0)
162
- execjs (>= 0.3.0)
163
- multi_json (~> 1.0, >= 1.0.2)
164
- warden (1.2.1)
165
- rack (>= 1.0)
166
-
167
- PLATFORMS
168
- ruby
169
-
170
- DEPENDENCIES
171
- cancan
172
- coffee-rails (~> 3.2.1)
173
- devise
174
- foreigner
175
- jquery-rails
176
- mysql2
177
- rails (= 3.2.11)
178
- rails_admin
179
- rspec-rails
180
- sass-rails (~> 3.2.3)
181
- therubyracer
182
- uglifier (>= 1.0.3)