textile_editor_helper 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +0 -0
- data/.gitignore +0 -0
- data/CHANGELOG.md +0 -0
- data/Gemfile +1 -1
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/features/copy_assets.feature +6 -6
- data/features/step_definitions/common_steps.rb +0 -0
- data/features/step_definitions/rails_setup_steps.rb +0 -0
- data/features/support/env.rb +0 -0
- data/features/support/setup.rb +0 -0
- data/lib/generators/textile_editor_helper/install_generator.rb +0 -0
- data/lib/helpers/default.rb +1 -2
- data/lib/helpers/formtastic.rb +0 -0
- data/lib/helpers/simple_form.rb +2 -2
- data/lib/helpers/textile_editor_initialize.rb +0 -0
- data/lib/textile_editor_helper/version.rb +1 -1
- data/lib/textile_editor_helper.rb +0 -0
- data/test/abstract_unit.rb +0 -0
- data/test/formtastic_test.rb +0 -0
- data/test/simple_form_test.rb +0 -0
- data/test/support_methods.rb +0 -0
- data/test/test_helper.rb +2 -0
- data/test/textile_editor_helper_test.rb +1 -1
- data/textile_editor_helper.gemspec +0 -0
- data/travis.yml +0 -0
- data/vendor/README +0 -0
- data/vendor/assets/images/textile-editor/background.png +0 -0
- data/vendor/assets/images/textile-editor/blockquote.png +0 -0
- data/vendor/assets/images/textile-editor/bold.png +0 -0
- data/vendor/assets/images/textile-editor/center.png +0 -0
- data/vendor/assets/images/textile-editor/h1.png +0 -0
- data/vendor/assets/images/textile-editor/h2.png +0 -0
- data/vendor/assets/images/textile-editor/h3.png +0 -0
- data/vendor/assets/images/textile-editor/h4.png +0 -0
- data/vendor/assets/images/textile-editor/h5.png +0 -0
- data/vendor/assets/images/textile-editor/h6.png +0 -0
- data/vendor/assets/images/textile-editor/indent.png +0 -0
- data/vendor/assets/images/textile-editor/italic.png +0 -0
- data/vendor/assets/images/textile-editor/justify.png +0 -0
- data/vendor/assets/images/textile-editor/left.png +0 -0
- data/vendor/assets/images/textile-editor/list_bullets.png +0 -0
- data/vendor/assets/images/textile-editor/list_numbers.png +0 -0
- data/vendor/assets/images/textile-editor/omega.png +0 -0
- data/vendor/assets/images/textile-editor/outdent.png +0 -0
- data/vendor/assets/images/textile-editor/paragraph.png +0 -0
- data/vendor/assets/images/textile-editor/right.png +0 -0
- data/vendor/assets/images/textile-editor/strikethrough.png +0 -0
- data/vendor/assets/images/textile-editor/underline.png +0 -0
- data/vendor/assets/javascripts/textile-editor-config.js +0 -0
- data/vendor/assets/javascripts/textile-editor.js +0 -0
- data/vendor/assets/stylesheets/textile-editor.css +0 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df4a025da2c22ce4f89a952d639cf833a0d27759
|
4
|
+
data.tar.gz: 81154fc7e5acba85e2b3f8cb8b95744d6f5ae93c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1329c4912f6ed6175d49e0dc34468b0104db7dd48a9cc3ff399c3435b7dffb8ec63f725661cfc94e97b5c26c62a2877e8ef7867e82ddd7307df15a30c6d1511
|
7
|
+
data.tar.gz: 53b5e3a96c2a812297a7ff9db839fb846777312d223f5573587a0f31a082874d5cc42bf872156da1250e127ee7a75e60e4b217f4e47e8f96cc80c152aa083a80
|
data/.coveralls.yml
CHANGED
File without changes
|
data/.gitignore
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
1
|
Feature: Copy Assets
|
2
2
|
In order to install the textile editor helper gem
|
3
|
-
|
4
|
-
|
3
|
+
As a rails developer
|
4
|
+
I want to copy the assets to respective directories
|
5
5
|
|
6
6
|
Scenario: Assets are copied to rails asset directories if the default generator is used
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
Given a new Rails app
|
8
|
+
When I run "rails g textile_editor_helper:install"
|
9
|
+
Then I should see file "app/assets/stylesheets/textile-editor.css"
|
10
|
+
And I should see file "app/assets/javascripts/textile-editor-config.js"
|
11
11
|
And I should see file "app/assets/javascripts/textile-editor.js"
|
12
12
|
And I should see file "app/assets/images/textile-editor/italic.png"
|
File without changes
|
File without changes
|
data/features/support/env.rb
CHANGED
File without changes
|
data/features/support/setup.rb
CHANGED
File without changes
|
File without changes
|
data/lib/helpers/default.rb
CHANGED
@@ -34,8 +34,7 @@ module ActionView::Helpers
|
|
34
34
|
# # </textarea>
|
35
35
|
def textile_editor(object_name, method, options = {})
|
36
36
|
output = []
|
37
|
-
|
38
|
-
output << text_area_tag(name, nil, options.merge(class: "textile_editor"))
|
37
|
+
output << text_area(object_name, method, options.merge(class: "textile_editor"))
|
39
38
|
output.join("\n").html_safe
|
40
39
|
end
|
41
40
|
|
data/lib/helpers/formtastic.rb
CHANGED
File without changes
|
data/lib/helpers/simple_form.rb
CHANGED
@@ -18,8 +18,8 @@ module SimpleForm
|
|
18
18
|
module Inputs
|
19
19
|
class TextileEditorInput < Base
|
20
20
|
|
21
|
-
def input
|
22
|
-
@builder.text_area(attribute_name, input_html_options)
|
21
|
+
def input(wrapper_options)
|
22
|
+
@builder.text_area(attribute_name, merge_wrapper_options(input_html_options, wrapper_options))
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
File without changes
|
File without changes
|
data/test/abstract_unit.rb
CHANGED
File without changes
|
data/test/formtastic_test.rb
CHANGED
File without changes
|
data/test/simple_form_test.rb
CHANGED
File without changes
|
data/test/support_methods.rb
CHANGED
File without changes
|
data/test/test_helper.rb
CHANGED
@@ -15,7 +15,7 @@ class TextileEditorHelperTest < Minitest::Test
|
|
15
15
|
|
16
16
|
def create_editor(object, field, options={})
|
17
17
|
output = textile_editor(object, field, options)
|
18
|
-
assert_equal
|
18
|
+
assert_equal text_area(object, field, options.merge(class: "textile_editor")), output
|
19
19
|
end
|
20
20
|
|
21
21
|
def expected_initialize_output
|
File without changes
|
data/travis.yml
CHANGED
File without changes
|
data/vendor/README
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: textile_editor_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katherine Pe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.4.5
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Textile Editor Helper
|
@@ -119,4 +119,3 @@ test_files:
|
|
119
119
|
- test/support_methods.rb
|
120
120
|
- test/test_helper.rb
|
121
121
|
- test/textile_editor_helper_test.rb
|
122
|
-
has_rdoc:
|