markdown-rails 0.2.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a772de4398029a4fa7ccb067e3c3c6ac59db0fbcbacffd89e6227fc048038105
4
+ data.tar.gz: 78d68659281c660e18c31a5175ca44ecc8347263cde3b317921ca93700d4890d
5
+ SHA512:
6
+ metadata.gz: 3250a18ee33f9200d8798353dffb59dfabd3063cf78550b6689e962c0dd278bfad30a0878ae3d3fcef1ca861d48f9b32f8ee25713dad858041e5cfcc03ca2f4f
7
+ data.tar.gz: ba0c2637b6ab5ef69da35b691832dc529cfbd2f831731d5ae42dcf6950574eee19ba3dd0f410879206a5eb82eee06a9eaa68ffc8e06984ca7b58c542023e3369
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at brad@polleverywhere.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
- # markdown-rails
1
+ **For a perhaps better solution for .html.md files that also supports
2
+ embedding Erb in your Markdown, check out @wjbuys's [answer on
3
+ Stackoverflow](http://stackoverflow.com/a/10131299/525872).**
4
+
5
+ ------------------------
2
6
 
3
- [![Dependency Status](https://gemnasium.com/joliss/markdown-rails.png)](https://gemnasium.com/joliss/markdown-rails)
7
+ # markdown-rails
4
8
 
5
9
  This gem allows you to write static Rails views and partials using the
6
10
  [Markdown](http://daringfireball.net/projects/markdown/syntax) syntax. No more
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -7,9 +7,9 @@ module MarkdownRails
7
7
  def initialize
8
8
  end
9
9
 
10
- def call(template)
10
+ def call(template, source = template.source)
11
11
  # Return Ruby code that returns the compiled template
12
- MarkdownRails.renderer.call(template.source).inspect + '.html_safe'
12
+ MarkdownRails.renderer.call(source).inspect + '.html_safe'
13
13
  end
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module MarkdownRails
2
- VERSION = "0.2.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.required_rubygems_version = ">= 1.3.6"
14
14
 
15
15
  s.add_dependency "rails"
16
- s.add_dependency "rdiscount", [">= 1.6.8", "< 2.0"]
16
+ s.add_dependency "rdiscount", ">= 1.6.8"
17
17
 
18
18
  s.files = `git ls-files`.split("\n").reject { |f| f =~ /^testapp/ }
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
metadata CHANGED
@@ -1,54 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jo Liss
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-16 00:00:00.000000000 Z
11
+ date: 2021-01-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rdiscount
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.6.8
38
- - - <
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
34
  type: :runtime
42
35
  prerelease: false
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
37
  requirements:
46
- - - ! '>='
38
+ - - ">="
47
39
  - !ruby/object:Gem::Version
48
40
  version: 1.6.8
49
- - - <
50
- - !ruby/object:Gem::Version
51
- version: '2.0'
52
41
  description: Markdown as a static templating language for Rails views and partials
53
42
  email:
54
43
  - joliss42@gmail.com
@@ -56,38 +45,37 @@ executables: []
56
45
  extensions: []
57
46
  extra_rdoc_files: []
58
47
  files:
59
- - .gitignore
48
+ - ".gitignore"
49
+ - CODE_OF_CONDUCT.md
60
50
  - Gemfile
61
51
  - History.md
62
52
  - License.txt
63
53
  - README.md
54
+ - Rakefile
64
55
  - lib/markdown-rails.rb
65
56
  - lib/markdown-rails/engine.rb
66
57
  - lib/markdown-rails/version.rb
67
58
  - markdown-rails.gemspec
68
59
  homepage: https://github.com/joliss/markdown-rails
69
60
  licenses: []
70
- post_install_message:
61
+ metadata: {}
62
+ post_install_message:
71
63
  rdoc_options: []
72
64
  require_paths:
73
65
  - lib
74
66
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
- - - ! '>='
68
+ - - ">="
78
69
  - !ruby/object:Gem::Version
79
70
  version: '0'
80
71
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: 1.3.6
86
76
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 1.8.23
89
- signing_key:
90
- specification_version: 3
77
+ rubygems_version: 3.1.4
78
+ signing_key:
79
+ specification_version: 4
91
80
  summary: Markdown as a Rails templating language
92
81
  test_files: []
93
- has_rdoc: