bhf 0.7.16 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +16 -0
  3. data/Gemfile.lock +170 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.md +18 -0
  6. data/Rakefile +49 -0
  7. data/VERSION +1 -0
  8. data/app/assets/javascripts/bhf/application.js +41 -30
  9. data/app/assets/stylesheets/bhf/application.css.sass +19 -5
  10. data/app/controllers/bhf/application_controller.rb +7 -11
  11. data/app/controllers/bhf/embed_entries_controller.rb +16 -5
  12. data/app/controllers/bhf/entries_controller.rb +23 -5
  13. data/app/controllers/bhf/pages_controller.rb +4 -4
  14. data/app/helpers/bhf/frontend_helper.rb +1 -1
  15. data/app/views/bhf/_user.haml +2 -2
  16. data/app/views/bhf/application/index.haml +1 -1
  17. data/app/views/bhf/entries/_form.haml +7 -1
  18. data/app/views/bhf/entries/form/embeds_many/_static.haml +3 -3
  19. data/app/views/bhf/entries/form/embeds_one/_static.haml +3 -3
  20. data/app/views/bhf/entries/form/has_many/_static.haml +5 -2
  21. data/app/views/bhf/entries/form/has_one/_static.haml +1 -1
  22. data/app/views/bhf/pages/_platform.haml +5 -2
  23. data/app/views/bhf/pages/macro/column/_boolean.haml +1 -1
  24. data/app/views/layouts/bhf/application.haml +7 -5
  25. data/bhf.gemspec +200 -0
  26. data/config/locales/de.yml +8 -3
  27. data/config/locales/en.yml +8 -3
  28. data/lib/bhf.rb +23 -13
  29. data/lib/bhf/data.rb +2 -2
  30. data/lib/bhf/form.rb +5 -4
  31. data/lib/bhf/mongoid/document.rb +1 -2
  32. data/lib/bhf/platform.rb +40 -31
  33. data/lib/bhf/settings.rb +5 -4
  34. data/lib/bhf/{config_parser.rb → settings_parser.rb} +4 -4
  35. data/lib/rails/generators/bhf/templates/initializer.rb +12 -16
  36. data/test/database.yml +9 -0
  37. data/test/test_helper.rb +55 -0
  38. metadata +86 -7
@@ -12,17 +12,17 @@ class Bhf::ApplicationController < ActionController::Base
12
12
  private
13
13
 
14
14
  def check_admin_account
15
- if session[Bhf::Engine.config.bhf.session_auth_name.to_s] == true
15
+ if session[Bhf.configuration.session_auth_name.to_s] == true
16
16
  return true
17
17
  end
18
- redirect_to(main_app.send(Bhf::Engine.config.bhf.on_login_fail.to_sym), error: t('bhf.helpers.user.login.error')) and return false
18
+ redirect_to(main_app.send(Bhf.configuration.on_login_fail.to_sym), error: t('bhf.helpers.user.login.error')) and return false
19
19
  end
20
20
 
21
21
  def setup_current_account
22
- if session[Bhf::Engine.config.bhf.session_account_id]
23
- @current_account = Bhf::Engine.config.bhf.account_model.constantize.send(
24
- Bhf::Engine.config.bhf.account_model_find_method.to_sym,
25
- session[Bhf::Engine.config.bhf.session_account_id.to_s]
22
+ if session[Bhf.configuration.session_account_id]
23
+ @current_account = Bhf.configuration.account_model.constantize.send(
24
+ Bhf.configuration.account_model_find_method.to_sym,
25
+ session[Bhf.configuration.session_account_id.to_s]
26
26
  )
27
27
  # => User.find(current_account.id)
28
28
  end
@@ -51,7 +51,7 @@ class Bhf::ApplicationController < ActionController::Base
51
51
  end
52
52
 
53
53
  def load_config
54
- @config = Bhf::ConfigParser::parse(get_account_roles(params[:bhf_area]), params[:bhf_area])
54
+ @settings = Bhf::SettingsParser::parse(get_account_roles(params[:bhf_area]), params[:bhf_area])
55
55
  end
56
56
 
57
57
  def set_title
@@ -97,10 +97,6 @@ class Bhf::ApplicationController < ActionController::Base
97
97
  end
98
98
 
99
99
 
100
- def store_location
101
- session[:return_to] = request.fullpath
102
- end
103
-
104
100
  def redirect_back_or_default(default, msg)
105
101
  redirect_to(params[:return_to] || default, flash: msg)
106
102
  end
@@ -17,12 +17,15 @@ class Bhf::EmbedEntriesController < Bhf::EntriesController
17
17
  if @object.save
18
18
  manage_many_to_many
19
19
  after_save
20
-
21
- edit_path = edit_entry_embed_path(@platform.name, @model.get_embedded_parent(params[:entry_id]), @object)
20
+
21
+ extra_data = {
22
+ edit_path: edit_entry_embed_path(@platform.name, @model.get_embedded_parent(params[:entry_id]), @object),
23
+ delete_path: entry_embed_path(@platform.name, @model.get_embedded_parent(params[:entry_id]), @object)
24
+ }
22
25
  if @quick_edit
23
- render json: object_to_bhf_display_hash.merge(edit_path: edit_path), status: :ok
26
+ render json: object_to_bhf_display_hash.merge(extra_data), status: :ok
24
27
  else
25
- redirect_back_or_default(edit_path, notice: set_message('create.success', @model))
28
+ redirect_after_save(notice: set_message('update.success', @model))
26
29
  end
27
30
  else
28
31
  @form_url = entry_embed_index_path(@platform.name, @model.get_embedded_parent(params[:entry_id]))
@@ -42,7 +45,7 @@ class Bhf::EmbedEntriesController < Bhf::EntriesController
42
45
  if @quick_edit
43
46
  render json: object_to_bhf_display_hash, status: :ok
44
47
  else
45
- redirect_back_or_default(edit_entry_embed_path(@platform.name, @model.get_embedded_parent(params[:entry_id]), @object), notice: set_message('update.success', @model))
48
+ redirect_after_save(notice: set_message('update.success', @model))
46
49
  end
47
50
  else
48
51
  @form_url = entry_embed_path(@platform.name, @model.get_embedded_parent(params[:entry_id]), @object)
@@ -64,5 +67,13 @@ class Bhf::EmbedEntriesController < Bhf::EntriesController
64
67
  @object = @model.bhf_new_embed(params[:entry_id], @permited_params)
65
68
  after_load
66
69
  end
70
+
71
+ def redirect_after_save(flash)
72
+ if params[:return_to_new]
73
+ redirect_to new_entry_embed_path(@platform.name, @model.get_embedded_parent(params[:entry_id])), flash
74
+ else
75
+ redirect_back_or_default(edit_entry_embed_path(@platform.name, @model.get_embedded_parent(params[:entry_id]), @object), flash)
76
+ end
77
+ end
67
78
 
68
79
  end
@@ -35,7 +35,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
35
35
  if @quick_edit
36
36
  render json: object_to_bhf_display_hash, status: :ok
37
37
  else
38
- redirect_back_or_default(page_url(@platform.page_name, anchor: "#{@platform.name}_platform"), {notice: set_message('create.success', @model), referral_entry: {id: @object.id, platform: @platform.name}})
38
+ redirect_after_save(notice: set_message('create.success', @model), referral_entry: {id: @object.id, platform: @platform.name})
39
39
  end
40
40
  else
41
41
  @form_url = entries_path(@platform.name)
@@ -57,7 +57,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
57
57
  if @quick_edit
58
58
  render json: object_to_bhf_display_hash, status: :ok
59
59
  else
60
- redirect_back_or_default(page_url(@platform.page_name, anchor: "#{@platform.name}_platform"), {notice: set_message('update.success', @model), referral_entry: {id: @object.id, platform: @platform.name}})
60
+ redirect_after_save(notice: set_message('update.success', @model), referral_entry: {id: @object.id, platform: @platform.name})
61
61
  end
62
62
  else
63
63
  @form_url = entry_path(@platform.name, @object)
@@ -101,7 +101,16 @@ class Bhf::EntriesController < Bhf::ApplicationController
101
101
  private
102
102
 
103
103
  def object_to_bhf_display_hash
104
- @platform.columns.each_with_object({to_bhf_s: @object.to_bhf_s, edit_path: edit_entry_path(@platform.name, @object), object_id: @object.id.to_s}) do |column, hash|
104
+ extra_data = {
105
+ to_bhf_s: @object.to_bhf_s,
106
+ object_id: @object.send(@object.class.bhf_primary_key).to_s,
107
+ edit_path: edit_entry_path(@platform.name, @object),
108
+ can_edit: ! @platform.hide_edit,
109
+ delete_path: entry_path(@platform.name, @object),
110
+ can_delete: ! @platform.hide_delete,
111
+ delete_confirm: t('bhf.helpers.promts.confirm')
112
+ }
113
+ @platform.columns.each_with_object(extra_data) do |column, hash|
105
114
  unless column.field.macro == :column && @object.send(column.name).blank?
106
115
  p = "bhf/pages/macro/#{column.field.macro}/#{column.field.display_type}"
107
116
  hash[column.name] = render_to_string partial: p, locals: {column: column, object: @object}
@@ -110,7 +119,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
110
119
  end
111
120
 
112
121
  def load_platform
113
- @platform = @config.find_platform(params[:platform], current_account)
122
+ @platform = @settings.find_platform(params[:platform], current_account)
114
123
  end
115
124
 
116
125
  def load_model
@@ -139,7 +148,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
139
148
  reflection.klass.unscoped.find(ids.keys).each do |relation_obj|
140
149
  has_relation = relation_array.include?(relation_obj)
141
150
 
142
- if ids[relation_obj.id.to_s].blank?
151
+ if ids[relation_obj.send(relation_obj.class.bhf_primary_key).to_s].blank?
143
152
  if has_relation
144
153
  relation_array.delete(relation_obj)
145
154
  end
@@ -172,4 +181,13 @@ class Bhf::EntriesController < Bhf::ApplicationController
172
181
  @quick_edit = request.xhr?
173
182
  end
174
183
 
184
+ def redirect_after_save(flash)
185
+ if params[:return_to_edit]
186
+ redirect_to edit_entry_path(@platform.name, @object), flash
187
+ elsif params[:return_to_new]
188
+ redirect_to new_entry_path(@platform.name), flash
189
+ else
190
+ redirect_back_or_default(page_url(@platform.page_name, anchor: "#{@platform.name}_platform"), flash)
191
+ end
192
+ end
175
193
  end
@@ -1,8 +1,8 @@
1
1
  class Bhf::PagesController < Bhf::ApplicationController
2
- before_filter :set_page, :store_location
2
+ before_filter :set_page
3
3
 
4
4
  def show
5
- unless platform_options = @config.content_for_page(@page)
5
+ unless platform_options = @settings.content_for_page(@page)
6
6
  raise Exception.new("Page '#{@page}' could not be found")
7
7
  end
8
8
 
@@ -13,7 +13,7 @@ class Bhf::PagesController < Bhf::ApplicationController
13
13
  end
14
14
 
15
15
  @platforms = platform_options.each_with_object([]) do |opts, obj|
16
- platform = Bhf::Platform.new(opts, @page, current_account)
16
+ platform = Bhf::Platform.new(opts, @page, @settings, current_account)
17
17
  next if platform.table_hide?
18
18
  platform.pagination = Bhf::Pagination.new(platform.entries_per_page)
19
19
  paginate_platform_objects(platform)
@@ -28,7 +28,7 @@ class Bhf::PagesController < Bhf::ApplicationController
28
28
  end
29
29
 
30
30
  def render_platform(platform_name)
31
- platform = @config.find_platform(platform_name, current_account)
31
+ platform = @settings.find_platform(platform_name, current_account)
32
32
 
33
33
  platform.pagination = Bhf::Pagination.new(platform.entries_per_page)
34
34
  paginate_platform_objects(platform)
@@ -2,7 +2,7 @@ module Bhf
2
2
  module FrontendHelper
3
3
 
4
4
  def bhf_edit(object, options = {}, &block)
5
- return unless session[Bhf::Engine.config.bhf.session_auth_name.to_s] == true
5
+ return unless session[Bhf.configuration.session_auth_name.to_s] == true
6
6
 
7
7
  options[:platform_name] ||= object.class.to_s.pluralize.downcase
8
8
 
@@ -1,5 +1,5 @@
1
1
  - if defined?(current_account) && current_account
2
2
  %p.user
3
3
  = t('bhf.helpers.user.login.as', user: current_account.to_bhf_s).html_safe
4
- - if main_app.respond_to?(Bhf::Engine.config.bhf.logout_path)
5
- = link_to t('bhf.helpers.user.logout.link'), main_app.send(Bhf::Engine.config.bhf.logout_path), method: :delete, class: :alt_button
4
+ - if main_app.respond_to?(Bhf.configuration.logout_path)
5
+ = link_to t('bhf.helpers.user.logout.link'), main_app.send(Bhf.configuration.logout_path), method: :delete, class: :alt_button
@@ -1,4 +1,4 @@
1
1
  .content_box
2
2
  %ul.basic_info_list
3
- - @config.pages.each do |page|
3
+ - @settings.pages.each do |page|
4
4
  %li= link_to t("bhf.pages.navigation.#{page}", default: page.capitalize), page_path(page)
@@ -15,5 +15,11 @@
15
15
  .node
16
16
  .label
17
17
  .input
18
- = f.submit t('bhf.helpers.form.submit.button', default: f.object.new_record? ? new_t(@platform) : edit_t(@platform))
18
+ - unless @object.class.bhf_embedded?
19
+ = f.submit t('bhf.helpers.form.buttons.save', platform_name: @platform.title_singular)
20
+ - unless @platform.hide_edit
21
+ = f.submit t('bhf.helpers.form.buttons.and_edit'), name: :return_to_edit, class: 'alt_button'
22
+ - unless @platform.hide_create
23
+ = f.submit t('bhf.helpers.form.buttons.and_add'), name: :return_to_new, class: 'alt_button'
24
+
19
25
  = link_to t('bhf.helpers.entry.cancel'), page_path(@platform.page_name), class: 'cancel'
@@ -4,9 +4,9 @@
4
4
  %ul.relation{class: field.macro}
5
5
  - ref_objects.each do |ref_object|
6
6
  %li
7
- = link_to_if field.link, ref_object.to_bhf_s, edit_entry_embed_path(field.link || 0, f.object, ref_object), class: :quick_edit
8
- - if field.link
7
+ = link_to_if field.link && ! field.link.hide_edit, ref_object.to_bhf_s, edit_entry_embed_path(field.link || 0, f.object, ref_object), class: :quick_edit
8
+ - if field.link && ! field.link.hide_delete
9
9
  = link_to '&times;'.html_safe, entry_embed_path(field.link, f.object, ref_object), method: :delete, class: :delete, remote: true, data: {confirm: t('bhf.helpers.promts.confirm')}
10
10
 
11
- - if field.link
11
+ - if field.link && ! field.link.hide_create
12
12
  = link_to '+', new_entry_embed_path(field.link, f.object), class: 'add_field quick_edit'
@@ -4,9 +4,9 @@
4
4
  %ul.relation{class: field.macro}
5
5
  %li
6
6
  - if ref_object
7
- = link_to_if field.link, ref_object.to_bhf_s, edit_entry_embed_path(field.link || 0, f.object, ref_object), class: :quick_edit
8
- - if field.link
7
+ = link_to_if field.link && ! field.link.hide_edit, ref_object.to_bhf_s, edit_entry_embed_path(field.link || 0, f.object, ref_object), class: :quick_edit
8
+ - if field.link && ! field.link.hide_delete
9
9
  = link_to '&times;'.html_safe, entry_embed_path(field.link, f.object, ref_object), method: :delete, class: :delete, remote: true, data: {confirm: t('bhf.helpers.promts.confirm')}
10
10
 
11
- - if field.link
11
+ - if field.link && ! field.link.hide_create
12
12
  = link_to '+', new_entry_embed_path(field.link, f.object), class: "add_field quick_edit #{('hide' if ref_object)}"
@@ -3,7 +3,10 @@
3
3
  %p.empty{class: ('hide' unless ref_objects.blank?)}= t 'bhf.helpers.entry.empty', count: 2
4
4
  %ul.relation{class: field.macro}
5
5
  - ref_objects.each do |ref_object|
6
- %li= link_to_if field.link, ref_object.to_bhf_s, edit_entry_path(field.link || 0, ref_object), class: :quick_edit
6
+ %li
7
+ = link_to_if field.link && ! field.link.hide_edit, ref_object.to_bhf_s, edit_entry_path(field.link || 0, ref_object), class: :quick_edit
8
+ - if field.link && ! field.link.hide_delete
9
+ = link_to '&times;'.html_safe, entry_path(field.link, ref_object), method: :delete, class: :delete, remote: true, data: {confirm: t('bhf.helpers.promts.confirm')}
7
10
 
8
- - if field.link
11
+ - if field.link && ! field.link.hide_create
9
12
  = link_to '+', new_entry_path(field.link), class: 'add_field quick_edit'
@@ -3,7 +3,7 @@
3
3
  %p.empty{class: ('hide' if ref_object)}= t 'bhf.helpers.entry.empty', count: 1
4
4
  %ul.relation{class: field.macro}
5
5
  - if ref_object
6
- %li= link_to_if field.link, ref_object.to_bhf_s, edit_entry_path(field.link || 0, ref_object), class: :quick_edit
6
+ %li= link_to_if field.link && ! field.link.hide_edit, ref_object.to_bhf_s, edit_entry_path(field.link || 0, ref_object), class: :quick_edit
7
7
 
8
8
  -# if field.link
9
9
  = link_to '+', new_entry_path(field.link), class: 'add_field quick_edit'
@@ -4,7 +4,7 @@
4
4
  - referral_id = (referral_entry[:platform] == platform.name && referral_entry[:id])
5
5
 
6
6
  - if platform.custom_partial
7
- = render partial: "bhf/pages/#{platform.custom_partial}", locals: {platform: platform}
7
+ = render partial: "bhf/pages/#{platform.custom_partial}", locals: {platform: platform, referral_id: referral_id}
8
8
  - else
9
9
  %table.data_table{id: "#{platform.name}_platform", class: (platform.custom_columns? ? :custom_columns : :default_columns)}
10
10
  %caption
@@ -42,7 +42,10 @@
42
42
  %td.drag
43
43
  %span.handle.icon &nbsp;
44
44
  - platform.columns.each do |column|
45
- %td{class: "#{column.field.macro} #{column.field.display_type}", data: {column_name: column.name}}
45
+ - css_classes = [column.field.macro, column.field.display_type]
46
+ - if column.field.display_type == :primary_key && object.send(column.name).to_s.length > 6
47
+ - css_classes << :key_long
48
+ %td{class: css_classes, data: {column_name: column.name}}
46
49
  - a = if column.field.display_type != :boolean && object.send(column.name).blank?
47
50
  - '&nbsp;'
48
51
  - else
@@ -1 +1 @@
1
- = t("bhf.helpers.boolean.#{object.send(column.name) ? 'a' : 'b'}")
1
+ = t("bhf.helpers.boolean.#{object.send(column.name)}")
@@ -4,7 +4,7 @@
4
4
  %meta{charset: 'utf-8'}
5
5
  %title= @title
6
6
  %link{href: "/favicon.ico?#{@app_title.to_s.downcase}", rel: 'icon', type: 'image/x-icon'}
7
- - Bhf::Engine.config.bhf.css.each do |css|
7
+ - Bhf.configuration.css.each do |css|
8
8
  = stylesheet_link_tag css
9
9
  %body
10
10
 
@@ -21,10 +21,10 @@
21
21
  - if @areas && @areas.length > 1
22
22
  = select_tag :area_select, options_from_collection_for_select(@areas, 'path', 'name', main_app.bhf_path(params[:bhf_area])), class: 'icon'
23
23
 
24
- - if @config && @config.pages.any?
24
+ - if @settings && @settings.pages.any?
25
25
  %nav
26
- %ul{class: ('shrink_space' if @config.pages.count > 7)}
27
- - @config.pages.each do |page|
26
+ %ul{class: ('shrink_space' if @settings.pages.count > 7)}
27
+ - @settings.pages.each do |page|
28
28
  %li{class: ('active' if @page == page)}
29
29
  = link_to t("bhf.pages.navigation.#{page}", default: page.capitalize), page_path(page)
30
30
 
@@ -36,5 +36,7 @@
36
36
  = render 'bhf/user'
37
37
  = render 'bhf/footer'
38
38
 
39
- - Bhf::Engine.config.bhf.js.each do |js|
39
+ - Bhf.configuration.js.each do |js|
40
40
  = javascript_include_tag js, data: {turbolinks_eval: false}
41
+
42
+
data/bhf.gemspec ADDED
@@ -0,0 +1,200 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: bhf 0.8.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "bhf"
9
+ s.version = "0.8.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Anton Pawlik"]
14
+ s.date = "2014-06-11"
15
+ s.description = "Gets you there on time"
16
+ s.email = "anton.pawlik@gmail.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.md",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "app/assets/images/bhf/ajax_loader.gif",
29
+ "app/assets/images/bhf/bg.png",
30
+ "app/assets/images/bhf/mooeditable-toolbarbuttons-tango.png",
31
+ "app/assets/images/bhf/pictos.png",
32
+ "app/assets/images/bhf/pictos_2x.png",
33
+ "app/assets/images/bhf/small_ajax_loader.gif",
34
+ "app/assets/images/bhf/small_ajax_loader_h.gif",
35
+ "app/assets/images/bhf/wmd-buttons.png",
36
+ "app/assets/images/logo_bhf.svg",
37
+ "app/assets/javascripts/bhf/application.js",
38
+ "app/assets/javascripts/bhf/classes/AjaxEdit.js",
39
+ "app/assets/javascripts/bhf/classes/AjaxEditStack.js",
40
+ "app/assets/javascripts/bhf/classes/Ajaxify.js",
41
+ "app/assets/javascripts/bhf/classes/ArrayFields.js",
42
+ "app/assets/javascripts/bhf/classes/FormHelper.js",
43
+ "app/assets/javascripts/bhf/classes/Locale.de-DE.js",
44
+ "app/assets/javascripts/bhf/classes/Locale.en-US.js",
45
+ "app/assets/javascripts/bhf/classes/MooEditable.js",
46
+ "app/assets/javascripts/bhf/classes/MultipleFields.js",
47
+ "app/assets/javascripts/bhf/classes/Picker.js",
48
+ "app/assets/javascripts/bhf/classes/Picker_Attach.js",
49
+ "app/assets/javascripts/bhf/classes/Picker_Date.js",
50
+ "app/assets/javascripts/bhf/classes/PlatformHelper.js",
51
+ "app/assets/javascripts/bhf/classes/Setlatlng.js",
52
+ "app/assets/javascripts/bhf/classes/showdown.js",
53
+ "app/assets/javascripts/bhf/classes/wmd.js",
54
+ "app/assets/javascripts/bhf/mootools-core-1.5.0-full-compat.js",
55
+ "app/assets/javascripts/bhf/mootools-more-1.5.0.js",
56
+ "app/assets/javascripts/bhf/mootools_ujs.js",
57
+ "app/assets/stylesheets/bhf/MooEditable.css.scss",
58
+ "app/assets/stylesheets/bhf/application.css.sass",
59
+ "app/assets/stylesheets/bhf/functions.css.sass",
60
+ "app/assets/stylesheets/bhf/reset.css.sass",
61
+ "app/assets/stylesheets/bhf/typo.css.scss",
62
+ "app/controllers/bhf/application_controller.rb",
63
+ "app/controllers/bhf/embed_entries_controller.rb",
64
+ "app/controllers/bhf/entries_controller.rb",
65
+ "app/controllers/bhf/pages_controller.rb",
66
+ "app/helpers/bhf/application_helper.rb",
67
+ "app/helpers/bhf/entries_helper.rb",
68
+ "app/helpers/bhf/frontend_helper.rb",
69
+ "app/helpers/bhf/pages_helper.rb",
70
+ "app/views/bhf/_footer.haml",
71
+ "app/views/bhf/_user.haml",
72
+ "app/views/bhf/application/index.haml",
73
+ "app/views/bhf/entries/_form.haml",
74
+ "app/views/bhf/entries/_validation_errors.haml",
75
+ "app/views/bhf/entries/edit.haml",
76
+ "app/views/bhf/entries/form/belongs_to/_account_scope.haml",
77
+ "app/views/bhf/entries/form/belongs_to/_radio.haml",
78
+ "app/views/bhf/entries/form/belongs_to/_select.haml",
79
+ "app/views/bhf/entries/form/belongs_to/_static.haml",
80
+ "app/views/bhf/entries/form/column/_array.haml",
81
+ "app/views/bhf/entries/form/column/_boolean.haml",
82
+ "app/views/bhf/entries/form/column/_date.haml",
83
+ "app/views/bhf/entries/form/column/_hash.haml",
84
+ "app/views/bhf/entries/form/column/_mappin.haml",
85
+ "app/views/bhf/entries/form/column/_markdown.haml",
86
+ "app/views/bhf/entries/form/column/_multiple_fields.haml",
87
+ "app/views/bhf/entries/form/column/_number.haml",
88
+ "app/views/bhf/entries/form/column/_paperclip.haml",
89
+ "app/views/bhf/entries/form/column/_password.haml",
90
+ "app/views/bhf/entries/form/column/_static.haml",
91
+ "app/views/bhf/entries/form/column/_string.haml",
92
+ "app/views/bhf/entries/form/column/_text.haml",
93
+ "app/views/bhf/entries/form/column/_wysiwyg.haml",
94
+ "app/views/bhf/entries/form/embeds_many/_static.haml",
95
+ "app/views/bhf/entries/form/embeds_one/_static.haml",
96
+ "app/views/bhf/entries/form/has_and_belongs_to_many/_account_scope.haml",
97
+ "app/views/bhf/entries/form/has_and_belongs_to_many/_check_box.haml",
98
+ "app/views/bhf/entries/form/has_and_belongs_to_many/_static.haml",
99
+ "app/views/bhf/entries/form/has_many/_static.haml",
100
+ "app/views/bhf/entries/form/has_one/_account_scope.haml",
101
+ "app/views/bhf/entries/form/has_one/_static.haml",
102
+ "app/views/bhf/entries/new.haml",
103
+ "app/views/bhf/entries/show.haml",
104
+ "app/views/bhf/helper/_definition_item.haml",
105
+ "app/views/bhf/helper/_field_errors.haml",
106
+ "app/views/bhf/helper/_flash.haml",
107
+ "app/views/bhf/helper/_frontend_edit.haml",
108
+ "app/views/bhf/helper/_info.haml",
109
+ "app/views/bhf/helper/_node.haml",
110
+ "app/views/bhf/helper/_reflection_node.haml",
111
+ "app/views/bhf/pages/_platform.haml",
112
+ "app/views/bhf/pages/_search.haml",
113
+ "app/views/bhf/pages/macro/belongs_to/_default.haml",
114
+ "app/views/bhf/pages/macro/column/_array.haml",
115
+ "app/views/bhf/pages/macro/column/_boolean.haml",
116
+ "app/views/bhf/pages/macro/column/_date.haml",
117
+ "app/views/bhf/pages/macro/column/_extern_link.haml",
118
+ "app/views/bhf/pages/macro/column/_file.haml",
119
+ "app/views/bhf/pages/macro/column/_hash.haml",
120
+ "app/views/bhf/pages/macro/column/_image.haml",
121
+ "app/views/bhf/pages/macro/column/_number.haml",
122
+ "app/views/bhf/pages/macro/column/_paperclip.haml",
123
+ "app/views/bhf/pages/macro/column/_primary_key.haml",
124
+ "app/views/bhf/pages/macro/column/_string.haml",
125
+ "app/views/bhf/pages/macro/column/_text.haml",
126
+ "app/views/bhf/pages/macro/embeds_many/_default.haml",
127
+ "app/views/bhf/pages/macro/embeds_one/_default.haml",
128
+ "app/views/bhf/pages/macro/has_and_belongs_to_many/_default.haml",
129
+ "app/views/bhf/pages/macro/has_many/_default.haml",
130
+ "app/views/bhf/pages/macro/has_one/_default.haml",
131
+ "app/views/bhf/pages/show.haml",
132
+ "app/views/kaminari/bhf/_gap.html.haml",
133
+ "app/views/kaminari/bhf/_next_page.html.haml",
134
+ "app/views/kaminari/bhf/_page.html.haml",
135
+ "app/views/kaminari/bhf/_paginator.html.haml",
136
+ "app/views/kaminari/bhf/_prev_page.html.haml",
137
+ "app/views/layouts/bhf/application.haml",
138
+ "app/views/layouts/bhf/quick_edit.haml",
139
+ "bhf.gemspec",
140
+ "config/locales/de.yml",
141
+ "config/locales/en.yml",
142
+ "config/routes.rb",
143
+ "lib/bhf.rb",
144
+ "lib/bhf/active_record/active_record.rb",
145
+ "lib/bhf/data.rb",
146
+ "lib/bhf/form.rb",
147
+ "lib/bhf/mongoid/document.rb",
148
+ "lib/bhf/pagination.rb",
149
+ "lib/bhf/platform.rb",
150
+ "lib/bhf/settings.rb",
151
+ "lib/bhf/settings_parser.rb",
152
+ "lib/rails/generators/bhf/templates/initializer.rb",
153
+ "test/database.yml",
154
+ "test/test_helper.rb"
155
+ ]
156
+ s.homepage = "http://antpaw.github.io/bhf"
157
+ s.licenses = ["MIT"]
158
+ s.rubygems_version = "2.2.2"
159
+ s.summary = "Agnostic Rails backend"
160
+
161
+ if s.respond_to? :specification_version then
162
+ s.specification_version = 4
163
+
164
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
165
+ s.add_runtime_dependency(%q<rails>, ["~> 4.1.1"])
166
+ s.add_runtime_dependency(%q<turbolinks>, ["~> 2.1"])
167
+ s.add_runtime_dependency(%q<kaminari>, ["~> 0.15"])
168
+ s.add_runtime_dependency(%q<haml-rails>, ["~> 0.4"])
169
+ s.add_runtime_dependency(%q<sass-rails>, ["~> 4.0"])
170
+ s.add_development_dependency(%q<shoulda>, ["~> 3.5"])
171
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
172
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
173
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
174
+ s.add_development_dependency(%q<simplecov>, ["~> 0.8"])
175
+ else
176
+ s.add_dependency(%q<rails>, ["~> 4.1.1"])
177
+ s.add_dependency(%q<turbolinks>, ["~> 2.1"])
178
+ s.add_dependency(%q<kaminari>, ["~> 0.15"])
179
+ s.add_dependency(%q<haml-rails>, ["~> 0.4"])
180
+ s.add_dependency(%q<sass-rails>, ["~> 4.0"])
181
+ s.add_dependency(%q<shoulda>, ["~> 3.5"])
182
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
183
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
184
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
185
+ s.add_dependency(%q<simplecov>, ["~> 0.8"])
186
+ end
187
+ else
188
+ s.add_dependency(%q<rails>, ["~> 4.1.1"])
189
+ s.add_dependency(%q<turbolinks>, ["~> 2.1"])
190
+ s.add_dependency(%q<kaminari>, ["~> 0.15"])
191
+ s.add_dependency(%q<haml-rails>, ["~> 0.4"])
192
+ s.add_dependency(%q<sass-rails>, ["~> 4.0"])
193
+ s.add_dependency(%q<shoulda>, ["~> 3.5"])
194
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
195
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
196
+ s.add_dependency(%q<jeweler>, ["~> 2.0"])
197
+ s.add_dependency(%q<simplecov>, ["~> 0.8"])
198
+ end
199
+ end
200
+