mongoid_markdown_extension 0.1.10 → 0.2.1

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
  SHA256:
3
- metadata.gz: 7931a4b45d301e84a32199bdeb55c8b88354ab100e03343b471f133f67703efd
4
- data.tar.gz: 8add6626be35350d1fb4017baf8239c9d60d31f8ffb9c5218d6f3caebe52d9ff
3
+ metadata.gz: 5baa9bbdd4bbe2ed9fb1091b8f722d29dd8696a0247ff189af56143034487169
4
+ data.tar.gz: a8a862d5e19e866ce63a90cc97c7fc8f5fe089243c334b7c0309a8a02929f1f6
5
5
  SHA512:
6
- metadata.gz: 9ccc13b39c9a1fba48b6e5fb5baf136702dc0f1b9171206389b869be6fbfbc103e4f25c677ac3caefa945e6e28ed16adde1f12248a02f8f95500df49a996728c
7
- data.tar.gz: 706bf6154f6c2833bf6da66a7bce54715167593f65e30e8432ff6a4b5194947d529b641e2bc299c41ed6406ecb10c9b07a332572f8e034f1b11efc45394b9a21
6
+ metadata.gz: 60038ae6b00d87d4629daaab31c88ea752d60b514a2279d805bd54c908d86b99720f2498bfe26c6a0a981391b487d77aa60b5a8e6d22b4b8ec9c3ffabab8646e
7
+ data.tar.gz: c0c3465ad3b350eef54e5e8925830e5b2d1901ac8828d2c86e5150385278579ad6bbcc330b79985ca411948a5fdc95aa2f460cabbe9ee97d8ce0922666af9145
@@ -0,0 +1,26 @@
1
+ name: Test
2
+ on:
3
+ pull_request:
4
+ branches: ["master"]
5
+ push:
6
+ branches: ["master"]
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ gemfile: ["6", "7", "8"]
13
+ ruby: ["2.7", "3.0", "3.1", "3.2"]
14
+ include:
15
+ - gemfile: "4"
16
+ ruby: "2.5"
17
+ - gemfile: "5"
18
+ ruby: "2.5"
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
25
+ - name: Run tests
26
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ tmp
21
21
  *.a
22
22
  mkmf.log
23
23
  .DS_Store
24
+ /gemfiles/*.gemfile.lock
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.2
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.2.1
data/Appraisals ADDED
@@ -0,0 +1,19 @@
1
+ appraise "4" do
2
+ gem "mongoid", "~> 4.0"
3
+ end
4
+
5
+ appraise "5" do
6
+ gem "mongoid", "~> 5.0"
7
+ end
8
+
9
+ appraise "6" do
10
+ gem "mongoid", "~> 6.0"
11
+ end
12
+
13
+ appraise "7" do
14
+ gem "mongoid", "~> 7.0"
15
+ end
16
+
17
+ appraise "8" do
18
+ gem "mongoid", "~> 8.0"
19
+ end
data/CHANGELOG.md CHANGED
@@ -1,8 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.1
4
+
5
+ - Mongoid 8 compatibility
6
+
7
+ ## 0.2.0
8
+
9
+ - Added `linebreaks` option to `to_inline_html`
10
+ - Added `inline_render_class` configuration option
11
+ - Fixed `to_inline_html`
12
+ - Fixed usage of String methods
13
+
3
14
  ## 0.1.10
4
15
 
5
- - FIX: pass configuration to `InlineRenderer` as well
16
+ - Fixed passing configuration to `InlineRenderer`
6
17
 
7
18
  ## 0.1.9
8
19
 
data/Gemfile CHANGED
@@ -2,11 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in mongoid_markdown_extension.gemspec
4
4
  gemspec
5
-
6
- case version = ENV['MONGOID_VERSION'] || '~> 7.0'
7
- when /7/ then gem 'mongoid', '~> 7.0'
8
- when /6/ then gem 'mongoid', '~> 6.0'
9
- when /5/ then gem 'mongoid', '~> 5.1'
10
- when /4/ then gem 'mongoid', '~> 4.0'
11
- else gem 'mongoid', version
12
- end
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Mongoid Markdown Extension
2
2
 
3
- [![Build Status](https://travis-ci.org/tomasc/mongoid_markdown_extension.svg)](https://travis-ci.org/tomasc/mongoid_markdown_extension) [![Gem Version](https://badge.fury.io/rb/mongoid_markdown_extension.svg)](http://badge.fury.io/rb/mongoid_markdown_extension) [![Coverage Status](https://img.shields.io/coveralls/tomasc/mongoid_markdown_extension.svg)](https://coveralls.io/r/tomasc/mongoid_markdown_extension)
3
+ [![Build Status](https://travis-ci.org/tomasc/mongoid_markdown_extension.svg)](https://travis-ci.org/tomasc/mongoid_markdown_extension) [![Gem Version](https://badge.fury.io/rb/mongoid_markdown_extension.svg)](http://badge.fury.io/rb/mongoid_markdown_extension)
4
4
 
5
5
  [Mongoid](https://github.com/mongoid/mongoid) field extension that returns an object with `to_html` method returning the content converted from Markdown syntax to html. The Markdown conversion is done using the [Redcarpet](https://github.com/vmg/redcarpet) library.
6
6
 
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "mongoid", "~> 4.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "mongoid", "~> 5.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "mongoid", "~> 6.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "mongoid", "~> 7.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "mongoid", "~> 8.0"
6
+
7
+ gemspec path: "../"
@@ -40,8 +40,11 @@ module MongoidMarkdownExtension
40
40
  nil
41
41
  end
42
42
 
43
- def paragraph(text)
44
- text + '<br /><br />'
43
+ def postprocess(full_document)
44
+ full_document
45
+ .gsub(/(<\/p>\s*<p>)+?/, '<br><br>')
46
+ .gsub(/(<\/?p>)+?/, '')
47
+ .chop
45
48
  end
46
49
  end
47
50
  end
@@ -5,61 +5,62 @@ module MongoidMarkdownExtension
5
5
  class Markdown < String
6
6
  class << self
7
7
  attr_writer :configuration
8
- end
9
8
 
10
- def self.configuration
11
- @configuration ||= Configuration.new
12
- end
9
+ def configuration
10
+ @configuration ||= Configuration.new
11
+ end
13
12
 
14
- def self.reset
15
- @configuration = Configuration.new
16
- end
13
+ def reset
14
+ @configuration = Configuration.new
15
+ end
17
16
 
18
- def self.configure
19
- yield(configuration)
20
- end
17
+ def configure
18
+ yield(configuration)
19
+ end
21
20
 
22
- def self.demongoize(value)
23
- Markdown.new(value)
24
- end
21
+ def demongoize(value)
22
+ Markdown.new(value)
23
+ end
25
24
 
26
- def self.mongoize(value)
27
- case value
28
- when Markdown then value.mongoize
29
- else value
25
+ def mongoize(value)
26
+ case value
27
+ when Markdown then value.mongoize
28
+ else value
29
+ end
30
30
  end
31
- end
32
31
 
33
- def self.evolve(value)
34
- case value
35
- when Markdown then value.mongoize
36
- else value
32
+ def evolve(value)
33
+ case value
34
+ when Markdown then value.mongoize
35
+ else value
36
+ end
37
37
  end
38
38
  end
39
39
 
40
40
  def initialize(str)
41
- super str.to_s
42
- @str = str.to_s
41
+ super(str.to_s)
43
42
  end
44
43
 
45
- def to_s
46
- @str
44
+ def split(*args)
45
+ super(*args).map { |str| self.class.new(str) }
47
46
  end
48
47
 
49
- def to_html
50
- markdown_renderer.render(@str).html_safe
48
+ def gsub(*args)
49
+ self.class.new(super(*args))
51
50
  end
52
51
 
53
- def to_inline_html
54
- markdown_inline_renderer.render(@str).gsub(/(<br\s?\/?>)+?\Z/, '').html_safe
52
+ def to_html
53
+ markdown_renderer.render(to_s).html_safe
55
54
  end
56
55
 
57
- def to_stripped_s
58
- markdown_stripdown_renderer.render(@str).try(:strip)
56
+ def to_inline_html(line_breaks: false)
57
+ rendered = markdown_inline_renderer.render(to_s).gsub(/(<br\s?\/?>)+?\z/, '')
58
+ rendered.gsub!(/(<br\s?\/?>)+?\Z/, '') if !line_breaks
59
+ rendered.html_safe
59
60
  end
60
61
 
61
- def mongoize
62
- @str
62
+ def to_stripped_s
63
+ markdown_stripdown_renderer.render(to_s).try(:strip)
63
64
  end
64
65
 
65
66
  private
@@ -74,11 +75,12 @@ module MongoidMarkdownExtension
74
75
 
75
76
  # TODO: how to combine custom render class with the InlineRenderer?
76
77
  def markdown_inline_renderer
78
+ inline_render_class = MongoidMarkdownExtension::Markdown.configuration.inline_render_class
77
79
  render_options = MongoidMarkdownExtension::Markdown.configuration.render_options
78
80
  extensions = MongoidMarkdownExtension::Markdown.configuration.extensions
79
81
  extensions[:tables] = false
80
82
 
81
- Redcarpet::Markdown.new(InlineRenderer.new(render_options), extensions)
83
+ Redcarpet::Markdown.new(inline_render_class.new(render_options), extensions)
82
84
  end
83
85
 
84
86
  def markdown_stripdown_renderer
@@ -88,6 +90,7 @@ module MongoidMarkdownExtension
88
90
 
89
91
  class Configuration
90
92
  attr_accessor :extensions
93
+ attr_accessor :inline_render_class
91
94
  attr_accessor :render_class
92
95
  attr_accessor :render_options
93
96
 
@@ -100,6 +103,7 @@ module MongoidMarkdownExtension
100
103
  strikethrough: true,
101
104
  superscript: true
102
105
  }
106
+ @inline_render_class = MongoidMarkdownExtension::InlineRenderer
103
107
  @render_class = Redcarpet::Render::HTML
104
108
  @render_options = {}
105
109
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidMarkdownExtension
2
- VERSION = '0.1.10'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'redcarpet', '~> 3.4'
22
- spec.add_dependency 'mongoid', '>= 4.0', '< 8'
22
+ spec.add_dependency 'mongoid', '>= 4.0'
23
23
 
24
+ spec.add_development_dependency 'appraisal'
24
25
  spec.add_development_dependency 'bundler'
25
- spec.add_development_dependency 'coveralls'
26
- spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'rake'
27
27
  end
@@ -35,12 +35,12 @@ module MongoidMarkdownExtension
35
35
  describe 'setup block' do
36
36
  it 'yields self' do
37
37
  MongoidMarkdownExtension::Markdown.configure do |config|
38
- config.must_be_kind_of MongoidMarkdownExtension::Configuration
38
+ _(config).must_be_kind_of MongoidMarkdownExtension::Configuration
39
39
  end
40
40
  end
41
41
 
42
42
  it 'returns default values' do
43
- MongoidMarkdownExtension::Markdown.configuration.extensions.must_equal(
43
+ _(MongoidMarkdownExtension::Markdown.configuration.extensions).must_equal(
44
44
  autolink: true,
45
45
  footnotes: true,
46
46
  highlight: true,
@@ -48,85 +48,114 @@ module MongoidMarkdownExtension
48
48
  strikethrough: true,
49
49
  superscript: true
50
50
  )
51
- MongoidMarkdownExtension::Markdown.configuration.render_class.must_equal Redcarpet::Render::HTML
52
- MongoidMarkdownExtension::Markdown.configuration.render_options.must_equal({})
51
+ _(MongoidMarkdownExtension::Markdown.configuration.inline_render_class).must_equal MongoidMarkdownExtension::InlineRenderer
52
+ _(MongoidMarkdownExtension::Markdown.configuration.render_class).must_equal Redcarpet::Render::HTML
53
+ _(MongoidMarkdownExtension::Markdown.configuration.render_options).must_equal({})
53
54
  end
54
55
  end
55
56
  end
56
57
 
57
58
  describe '#to_s' do
58
59
  it 'returns the original value' do
59
- subject.to_s.must_equal string
60
+ _(subject.to_s).must_equal string
60
61
  end
61
62
  end
62
63
 
63
64
  describe '#to_html' do
64
65
  it 'survives nil' do
65
- MongoidMarkdownExtension::Markdown.new(nil).to_html.must_equal ''
66
+ _(MongoidMarkdownExtension::Markdown.new(nil).to_html).must_equal ''
66
67
  end
67
68
 
68
69
  it 'converts the string to html' do
69
- subject.to_html.must_equal Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(string)
70
+ _(subject.to_html).must_equal Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(string)
70
71
  end
71
72
  end
72
73
 
73
74
  describe '#to_inline_html' do
74
75
  let(:string) { "some text with _italic_\n\nfoo" }
76
+ let(:string_with_line_breaks) { "some text with line break \nfoo" }
75
77
 
76
78
  it 'survives nil' do
77
- MongoidMarkdownExtension::Markdown.new(nil).to_inline_html.must_equal ''
79
+ _(MongoidMarkdownExtension::Markdown.new(nil).to_inline_html).must_equal ''
78
80
  end
79
81
 
80
82
  it 'converts the string to html' do
81
- subject.to_inline_html.wont_include '<p>'
83
+ _(subject.to_inline_html).wont_include '<p>'
82
84
  end
83
85
 
84
- it 'replaces <p> with <br />' do
85
- subject.to_inline_html.must_equal 'some text with <em>italic</em><br /><br />foo'
86
+ it 'replaces <p> with <br>' do
87
+ _(subject.to_inline_html).must_equal 'some text with <em>italic</em><br><br>foo'
88
+ end
89
+
90
+ it 'allows line breaks' do
91
+ inline_html = MongoidMarkdownExtension::Markdown
92
+ .new(string_with_line_breaks)
93
+ .to_inline_html(line_breaks: true)
94
+ _(inline_html).must_equal "some text with line break<br>\nfoo"
86
95
  end
87
96
  end
88
97
 
89
98
  describe '#to_stripped_s' do
90
99
  it 'survives nil' do
91
- MongoidMarkdownExtension::Markdown.new(nil).to_stripped_s.must_equal ''
100
+ _(MongoidMarkdownExtension::Markdown.new(nil).to_stripped_s).must_equal ''
92
101
  end
93
102
 
94
103
  it 'converts the markdown to stripped string' do
95
- subject.to_stripped_s.wont_include '_'
104
+ _(subject.to_stripped_s).wont_include '_'
96
105
  end
97
106
 
98
107
  it 'removes newlines' do
99
- subject.to_stripped_s.wont_include "\n"
108
+ _(subject.to_stripped_s).wont_include "\n"
100
109
  end
101
110
  end
102
111
 
103
112
  describe '#mongoize' do
104
113
  it 'returns string' do
105
- subject.mongoize.must_equal string
114
+ _(subject.mongoize).must_equal string
106
115
  end
107
116
  end
108
117
 
109
118
  describe '.mongoize' do
110
119
  describe 'when passed a string' do
111
120
  it 'returns it back' do
112
- MongoidMarkdownExtension::Markdown.mongoize(string).must_equal string
121
+ _(MongoidMarkdownExtension::Markdown.mongoize(string)).must_equal string
113
122
  end
114
123
  end
115
124
 
116
125
  describe 'when passed markdown object' do
117
126
  it 'returns its string' do
118
- MongoidMarkdownExtension::Markdown.mongoize(subject).must_be_kind_of String
127
+ _(MongoidMarkdownExtension::Markdown.mongoize(subject)).must_be_kind_of String
119
128
  end
120
129
  end
121
130
  end
122
131
 
123
132
  describe '.demongoize' do
124
133
  it 'does not change the value' do
125
- MongoidMarkdownExtension::Markdown.demongoize(string).must_equal string
134
+ _(MongoidMarkdownExtension::Markdown.demongoize(string)).must_equal string
126
135
  end
127
136
 
128
137
  it 'returns markdown object' do
129
- MongoidMarkdownExtension::Markdown.demongoize(string).must_be_kind_of MongoidMarkdownExtension::Markdown
138
+ _(MongoidMarkdownExtension::Markdown.demongoize(string)).must_be_kind_of MongoidMarkdownExtension::Markdown
139
+ end
140
+ end
141
+
142
+ describe "splitting" do
143
+ it "returns correctly instantiated markdown objects" do
144
+ markdown = MongoidMarkdownExtension::Markdown.new("foo\nbar\nfar\nboo")
145
+ split_markdown = markdown.split("\n")
146
+
147
+ _(split_markdown.first).must_be_kind_of MongoidMarkdownExtension::Markdown
148
+ _(split_markdown.first.to_s).must_equal "foo"
149
+ _(split_markdown.first.to_html).must_match /<p>foo<\/p>/
150
+ end
151
+
152
+ it "returns correctly instantiated markdown objects" do
153
+ markdown = MongoidMarkdownExtension::Markdown.new("foo\nbar\nfar\nboo")
154
+ gsubbed_markdown = markdown.gsub("\n", "bam")
155
+
156
+ _(gsubbed_markdown).must_be_kind_of MongoidMarkdownExtension::Markdown
157
+ _(gsubbed_markdown.to_s).must_equal "foobambarbamfarbamboo"
158
+ _(gsubbed_markdown.to_html).must_match (/<p>foobambarbamfarbamboo<\/p>/)
130
159
  end
131
160
  end
132
161
  end
data/test/test_helper.rb CHANGED
@@ -5,8 +5,3 @@ require 'minitest/autorun'
5
5
  require 'minitest/spec'
6
6
 
7
7
  require 'mongoid_markdown_extension'
8
-
9
- if ENV['CI']
10
- require 'coveralls'
11
- Coveralls.wear!
12
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_markdown_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2023-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet
@@ -31,9 +31,6 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '8'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,11 +38,8 @@ dependencies:
41
38
  - - ">="
42
39
  - !ruby/object:Gem::Version
43
40
  version: '4.0'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '8'
47
41
  - !ruby/object:Gem::Dependency
48
- name: bundler
42
+ name: appraisal
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - ">="
@@ -59,7 +53,7 @@ dependencies:
59
53
  - !ruby/object:Gem::Version
60
54
  version: '0'
61
55
  - !ruby/object:Gem::Dependency
62
- name: coveralls
56
+ name: bundler
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - ">="
@@ -76,16 +70,16 @@ dependencies:
76
70
  name: rake
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - "~>"
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
- version: '10.0'
75
+ version: '0'
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
- - - "~>"
80
+ - - ">="
87
81
  - !ruby/object:Gem::Version
88
- version: '10.0'
82
+ version: '0'
89
83
  description: Custom field type for Mongoid that handles Markdown conversion via Redcarpet
90
84
  gem.
91
85
  email:
@@ -94,14 +88,21 @@ executables: []
94
88
  extensions: []
95
89
  extra_rdoc_files: []
96
90
  files:
97
- - ".coveralls.yml"
91
+ - ".github/workflows/test.yml"
98
92
  - ".gitignore"
99
- - ".travis.yml"
93
+ - ".ruby-version"
94
+ - ".tool-versions"
95
+ - Appraisals
100
96
  - CHANGELOG.md
101
97
  - Gemfile
102
98
  - LICENSE
103
99
  - README.md
104
100
  - Rakefile
101
+ - gemfiles/4.gemfile
102
+ - gemfiles/5.gemfile
103
+ - gemfiles/6.gemfile
104
+ - gemfiles/7.gemfile
105
+ - gemfiles/8.gemfile
105
106
  - lib/mongoid_markdown_extension.rb
106
107
  - lib/mongoid_markdown_extension/inline_renderer.rb
107
108
  - lib/mongoid_markdown_extension/markdown.rb
@@ -113,7 +114,7 @@ homepage: https://github.com/tomasc/mongoid_markdown_extension
113
114
  licenses:
114
115
  - MIT
115
116
  metadata: {}
116
- post_install_message:
117
+ post_install_message:
117
118
  rdoc_options: []
118
119
  require_paths:
119
120
  - lib
@@ -128,8 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  - !ruby/object:Gem::Version
129
130
  version: '0'
130
131
  requirements: []
131
- rubygems_version: 3.0.3
132
- signing_key:
132
+ rubygems_version: 3.4.6
133
+ signing_key:
133
134
  specification_version: 4
134
135
  summary: Custom field type for Mongoid that handles Markdown conversion via Redcarpet
135
136
  gem.
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: travis-ci
data/.travis.yml DELETED
@@ -1,24 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- script: 'bundle exec rake'
4
- rvm:
5
- - 2.2.5
6
- before_install:
7
- - gem install bundler -v 1.12.5
8
- notifications:
9
- email:
10
- recipients:
11
- - tomas.celizna@gmail.com
12
- on_failure: change
13
- on_success: never
14
-
15
- matrix:
16
- include:
17
- - rvm: 2.3.3
18
- env: MONGOID_VERSION=4
19
- - rvm: 2.3.3
20
- env: MONGOID_VERSION=5
21
- - rvm: 2.3.3
22
- env: MONGOID_VERSION=6
23
- - rvm: 2.5.0
24
- env: MONGOID_VERSION=7