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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +0 -0
  3. data/.gitignore +0 -0
  4. data/CHANGELOG.md +0 -0
  5. data/Gemfile +1 -1
  6. data/README.md +0 -0
  7. data/Rakefile +0 -0
  8. data/features/copy_assets.feature +6 -6
  9. data/features/step_definitions/common_steps.rb +0 -0
  10. data/features/step_definitions/rails_setup_steps.rb +0 -0
  11. data/features/support/env.rb +0 -0
  12. data/features/support/setup.rb +0 -0
  13. data/lib/generators/textile_editor_helper/install_generator.rb +0 -0
  14. data/lib/helpers/default.rb +1 -2
  15. data/lib/helpers/formtastic.rb +0 -0
  16. data/lib/helpers/simple_form.rb +2 -2
  17. data/lib/helpers/textile_editor_initialize.rb +0 -0
  18. data/lib/textile_editor_helper/version.rb +1 -1
  19. data/lib/textile_editor_helper.rb +0 -0
  20. data/test/abstract_unit.rb +0 -0
  21. data/test/formtastic_test.rb +0 -0
  22. data/test/simple_form_test.rb +0 -0
  23. data/test/support_methods.rb +0 -0
  24. data/test/test_helper.rb +2 -0
  25. data/test/textile_editor_helper_test.rb +1 -1
  26. data/textile_editor_helper.gemspec +0 -0
  27. data/travis.yml +0 -0
  28. data/vendor/README +0 -0
  29. data/vendor/assets/images/textile-editor/background.png +0 -0
  30. data/vendor/assets/images/textile-editor/blockquote.png +0 -0
  31. data/vendor/assets/images/textile-editor/bold.png +0 -0
  32. data/vendor/assets/images/textile-editor/center.png +0 -0
  33. data/vendor/assets/images/textile-editor/h1.png +0 -0
  34. data/vendor/assets/images/textile-editor/h2.png +0 -0
  35. data/vendor/assets/images/textile-editor/h3.png +0 -0
  36. data/vendor/assets/images/textile-editor/h4.png +0 -0
  37. data/vendor/assets/images/textile-editor/h5.png +0 -0
  38. data/vendor/assets/images/textile-editor/h6.png +0 -0
  39. data/vendor/assets/images/textile-editor/indent.png +0 -0
  40. data/vendor/assets/images/textile-editor/italic.png +0 -0
  41. data/vendor/assets/images/textile-editor/justify.png +0 -0
  42. data/vendor/assets/images/textile-editor/left.png +0 -0
  43. data/vendor/assets/images/textile-editor/list_bullets.png +0 -0
  44. data/vendor/assets/images/textile-editor/list_numbers.png +0 -0
  45. data/vendor/assets/images/textile-editor/omega.png +0 -0
  46. data/vendor/assets/images/textile-editor/outdent.png +0 -0
  47. data/vendor/assets/images/textile-editor/paragraph.png +0 -0
  48. data/vendor/assets/images/textile-editor/right.png +0 -0
  49. data/vendor/assets/images/textile-editor/strikethrough.png +0 -0
  50. data/vendor/assets/images/textile-editor/underline.png +0 -0
  51. data/vendor/assets/javascripts/textile-editor-config.js +0 -0
  52. data/vendor/assets/javascripts/textile-editor.js +0 -0
  53. data/vendor/assets/stylesheets/textile-editor.css +0 -0
  54. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6506ce701499ed38ed83ed367c9f6bbf3b04b6a9
4
- data.tar.gz: a5d9c2488e74357e9be9336aa499a4def45cf273
3
+ metadata.gz: df4a025da2c22ce4f89a952d639cf833a0d27759
4
+ data.tar.gz: 81154fc7e5acba85e2b3f8cb8b95744d6f5ae93c
5
5
  SHA512:
6
- metadata.gz: 06131e8dacc60c8d99363172f7ca92a3f52f8cd0c717dc6b6e13ad1caa62884f633cabe1a6ef80c82ef6451b20a32505365e2fcc8420d83af0028b3fadc7c518
7
- data.tar.gz: 8e24862b754ada4684e1b08ab3d2e877f1f38fac191328f383aa6c410628346c986a1af8598d9c2794b2331bc40e9ac65919248aa2a3d4ef667ff9f75826ad1e
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
@@ -5,7 +5,7 @@ gem "rake"
5
5
  gemspec
6
6
 
7
7
  group :development do
8
- gem 'rails', '>= 4.1.4'
8
+ gem 'rails', '>= 4.1.0'
9
9
  gem 'formtastic'
10
10
  gem 'simple_form'
11
11
  end
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
- As a rails developer
4
- I want to copy the assets to respective directories
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
- 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"
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
File without changes
File without changes
@@ -34,8 +34,7 @@ module ActionView::Helpers
34
34
  # # </textarea>
35
35
  def textile_editor(object_name, method, options = {})
36
36
  output = []
37
- name = "#{object_name}[#{method}]"
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
 
File without changes
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TextileEditorHelper
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
File without changes
File without changes
File without changes
File without changes
File without changes
data/test/test_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  ENV['RACK_ENV'] = 'test'
2
+ ENV['RAILS_ENV'] = ENV['RACK_ENV']
2
3
 
4
+ require 'rails'
3
5
  require 'minitest/pride'
4
6
  require 'minitest/autorun'
5
7
  require 'coveralls'
@@ -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 text_area(object, field, options.merge(class: "textile_editor")), output
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
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.2
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: 2014-08-18 00:00:00.000000000 Z
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.2.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: