wobapphelpers 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +155 -0
- data/Rakefile +30 -0
- data/app/assets/stylesheets/wobapphelpers/breadcrumbs.scss +13 -0
- data/config/locales/de.yml +9 -0
- data/config/locales/en.yml +9 -0
- data/lib/generators/templates/erb/scaffold/_form.html.erb +26 -0
- data/lib/generators/templates/erb/scaffold/edit.html.erb +1 -0
- data/lib/generators/templates/erb/scaffold/index.html.erb +32 -0
- data/lib/generators/templates/erb/scaffold/new.html.erb +1 -0
- data/lib/generators/templates/erb/scaffold/show.html.erb +15 -0
- data/lib/generators/templates/initializers/wobapphelpers.rb +18 -0
- data/lib/generators/templates/layouts/application.html.erb +44 -0
- data/lib/generators/templates/rails/scaffold_controller/controller.rb +66 -0
- data/lib/generators/wobapphelpers/install_generator.rb +24 -0
- data/lib/generators/wobapphelpers/scaffold_templates_generator.rb +20 -0
- data/lib/tasks/wobapphelpers_tasks.rake +4 -0
- data/lib/wobapphelpers.rb +37 -0
- data/lib/wobapphelpers/breadcrumbs.rb +16 -0
- data/lib/wobapphelpers/breadcrumbs/action_controller.rb +57 -0
- data/lib/wobapphelpers/breadcrumbs/breadcrumbs_helper.rb +26 -0
- data/lib/wobapphelpers/helpers.rb +12 -0
- data/lib/wobapphelpers/helpers/action_view_helper.rb +170 -0
- data/lib/wobapphelpers/helpers/icon_helper.rb +39 -0
- data/lib/wobapphelpers/rails.rb +4 -0
- data/lib/wobapphelpers/responders.rb +13 -0
- data/lib/wobapphelpers/responders/locales/de.yml +12 -0
- data/lib/wobapphelpers/responders/locales/en.yml +12 -0
- data/lib/wobapphelpers/version.rb +4 -0
- data/test/breadcrumbs/action_controller_test.rb +44 -0
- data/test/breadcrumbs/breadcrumb_helper_test.rb +35 -0
- data/test/dummy/app/controllers/application_controller.rb +19 -0
- data/test/dummy/app/controllers/blogs_controller.rb +55 -0
- data/test/dummy/app/controllers/home_controller.rb +7 -0
- data/test/dummy/app/controllers/posts_controller.rb +58 -0
- data/test/dummy/app/helpers/application_helper.rb +3 -0
- data/test/dummy/app/helpers/blogs_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/blog.rb +2 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/config/application.rb +31 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +83 -0
- data/test/dummy/config/environments/test.rb +45 -0
- data/test/dummy/config/initializers/assets.rb +1 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/simple_form.rb +161 -0
- data/test/dummy/config/initializers/simple_form_bootstrap.rb +107 -0
- data/test/dummy/config/initializers/wobapphelpers.rb +9 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/routes.rb +61 -0
- data/test/dummy/db/migrate/20140420155942_create_posts.rb +12 -0
- data/test/dummy/db/migrate/20140516164637_create_blogs.rb +12 -0
- data/test/dummy/db/schema.rb +33 -0
- data/test/dummy/lib/templates/rails/scaffold_controller/controller.rb +65 -0
- data/test/generators/install_generator_test.rb +29 -0
- data/test/generators/scaffold_templates_generator_test.rb +16 -0
- data/test/helpers/action_view_helper_test.rb +41 -0
- data/test/helpers/active_class_helper_test.rb +9 -0
- data/test/helpers/can_view_helper_test.rb +172 -0
- data/test/helpers/flash_helper_test.rb +11 -0
- data/test/helpers/form_legend_test.rb +29 -0
- data/test/helpers/icon_helper_test.rb +21 -0
- data/test/helpers/show_edit_delete_link_helper_test.rb +45 -0
- data/test/integration/helper_delivery_test.rb +28 -0
- data/test/responders/flash_test.rb +23 -0
- data/test/test_helper.rb +42 -0
- data/test/tmp/lib/templates/rails/scaffold_controller/controller.rb +66 -0
- data/test/translate_test.rb +10 -0
- data/test/wobapphelpers_test.rb +20 -0
- metadata +371 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class HelperDeliveryTest < ActionDispatch::IntegrationTest
|
4
|
+
|
5
|
+
setup do
|
6
|
+
Post.create!(subject: 'brabbel', body: 'Dies ist ein Test', user: 'wob', release: Date.today)
|
7
|
+
Post.create!(subject: 'fasel', body: 'Dies ist ein zweiter Test', user: 'wob', release: Date.today)
|
8
|
+
end
|
9
|
+
|
10
|
+
test "rendering icon" do
|
11
|
+
get home_path
|
12
|
+
assert_response :success
|
13
|
+
Wobapphelpers::Helpers::IconHelper::PREDEFINED_ICONS.each do |key,value|
|
14
|
+
assert_match "<i class=\"fa fa-#{value} fa-fw\" aria-hidden=\"true\"></i>", response.body
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
test "Post#index" do
|
19
|
+
get posts_path
|
20
|
+
assert_response :success
|
21
|
+
end
|
22
|
+
|
23
|
+
test "render new_link for all models" do
|
24
|
+
get home_path
|
25
|
+
assert_select "a[href=?]", "/posts/new", count: 2
|
26
|
+
assert_select "a[href=?]", "/blogs/new", count: 1
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require "wobapphelpers/responders.rb"
|
3
|
+
|
4
|
+
class FlashTest < ActionController::TestCase
|
5
|
+
tests PostsController
|
6
|
+
|
7
|
+
test "flash[notice] should be set with successful creation info" do
|
8
|
+
post :create, params: { post: {subject: "Quark", body: "just a test"} }
|
9
|
+
assert_equal "Posting erfolgreich erstellt.", flash[:notice]
|
10
|
+
end
|
11
|
+
|
12
|
+
test "flash[notice] should be set with successful update info" do
|
13
|
+
post = Post.create!(subject: "Memo")
|
14
|
+
put :update, params: { id: post.id, post: { body: "just a test"} }
|
15
|
+
assert_equal "Posting erfolgreich aktualisiert.", flash[:notice]
|
16
|
+
end
|
17
|
+
|
18
|
+
test "flash[notice] should be set with successful deletion message" do
|
19
|
+
post = Post.create!(subject: "Memo")
|
20
|
+
delete :destroy, params: { id: post.id }
|
21
|
+
assert_equal "Posting erfolgreich gelöscht.", flash[:notice]
|
22
|
+
end
|
23
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
require 'capybara/rails'
|
7
|
+
require 'mocha/test_unit'
|
8
|
+
require 'rails-controller-testing'
|
9
|
+
Rails::Controller::Testing.install
|
10
|
+
|
11
|
+
Rails.backtrace_cleaner.remove_silencers!
|
12
|
+
|
13
|
+
# load locales from config/locales
|
14
|
+
Dir["#{File.dirname(__FILE__)}/../config/locales/**/*.yml"].each do |f|
|
15
|
+
I18n.load_path << f
|
16
|
+
end
|
17
|
+
|
18
|
+
# Load support files
|
19
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
20
|
+
|
21
|
+
# Load fixtures from the engine
|
22
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
23
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
24
|
+
end
|
25
|
+
|
26
|
+
class ActionDispatch::IntegrationTest
|
27
|
+
# Make the Capybara DSL available in all integration tests
|
28
|
+
include Capybara::DSL
|
29
|
+
end
|
30
|
+
|
31
|
+
# For generators
|
32
|
+
require "rails/generators/test_case"
|
33
|
+
require "generators/wobapphelpers/install_generator"
|
34
|
+
require "generators/wobapphelpers/scaffold_templates_generator"
|
35
|
+
require "cancancan"
|
36
|
+
|
37
|
+
class Ability
|
38
|
+
include CanCan::Ability
|
39
|
+
|
40
|
+
def initialize(user)
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<% if namespaced? -%>
|
2
|
+
require_dependency "<%= namespaced_file_path %>/application_controller"
|
3
|
+
|
4
|
+
<% end -%>
|
5
|
+
<% module_namespacing do -%>
|
6
|
+
class <%= controller_class_name %>Controller < ApplicationController
|
7
|
+
before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy]
|
8
|
+
before_action :add_breadcrumb_show, only: [:show]
|
9
|
+
|
10
|
+
# GET <%= route_url %>
|
11
|
+
def index
|
12
|
+
@<%= plural_table_name %> = <%= orm_class.all(class_name) %>
|
13
|
+
respond_with(@<%= plural_table_name %>)
|
14
|
+
end
|
15
|
+
|
16
|
+
# GET <%= route_url %>/1
|
17
|
+
def show
|
18
|
+
respond_with(@<%= singular_table_name %>)
|
19
|
+
end
|
20
|
+
|
21
|
+
# GET <%= route_url %>/new
|
22
|
+
def new
|
23
|
+
@<%= singular_table_name %> = <%= orm_class.build(class_name) %>
|
24
|
+
respond_with(@<%= singular_table_name %>)
|
25
|
+
end
|
26
|
+
|
27
|
+
# GET <%= route_url %>/1/edit
|
28
|
+
def edit
|
29
|
+
end
|
30
|
+
|
31
|
+
# POST <%= route_url %>
|
32
|
+
def create
|
33
|
+
@<%= singular_table_name %> = <%= orm_class.build(class_name, "#{singular_table_name}_params") %>
|
34
|
+
|
35
|
+
@<%= orm_instance.save %>
|
36
|
+
respond_with(@<%= singular_table_name %>)
|
37
|
+
end
|
38
|
+
|
39
|
+
# PATCH/PUT <%= route_url %>/1
|
40
|
+
def update
|
41
|
+
@<%= orm_instance.update("#{singular_table_name}_params") %>
|
42
|
+
respond_with(@<%= singular_table_name %>)
|
43
|
+
end
|
44
|
+
|
45
|
+
# DELETE <%= route_url %>/1
|
46
|
+
def destroy
|
47
|
+
@<%= orm_instance.destroy %>
|
48
|
+
respond_with(@<%= singular_table_name %>)
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
# Use callbacks to share common setup or constraints between actions.
|
53
|
+
def set_<%= singular_table_name %>
|
54
|
+
@<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
|
55
|
+
end
|
56
|
+
|
57
|
+
# Only allow a trusted parameter "white list" through.
|
58
|
+
def <%= "#{singular_table_name}_params" %>
|
59
|
+
<%- if attributes_names.empty? -%>
|
60
|
+
params[:<%= singular_table_name %>]
|
61
|
+
<%- else -%>
|
62
|
+
params.require(:<%= singular_table_name %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
|
63
|
+
<%- end -%>
|
64
|
+
end
|
65
|
+
end
|
66
|
+
<% end -%>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TranslateTest < ActionView::TestCase
|
4
|
+
test "translate cancel string" do
|
5
|
+
assert_equal t('wobapphelpers.helpers.cancel'), "Abbrechen"
|
6
|
+
end
|
7
|
+
test "translate generic controller action" do
|
8
|
+
assert_equal t('wobapphelpers.controller.new', name: "Modell"), "Modell erstellen"
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class WobapphelpersTest < ActiveSupport::TestCase
|
4
|
+
test "truth" do
|
5
|
+
assert_kind_of Module, Wobapphelpers
|
6
|
+
end
|
7
|
+
|
8
|
+
[:cancan1, :cancan2, :none].each do |variant|
|
9
|
+
test "configure cancan to #{variant.to_s}" do
|
10
|
+
Wobapphelpers.setup {|config| config.cancan = variant}
|
11
|
+
assert_equal variant, Wobapphelpers::cancan
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
test "configure raise error if cancan is invalid" do
|
16
|
+
assert_raises RuntimeError do
|
17
|
+
Wobapphelpers.setup {|config| config.cancan = :invalid}
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,371 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wobapphelpers
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Wolfgang Barth
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-07-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: responders
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sassc-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coffee-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jquery-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: record_tag_helper
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: font-awesome-sass
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.7'
|
104
|
+
- - "<="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '6'
|
107
|
+
type: :runtime
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '4.7'
|
114
|
+
- - "<="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '6'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: sqlite3
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: capybara
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: cancancan
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: shoulda-context
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: mocha
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: simple_form
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: rails-controller-testing
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0'
|
215
|
+
description: Rails helpers and more shared between wob's rails applications
|
216
|
+
email:
|
217
|
+
- wob@swobspace.de
|
218
|
+
executables: []
|
219
|
+
extensions: []
|
220
|
+
extra_rdoc_files: []
|
221
|
+
files:
|
222
|
+
- LICENSE
|
223
|
+
- README.md
|
224
|
+
- Rakefile
|
225
|
+
- app/assets/stylesheets/wobapphelpers/breadcrumbs.scss
|
226
|
+
- config/locales/de.yml
|
227
|
+
- config/locales/en.yml
|
228
|
+
- lib/generators/templates/erb/scaffold/_form.html.erb
|
229
|
+
- lib/generators/templates/erb/scaffold/edit.html.erb
|
230
|
+
- lib/generators/templates/erb/scaffold/index.html.erb
|
231
|
+
- lib/generators/templates/erb/scaffold/new.html.erb
|
232
|
+
- lib/generators/templates/erb/scaffold/show.html.erb
|
233
|
+
- lib/generators/templates/initializers/wobapphelpers.rb
|
234
|
+
- lib/generators/templates/layouts/application.html.erb
|
235
|
+
- lib/generators/templates/rails/scaffold_controller/controller.rb
|
236
|
+
- lib/generators/wobapphelpers/install_generator.rb
|
237
|
+
- lib/generators/wobapphelpers/scaffold_templates_generator.rb
|
238
|
+
- lib/tasks/wobapphelpers_tasks.rake
|
239
|
+
- lib/wobapphelpers.rb
|
240
|
+
- lib/wobapphelpers/breadcrumbs.rb
|
241
|
+
- lib/wobapphelpers/breadcrumbs/action_controller.rb
|
242
|
+
- lib/wobapphelpers/breadcrumbs/breadcrumbs_helper.rb
|
243
|
+
- lib/wobapphelpers/helpers.rb
|
244
|
+
- lib/wobapphelpers/helpers/action_view_helper.rb
|
245
|
+
- lib/wobapphelpers/helpers/icon_helper.rb
|
246
|
+
- lib/wobapphelpers/rails.rb
|
247
|
+
- lib/wobapphelpers/responders.rb
|
248
|
+
- lib/wobapphelpers/responders/locales/de.yml
|
249
|
+
- lib/wobapphelpers/responders/locales/en.yml
|
250
|
+
- lib/wobapphelpers/version.rb
|
251
|
+
- test/breadcrumbs/action_controller_test.rb
|
252
|
+
- test/breadcrumbs/breadcrumb_helper_test.rb
|
253
|
+
- test/dummy/app/controllers/application_controller.rb
|
254
|
+
- test/dummy/app/controllers/blogs_controller.rb
|
255
|
+
- test/dummy/app/controllers/home_controller.rb
|
256
|
+
- test/dummy/app/controllers/posts_controller.rb
|
257
|
+
- test/dummy/app/helpers/application_helper.rb
|
258
|
+
- test/dummy/app/helpers/blogs_helper.rb
|
259
|
+
- test/dummy/app/helpers/posts_helper.rb
|
260
|
+
- test/dummy/app/models/blog.rb
|
261
|
+
- test/dummy/app/models/post.rb
|
262
|
+
- test/dummy/config/application.rb
|
263
|
+
- test/dummy/config/boot.rb
|
264
|
+
- test/dummy/config/environment.rb
|
265
|
+
- test/dummy/config/environments/development.rb
|
266
|
+
- test/dummy/config/environments/production.rb
|
267
|
+
- test/dummy/config/environments/test.rb
|
268
|
+
- test/dummy/config/initializers/assets.rb
|
269
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
270
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
271
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
272
|
+
- test/dummy/config/initializers/inflections.rb
|
273
|
+
- test/dummy/config/initializers/mime_types.rb
|
274
|
+
- test/dummy/config/initializers/session_store.rb
|
275
|
+
- test/dummy/config/initializers/simple_form.rb
|
276
|
+
- test/dummy/config/initializers/simple_form_bootstrap.rb
|
277
|
+
- test/dummy/config/initializers/wobapphelpers.rb
|
278
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
279
|
+
- test/dummy/config/routes.rb
|
280
|
+
- test/dummy/db/migrate/20140420155942_create_posts.rb
|
281
|
+
- test/dummy/db/migrate/20140516164637_create_blogs.rb
|
282
|
+
- test/dummy/db/schema.rb
|
283
|
+
- test/dummy/lib/templates/rails/scaffold_controller/controller.rb
|
284
|
+
- test/generators/install_generator_test.rb
|
285
|
+
- test/generators/scaffold_templates_generator_test.rb
|
286
|
+
- test/helpers/action_view_helper_test.rb
|
287
|
+
- test/helpers/active_class_helper_test.rb
|
288
|
+
- test/helpers/can_view_helper_test.rb
|
289
|
+
- test/helpers/flash_helper_test.rb
|
290
|
+
- test/helpers/form_legend_test.rb
|
291
|
+
- test/helpers/icon_helper_test.rb
|
292
|
+
- test/helpers/show_edit_delete_link_helper_test.rb
|
293
|
+
- test/integration/helper_delivery_test.rb
|
294
|
+
- test/responders/flash_test.rb
|
295
|
+
- test/test_helper.rb
|
296
|
+
- test/tmp/lib/templates/rails/scaffold_controller/controller.rb
|
297
|
+
- test/translate_test.rb
|
298
|
+
- test/wobapphelpers_test.rb
|
299
|
+
homepage: http://github.com/swobspace/wobapphelpers
|
300
|
+
licenses:
|
301
|
+
- MIT
|
302
|
+
metadata: {}
|
303
|
+
post_install_message:
|
304
|
+
rdoc_options: []
|
305
|
+
require_paths:
|
306
|
+
- lib
|
307
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
308
|
+
requirements:
|
309
|
+
- - ">="
|
310
|
+
- !ruby/object:Gem::Version
|
311
|
+
version: '0'
|
312
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
313
|
+
requirements:
|
314
|
+
- - ">="
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
version: '0'
|
317
|
+
requirements: []
|
318
|
+
rubyforge_project:
|
319
|
+
rubygems_version: 2.6.14.1
|
320
|
+
signing_key:
|
321
|
+
specification_version: 4
|
322
|
+
summary: Rails helpers and more shared between wob's rails applications
|
323
|
+
test_files:
|
324
|
+
- test/tmp/lib/templates/rails/scaffold_controller/controller.rb
|
325
|
+
- test/wobapphelpers_test.rb
|
326
|
+
- test/helpers/can_view_helper_test.rb
|
327
|
+
- test/helpers/action_view_helper_test.rb
|
328
|
+
- test/helpers/show_edit_delete_link_helper_test.rb
|
329
|
+
- test/helpers/icon_helper_test.rb
|
330
|
+
- test/helpers/form_legend_test.rb
|
331
|
+
- test/helpers/flash_helper_test.rb
|
332
|
+
- test/helpers/active_class_helper_test.rb
|
333
|
+
- test/translate_test.rb
|
334
|
+
- test/integration/helper_delivery_test.rb
|
335
|
+
- test/responders/flash_test.rb
|
336
|
+
- test/generators/scaffold_templates_generator_test.rb
|
337
|
+
- test/generators/install_generator_test.rb
|
338
|
+
- test/test_helper.rb
|
339
|
+
- test/breadcrumbs/action_controller_test.rb
|
340
|
+
- test/breadcrumbs/breadcrumb_helper_test.rb
|
341
|
+
- test/dummy/app/helpers/posts_helper.rb
|
342
|
+
- test/dummy/app/helpers/blogs_helper.rb
|
343
|
+
- test/dummy/app/helpers/application_helper.rb
|
344
|
+
- test/dummy/app/controllers/posts_controller.rb
|
345
|
+
- test/dummy/app/controllers/application_controller.rb
|
346
|
+
- test/dummy/app/controllers/blogs_controller.rb
|
347
|
+
- test/dummy/app/controllers/home_controller.rb
|
348
|
+
- test/dummy/app/models/blog.rb
|
349
|
+
- test/dummy/app/models/post.rb
|
350
|
+
- test/dummy/db/schema.rb
|
351
|
+
- test/dummy/db/migrate/20140516164637_create_blogs.rb
|
352
|
+
- test/dummy/db/migrate/20140420155942_create_posts.rb
|
353
|
+
- test/dummy/config/environment.rb
|
354
|
+
- test/dummy/config/initializers/assets.rb
|
355
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
356
|
+
- test/dummy/config/initializers/inflections.rb
|
357
|
+
- test/dummy/config/initializers/mime_types.rb
|
358
|
+
- test/dummy/config/initializers/session_store.rb
|
359
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
360
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
361
|
+
- test/dummy/config/initializers/simple_form.rb
|
362
|
+
- test/dummy/config/initializers/simple_form_bootstrap.rb
|
363
|
+
- test/dummy/config/initializers/wobapphelpers.rb
|
364
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
365
|
+
- test/dummy/config/boot.rb
|
366
|
+
- test/dummy/config/application.rb
|
367
|
+
- test/dummy/config/environments/development.rb
|
368
|
+
- test/dummy/config/environments/production.rb
|
369
|
+
- test/dummy/config/environments/test.rb
|
370
|
+
- test/dummy/config/routes.rb
|
371
|
+
- test/dummy/lib/templates/rails/scaffold_controller/controller.rb
|