comfortable_mexican_sofa 1.8.2 → 1.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,15 +2,14 @@ language: ruby
2
2
  before_install:
3
3
  - gem update --system
4
4
  - gem --version
5
- - gem install bundler
6
5
  rvm:
7
6
  - 1.9.2
8
7
  - 1.9.3
9
8
  - 2.0.0
9
+ - jruby-19mode
10
10
  gemfile:
11
11
  - test/gemfiles/Gemfile.rails.3.1
12
12
  - test/gemfiles/Gemfile.rails.3.2
13
- - test/gemfiles/Gemfile.rails.4.0
14
13
  notifications:
15
14
  recipients:
16
15
  - oleg@khabarov.ca
@@ -19,4 +18,4 @@ branches:
19
18
  - master
20
19
  matrix:
21
20
  allow_failures:
22
- - gemfile: test/gemfiles/Gemfile.rails.4.0
21
+ - rvm: jruby-19mode
data/Gemfile CHANGED
@@ -3,6 +3,9 @@ source 'http://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'sqlite3'
7
- gem 'coveralls', :require => false
6
+ gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
7
+ gem 'jdbc-sqlite3', :platform => :jruby
8
+ gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
9
+
10
+ gem 'coveralls', :require => false
8
11
  end
data/README.md CHANGED
@@ -19,6 +19,10 @@ Installation for Rails 4
19
19
  For Rails 4 apps feel free to use [2.0.0.beta1](https://github.com/comfy/comfortable-mexican-sofa/tree/2.0) release.
20
20
 
21
21
  gem 'comfortable_mexican_sofa', '~> 2.0.0.beta1'
22
+
23
+ Or even better work with the latest 2.0 branch:
24
+
25
+ gem 'comfortable_mexican_sofa', :github => 'comfy/comfortable-mexican-sofa', :branch => '2.0'
22
26
 
23
27
  Installation
24
28
  ------------
@@ -16,11 +16,11 @@ Gem::Specification.new do |s|
16
16
  s.platform = Gem::Platform::RUBY
17
17
  s.require_paths = ['lib']
18
18
 
19
- s.add_dependency 'rails', '>= 3.1.0'
19
+ s.add_dependency 'rails', '~> 3.1'
20
20
  s.add_dependency 'formatted_form', '>= 2.1.0'
21
21
  s.add_dependency 'active_link_to', '>= 1.0.0'
22
22
  s.add_dependency 'paperclip', '>= 3.4.0'
23
- s.add_dependency 'redcarpet', '>= 2.2.0'
23
+ s.add_dependency 'kramdown', '>= 1.0.0'
24
24
  s.add_dependency 'jquery-rails', '>= 3.0.0'
25
25
  s.add_dependency 'jquery-ui-rails', '>= 4.0.0'
26
26
  s.add_dependency 'haml-rails', '>= 0.3.0'
@@ -1,21 +1,9 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
1
  development:
4
2
  adapter: sqlite3
5
- database: db/development.sqlite3
6
- pool: 5
7
- timeout: 10000
8
-
9
- # config.database_config = 'cms_'
10
- cms_development:
11
- adapter: sqlite3
12
- database: db/cms_development.sqlite3
3
+ database: ":memory:"
13
4
  pool: 5
14
5
  timeout: 10000
15
6
 
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
7
  test:
20
8
  adapter: sqlite3
21
9
  database: db/test.sqlite3
@@ -4,7 +4,7 @@ require 'rails'
4
4
  require 'formatted_form'
5
5
  require 'active_link_to'
6
6
  require 'paperclip'
7
- require 'redcarpet'
7
+ require 'kramdown'
8
8
  require 'jquery-rails'
9
9
  require 'jquery-ui-rails'
10
10
  require 'haml-rails'
@@ -11,12 +11,6 @@ class ComfortableMexicanSofa::Tag::PageMarkdown
11
11
  end
12
12
 
13
13
  def render
14
- md = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
15
- :autolink => true,
16
- :no_intra_emphasis => true,
17
- :fenced_code_blocks => true,
18
- :lax_spacing => true
19
- )
20
- md.render(content.to_s)
14
+ Kramdown::Document.new(content.to_s).to_html
21
15
  end
22
16
  end
@@ -1,3 +1,3 @@
1
1
  module ComfortableMexicanSofa
2
- VERSION = "1.8.2"
2
+ VERSION = "1.8.3"
3
3
  end
@@ -4,13 +4,15 @@ gem 'rails', '~> 3.1.0'
4
4
  gem 'formatted_form', '>= 2.1.0'
5
5
  gem 'active_link_to', '>= 1.0.0'
6
6
  gem 'paperclip', '>= 3.4.0'
7
- gem 'redcarpet', '>= 2.2.0'
7
+ gem 'kramdown', '>= 1.0.0'
8
8
  gem 'jquery-rails', '>= 2.2.0'
9
9
  gem 'haml-rails', '>= 0.3.0'
10
10
  gem 'sass-rails', '>= 3.1.0'
11
11
  gem 'coffee-rails', '>= 3.1.0'
12
12
 
13
13
  group :test do
14
- gem 'sqlite3'
14
+ gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
15
+ gem 'jdbc-sqlite3', :platform => :jruby
16
+ gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
15
17
  gem 'coveralls', :require => false
16
18
  end
@@ -4,13 +4,15 @@ gem 'rails', '~> 3.2.0'
4
4
  gem 'formatted_form', '>= 2.1.0'
5
5
  gem 'active_link_to', '>= 1.0.0'
6
6
  gem 'paperclip', '>= 3.4.0'
7
- gem 'redcarpet', '>= 2.2.0'
7
+ gem 'kramdown', '>= 1.0.0'
8
8
  gem 'jquery-rails', '>= 2.2.0'
9
9
  gem 'haml-rails', '>= 0.3.0'
10
10
  gem 'sass-rails', '>= 3.1.0'
11
11
  gem 'coffee-rails', '>= 3.1.0'
12
12
 
13
13
  group :test do
14
- gem 'sqlite3'
14
+ gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
15
+ gem 'jdbc-sqlite3', :platform => :jruby
16
+ gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
15
17
  gem 'coveralls', :require => false
16
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfortable_mexican_sofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,24 +10,24 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-31 00:00:00.000000000 Z
13
+ date: 2013-06-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ! '>='
20
+ - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 3.1.0
22
+ version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ! '>='
28
+ - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 3.1.0
30
+ version: '3.1'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: formatted_form
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -77,13 +77,13 @@ dependencies:
77
77
  - !ruby/object:Gem::Version
78
78
  version: 3.4.0
79
79
  - !ruby/object:Gem::Dependency
80
- name: redcarpet
80
+ name: kramdown
81
81
  requirement: !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements:
84
84
  - - ! '>='
85
85
  - !ruby/object:Gem::Version
86
- version: 2.2.0
86
+ version: 1.0.0
87
87
  type: :runtime
88
88
  prerelease: false
89
89
  version_requirements: !ruby/object:Gem::Requirement
@@ -91,7 +91,7 @@ dependencies:
91
91
  requirements:
92
92
  - - ! '>='
93
93
  - !ruby/object:Gem::Version
94
- version: 2.2.0
94
+ version: 1.0.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: jquery-rails
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -402,7 +402,6 @@ files:
402
402
  - test/functional/cms_content_controller_test.rb
403
403
  - test/gemfiles/Gemfile.rails.3.1
404
404
  - test/gemfiles/Gemfile.rails.3.2
405
- - test/gemfiles/Gemfile.rails.4.0
406
405
  - test/integration/authentication_test.rb
407
406
  - test/integration/fixtures_test.rb
408
407
  - test/integration/mirrors_test.rb
@@ -1,16 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gem 'rails', '~> 4.0.0.beta1'
4
- gem 'formatted_form', '>= 2.1.0'
5
- gem 'active_link_to', '>= 1.0.0'
6
- gem 'paperclip', '>= 3.4.0'
7
- gem 'redcarpet', '>= 2.2.0'
8
- gem 'jquery-rails', '>= 2.2.0'
9
- gem 'haml-rails', '>= 0.3.0'
10
- gem 'sass-rails', '~> 4.0.0.beta1'
11
- gem 'coffee-rails', '~> 4.0.0.beta1'
12
-
13
- group :test do
14
- gem 'sqlite3'
15
- gem 'coveralls', :require => false
16
- end