upmin-admin 0.0.38 → 0.0.39

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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +71 -0
  3. data/Rakefile +66 -23
  4. data/app/assets/stylesheets/upmin/actions.css.scss +6 -0
  5. data/app/assets/stylesheets/upmin/attributes.css.scss +0 -1
  6. data/app/assets/stylesheets/upmin/base.css.scss +18 -0
  7. data/app/controllers/upmin/models_controller.rb +62 -3
  8. data/app/views/upmin/models/new.html.haml +21 -0
  9. data/app/views/upmin/models/search.html.haml +6 -1
  10. data/app/views/upmin/models/show.html.haml +2 -2
  11. data/app/views/upmin/partials/actions/_action.html.haml +13 -2
  12. data/app/views/upmin/partials/attributes/_nilable.html.haml +14 -0
  13. data/app/views/upmin/partials/models/_model.html.haml +7 -2
  14. data/app/views/upmin/partials/models/_new_model.html.haml +44 -0
  15. data/config/routes.rb +5 -2
  16. data/lib/upmin/admin.rb +2 -0
  17. data/lib/upmin/klass.rb +5 -0
  18. data/lib/upmin/model.rb +4 -0
  19. data/lib/upmin/paginator.rb +1 -1
  20. data/lib/upmin/railties/active_record.rb +8 -7
  21. data/lib/upmin/railties/render_helpers.rb +6 -4
  22. data/lib/upmin/version.rb +1 -1
  23. data/spec/factories/factories.rb +16 -0
  24. data/spec/features/action_spec.rb +68 -0
  25. data/spec/features/edit_model_spec.rb +74 -0
  26. data/spec/features/new_model_spec.rb +68 -0
  27. data/spec/features/search_spec.rb +77 -0
  28. data/spec/spec_helper.rb +51 -0
  29. metadata +91 -78
  30. data/test/controllers/upmin/model_controller_test.rb +0 -11
  31. data/test/dummy/README.rdoc +0 -28
  32. data/test/dummy/Rakefile +0 -6
  33. data/test/dummy/app/assets/javascripts/application.js +0 -13
  34. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  35. data/test/dummy/app/controllers/application_controller.rb +0 -5
  36. data/test/dummy/app/helpers/application_helper.rb +0 -2
  37. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  38. data/test/dummy/bin/bundle +0 -3
  39. data/test/dummy/bin/rails +0 -4
  40. data/test/dummy/bin/rake +0 -4
  41. data/test/dummy/config.ru +0 -4
  42. data/test/dummy/config/application.rb +0 -23
  43. data/test/dummy/config/boot.rb +0 -5
  44. data/test/dummy/config/database.yml +0 -25
  45. data/test/dummy/config/environment.rb +0 -5
  46. data/test/dummy/config/environments/development.rb +0 -37
  47. data/test/dummy/config/environments/production.rb +0 -83
  48. data/test/dummy/config/environments/test.rb +0 -39
  49. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  50. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  51. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  52. data/test/dummy/config/initializers/inflections.rb +0 -16
  53. data/test/dummy/config/initializers/mime_types.rb +0 -4
  54. data/test/dummy/config/initializers/session_store.rb +0 -3
  55. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  56. data/test/dummy/config/locales/en.yml +0 -23
  57. data/test/dummy/config/routes.rb +0 -4
  58. data/test/dummy/config/secrets.yml +0 -22
  59. data/test/dummy/public/404.html +0 -67
  60. data/test/dummy/public/422.html +0 -67
  61. data/test/dummy/public/500.html +0 -66
  62. data/test/dummy/public/favicon.ico +0 -0
  63. data/test/helpers/upmin/model_helper_test.rb +0 -6
  64. data/test/integration/navigation_test.rb +0 -10
  65. data/test/test_helper.rb +0 -15
  66. data/test/upmin_test.rb +0 -7
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upmin-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Calhoun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-16 00:00:00.000000000 Z
12
+ date: 2014-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -95,13 +95,84 @@ dependencies:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
- description: Customizable admin dashbaords generated with only a few lines of code.
98
+ - !ruby/object:Gem::Dependency
99
+ name: capybara
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rspec-rails
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: factory_girl_rails
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: launchy
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: database_cleaner
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ description: Customizable admin dashboards generated with only a few lines of code.
99
169
  email:
100
- - dev@upmin.com
170
+ - support@upmin.com
101
171
  executables: []
102
172
  extensions: []
103
173
  extra_rdoc_files: []
104
174
  files:
175
+ - README.md
105
176
  - Rakefile
106
177
  - app/assets/images/upmin/logo_large.png
107
178
  - app/assets/images/upmin/logo_small.png
@@ -112,6 +183,7 @@ files:
112
183
  - app/assets/javascripts/upmin/models.js
113
184
  - app/assets/javascripts/upmin/moment.js
114
185
  - app/assets/javascripts/upmin/pikaday.js
186
+ - app/assets/stylesheets/upmin/actions.css.scss
115
187
  - app/assets/stylesheets/upmin/application.css
116
188
  - app/assets/stylesheets/upmin/attributes.css.scss
117
189
  - app/assets/stylesheets/upmin/base.css.scss
@@ -129,6 +201,7 @@ files:
129
201
  - app/views/layouts/upmin/_navbar.html.haml
130
202
  - app/views/layouts/upmin/application.html.haml
131
203
  - app/views/upmin/models/dashboard.html.haml
204
+ - app/views/upmin/models/new.html.haml
132
205
  - app/views/upmin/models/search.html.haml
133
206
  - app/views/upmin/models/show.html.haml
134
207
  - app/views/upmin/partials/actions/_action.html.haml
@@ -137,11 +210,13 @@ files:
137
210
  - app/views/upmin/partials/attributes/_datetime.html.haml
138
211
  - app/views/upmin/partials/attributes/_float.html.haml
139
212
  - app/views/upmin/partials/attributes/_integer.html.haml
213
+ - app/views/upmin/partials/attributes/_nilable.html.haml
140
214
  - app/views/upmin/partials/attributes/_progress_bar.html.haml
141
215
  - app/views/upmin/partials/attributes/_string.html.haml
142
216
  - app/views/upmin/partials/attributes/_text.html.haml
143
217
  - app/views/upmin/partials/attributes/_unknown.html.haml
144
218
  - app/views/upmin/partials/models/_model.html.haml
219
+ - app/views/upmin/partials/models/_new_model.html.haml
145
220
  - app/views/upmin/partials/search_boxes/_ransack_search_box.html.haml
146
221
  - app/views/upmin/partials/search_results/_result.html.haml
147
222
  - app/views/upmin/partials/search_results/_results.html.haml
@@ -160,43 +235,12 @@ files:
160
235
  - lib/upmin/railties/render.rb
161
236
  - lib/upmin/railties/render_helpers.rb
162
237
  - lib/upmin/version.rb
163
- - test/controllers/upmin/model_controller_test.rb
164
- - test/dummy/README.rdoc
165
- - test/dummy/Rakefile
166
- - test/dummy/app/assets/javascripts/application.js
167
- - test/dummy/app/assets/stylesheets/application.css
168
- - test/dummy/app/controllers/application_controller.rb
169
- - test/dummy/app/helpers/application_helper.rb
170
- - test/dummy/app/views/layouts/application.html.erb
171
- - test/dummy/bin/bundle
172
- - test/dummy/bin/rails
173
- - test/dummy/bin/rake
174
- - test/dummy/config.ru
175
- - test/dummy/config/application.rb
176
- - test/dummy/config/boot.rb
177
- - test/dummy/config/database.yml
178
- - test/dummy/config/environment.rb
179
- - test/dummy/config/environments/development.rb
180
- - test/dummy/config/environments/production.rb
181
- - test/dummy/config/environments/test.rb
182
- - test/dummy/config/initializers/backtrace_silencers.rb
183
- - test/dummy/config/initializers/cookies_serializer.rb
184
- - test/dummy/config/initializers/filter_parameter_logging.rb
185
- - test/dummy/config/initializers/inflections.rb
186
- - test/dummy/config/initializers/mime_types.rb
187
- - test/dummy/config/initializers/session_store.rb
188
- - test/dummy/config/initializers/wrap_parameters.rb
189
- - test/dummy/config/locales/en.yml
190
- - test/dummy/config/routes.rb
191
- - test/dummy/config/secrets.yml
192
- - test/dummy/public/404.html
193
- - test/dummy/public/422.html
194
- - test/dummy/public/500.html
195
- - test/dummy/public/favicon.ico
196
- - test/helpers/upmin/model_helper_test.rb
197
- - test/integration/navigation_test.rb
198
- - test/test_helper.rb
199
- - test/upmin_test.rb
238
+ - spec/factories/factories.rb
239
+ - spec/features/action_spec.rb
240
+ - spec/features/edit_model_spec.rb
241
+ - spec/features/new_model_spec.rb
242
+ - spec/features/search_spec.rb
243
+ - spec/spec_helper.rb
200
244
  homepage: https://www.upmin.com/admin-rails
201
245
  licenses:
202
246
  - MIT
@@ -222,40 +266,9 @@ signing_key:
222
266
  specification_version: 4
223
267
  summary: Quick and Easy Admin Dashboards
224
268
  test_files:
225
- - test/controllers/upmin/model_controller_test.rb
226
- - test/dummy/app/assets/javascripts/application.js
227
- - test/dummy/app/assets/stylesheets/application.css
228
- - test/dummy/app/controllers/application_controller.rb
229
- - test/dummy/app/helpers/application_helper.rb
230
- - test/dummy/app/views/layouts/application.html.erb
231
- - test/dummy/bin/bundle
232
- - test/dummy/bin/rails
233
- - test/dummy/bin/rake
234
- - test/dummy/config/application.rb
235
- - test/dummy/config/boot.rb
236
- - test/dummy/config/database.yml
237
- - test/dummy/config/environment.rb
238
- - test/dummy/config/environments/development.rb
239
- - test/dummy/config/environments/production.rb
240
- - test/dummy/config/environments/test.rb
241
- - test/dummy/config/initializers/backtrace_silencers.rb
242
- - test/dummy/config/initializers/cookies_serializer.rb
243
- - test/dummy/config/initializers/filter_parameter_logging.rb
244
- - test/dummy/config/initializers/inflections.rb
245
- - test/dummy/config/initializers/mime_types.rb
246
- - test/dummy/config/initializers/session_store.rb
247
- - test/dummy/config/initializers/wrap_parameters.rb
248
- - test/dummy/config/locales/en.yml
249
- - test/dummy/config/routes.rb
250
- - test/dummy/config/secrets.yml
251
- - test/dummy/config.ru
252
- - test/dummy/public/404.html
253
- - test/dummy/public/422.html
254
- - test/dummy/public/500.html
255
- - test/dummy/public/favicon.ico
256
- - test/dummy/Rakefile
257
- - test/dummy/README.rdoc
258
- - test/helpers/upmin/model_helper_test.rb
259
- - test/integration/navigation_test.rb
260
- - test/test_helper.rb
261
- - test/upmin_test.rb
269
+ - spec/factories/factories.rb
270
+ - spec/features/action_spec.rb
271
+ - spec/features/edit_model_spec.rb
272
+ - spec/features/new_model_spec.rb
273
+ - spec/features/search_spec.rb
274
+ - spec/spec_helper.rb
@@ -1,11 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Upmin
4
- class ModelControllerTest < ActionController::TestCase
5
- test "should get updated_since" do
6
- get :updated_since
7
- assert_response :success
8
- end
9
-
10
- end
11
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,23 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "upmin"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
- # config.time_zone = 'Central Time (US & Canada)'
17
-
18
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
- # config.i18n.default_locale = :de
21
- end
22
- end
23
-
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- #
7
- default: &default
8
- adapter: sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- development:
13
- <<: *default
14
- database: db/development.sqlite3
15
-
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
- test:
20
- <<: *default
21
- database: db/test.sqlite3
22
-
23
- production:
24
- <<: *default
25
- database: db/production.sqlite3
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,37 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations.
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = true
29
-
30
- # Adds additional error checking when serving assets at runtime.
31
- # Checks for improperly declared sprockets dependencies.
32
- # Raises helpful error messages.
33
- config.assets.raise_runtime_errors = true
34
-
35
- # Raises error for missing translations
36
- # config.action_view.raise_on_missing_translations = true
37
- end