pagedown-bootstrap-rails 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32aa899d2beb4ae6ea2782eca91c1d707dc02836
4
- data.tar.gz: 9625daceed7838e72d31d07c1c72832236a70a4c
3
+ metadata.gz: bbd8cd2c42377cb7e352b5ed733dd3faf32892e8
4
+ data.tar.gz: a0833a6fda876e37107ada9232da0a75d9da576a
5
5
  SHA512:
6
- metadata.gz: 18cbcdc00bd93f72ca4264cdc0de1d28d59ae191e37c51513770b89bfc08014da1b192486e649e706995cb11e31060fb4e0bc2ec026a07081f25b1b6135a1ac9
7
- data.tar.gz: 4d9644eb6fff0a6fe4fe1ff76e87c3c7144710007e74d785f05580a50341a21a608e510fb74a775fa5610cb5f43d783640aa1b2388e9e187060df9806fefb4cc
6
+ metadata.gz: 1c247457c278a69df522ea0c1af117f3cc807fe7cd758a533a2cbdeb7aa4b9c9ba808a334d570dc4bc37f880fa933cab8d5086303cf82c67ea0d1c8fa03ab676
7
+ data.tar.gz: acd1053db2531197b6af60e28669c729c624b42e3302780e5190e926500eb134bcdf4feb136df0a38f295e58c1bf1eb2d3bc99f7fb0a2fc70271ddd39d1444f6
@@ -87,10 +87,12 @@ class PagedownInput < SimpleForm::Inputs::TextInput
87
87
  private
88
88
 
89
89
  def wmd_input
90
+ classes = input_html_options[:class] || []
91
+ classes << 'wmd-input form-control'
90
92
  @builder.text_area(
91
93
  attribute_name,
92
94
  input_html_options.merge(
93
- class: 'wmd-input form-control', id: "wmd-input-#{attribute_name}"
95
+ class: classes, id: "wmd-input-#{attribute_name}"
94
96
  )
95
97
  )
96
98
  end
@@ -1,5 +1,5 @@
1
1
  module PageDownBootstrap
2
2
  module Rails
3
- VERSION = "2.1.3"
3
+ VERSION = '2.1.4'.freeze
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@
16
16
  *****************************************************************/
17
17
 
18
18
  // patch for ie7
19
- if (!Array.indexOf) {
19
+ if (!Array.prototype.indexOf) {
20
20
  Array.prototype.indexOf = function(obj) {
21
21
  for (var i = 0; i < this.length; i++) {
22
22
  if (this[i] == obj) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagedown-bootstrap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugh Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-30 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -31,7 +31,7 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - Readme.md
34
+ - README.md
35
35
  - lib/pagedown-bootstrap-rails.rb
36
36
  - lib/pagedown_bootstrap/rails.rb
37
37
  - lib/pagedown_bootstrap/rails/engine.rb
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project:
66
- rubygems_version: 2.5.1
66
+ rubygems_version: 2.6.10
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: This gem makes PageDown Bootstrap available in the Rails asset pipeline.