markdown-ui 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog +8 -1
  3. data/Gemfile +28 -10
  4. data/TODO.md +1 -1
  5. data/components/collections/markdown-ui-grid/Gemfile +1 -1
  6. data/components/collections/markdown-ui-grid/markdown-ui-grid.gemspec +15 -15
  7. data/components/collections/markdown-ui-menu/Gemfile +1 -1
  8. data/components/collections/markdown-ui-menu/lib/menu/custom.rb +0 -1
  9. data/components/collections/markdown-ui-menu/markdown-ui-menu.gemspec +15 -15
  10. data/components/collections/markdown-ui-message/Gemfile +1 -1
  11. data/components/collections/markdown-ui-message/lib/message/custom_message.rb +0 -1
  12. data/components/collections/markdown-ui-message/markdown-ui-message.gemspec +15 -15
  13. data/components/elements/markdown-ui-button/Gemfile +1 -1
  14. data/components/elements/markdown-ui-button/lib/button/animated.rb +2 -2
  15. data/components/elements/markdown-ui-button/lib/button/custom.rb +0 -1
  16. data/components/elements/markdown-ui-button/lib/button/element.rb +19 -15
  17. data/components/elements/markdown-ui-button/lib/button/group/buttons/element.rb +1 -1
  18. data/components/elements/markdown-ui-button/markdown-ui-button.gemspec +15 -15
  19. data/components/elements/markdown-ui-container/Gemfile +1 -1
  20. data/components/elements/markdown-ui-container/lib/container/element.rb +1 -1
  21. data/components/elements/markdown-ui-container/markdown-ui-container.gemspec +15 -15
  22. data/components/elements/markdown-ui-content/Gemfile +1 -1
  23. data/components/elements/markdown-ui-content/lib/content/divider_block.rb +1 -1
  24. data/components/elements/markdown-ui-content/lib/content/field_block.rb +1 -1
  25. data/components/elements/markdown-ui-content/lib/content/form_block.rb +1 -1
  26. data/components/elements/markdown-ui-content/lib/content/header.rb +1 -1
  27. data/components/elements/markdown-ui-content/lib/content/icon.rb +2 -2
  28. data/components/elements/markdown-ui-content/lib/content/input_block.rb +1 -1
  29. data/components/elements/markdown-ui-content/lib/content/item.rb +1 -1
  30. data/components/elements/markdown-ui-content/lib/content/item_block.rb +1 -1
  31. data/components/elements/markdown-ui-content/lib/content/list.rb +1 -1
  32. data/components/elements/markdown-ui-content/lib/content/parser.rb +31 -23
  33. data/components/elements/markdown-ui-content/markdown-ui-content.gemspec +15 -15
  34. data/components/elements/markdown-ui-header/Gemfile +1 -1
  35. data/components/elements/markdown-ui-header/lib/header/header.rb +5 -5
  36. data/components/elements/markdown-ui-header/markdown-ui-header.gemspec +15 -15
  37. data/components/elements/markdown-ui-input/Gemfile +1 -1
  38. data/components/elements/markdown-ui-input/lib/input/custom.rb +0 -1
  39. data/components/elements/markdown-ui-input/markdown-ui-input.gemspec +15 -15
  40. data/components/elements/markdown-ui-label/Gemfile +1 -1
  41. data/components/elements/markdown-ui-label/lib/label/custom.rb +0 -1
  42. data/components/elements/markdown-ui-label/markdown-ui-label.gemspec +15 -15
  43. data/components/elements/markdown-ui-segment/Gemfile +1 -1
  44. data/components/elements/markdown-ui-segment/lib/segment/segment.rb +17 -13
  45. data/components/elements/markdown-ui-segment/markdown-ui-segment.gemspec +15 -15
  46. data/exe/markdown-ui +11 -11
  47. data/exe/markdown-ui-shell +31 -0
  48. data/lib/markdown-ui.rb +47 -43
  49. data/lib/markdown-ui/tag/button_tag.rb +2 -2
  50. data/lib/markdown-ui/tag/focusable_button_tag.rb +3 -3
  51. data/lib/markdown-ui/tag/input_tag.rb +3 -3
  52. data/lib/markdown-ui/tag/item_tag.rb +2 -2
  53. data/lib/markdown-ui/tag/label_tag.rb +2 -2
  54. data/lib/markdown-ui/tag/list_tag.rb +2 -2
  55. data/lib/markdown-ui/tag/span_tag.rb +1 -1
  56. data/lib/markdown-ui/tag/standard_tag.rb +2 -2
  57. data/lib/markdown-ui/utils/klass_util.rb +1 -1
  58. data/lib/markdown-ui/version.rb +1 -1
  59. data/markdown-ui.gemspec +2 -1
  60. data/website/about.html +8 -8
  61. data/website/docs/button.html +8 -8
  62. data/website/docs/container.html +26 -23
  63. data/website/docs/divider.html +8 -8
  64. data/website/docs/toc.html +8 -8
  65. data/website/index.html +42 -27
  66. data/website/index.md +38 -20
  67. metadata +19 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 917036fc547818075ffdaed4833781e21ca29982
4
- data.tar.gz: a57ec7c4ef1c7a4af3941a1a10fc3e3510bda858
3
+ metadata.gz: e2b8d70e2a97b8b87cf9d5f1d7a8297d92e29eff
4
+ data.tar.gz: aef142d60313c8d24ba027b5d7c6990e858ed404
5
5
  SHA512:
6
- metadata.gz: ce75f1aa38abba0750d72fd32ca6444fa576d66b7f519ec944e8a947c372a805e276d62bfb023f6d4ae306aee15b8537bc4264187cb5bbce049e8ed2278c6db5
7
- data.tar.gz: 8aecd75b2a98c4121527bb32c9fcd2f50a38886685f6cc3ccb130840875b3ebe14015577367ea20cc811a4a5e82632f7d15b7cd0a7d727d2f32be0bee1a19aef
6
+ metadata.gz: 2443d6ec896ff8fb610a3abd8127fce415992731af9fddf7c70f858f64f8dd4718ba37b6cfd25712e4c4dfd4a1dabb321f8ec1458dbdf239c64227909fa6e095
7
+ data.tar.gz: fd824860dfdaf5db4d11d744d59dc5355376575498adfde07a3b3dace2dfc4049585fb75396c411d21d089c96c7941c22d7303a1936b3cad1bfa2a3b48ad2f62
data/Changelog CHANGED
@@ -1,3 +1,10 @@
1
+ 0.1.15 - 11-6-15
2
+ * Updated Semantic-UI to 2.1.5
3
+ * Added inverted segment variation test
4
+ * Added initial 'markdown-ui-shell' CLI for Markdown-UI REPL
5
+ * Add byebug as a development dependency
6
+ * Elements will not be parsed when empty params
7
+
1
8
  0.1.14 - 09-21-15
2
9
  * Updated Semantic-UI to 2.1.4
3
10
  * Fixed Button group sizes example
@@ -190,4 +197,4 @@
190
197
  - loading state
191
198
  - inverted variation
192
199
  - attached variation
193
- - padded
200
+ - padded
data/Gemfile CHANGED
@@ -2,17 +2,35 @@ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  group :elements do
5
- gem 'markdown-ui-button', :path => 'components/elements/markdown-ui-button/'
6
- gem 'markdown-ui-container', :path => 'components/elements/markdown-ui-container/'
7
- gem 'markdown-ui-content', :path => 'components/elements/markdown-ui-content/'
8
- gem 'markdown-ui-header', :path => 'components/elements/markdown-ui-header/'
9
- gem 'markdown-ui-label', :path => 'components/elements/markdown-ui-label/'
10
- gem 'markdown-ui-segment', :path => 'components/elements/markdown-ui-segment/'
11
- gem 'markdown-ui-input', :path => 'components/elements/markdown-ui-input/'
5
+ gem 'markdown-ui-button', \
6
+ path: 'components/elements/markdown-ui-button/'
7
+
8
+ gem 'markdown-ui-container', \
9
+ path: 'components/elements/markdown-ui-container/'
10
+
11
+ gem 'markdown-ui-content', \
12
+ path: 'components/elements/markdown-ui-content/'
13
+
14
+ gem 'markdown-ui-header', \
15
+ path: 'components/elements/markdown-ui-header/'
16
+
17
+ gem 'markdown-ui-label', \
18
+ path: 'components/elements/markdown-ui-label/'
19
+
20
+ gem 'markdown-ui-segment', \
21
+ path: 'components/elements/markdown-ui-segment/'
22
+
23
+ gem 'markdown-ui-input', \
24
+ path: 'components/elements/markdown-ui-input/'
12
25
  end
13
26
 
14
27
  group :collections do
15
- gem 'markdown-ui-grid', :path => 'components/collections/markdown-ui-grid/'
16
- gem 'markdown-ui-menu', :path => 'components/collections/markdown-ui-menu/'
17
- gem 'markdown-ui-message', :path => 'components/collections/markdown-ui-message/'
28
+ gem 'markdown-ui-grid', \
29
+ path: 'components/collections/markdown-ui-grid/'
30
+
31
+ gem 'markdown-ui-menu', \
32
+ path: 'components/collections/markdown-ui-menu/'
33
+
34
+ gem 'markdown-ui-message', \
35
+ path: 'components/collections/markdown-ui-message/'
18
36
  end
data/TODO.md CHANGED
@@ -61,7 +61,7 @@
61
61
  * Types
62
62
  √ Divider
63
63
  √ Vertical Divider
64
- + Horizontal Divider
64
+ Horizontal Divider
65
65
 
66
66
  * Variations
67
67
  Inverted
@@ -1,2 +1,2 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
  gemspec
@@ -4,34 +4,34 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'grid/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "markdown-ui-grid"
7
+ spec.name = 'markdown-ui-grid'
8
8
  spec.version = MarkdownUI::GridElement::VERSION
9
- spec.authors = ["Joel Bryan Juliano"]
10
- spec.email = ["joelbryan.juliano@gmail.com"]
9
+ spec.authors = ['Joel Bryan Juliano']
10
+ spec.email = ['joelbryan.juliano@gmail.com']
11
11
 
12
12
  spec.summary = %q{Responsive User Interfaces in Markdown}
13
13
  spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
14
- spec.homepage = "https://github.com/jjuliano/markdown-ui"
15
- spec.license = "MIT"
14
+ spec.homepage = 'https://github.com/jjuliano/markdown-ui'
15
+ spec.license = 'MIT'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
18
  # delete this section to allow pushing this gem to any host.
19
19
  if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
  else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
23
  end
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
26
+ spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
28
+ spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
31
- spec.add_dependency "redcarpet", "~> 3.2"
32
- spec.add_dependency "nokogiri", "~> 1.6"
33
- spec.add_development_dependency "rake", "~> 10.0"
34
- spec.add_development_dependency "test-unit", "~> 3.0"
35
- spec.add_development_dependency "simplecov", "~> 0.10"
36
- spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
31
+ spec.add_dependency 'redcarpet', '~> 3.2'
32
+ spec.add_dependency 'nokogiri', '~> 1.6'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'test-unit', '~> 3.0'
35
+ spec.add_development_dependency 'simplecov', '~> 0.10'
36
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
37
37
  end
@@ -1,2 +1,2 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
  gemspec
@@ -17,4 +17,3 @@ module MarkdownUI::Menu
17
17
  end
18
18
  end
19
19
  end
20
-
@@ -4,34 +4,34 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'menu/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "markdown-ui-menu"
7
+ spec.name = 'markdown-ui-menu'
8
8
  spec.version = MarkdownUI::Menu::VERSION
9
- spec.authors = ["Joel Bryan Juliano"]
10
- spec.email = ["joelbryan.juliano@gmail.com"]
9
+ spec.authors = ['Joel Bryan Juliano']
10
+ spec.email = ['joelbryan.juliano@gmail.com']
11
11
 
12
12
  spec.summary = %q{Responsive User Interfaces in Markdown}
13
13
  spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
14
- spec.homepage = "https://github.com/jjuliano/markdown-ui"
15
- spec.license = "MIT"
14
+ spec.homepage = 'https://github.com/jjuliano/markdown-ui'
15
+ spec.license = 'MIT'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
18
  # delete this section to allow pushing this gem to any host.
19
19
  if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
  else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
23
  end
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
26
+ spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
28
+ spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
31
- spec.add_dependency "redcarpet", "~> 3.2"
32
- spec.add_dependency "nokogiri", "~> 1.6"
33
- spec.add_development_dependency "rake", "~> 10.0"
34
- spec.add_development_dependency "test-unit", "~> 3.0"
35
- spec.add_development_dependency "simplecov", "~> 0.10"
36
- spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
31
+ spec.add_dependency 'redcarpet', '~> 3.2'
32
+ spec.add_dependency 'nokogiri', '~> 1.6'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'test-unit', '~> 3.0'
35
+ spec.add_development_dependency 'simplecov', '~> 0.10'
36
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
37
37
  end
@@ -1,2 +1,2 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
  gemspec
@@ -4,34 +4,34 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'message/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "markdown-ui-message"
7
+ spec.name = 'markdown-ui-message'
8
8
  spec.version = MarkdownUI::MessageElement::VERSION
9
- spec.authors = ["Joel Bryan Juliano"]
10
- spec.email = ["joelbryan.juliano@gmail.com"]
9
+ spec.authors = ['Joel Bryan Juliano']
10
+ spec.email = ['joelbryan.juliano@gmail.com']
11
11
 
12
12
  spec.summary = %q{Responsive User Interfaces in Markdown}
13
13
  spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
14
- spec.homepage = "https://github.com/jjuliano/markdown-ui"
15
- spec.license = "MIT"
14
+ spec.homepage = 'https://github.com/jjuliano/markdown-ui'
15
+ spec.license = 'MIT'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
18
  # delete this section to allow pushing this gem to any host.
19
19
  if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
  else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
23
  end
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
26
+ spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
28
+ spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
31
- spec.add_dependency "redcarpet", "~> 3.2"
32
- spec.add_dependency "nokogiri", "~> 1.6"
33
- spec.add_development_dependency "rake", "~> 10.0"
34
- spec.add_development_dependency "test-unit", "~> 3.0"
35
- spec.add_development_dependency "simplecov", "~> 0.10"
36
- spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
31
+ spec.add_dependency 'redcarpet', '~> 3.2'
32
+ spec.add_dependency 'nokogiri', '~> 1.6'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'test-unit', '~> 3.0'
35
+ spec.add_development_dependency 'simplecov', '~> 0.10'
36
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
37
37
  end
@@ -1,2 +1,2 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
  gemspec
@@ -20,8 +20,8 @@ module MarkdownUI::Button
20
20
  content << visible_content
21
21
  content << hidden_content
22
22
  else
23
- content << MarkdownUI::StandardTag.new(visible_content, "visible content").render
24
- content << MarkdownUI::StandardTag.new(hidden_content, "hidden content").render
23
+ content << MarkdownUI::StandardTag.new(visible_content, 'visible content').render
24
+ content << MarkdownUI::StandardTag.new(hidden_content, 'hidden content').render
25
25
  end
26
26
 
27
27
  MarkdownUI::StandardTag.new(content.join, klass, _id).render
@@ -19,4 +19,3 @@ module MarkdownUI::Button
19
19
  end
20
20
  end
21
21
  end
22
-
@@ -34,21 +34,25 @@ module MarkdownUI::Button
34
34
  :basic? => element.grep(/basic/i).any?
35
35
  )
36
36
 
37
- if standard_button?(mode) && element.size > 1
38
- MarkdownUI::Button::Custom.new(element, content, klass, _id).render
39
- elsif mode.icon? && mode.labeled?
40
- icon, label = content
41
- MarkdownUI::Button::LabeledIcon.new(icon, label, klass, _id).render
42
- elsif mode.icon? && !mode.labeled?
43
- MarkdownUI::Button::Icon.new(content, klass, _id).render
44
- elsif mode.focusable?
45
- MarkdownUI::Button::Focusable.new(content, klass, _id).render
46
- elsif mode.basic?
47
- MarkdownUI::Button::Basic.new(content, klass, _id).render
48
- elsif mode.animated?
49
- MarkdownUI::Button::Animated.new(content, klass, _id).render
50
- elsif standard_button?(mode)
51
- MarkdownUI::Button::Standard.new(content, klass, _id).render
37
+ if content
38
+ if standard_button?(mode) && element.size > 1
39
+ MarkdownUI::Button::Custom.new(element, content, klass, _id).render
40
+ elsif mode.icon? && mode.labeled?
41
+ icon, label = content
42
+ MarkdownUI::Button::LabeledIcon.new(icon, label, klass, _id).render
43
+ elsif mode.icon? && !mode.labeled?
44
+ MarkdownUI::Button::Icon.new(content, klass, _id).render
45
+ elsif mode.focusable?
46
+ MarkdownUI::Button::Focusable.new(content, klass, _id).render
47
+ elsif mode.basic?
48
+ MarkdownUI::Button::Basic.new(content, klass, _id).render
49
+ elsif mode.animated?
50
+ MarkdownUI::Button::Animated.new(content, klass, _id).render
51
+ elsif standard_button?(mode)
52
+ MarkdownUI::Button::Standard.new(content, klass, _id).render
53
+ end
54
+ else
55
+ MarkdownUI::Button::Custom.new(element, '', klass, _id).render
52
56
  end
53
57
  end
54
58
 
@@ -14,7 +14,7 @@ module MarkdownUI::Button
14
14
  :icon? => !(element =~ /icon/i).nil?
15
15
  )
16
16
 
17
- if element.length == "buttons".length
17
+ if element.length == 'buttons'.length
18
18
  MarkdownUI::Button::Group::Buttons::Standard.new(element, content).render
19
19
  elsif mode.icon?
20
20
  MarkdownUI::Button::Group::Buttons::Icon.new(element, content).render
@@ -4,34 +4,34 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'button/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "markdown-ui-button"
7
+ spec.name = 'markdown-ui-button'
8
8
  spec.version = MarkdownUI::Button::VERSION
9
- spec.authors = ["Joel Bryan Juliano"]
10
- spec.email = ["joelbryan.juliano@gmail.com"]
9
+ spec.authors = ['Joel Bryan Juliano']
10
+ spec.email = ['joelbryan.juliano@gmail.com']
11
11
 
12
12
  spec.summary = %q{Responsive User Interfaces in Markdown}
13
13
  spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
14
- spec.homepage = "https://github.com/jjuliano/markdown-ui"
15
- spec.license = "MIT"
14
+ spec.homepage = 'https://github.com/jjuliano/markdown-ui'
15
+ spec.license = 'MIT'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
18
  # delete this section to allow pushing this gem to any host.
19
19
  if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
  else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
23
  end
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
26
+ spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
28
+ spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
31
- spec.add_dependency "redcarpet", "~> 3.2"
32
- spec.add_dependency "nokogiri", "~> 1.6"
33
- spec.add_development_dependency "rake", "~> 10.0"
34
- spec.add_development_dependency "test-unit", "~> 3.0"
35
- spec.add_development_dependency "simplecov", "~> 0.10"
36
- spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
31
+ spec.add_dependency 'redcarpet', '~> 3.2'
32
+ spec.add_dependency 'nokogiri', '~> 1.6'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'test-unit', '~> 3.0'
35
+ spec.add_development_dependency 'simplecov', '~> 0.10'
36
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
37
37
  end
@@ -1,2 +1,2 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
  gemspec
@@ -19,7 +19,7 @@ module MarkdownUI::Container
19
19
  :aligned? => !(element =~ /aligned/i).nil?
20
20
  )
21
21
 
22
- if element.length == "container".length
22
+ if element.length == 'container'.length
23
23
  MarkdownUI::Container::Standard.new(element, content).render
24
24
  elsif mode.left? && mode.aligned?
25
25
  MarkdownUI::Container::Alignment::Left.new(element, content).render
@@ -4,34 +4,34 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'container/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "markdown-ui-container"
7
+ spec.name = 'markdown-ui-container'
8
8
  spec.version = MarkdownUI::Container::VERSION
9
- spec.authors = ["Joel Bryan Juliano"]
10
- spec.email = ["joelbryan.juliano@gmail.com"]
9
+ spec.authors = ['Joel Bryan Juliano']
10
+ spec.email = ['joelbryan.juliano@gmail.com']
11
11
 
12
12
  spec.summary = %q{Responsive User Interfaces in Markdown}
13
13
  spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
14
- spec.homepage = "https://github.com/jjuliano/markdown-ui"
15
- spec.license = "MIT"
14
+ spec.homepage = 'https://github.com/jjuliano/markdown-ui'
15
+ spec.license = 'MIT'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
18
  # delete this section to allow pushing this gem to any host.
19
19
  if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
  else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
23
  end
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
26
+ spec.bindir = 'exe'
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
28
+ spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
31
- spec.add_dependency "redcarpet", "~> 3.2"
32
- spec.add_dependency "nokogiri", "~> 1.6"
33
- spec.add_development_dependency "rake", "~> 10.0"
34
- spec.add_development_dependency "test-unit", "~> 3.0"
35
- spec.add_development_dependency "simplecov", "~> 0.10"
36
- spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
31
+ spec.add_dependency 'redcarpet', '~> 3.2'
32
+ spec.add_dependency 'nokogiri', '~> 1.6'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'test-unit', '~> 3.0'
35
+ spec.add_development_dependency 'simplecov', '~> 0.10'
36
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
37
37
  end