carnival 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-regular-webfont.eot +0 -0
  2. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-regular-webfont.svg +0 -0
  3. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-regular-webfont.ttf +0 -0
  4. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-regular-webfont.woff +0 -0
  5. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-semibold-webfont.eot +0 -0
  6. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-semibold-webfont.svg +0 -0
  7. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-semibold-webfont.ttf +0 -0
  8. data/app/assets/{images/carnival/fonts → fonts/carnival}/opensans-semibold-webfont.woff +0 -0
  9. data/app/assets/{images/carnival/fonts → fonts/carnival}/up-not.png +0 -0
  10. data/app/assets/javascripts/carnival/{vizir_admin.js → vizir_admin.js.erb} +44 -18
  11. data/app/assets/stylesheets/carnival/actions.css.scss +3 -7
  12. data/app/assets/stylesheets/carnival/carnival-table.css.scss +12 -3
  13. data/app/assets/stylesheets/carnival/forms.css.scss +1 -0
  14. data/app/assets/stylesheets/carnival/menu.css.scss +3 -3
  15. data/app/assets/stylesheets/carnival/period.css.scss +1 -1
  16. data/app/assets/stylesheets/carnival/search.css.scss +9 -6
  17. data/app/assets/stylesheets/carnival/structure.css.scss +10 -10
  18. data/app/controllers/carnival/base_admin_controller.rb +37 -57
  19. data/app/helpers/carnival/base_admin_helper.rb +52 -70
  20. data/app/inputs/admin_date_input.rb +2 -1
  21. data/app/models/carnival/batch_action.rb +1 -2
  22. data/app/models/carnival/field.rb +3 -2
  23. data/app/presenters/carnival/base_admin_presenter.rb +47 -192
  24. data/app/presenters/carnival/dsl.rb +55 -0
  25. data/app/services/carnival/klass_service.rb +5 -1
  26. data/app/services/carnival/presenters/advanced_search_parser.rb +4 -5
  27. data/app/services/carnival/query_service.rb +15 -24
  28. data/app/view_objects/carnival/paginator.rb +10 -12
  29. data/app/view_objects/carnival/thead_renderer.rb +11 -18
  30. data/app/views/carnival/base_admin/_index_as_table.html.haml +6 -4
  31. data/app/views/carnival/base_admin/index.html.haml +8 -4
  32. data/app/views/carnival/shared/_advanced_search.html.haml +6 -5
  33. data/app/views/carnival/shared/form/_form.html.haml +3 -2
  34. data/config/locales/carnival.en.yml +13 -5
  35. data/config/locales/carnival.pt-br.yml +1 -1
  36. data/lib/carnival.rb +10 -12
  37. data/lib/carnival/engine.rb +3 -2
  38. data/lib/carnival/routes.rb +4 -4
  39. data/lib/carnival/version.rb +1 -1
  40. data/spec/dummy/app/controllers/admin/todo_lists_controller.rb +7 -0
  41. data/spec/dummy/app/controllers/admin/todos_controller.rb +7 -0
  42. data/spec/dummy/app/models/todo.rb +7 -0
  43. data/spec/dummy/app/models/todo_list.rb +4 -0
  44. data/spec/dummy/app/presenters/admin/todo_list_presenter.rb +13 -0
  45. data/spec/dummy/app/presenters/admin/todo_presenter.rb +32 -0
  46. data/spec/dummy/config/application.rb +3 -0
  47. data/spec/dummy/config/database.yml +1 -1
  48. data/spec/dummy/config/environments/development.rb +2 -0
  49. data/spec/dummy/config/initializers/carnival_initializer.rb +25 -0
  50. data/spec/dummy/config/locales/carnival.en.yml +28 -0
  51. data/spec/dummy/config/locales/carnival.pt-br.yml +259 -0
  52. data/spec/dummy/config/routes.rb +7 -52
  53. data/spec/dummy/db/migrate/20150316021645_create_todos.rb +10 -0
  54. data/spec/dummy/db/migrate/20150408165317_create_todo_lists.rb +8 -0
  55. data/spec/dummy/db/migrate/20150408165333_add_todo_list_relation_to_todos.rb +5 -0
  56. data/spec/dummy/db/schema.rb +32 -0
  57. data/spec/factories/todo_lists_factory.rb +5 -0
  58. data/spec/factories/todos_factory.rb +18 -0
  59. data/spec/features/create_spec.rb +28 -0
  60. data/spec/features/destroy_spec.rb +11 -0
  61. data/spec/features/index/basic_index_spec.rb +14 -0
  62. data/spec/features/index/pagination_spec.rb +19 -0
  63. data/spec/features/index/scope_spec.rb +29 -0
  64. data/spec/features/index/search_spec.rb +28 -0
  65. data/spec/features/show_spec.rb +15 -0
  66. data/spec/features/update_spec.rb +26 -0
  67. data/spec/rails_helper.rb +25 -5
  68. data/spec/support/features/index_helpers.rb +15 -0
  69. metadata +386 -284
  70. checksums.yaml +0 -7
  71. data/app/views/carnival/base_admin/index.pdf.haml +0 -13
  72. data/app/views/carnival/shared/_header.pdf.haml +0 -13
  73. data/app/views/carnival/shared/_list_cel.pdf.haml +0 -9
  74. data/app/views/carnival/shared/_report.pdf.haml +0 -21
  75. data/config/initializers/wicked_pdf.rb +0 -5
@@ -1,56 +1,11 @@
1
1
  Rails.application.routes.draw do
2
- # The priority is based upon order of creation: first created -> highest priority.
3
- # See how all your routes lay out with "rake routes".
2
+ mount_carnival_at :admin
4
3
 
5
- # You can have the root of your site routed with "root"
6
- # root 'welcome#index'
4
+ namespace :admin do
5
+ resources :posts
6
+ resources :todos
7
+ resources :todo_lists
8
+ end
7
9
 
8
- # Example of regular route:
9
- # get 'products/:id' => 'catalog#view'
10
-
11
- # Example of named route that can be invoked with purchase_url(id: product.id)
12
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
-
14
- # Example resource route (maps HTTP verbs to controller actions automatically):
15
- # resources :products
16
-
17
- # Example resource route with options:
18
- # resources :products do
19
- # member do
20
- # get 'short'
21
- # post 'toggle'
22
- # end
23
- #
24
- # collection do
25
- # get 'sold'
26
- # end
27
- # end
28
-
29
- # Example resource route with sub-resources:
30
- # resources :products do
31
- # resources :comments, :sales
32
- # resource :seller
33
- # end
34
-
35
- # Example resource route with more complex sub-resources:
36
- # resources :products do
37
- # resources :comments
38
- # resources :sales do
39
- # get 'recent', on: :collection
40
- # end
41
- # end
42
-
43
- # Example resource route with concerns:
44
- # concern :toggleable do
45
- # post 'toggle'
46
- # end
47
- # resources :posts, concerns: :toggleable
48
- # resources :photos, concerns: :toggleable
49
-
50
- # Example resource route within a namespace:
51
- # namespace :admin do
52
- # # Directs /admin/products/* to Admin::ProductsController
53
- # # (app/controllers/admin/products_controller.rb)
54
- # resources :products
55
- # end
10
+ root to: 'admin/todos#index'
56
11
  end
@@ -0,0 +1,10 @@
1
+ class CreateTodos < ActiveRecord::Migration
2
+ def change
3
+ create_table :todos do |t|
4
+ t.string :title
5
+ t.integer :status, default: 0
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ class CreateTodoLists < ActiveRecord::Migration
2
+ def change
3
+ create_table :todo_lists do |t|
4
+ t.string :name
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ class AddTodoListRelationToTodos < ActiveRecord::Migration
2
+ def change
3
+ add_reference :todos, :todo_list, index: true
4
+ end
5
+ end
@@ -0,0 +1,32 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150408165333) do
15
+
16
+ create_table "todo_lists", force: :cascade do |t|
17
+ t.string "name"
18
+ t.datetime "created_at", null: false
19
+ t.datetime "updated_at", null: false
20
+ end
21
+
22
+ create_table "todos", force: :cascade do |t|
23
+ t.string "title"
24
+ t.integer "status", default: 0
25
+ t.datetime "created_at"
26
+ t.datetime "updated_at"
27
+ t.integer "todo_list_id"
28
+ end
29
+
30
+ add_index "todos", ["todo_list_id"], name: "index_todos_on_todo_list_id"
31
+
32
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :todo_list do
3
+ sequence(:name) { |n| "Name #{n}" }
4
+ end
5
+ end
@@ -0,0 +1,18 @@
1
+ FactoryGirl.define do
2
+ factory :todo do
3
+ sequence(:title) { |n| "Titlte #{n}" }
4
+ todo_list
5
+
6
+ trait :todo do
7
+ status :todo
8
+ end
9
+
10
+ trait :doing do
11
+ status :doing
12
+ end
13
+
14
+ trait :done do
15
+ status :done
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,28 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User creates a new model' do
4
+ scenario 'successfully' do
5
+ visit admin_todos_path
6
+ todo_title = 'Refactor Carnival'
7
+ todo_status = 'todo'
8
+
9
+ within('.empty-result') { click_on 'New' }
10
+ fill_in 'todo_title', with: todo_title
11
+ select todo_status, from: 'todo_status'
12
+
13
+ expect { click_on 'Create' }.to change { Todo.count }.from(0).to(1)
14
+ expect(page).to have_text(todo_title)
15
+ expect(page).to have_text(todo_status)
16
+ end
17
+
18
+ scenario 'incompletely' do
19
+ visit admin_todos_path
20
+
21
+ within('.empty-result') { click_on 'New' }
22
+ fill_in 'todo_title', with: ''
23
+
24
+ expect { click_on 'Create' }.to_not change { Todo.count }
25
+ expect(current_path).to eq(admin_todos_path)
26
+ expect(page).to have_text('Title can\'t be blank')
27
+ end
28
+ end
@@ -0,0 +1,11 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User creates a new model' do
4
+ before { create(:todo) }
5
+
6
+ scenario 'successfully' do
7
+ visit admin_todos_path
8
+
9
+ expect { click_on 'Delete' }.to change { Todo.count }.from(1).to(0)
10
+ end
11
+ end
@@ -0,0 +1,14 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User sees existing todos' do
4
+ let!(:todos) { create_pair(:todo) }
5
+
6
+ scenario 'successfully' do
7
+ visit admin_todos_path
8
+
9
+ todos.each do |todo|
10
+ expect(page).to have_selector('td', text: todo.id)
11
+ expect(page).to have_selector('td', text: todo.title)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User paginates existing todos', js: true do
4
+ let!(:todo_count) { 51 }
5
+ let!(:todos) { create_list(:todo, todo_count) }
6
+ let!(:last_todo) { todos.last }
7
+
8
+ scenario 'successfully' do
9
+ visit admin_todos_path
10
+
11
+ expect(page).to have_text("Total: #{todo_count}")
12
+
13
+ find('a', text: 'Next »').click
14
+
15
+ expect(page).to have_selector('td', text: last_todo.id)
16
+ expect(page).to have_selector('td', text: last_todo.title)
17
+ expect(page).to have_selector('span.carnival-selected-page-button', text: '2')
18
+ end
19
+ end
@@ -0,0 +1,29 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User sees scoped data' do
4
+ let!(:todo_todos) { create_pair(:todo, :todo) }
5
+ let!(:doing_todos) { create_list(:todo, 3, :doing) }
6
+ let!(:done_todos) { create_pair(:todo, :done) }
7
+
8
+ scenario 'successfully', js: true do
9
+ visit admin_todos_path
10
+
11
+ find('a', text: 'Todo (2)').click
12
+
13
+ page_should_have_todos todo_todos
14
+ page_should_not_have_todos doing_todos
15
+ page_should_not_have_todos done_todos
16
+
17
+ find('a', text: 'Doing (3)').click
18
+
19
+ page_should_have_todos doing_todos
20
+ page_should_not_have_todos todo_todos
21
+ page_should_not_have_todos done_todos
22
+
23
+ find('a', text: 'Done (2)').click
24
+
25
+ page_should_have_todos done_todos
26
+ page_should_not_have_todos todo_todos
27
+ page_should_not_have_todos doing_todos
28
+ end
29
+ end
@@ -0,0 +1,28 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User filters existing todos', js: true do
4
+ let!(:search_todo) { create(:todo) }
5
+ let!(:missing_todo) { create(:todo) }
6
+
7
+ scenario 'successfully' do
8
+ visit admin_todos_path
9
+
10
+ click_on 'Advanced Search'
11
+ fill_in 'advanced_search[title]', with: search_todo.title
12
+ click_on 'Search'
13
+
14
+ expect(page).to have_text(search_todo.title)
15
+ expect(page).to have_no_text(missing_todo.title)
16
+ end
17
+
18
+ scenario 'User filter by todo_list name' do
19
+ visit admin_todos_path
20
+
21
+ click_on 'Advanced Search'
22
+ fill_in 'advanced_search[todo_list.name]', with: search_todo.todo_list.name
23
+ click_on 'Search'
24
+
25
+ expect(page).to have_text(search_todo.title)
26
+ expect(page).to have_no_text(missing_todo.title)
27
+ end
28
+ end
@@ -0,0 +1,15 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User sees a specific todos' do
4
+ let!(:todo) { create(:todo) }
5
+
6
+ scenario 'successfully' do
7
+ visit admin_todos_path
8
+
9
+ click_on 'View'
10
+
11
+ expect(current_path).to eq(admin_todo_path(todo.id))
12
+ expect(page).to have_text(todo.id)
13
+ expect(page).to have_text(todo.title)
14
+ end
15
+ end
@@ -0,0 +1,26 @@
1
+ require 'rails_helper'
2
+
3
+ feature 'User updates an exisint model' do
4
+ before { create(:todo) }
5
+
6
+ scenario 'successfully' do
7
+ visit admin_todos_path
8
+
9
+ new_title = 'Update Task Title'
10
+ click_on 'Edit'
11
+ fill_in 'todo_title', with: new_title
12
+
13
+ expect { click_on 'Update' }.to_not change { Todo.count }
14
+ expect(page).to have_content new_title
15
+ end
16
+
17
+ scenario 'incompletely' do
18
+ visit admin_todos_path
19
+
20
+ click_on 'Edit'
21
+ fill_in 'todo_title', with: ''
22
+
23
+ expect { click_on 'Update' }.to_not change { Todo.count }
24
+ expect(page).to have_text('Title can\'t be blank')
25
+ end
26
+ end
@@ -1,13 +1,33 @@
1
- ENV["RAILS_ENV"] ||= 'test'
1
+ ENV['RAILS_ENV'] ||= 'test'
2
2
  require 'spec_helper'
3
- require File.expand_path("../dummy/config/environment", __FILE__)
3
+ require File.expand_path('../dummy/config/environment', __FILE__)
4
+ require 'byebug'
5
+ require 'capybara-webkit'
6
+ require 'factory_girl_rails'
4
7
  require 'rspec/rails'
8
+ require 'simplecov'
9
+
10
+ Dir[File.expand_path('spec/support/**/*.rb'), __FILE__].each { |f| require f }
5
11
  ActiveRecord::Migration.maintain_test_schema!
12
+ Capybara.javascript_driver = :webkit
13
+ SimpleCov.start { add_filter 'vendor/' }
6
14
 
7
- RSpec.configure do |config|
8
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
15
+ class ActiveRecord::Base
16
+ mattr_accessor :shared_connection
17
+ @@shared_connection = nil
9
18
 
10
- config.use_transactional_fixtures = true
19
+ def self.connection
20
+ @@shared_connection || retrieve_connection
21
+ end
22
+ end
23
+ silence_stream(STDOUT) { load "#{Rails.root.join('db/schema.rb')}" }
24
+ ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
11
25
 
26
+ RSpec.configure do |config|
27
+ config.fixture_path = "#{::Rails.root}/spec/factories"
28
+ config.use_transactional_fixtures = true
12
29
  config.infer_spec_type_from_file_location!
30
+ config.include Features::IndexHelpers, type: :feature
31
+
32
+ config.include FactoryGirl::Syntax::Methods
13
33
  end
@@ -0,0 +1,15 @@
1
+ module Features
2
+ module IndexHelpers
3
+ def page_should_have_todos(todos)
4
+ todos.each do |todo|
5
+ expect(page).to have_selector('td', text: todo.title, exact: true)
6
+ end
7
+ end
8
+
9
+ def page_should_not_have_todos(todos)
10
+ todos.each do |todo|
11
+ expect(page).to have_no_selector('td', text: todo.title, exact: true)
12
+ end
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,295 +1,352 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnival
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Vizir Software Studio
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
12
+ date: 2015-06-17 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '4.0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: coffee-rails
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 4.0.0
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: 4.0.0
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: haml-rails
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: 0.7.0
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: 0.7.0
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: inherited_resources
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: 1.5.1
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: 1.5.1
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: jquery-rails
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
- name: simple_form
95
+ name: sass-rails
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - "~>"
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
- version: 3.1.0
101
+ version: '0'
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - "~>"
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
- version: 3.1.0
109
+ version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
- name: unicode
111
+ name: simple_form
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - ">="
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
- version: 0.4.4.2
117
+ version: 3.1.0
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - ">="
123
+ - - ~>
109
124
  - !ruby/object:Gem::Version
110
- version: 0.4.4.2
125
+ version: 3.1.0
111
126
  - !ruby/object:Gem::Dependency
112
- name: wicked_pdf
127
+ name: unicode
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - "~>"
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
- version: 0.11.0
133
+ version: 0.4.4.2
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - "~>"
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
- version: 0.11.0
141
+ version: 0.4.4.2
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: will_paginate
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - "~>"
147
+ - - ~>
130
148
  - !ruby/object:Gem::Version
131
149
  version: 3.0.7
132
150
  type: :runtime
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - "~>"
155
+ - - ~>
137
156
  - !ruby/object:Gem::Version
138
157
  version: 3.0.7
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: better_errors
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - "~>"
163
+ - - ~>
144
164
  - !ruby/object:Gem::Version
145
165
  version: 0.9.0
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
- - - "~>"
171
+ - - ~>
151
172
  - !ruby/object:Gem::Version
152
173
  version: 0.9.0
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: binding_of_caller
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - "~>"
179
+ - - ~>
158
180
  - !ruby/object:Gem::Version
159
181
  version: 0.7.2
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
- - - "~>"
187
+ - - ~>
165
188
  - !ruby/object:Gem::Version
166
189
  version: 0.7.2
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: bullet
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
- - - "~>"
195
+ - - ~>
172
196
  - !ruby/object:Gem::Version
173
197
  version: 4.14.0
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
- - - "~>"
203
+ - - ~>
179
204
  - !ruby/object:Gem::Version
180
205
  version: 4.14.0
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: byebug
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
- - - "~>"
211
+ - - ~>
186
212
  - !ruby/object:Gem::Version
187
213
  version: 3.4.0
188
214
  type: :development
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
- - - "~>"
219
+ - - ~>
193
220
  - !ruby/object:Gem::Version
194
221
  version: 3.4.0
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: capybara
197
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
198
226
  requirements:
199
- - - "~>"
227
+ - - ~>
200
228
  - !ruby/object:Gem::Version
201
229
  version: 2.4.4
202
230
  type: :development
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
205
234
  requirements:
206
- - - "~>"
235
+ - - ~>
207
236
  - !ruby/object:Gem::Version
208
237
  version: 2.4.4
209
238
  - !ruby/object:Gem::Dependency
210
239
  name: factory_girl_rails
211
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
212
242
  requirements:
213
- - - "~>"
243
+ - - ~>
214
244
  - !ruby/object:Gem::Version
215
245
  version: 4.5.0
216
246
  type: :development
217
247
  prerelease: false
218
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
219
250
  requirements:
220
- - - "~>"
251
+ - - ~>
221
252
  - !ruby/object:Gem::Version
222
253
  version: 4.5.0
223
254
  - !ruby/object:Gem::Dependency
224
255
  name: pry-byebug
225
256
  requirement: !ruby/object:Gem::Requirement
257
+ none: false
226
258
  requirements:
227
- - - "~>"
259
+ - - ~>
228
260
  - !ruby/object:Gem::Version
229
261
  version: 2.0.0
230
262
  type: :development
231
263
  prerelease: false
232
264
  version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
233
266
  requirements:
234
- - - "~>"
267
+ - - ~>
235
268
  - !ruby/object:Gem::Version
236
269
  version: 2.0.0
237
270
  - !ruby/object:Gem::Dependency
238
271
  name: poltergeist
239
272
  requirement: !ruby/object:Gem::Requirement
273
+ none: false
240
274
  requirements:
241
- - - "~>"
275
+ - - ~>
242
276
  - !ruby/object:Gem::Version
243
277
  version: 1.5.1
244
278
  type: :development
245
279
  prerelease: false
246
280
  version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
247
282
  requirements:
248
- - - "~>"
283
+ - - ~>
249
284
  - !ruby/object:Gem::Version
250
285
  version: 1.5.1
251
286
  - !ruby/object:Gem::Dependency
252
287
  name: rspec-rails
253
288
  requirement: !ruby/object:Gem::Requirement
289
+ none: false
254
290
  requirements:
255
- - - "~>"
291
+ - - ~>
256
292
  - !ruby/object:Gem::Version
257
293
  version: 3.1.0
258
294
  type: :development
259
295
  prerelease: false
260
296
  version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
261
298
  requirements:
262
- - - "~>"
299
+ - - ~>
263
300
  - !ruby/object:Gem::Version
264
301
  version: 3.1.0
265
302
  - !ruby/object:Gem::Dependency
266
303
  name: simplecov
267
304
  requirement: !ruby/object:Gem::Requirement
305
+ none: false
268
306
  requirements:
269
- - - "~>"
307
+ - - ~>
270
308
  - !ruby/object:Gem::Version
271
309
  version: 0.9.1
272
310
  type: :development
273
311
  prerelease: false
274
312
  version_requirements: !ruby/object:Gem::Requirement
313
+ none: false
275
314
  requirements:
276
- - - "~>"
315
+ - - ~>
277
316
  - !ruby/object:Gem::Version
278
317
  version: 0.9.1
279
318
  - !ruby/object:Gem::Dependency
280
319
  name: sqlite3
281
320
  requirement: !ruby/object:Gem::Requirement
321
+ none: false
282
322
  requirements:
283
- - - "~>"
323
+ - - ~>
284
324
  - !ruby/object:Gem::Version
285
325
  version: 1.3.10
286
326
  type: :development
287
327
  prerelease: false
288
328
  version_requirements: !ruby/object:Gem::Requirement
329
+ none: false
289
330
  requirements:
290
- - - "~>"
331
+ - - ~>
291
332
  - !ruby/object:Gem::Version
292
333
  version: 1.3.10
334
+ - !ruby/object:Gem::Dependency
335
+ name: capybara-webkit
336
+ requirement: !ruby/object:Gem::Requirement
337
+ none: false
338
+ requirements:
339
+ - - ! '>='
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ type: :development
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ none: false
346
+ requirements:
347
+ - - ! '>='
348
+ - !ruby/object:Gem::Version
349
+ version: '0'
293
350
  description: Carnival is an easy-to-use and extensible Rails Engine to speed the development
294
351
  of data management interfaces. When you use Carnival you can benefit from made features
295
352
  that are already done. If you need to change anything, you can write your own version
@@ -300,333 +357,378 @@ executables: []
300
357
  extensions: []
301
358
  extra_rdoc_files: []
302
359
  files:
303
- - MIT-LICENSE
304
- - Rakefile
305
- - app/assets/images/carnival/avatar.png
306
- - app/assets/images/carnival/bg_button.png
307
- - app/assets/images/carnival/blank.gif
308
- - app/assets/images/carnival/cal.png
360
+ - app/services/carnival/query_form_creator.rb
361
+ - app/services/carnival/presenters/advanced_search_parser.rb
362
+ - app/services/carnival/renderer/html.rb
363
+ - app/services/carnival/query_service.rb
364
+ - app/services/carnival/klass_service.rb
309
365
  - app/assets/images/carnival/chosen-sprite.png
366
+ - app/assets/images/carnival/select2-spinner.gif
310
367
  - app/assets/images/carnival/chosen-sprite@2x.png
311
- - app/assets/images/carnival/fonts/opensans-regular-webfont.eot
312
- - app/assets/images/carnival/fonts/opensans-regular-webfont.svg
313
- - app/assets/images/carnival/fonts/opensans-regular-webfont.ttf
314
- - app/assets/images/carnival/fonts/opensans-regular-webfont.woff
315
- - app/assets/images/carnival/fonts/opensans-semibold-webfont.eot
316
- - app/assets/images/carnival/fonts/opensans-semibold-webfont.svg
317
- - app/assets/images/carnival/fonts/opensans-semibold-webfont.ttf
318
- - app/assets/images/carnival/fonts/opensans-semibold-webfont.woff
319
- - app/assets/images/carnival/fonts/up-not.png
368
+ - app/assets/images/carnival/sort_asc.png
369
+ - app/assets/images/carnival/search-button.png
320
370
  - app/assets/images/carnival/header-bg.png
321
- - app/assets/images/carnival/loadingGif.gif
371
+ - app/assets/images/carnival/avatar.png
322
372
  - app/assets/images/carnival/novo.png
373
+ - app/assets/images/carnival/sort_desc_disabled.png
323
374
  - app/assets/images/carnival/overlay.png
324
- - app/assets/images/carnival/search-button.png
325
- - app/assets/images/carnival/search.png
326
- - app/assets/images/carnival/select2-spinner.gif
327
- - app/assets/images/carnival/select2.png
328
- - app/assets/images/carnival/select2x2.png
329
- - app/assets/images/carnival/sort_asc.png
375
+ - app/assets/images/carnival/voltar.png
330
376
  - app/assets/images/carnival/sort_asc_disabled.png
377
+ - app/assets/images/carnival/loadingGif.gif
378
+ - app/assets/images/carnival/select2.png
379
+ - app/assets/images/carnival/blank.gif
380
+ - app/assets/images/carnival/sprites-active.png
381
+ - app/assets/images/carnival/cal.png
331
382
  - app/assets/images/carnival/sort_both.png
332
383
  - app/assets/images/carnival/sort_desc.png
333
- - app/assets/images/carnival/sort_desc_disabled.png
334
- - app/assets/images/carnival/sprites-active.png
335
384
  - app/assets/images/carnival/sprites.png
336
- - app/assets/images/carnival/voltar.png
385
+ - app/assets/images/carnival/bg_button.png
386
+ - app/assets/images/carnival/select2x2.png
387
+ - app/assets/images/carnival/search.png
337
388
  - app/assets/javascripts/carnival/admin.js
338
389
  - app/assets/javascripts/carnival/advanced_search.js
339
390
  - app/assets/javascripts/carnival/batch_action.js
340
- - app/assets/javascripts/carnival/external/jquery-ui-1.9.1.custom.min.js
341
- - app/assets/javascripts/carnival/external/jquery.colorbox-min.js
342
- - app/assets/javascripts/carnival/external/jquery.datetimepicker.js
343
391
  - app/assets/javascripts/carnival/external/jquery.maskedinput.js
344
- - app/assets/javascripts/carnival/external/noty/jquery.noty.js
345
- - app/assets/javascripts/carnival/external/noty/layouts/bottom.js
346
- - app/assets/javascripts/carnival/external/noty/layouts/bottomCenter.js
347
- - app/assets/javascripts/carnival/external/noty/layouts/bottomLeft.js
348
- - app/assets/javascripts/carnival/external/noty/layouts/bottomRight.js
349
- - app/assets/javascripts/carnival/external/noty/layouts/center.js
350
- - app/assets/javascripts/carnival/external/noty/layouts/centerLeft.js
351
- - app/assets/javascripts/carnival/external/noty/layouts/centerRight.js
352
- - app/assets/javascripts/carnival/external/noty/layouts/inline.js
353
- - app/assets/javascripts/carnival/external/noty/layouts/top.js
354
- - app/assets/javascripts/carnival/external/noty/layouts/topCenter.js
355
- - app/assets/javascripts/carnival/external/noty/layouts/topLeft.js
356
- - app/assets/javascripts/carnival/external/noty/layouts/topRight.js
357
- - app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.js
358
- - app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.min.js
359
- - app/assets/javascripts/carnival/external/noty/promise.js
360
- - app/assets/javascripts/carnival/external/noty/themes/default.js
361
- - app/assets/javascripts/carnival/external/select2/select2.min.js
362
- - app/assets/javascripts/carnival/external/select2/select2_locale_ar.js
363
- - app/assets/javascripts/carnival/external/select2/select2_locale_az.js
392
+ - app/assets/javascripts/carnival/external/select2/select2_locale_lv.js
393
+ - app/assets/javascripts/carnival/external/select2/select2_locale_pt-PT.js
394
+ - app/assets/javascripts/carnival/external/select2/select2_locale_el.js
395
+ - app/assets/javascripts/carnival/external/select2/select2_locale_hr.js
396
+ - app/assets/javascripts/carnival/external/select2/select2_locale_sk.js
397
+ - app/assets/javascripts/carnival/external/select2/select2_locale_vi.js
364
398
  - app/assets/javascripts/carnival/external/select2/select2_locale_bg.js
365
- - app/assets/javascripts/carnival/external/select2/select2_locale_ca.js
399
+ - app/assets/javascripts/carnival/external/select2/select2_locale_uk.js
400
+ - app/assets/javascripts/carnival/external/select2/select2_locale_ru.js
366
401
  - app/assets/javascripts/carnival/external/select2/select2_locale_cs.js
367
402
  - app/assets/javascripts/carnival/external/select2/select2_locale_da.js
403
+ - app/assets/javascripts/carnival/external/select2/select2_locale_ar.js
404
+ - app/assets/javascripts/carnival/external/select2/select2_locale_tr.js
368
405
  - app/assets/javascripts/carnival/external/select2/select2_locale_de.js
369
- - app/assets/javascripts/carnival/external/select2/select2_locale_el.js
370
406
  - app/assets/javascripts/carnival/external/select2/select2_locale_en.js.template
371
- - app/assets/javascripts/carnival/external/select2/select2_locale_es.js
372
- - app/assets/javascripts/carnival/external/select2/select2_locale_et.js
373
- - app/assets/javascripts/carnival/external/select2/select2_locale_eu.js
374
- - app/assets/javascripts/carnival/external/select2/select2_locale_fa.js
407
+ - app/assets/javascripts/carnival/external/select2/select2_locale_he.js
408
+ - app/assets/javascripts/carnival/external/select2/select2_locale_gl.js
409
+ - app/assets/javascripts/carnival/external/select2/select2_locale_pl.js
410
+ - app/assets/javascripts/carnival/external/select2/select2_locale_th.js
411
+ - app/assets/javascripts/carnival/external/select2/select2_locale_lt.js
375
412
  - app/assets/javascripts/carnival/external/select2/select2_locale_fi.js
413
+ - app/assets/javascripts/carnival/external/select2/select2.min.js
414
+ - app/assets/javascripts/carnival/external/select2/select2_locale_az.js
376
415
  - app/assets/javascripts/carnival/external/select2/select2_locale_fr.js
377
- - app/assets/javascripts/carnival/external/select2/select2_locale_gl.js
378
- - app/assets/javascripts/carnival/external/select2/select2_locale_he.js
379
- - app/assets/javascripts/carnival/external/select2/select2_locale_hr.js
380
- - app/assets/javascripts/carnival/external/select2/select2_locale_hu.js
381
- - app/assets/javascripts/carnival/external/select2/select2_locale_id.js
382
- - app/assets/javascripts/carnival/external/select2/select2_locale_is.js
416
+ - app/assets/javascripts/carnival/external/select2/select2_locale_no.js
417
+ - app/assets/javascripts/carnival/external/select2/select2_locale_pt-BR.js
418
+ - app/assets/javascripts/carnival/external/select2/select2_locale_ca.js
383
419
  - app/assets/javascripts/carnival/external/select2/select2_locale_it.js
384
- - app/assets/javascripts/carnival/external/select2/select2_locale_ja.js
385
- - app/assets/javascripts/carnival/external/select2/select2_locale_ka.js
386
- - app/assets/javascripts/carnival/external/select2/select2_locale_ko.js
387
- - app/assets/javascripts/carnival/external/select2/select2_locale_lt.js
388
- - app/assets/javascripts/carnival/external/select2/select2_locale_lv.js
420
+ - app/assets/javascripts/carnival/external/select2/select2_locale_ro.js
389
421
  - app/assets/javascripts/carnival/external/select2/select2_locale_mk.js
390
422
  - app/assets/javascripts/carnival/external/select2/select2_locale_ms.js
423
+ - app/assets/javascripts/carnival/external/select2/select2_locale_sv.js
424
+ - app/assets/javascripts/carnival/external/select2/select2_locale_zh-TW.js
425
+ - app/assets/javascripts/carnival/external/select2/select2_locale_hu.js
426
+ - app/assets/javascripts/carnival/external/select2/select2_locale_ka.js
427
+ - app/assets/javascripts/carnival/external/select2/select2_locale_is.js
428
+ - app/assets/javascripts/carnival/external/select2/select2_locale_ko.js
429
+ - app/assets/javascripts/carnival/external/select2/select2_locale_et.js
430
+ - app/assets/javascripts/carnival/external/select2/select2_locale_fa.js
431
+ - app/assets/javascripts/carnival/external/select2/select2_locale_es.js
432
+ - app/assets/javascripts/carnival/external/select2/select2_locale_id.js
433
+ - app/assets/javascripts/carnival/external/select2/select2_locale_eu.js
434
+ - app/assets/javascripts/carnival/external/select2/select2_locale_ja.js
391
435
  - app/assets/javascripts/carnival/external/select2/select2_locale_nl.js
392
- - app/assets/javascripts/carnival/external/select2/select2_locale_no.js
393
- - app/assets/javascripts/carnival/external/select2/select2_locale_pl.js
394
- - app/assets/javascripts/carnival/external/select2/select2_locale_pt-BR.js
395
- - app/assets/javascripts/carnival/external/select2/select2_locale_pt-PT.js
396
- - app/assets/javascripts/carnival/external/select2/select2_locale_ro.js
397
436
  - app/assets/javascripts/carnival/external/select2/select2_locale_rs.js
398
- - app/assets/javascripts/carnival/external/select2/select2_locale_ru.js
399
- - app/assets/javascripts/carnival/external/select2/select2_locale_sk.js
400
- - app/assets/javascripts/carnival/external/select2/select2_locale_sv.js
401
- - app/assets/javascripts/carnival/external/select2/select2_locale_th.js
402
- - app/assets/javascripts/carnival/external/select2/select2_locale_tr.js
403
437
  - app/assets/javascripts/carnival/external/select2/select2_locale_ug-CN.js
404
- - app/assets/javascripts/carnival/external/select2/select2_locale_uk.js
405
- - app/assets/javascripts/carnival/external/select2/select2_locale_vi.js
406
438
  - app/assets/javascripts/carnival/external/select2/select2_locale_zh-CN.js
407
- - app/assets/javascripts/carnival/external/select2/select2_locale_zh-TW.js
439
+ - app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.min.js
440
+ - app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.js
441
+ - app/assets/javascripts/carnival/external/noty/themes/default.js
442
+ - app/assets/javascripts/carnival/external/noty/jquery.noty.js
443
+ - app/assets/javascripts/carnival/external/noty/promise.js
444
+ - app/assets/javascripts/carnival/external/noty/layouts/bottomCenter.js
445
+ - app/assets/javascripts/carnival/external/noty/layouts/bottomRight.js
446
+ - app/assets/javascripts/carnival/external/noty/layouts/topLeft.js
447
+ - app/assets/javascripts/carnival/external/noty/layouts/centerRight.js
448
+ - app/assets/javascripts/carnival/external/noty/layouts/topRight.js
449
+ - app/assets/javascripts/carnival/external/noty/layouts/centerLeft.js
450
+ - app/assets/javascripts/carnival/external/noty/layouts/top.js
451
+ - app/assets/javascripts/carnival/external/noty/layouts/center.js
452
+ - app/assets/javascripts/carnival/external/noty/layouts/topCenter.js
453
+ - app/assets/javascripts/carnival/external/noty/layouts/inline.js
454
+ - app/assets/javascripts/carnival/external/noty/layouts/bottomLeft.js
455
+ - app/assets/javascripts/carnival/external/noty/layouts/bottom.js
456
+ - app/assets/javascripts/carnival/external/jquery-ui-1.9.1.custom.min.js
457
+ - app/assets/javascripts/carnival/external/jquery.datetimepicker.js
458
+ - app/assets/javascripts/carnival/external/jquery.colorbox-min.js
459
+ - app/assets/javascripts/carnival/vizir_admin.js.erb
408
460
  - app/assets/javascripts/carnival/select_remote.js
409
- - app/assets/javascripts/carnival/vizir_admin.js
410
- - app/assets/stylesheets/carnival/actions.css.scss
411
- - app/assets/stylesheets/carnival/admin.css
412
- - app/assets/stylesheets/carnival/admin_users.css
413
- - app/assets/stylesheets/carnival/carnival-grid.css
414
- - app/assets/stylesheets/carnival/carnival-list.css
415
- - app/assets/stylesheets/carnival/carnival-table.css.scss
416
- - app/assets/stylesheets/carnival/colorbox.css.scss
417
- - app/assets/stylesheets/carnival/external/jquery.datetimepicker.css
418
- - app/assets/stylesheets/carnival/footer.css
419
- - app/assets/stylesheets/carnival/forms.css.scss
461
+ - app/assets/fonts/carnival/opensans-regular-webfont.ttf
462
+ - app/assets/fonts/carnival/opensans-semibold-webfont.ttf
463
+ - app/assets/fonts/carnival/opensans-semibold-webfont.eot
464
+ - app/assets/fonts/carnival/opensans-semibold-webfont.svg
465
+ - app/assets/fonts/carnival/up-not.png
466
+ - app/assets/fonts/carnival/opensans-regular-webfont.eot
467
+ - app/assets/fonts/carnival/opensans-semibold-webfont.woff
468
+ - app/assets/fonts/carnival/opensans-regular-webfont.svg
469
+ - app/assets/fonts/carnival/opensans-regular-webfont.woff
470
+ - app/assets/stylesheets/carnival/menu.css.scss
420
471
  - app/assets/stylesheets/carnival/grid.css
421
- - app/assets/stylesheets/carnival/header.css.scss
422
- - app/assets/stylesheets/carnival/images/ui-bg_flat_0_aaaaaa_40x100.png
423
- - app/assets/stylesheets/carnival/images/ui-bg_flat_75_ffffff_40x100.png
424
- - app/assets/stylesheets/carnival/images/ui-bg_glass_55_fbf9ee_1x400.png
472
+ - app/assets/stylesheets/carnival/admin.css
473
+ - app/assets/stylesheets/carnival/select2.css.scss
474
+ - app/assets/stylesheets/carnival/modal.css.scss
475
+ - app/assets/stylesheets/carnival/images/ui-icons_222222_256x240.png
425
476
  - app/assets/stylesheets/carnival/images/ui-bg_glass_65_ffffff_1x400.png
426
- - app/assets/stylesheets/carnival/images/ui-bg_glass_75_dadada_1x400.png
477
+ - app/assets/stylesheets/carnival/images/ui-icons_2e83ff_256x240.png
478
+ - app/assets/stylesheets/carnival/images/ui-bg_flat_75_ffffff_40x100.png
427
479
  - app/assets/stylesheets/carnival/images/ui-bg_glass_75_e6e6e6_1x400.png
480
+ - app/assets/stylesheets/carnival/images/ui-bg_flat_0_aaaaaa_40x100.png
481
+ - app/assets/stylesheets/carnival/images/ui-icons_888888_256x240.png
482
+ - app/assets/stylesheets/carnival/images/ui-icons_cd0a0a_256x240.png
428
483
  - app/assets/stylesheets/carnival/images/ui-bg_glass_95_fef1ec_1x400.png
429
484
  - app/assets/stylesheets/carnival/images/ui-bg_highlight-soft_75_cccccc_1x100.png
430
- - app/assets/stylesheets/carnival/images/ui-icons_222222_256x240.png
431
- - app/assets/stylesheets/carnival/images/ui-icons_2e83ff_256x240.png
432
485
  - app/assets/stylesheets/carnival/images/ui-icons_454545_256x240.png
433
- - app/assets/stylesheets/carnival/images/ui-icons_888888_256x240.png
434
- - app/assets/stylesheets/carnival/images/ui-icons_cd0a0a_256x240.png
486
+ - app/assets/stylesheets/carnival/images/ui-bg_glass_55_fbf9ee_1x400.png
487
+ - app/assets/stylesheets/carnival/images/ui-bg_glass_75_dadada_1x400.png
488
+ - app/assets/stylesheets/carnival/header.css.scss
435
489
  - app/assets/stylesheets/carnival/jquery.noty.css
436
- - app/assets/stylesheets/carnival/listing-tools.css
437
- - app/assets/stylesheets/carnival/menu.css.scss
438
- - app/assets/stylesheets/carnival/modal.css.scss
439
- - app/assets/stylesheets/carnival/pagination.css.scss
440
- - app/assets/stylesheets/carnival/period.css.scss
441
490
  - app/assets/stylesheets/carnival/scope.css
442
491
  - app/assets/stylesheets/carnival/search.css.scss
443
- - app/assets/stylesheets/carnival/select2.css.scss
492
+ - app/assets/stylesheets/carnival/forms.css.scss
493
+ - app/assets/stylesheets/carnival/external/jquery.datetimepicker.css
494
+ - app/assets/stylesheets/carnival/pagination.css.scss
444
495
  - app/assets/stylesheets/carnival/structure.css.scss
496
+ - app/assets/stylesheets/carnival/carnival-list.css
497
+ - app/assets/stylesheets/carnival/admin_users.css
498
+ - app/assets/stylesheets/carnival/carnival-grid.css
499
+ - app/assets/stylesheets/carnival/footer.css
500
+ - app/assets/stylesheets/carnival/period.css.scss
501
+ - app/assets/stylesheets/carnival/colorbox.css.scss
502
+ - app/assets/stylesheets/carnival/actions.css.scss
503
+ - app/assets/stylesheets/carnival/carnival-table.css.scss
504
+ - app/assets/stylesheets/carnival/listing-tools.css
445
505
  - app/controllers/carnival/base_admin_controller.rb
446
- - app/datatable/carnival/generic_datatable/column_sorter.rb
447
- - app/datatable/carnival/generic_datatable/column_sorter_creator.rb
448
- - app/datatable/carnival/generic_datatable/relation_column_sorter.rb
449
- - app/helpers/carnival/base_admin_helper.rb
450
- - app/helpers/carnival/field_renderers/field_renderer.rb
451
- - app/helpers/carnival/field_renderers/many_relation_renderer.rb
452
- - app/helpers/carnival/field_renderers/renderer_creator.rb
453
- - app/helpers/carnival/field_renderers/single_relation_renderer.rb
454
- - app/inputs/admin_base_input.rb
455
- - app/inputs/admin_currency_input.rb
456
- - app/inputs/admin_date_input.rb
457
- - app/inputs/admin_enum_input.rb
458
- - app/inputs/admin_previewable_file_input.rb
459
506
  - app/inputs/admin_relationship_select_input.rb
460
- - app/inputs/admin_text_input.rb
507
+ - app/inputs/admin_previewable_file_input.rb
508
+ - app/inputs/admin_base_input.rb
461
509
  - app/inputs/carnival_enum_input.rb
462
510
  - app/inputs/carnival_select_remote_input.rb
463
- - app/models/carnival/action.rb
464
- - app/models/carnival/batch_action.rb
511
+ - app/inputs/admin_enum_input.rb
512
+ - app/inputs/admin_currency_input.rb
513
+ - app/inputs/admin_text_input.rb
514
+ - app/inputs/admin_date_input.rb
515
+ - app/models/carnival/model_helper.rb
465
516
  - app/models/carnival/field.rb
466
517
  - app/models/carnival/form.rb
467
- - app/models/carnival/model_helper.rb
468
- - app/models/carnival/query_form.rb
518
+ - app/models/carnival/action.rb
469
519
  - app/models/carnival/scope.rb
470
- - app/presenters/carnival/base_admin_presenter.rb
520
+ - app/models/carnival/query_form.rb
521
+ - app/models/carnival/batch_action.rb
522
+ - app/helpers/carnival/field_renderers/renderer_creator.rb
523
+ - app/helpers/carnival/field_renderers/single_relation_renderer.rb
524
+ - app/helpers/carnival/field_renderers/field_renderer.rb
525
+ - app/helpers/carnival/field_renderers/many_relation_renderer.rb
526
+ - app/helpers/carnival/base_admin_helper.rb
471
527
  - app/presenters/carnival/menu_presenter.rb
472
528
  - app/presenters/carnival/presenter_validators/field_validator.rb
473
- - app/services/carnival/klass_service.rb
474
- - app/services/carnival/presenters/advanced_search_parser.rb
475
- - app/services/carnival/query_form_creator.rb
476
- - app/services/carnival/query_service.rb
477
- - app/services/carnival/renderer/html.rb
478
- - app/view_objects/carnival/nested_form_options.rb
479
- - app/view_objects/carnival/paginator.rb
480
- - app/view_objects/carnival/thead_renderer.rb
481
- - app/views/carnival/base_admin/_index_as_grid.html.haml
482
- - app/views/carnival/base_admin/_index_as_list.html.haml
483
- - app/views/carnival/base_admin/_index_as_table.html.haml
484
- - app/views/carnival/base_admin/_inner_form.html.haml
485
- - app/views/carnival/base_admin/edit.html.haml
486
- - app/views/carnival/base_admin/home.html.haml
487
- - app/views/carnival/base_admin/index.csv.haml
488
- - app/views/carnival/base_admin/index.html.haml
489
- - app/views/carnival/base_admin/index.pdf.haml
490
- - app/views/carnival/base_admin/load_dependent_select_options.html.haml
491
- - app/views/carnival/base_admin/new.html.haml
492
- - app/views/carnival/base_admin/render_inner_form.js.erb
493
- - app/views/carnival/base_admin/show.html.haml
529
+ - app/presenters/carnival/dsl.rb
530
+ - app/presenters/carnival/base_admin_presenter.rb
531
+ - app/views/carnival/shared/_extra.html.haml
532
+ - app/views/carnival/shared/_delete.html.haml
533
+ - app/views/carnival/shared/_advanced_search_field.html.haml
534
+ - app/views/carnival/shared/form/_nested_form.html.haml
535
+ - app/views/carnival/shared/form/_field.html.haml
536
+ - app/views/carnival/shared/form/_inner_form.html.haml
537
+ - app/views/carnival/shared/form/_edit.html.haml
538
+ - app/views/carnival/shared/form/_form.html.haml
539
+ - app/views/carnival/shared/form/_nested_form_options.html.haml
540
+ - app/views/carnival/shared/show/_show_as_list.html.haml
541
+ - app/views/carnival/shared/render_popup.js.erb
494
542
  - app/views/carnival/shared/_action_default.html.haml
543
+ - app/views/carnival/shared/_item_buttons.html.haml
495
544
  - app/views/carnival/shared/_action_delete.html.haml
496
- - app/views/carnival/shared/_action_remote.html.haml
497
- - app/views/carnival/shared/_add_button.html.haml
498
- - app/views/carnival/shared/_advanced_search.html.haml
499
- - app/views/carnival/shared/_advanced_search_field.html.haml
500
- - app/views/carnival/shared/_application_modal_partial.html.haml
501
- - app/views/carnival/shared/_delete.html.haml
545
+ - app/views/carnival/shared/_photo_field.html.haml
546
+ - app/views/carnival/shared/_period_filter.html.haml
502
547
  - app/views/carnival/shared/_edit_delete.html.haml
503
- - app/views/carnival/shared/_extra.html.haml
504
548
  - app/views/carnival/shared/_extra_item.html.haml
505
- - app/views/carnival/shared/_header.pdf.haml
506
- - app/views/carnival/shared/_item_buttons.html.haml
507
- - app/views/carnival/shared/_list_cel.pdf.haml
508
- - app/views/carnival/shared/_period_filter.html.haml
509
- - app/views/carnival/shared/_photo_field.html.haml
510
- - app/views/carnival/shared/_report.pdf.haml
549
+ - app/views/carnival/shared/_add_button.html.haml
511
550
  - app/views/carnival/shared/_scope.html.haml
551
+ - app/views/carnival/shared/_advanced_search.html.haml
552
+ - app/views/carnival/shared/_application_modal_partial.html.haml
553
+ - app/views/carnival/shared/_action_remote.html.haml
512
554
  - app/views/carnival/shared/_special_scope.html.haml
513
- - app/views/carnival/shared/form/_edit.html.haml
514
- - app/views/carnival/shared/form/_field.html.haml
515
- - app/views/carnival/shared/form/_form.html.haml
516
- - app/views/carnival/shared/form/_inner_form.html.haml
517
- - app/views/carnival/shared/form/_nested_form.html.haml
518
- - app/views/carnival/shared/form/_nested_form_options.html.haml
519
- - app/views/carnival/shared/render_popup.js.erb
520
- - app/views/carnival/shared/show/_show_as_list.html.haml
555
+ - app/views/carnival/base_admin/load_dependent_select_options.html.haml
556
+ - app/views/carnival/base_admin/_inner_form.html.haml
557
+ - app/views/carnival/base_admin/_index_as_table.html.haml
558
+ - app/views/carnival/base_admin/_index_as_grid.html.haml
559
+ - app/views/carnival/base_admin/index.html.haml
560
+ - app/views/carnival/base_admin/show.html.haml
561
+ - app/views/carnival/base_admin/index.csv.haml
562
+ - app/views/carnival/base_admin/new.html.haml
563
+ - app/views/carnival/base_admin/_index_as_list.html.haml
564
+ - app/views/carnival/base_admin/render_inner_form.js.erb
565
+ - app/views/carnival/base_admin/home.html.haml
566
+ - app/views/carnival/base_admin/edit.html.haml
521
567
  - app/views/layouts/carnival/_menu.html.haml
522
568
  - app/views/layouts/carnival/admin.html.haml
523
- - config/initializers/simple_form.rb
524
- - config/initializers/wicked_pdf.rb
525
- - config/locales/carnival.en.yml
569
+ - app/datatable/carnival/generic_datatable/relation_column_sorter.rb
570
+ - app/datatable/carnival/generic_datatable/column_sorter_creator.rb
571
+ - app/datatable/carnival/generic_datatable/column_sorter.rb
572
+ - app/view_objects/carnival/paginator.rb
573
+ - app/view_objects/carnival/thead_renderer.rb
574
+ - app/view_objects/carnival/nested_form_options.rb
526
575
  - config/locales/carnival.pt-br.yml
576
+ - config/locales/carnival.en.yml
527
577
  - config/routes.rb
528
- - lib/carnival.rb
529
- - lib/carnival/config.rb
578
+ - config/initializers/simple_form.rb
579
+ - lib/tasks/carnival_tasks.rake
530
580
  - lib/carnival/engine.rb
581
+ - lib/carnival/config.rb
531
582
  - lib/carnival/routes.rb
532
583
  - lib/carnival/version.rb
533
- - lib/generators/carnival/install_generator.rb
534
584
  - lib/generators/carnival/templates/carnival_initializer.rb
535
- - lib/tasks/carnival_tasks.rake
536
- - spec/dummy/README.rdoc
585
+ - lib/generators/carnival/install_generator.rb
586
+ - lib/carnival.rb
587
+ - MIT-LICENSE
588
+ - Rakefile
589
+ - spec/features/show_spec.rb
590
+ - spec/features/update_spec.rb
591
+ - spec/features/index/pagination_spec.rb
592
+ - spec/features/index/scope_spec.rb
593
+ - spec/features/index/search_spec.rb
594
+ - spec/features/index/basic_index_spec.rb
595
+ - spec/features/destroy_spec.rb
596
+ - spec/features/create_spec.rb
597
+ - spec/spec_helper.rb
598
+ - spec/support/features/index_helpers.rb
599
+ - spec/dummy/db/migrate/20150408165317_create_todo_lists.rb
600
+ - spec/dummy/db/migrate/20150408165333_add_todo_list_relation_to_todos.rb
601
+ - spec/dummy/db/migrate/20150316021645_create_todos.rb
602
+ - spec/dummy/db/schema.rb
537
603
  - spec/dummy/Rakefile
538
- - spec/dummy/app/assets/javascripts/application.js
539
- - spec/dummy/app/assets/stylesheets/application.css
540
- - spec/dummy/app/controllers/application_controller.rb
541
- - spec/dummy/app/helpers/application_helper.rb
542
- - spec/dummy/app/views/layouts/application.html.erb
543
- - spec/dummy/bin/bundle
544
- - spec/dummy/bin/rails
545
- - spec/dummy/bin/rake
546
- - spec/dummy/bin/setup
547
604
  - spec/dummy/config.ru
605
+ - spec/dummy/public/404.html
606
+ - spec/dummy/public/500.html
607
+ - spec/dummy/public/favicon.ico
608
+ - spec/dummy/public/422.html
609
+ - spec/dummy/config/secrets.yml
610
+ - spec/dummy/config/locales/carnival.pt-br.yml
611
+ - spec/dummy/config/locales/carnival.en.yml
612
+ - spec/dummy/config/locales/en.yml
548
613
  - spec/dummy/config/application.rb
614
+ - spec/dummy/config/routes.rb
549
615
  - spec/dummy/config/boot.rb
550
- - spec/dummy/config/database.yml
551
- - spec/dummy/config/environment.rb
552
- - spec/dummy/config/environments/development.rb
553
- - spec/dummy/config/environments/production.rb
554
- - spec/dummy/config/environments/test.rb
555
616
  - spec/dummy/config/initializers/assets.rb
556
617
  - spec/dummy/config/initializers/backtrace_silencers.rb
557
- - spec/dummy/config/initializers/cookies_serializer.rb
558
- - spec/dummy/config/initializers/filter_parameter_logging.rb
618
+ - spec/dummy/config/initializers/wrap_parameters.rb
619
+ - spec/dummy/config/initializers/carnival_initializer.rb
620
+ - spec/dummy/config/initializers/session_store.rb
559
621
  - spec/dummy/config/initializers/inflections.rb
560
622
  - spec/dummy/config/initializers/mime_types.rb
561
- - spec/dummy/config/initializers/session_store.rb
562
- - spec/dummy/config/initializers/wrap_parameters.rb
563
- - spec/dummy/config/locales/en.yml
564
- - spec/dummy/config/routes.rb
565
- - spec/dummy/config/secrets.yml
566
- - spec/dummy/public/404.html
567
- - spec/dummy/public/422.html
568
- - spec/dummy/public/500.html
569
- - spec/dummy/public/favicon.ico
623
+ - spec/dummy/config/initializers/cookies_serializer.rb
624
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
625
+ - spec/dummy/config/database.yml
626
+ - spec/dummy/config/environment.rb
627
+ - spec/dummy/config/environments/test.rb
628
+ - spec/dummy/config/environments/development.rb
629
+ - spec/dummy/config/environments/production.rb
630
+ - spec/dummy/README.rdoc
631
+ - spec/dummy/app/assets/javascripts/application.js
632
+ - spec/dummy/app/assets/stylesheets/application.css
633
+ - spec/dummy/app/controllers/admin/todos_controller.rb
634
+ - spec/dummy/app/controllers/admin/todo_lists_controller.rb
635
+ - spec/dummy/app/controllers/application_controller.rb
636
+ - spec/dummy/app/models/todo.rb
637
+ - spec/dummy/app/models/todo_list.rb
638
+ - spec/dummy/app/helpers/application_helper.rb
639
+ - spec/dummy/app/presenters/admin/todo_list_presenter.rb
640
+ - spec/dummy/app/presenters/admin/todo_presenter.rb
641
+ - spec/dummy/app/views/layouts/application.html.erb
642
+ - spec/dummy/bin/rails
643
+ - spec/dummy/bin/setup
644
+ - spec/dummy/bin/bundle
645
+ - spec/dummy/bin/rake
570
646
  - spec/rails_helper.rb
571
- - spec/spec_helper.rb
647
+ - spec/factories/todo_lists_factory.rb
648
+ - spec/factories/todos_factory.rb
572
649
  homepage: https://github.com/Vizir/carnival
573
650
  licenses: []
574
- metadata: {}
575
651
  post_install_message:
576
652
  rdoc_options: []
577
653
  require_paths:
578
654
  - lib
579
655
  required_ruby_version: !ruby/object:Gem::Requirement
656
+ none: false
580
657
  requirements:
581
- - - ">="
658
+ - - ! '>='
582
659
  - !ruby/object:Gem::Version
583
660
  version: '0'
584
661
  required_rubygems_version: !ruby/object:Gem::Requirement
662
+ none: false
585
663
  requirements:
586
- - - ">="
664
+ - - ! '>='
587
665
  - !ruby/object:Gem::Version
588
666
  version: '0'
589
667
  requirements: []
590
668
  rubyforge_project:
591
- rubygems_version: 2.4.5
669
+ rubygems_version: 1.8.23
592
670
  signing_key:
593
- specification_version: 4
671
+ specification_version: 3
594
672
  summary: Carnival is an easy-to-use and extensible Rails Engine to speed the development
595
673
  of data management interfaces.
596
674
  test_files:
597
- - spec/dummy/bin/rake
598
- - spec/dummy/bin/setup
599
- - spec/dummy/bin/bundle
600
- - spec/dummy/bin/rails
601
- - spec/dummy/app/assets/stylesheets/application.css
602
- - spec/dummy/app/assets/javascripts/application.js
603
- - spec/dummy/app/controllers/application_controller.rb
604
- - spec/dummy/app/views/layouts/application.html.erb
605
- - spec/dummy/app/helpers/application_helper.rb
675
+ - spec/features/show_spec.rb
676
+ - spec/features/update_spec.rb
677
+ - spec/features/index/pagination_spec.rb
678
+ - spec/features/index/scope_spec.rb
679
+ - spec/features/index/search_spec.rb
680
+ - spec/features/index/basic_index_spec.rb
681
+ - spec/features/destroy_spec.rb
682
+ - spec/features/create_spec.rb
683
+ - spec/spec_helper.rb
684
+ - spec/support/features/index_helpers.rb
685
+ - spec/dummy/db/migrate/20150408165317_create_todo_lists.rb
686
+ - spec/dummy/db/migrate/20150408165333_add_todo_list_relation_to_todos.rb
687
+ - spec/dummy/db/migrate/20150316021645_create_todos.rb
688
+ - spec/dummy/db/schema.rb
689
+ - spec/dummy/Rakefile
606
690
  - spec/dummy/config.ru
607
- - spec/dummy/README.rdoc
608
- - spec/dummy/config/database.yml
609
- - spec/dummy/config/environments/test.rb
610
- - spec/dummy/config/environments/development.rb
611
- - spec/dummy/config/environments/production.rb
612
- - spec/dummy/config/environment.rb
613
- - spec/dummy/config/application.rb
691
+ - spec/dummy/public/404.html
692
+ - spec/dummy/public/500.html
693
+ - spec/dummy/public/favicon.ico
694
+ - spec/dummy/public/422.html
614
695
  - spec/dummy/config/secrets.yml
696
+ - spec/dummy/config/locales/carnival.pt-br.yml
697
+ - spec/dummy/config/locales/carnival.en.yml
698
+ - spec/dummy/config/locales/en.yml
699
+ - spec/dummy/config/application.rb
615
700
  - spec/dummy/config/routes.rb
616
- - spec/dummy/config/initializers/mime_types.rb
617
- - spec/dummy/config/initializers/wrap_parameters.rb
618
- - spec/dummy/config/initializers/inflections.rb
619
- - spec/dummy/config/initializers/filter_parameter_logging.rb
701
+ - spec/dummy/config/boot.rb
702
+ - spec/dummy/config/initializers/assets.rb
620
703
  - spec/dummy/config/initializers/backtrace_silencers.rb
704
+ - spec/dummy/config/initializers/wrap_parameters.rb
705
+ - spec/dummy/config/initializers/carnival_initializer.rb
621
706
  - spec/dummy/config/initializers/session_store.rb
622
- - spec/dummy/config/initializers/assets.rb
707
+ - spec/dummy/config/initializers/inflections.rb
708
+ - spec/dummy/config/initializers/mime_types.rb
623
709
  - spec/dummy/config/initializers/cookies_serializer.rb
624
- - spec/dummy/config/boot.rb
625
- - spec/dummy/config/locales/en.yml
626
- - spec/dummy/Rakefile
627
- - spec/dummy/public/422.html
628
- - spec/dummy/public/500.html
629
- - spec/dummy/public/favicon.ico
630
- - spec/dummy/public/404.html
631
- - spec/spec_helper.rb
710
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
711
+ - spec/dummy/config/database.yml
712
+ - spec/dummy/config/environment.rb
713
+ - spec/dummy/config/environments/test.rb
714
+ - spec/dummy/config/environments/development.rb
715
+ - spec/dummy/config/environments/production.rb
716
+ - spec/dummy/README.rdoc
717
+ - spec/dummy/app/assets/javascripts/application.js
718
+ - spec/dummy/app/assets/stylesheets/application.css
719
+ - spec/dummy/app/controllers/admin/todos_controller.rb
720
+ - spec/dummy/app/controllers/admin/todo_lists_controller.rb
721
+ - spec/dummy/app/controllers/application_controller.rb
722
+ - spec/dummy/app/models/todo.rb
723
+ - spec/dummy/app/models/todo_list.rb
724
+ - spec/dummy/app/helpers/application_helper.rb
725
+ - spec/dummy/app/presenters/admin/todo_list_presenter.rb
726
+ - spec/dummy/app/presenters/admin/todo_presenter.rb
727
+ - spec/dummy/app/views/layouts/application.html.erb
728
+ - spec/dummy/bin/rails
729
+ - spec/dummy/bin/setup
730
+ - spec/dummy/bin/bundle
731
+ - spec/dummy/bin/rake
632
732
  - spec/rails_helper.rb
733
+ - spec/factories/todo_lists_factory.rb
734
+ - spec/factories/todos_factory.rb