redrug 0.2.5 → 0.2.6

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e142336c9236b42f57e62dfdf0c947a2c9d91002
4
+ data.tar.gz: 4e64d84e419e4071e5795816572695800e8fd7d9
5
+ SHA512:
6
+ metadata.gz: 449431b3e91a67dbf92fc471aceac85e8b456b2ecfb461d527ec44298a493afec86704825486a54f955ae6851228d11a934a168283a85642af4eebee1cb2e356
7
+ data.tar.gz: 04825959750b2fd163990fbdbf0057485dcb3c6b7174273320e95d3bd59b3456eaf272dff734c5433b6573b765bdd28d1889c982e7e9e1406b564c9d871970f8
data/COPYING CHANGED
@@ -1,12 +1,17 @@
1
- RedRug is distributed under the terms of the Open Works License. The Open
2
- Works License is a copyfree license.
1
+ RedRug is distributed under the terms of the Detachable Public License. The
2
+ Detachable Public License is a copyfree license.
3
3
 
4
4
  RedRug depends on Redcarpet, which is distributed under the terms of the ISC
5
5
  License. The ISC License is a copyfree license.
6
6
 
7
- See http://copyfree.org for more information about copyfree licensing.
7
+ RedRug also depends on Versionize, which is distributed under the terms of the
8
+ same license as RedRug. That's awfully convenient.
8
9
 
9
- See https://github.com/vmg/redcarpet for more information about Redcarpet.
10
+ See http://copyfree.org for more information about copyfree licensing in
11
+ general, and about the Detachable Public License and ISC License in particular.
10
12
 
11
- See http://owl.apotheon.org/ for more information about the Open Works License,
12
- and the `owl.txt` file for the text of the Open Works License.
13
+ See https://github.com/vmg/redcarpet for more information about Redcarpet. See
14
+ http://fossrec.com/u/apotheon/versionize for more information about Versionize.
15
+ See http://fossrec.com/u/apotheon/redrug for more information about RedRug.
16
+
17
+ See the LICENSE file for the text of the Detachable Public License.
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Permission is hereby granted by the holder(s) of copyright or other legal
2
+ privileges, author(s) or assembler(s), and contributor(s) of this work, to any
3
+ person who obtains a copy of this work in any form, to reproduce, modify,
4
+ distribute, publish, sell, sublicense, use, and/or otherwise deal in the
5
+ licensed material without restriction, provided the following conditions are
6
+ met.
7
+
8
+ Redistributions, modified or unmodified, in whole or in part, must make
9
+ applicable copyright and other legal privilege notices, the above license
10
+ notice, these conditions, and the following disclaimer, freely available to
11
+ recipients on distribution through one of the following means, in descending
12
+ order of preferability: incorporated into the work, provided with the work,
13
+ presented via the medium or method of distribution for the work, or upon
14
+ request by recipients of the work while the work is offered for distribution.
15
+
16
+ NO WARRANTY OF ANY KIND IS IMPLIED BY, OR SHOULD BE INFERRED FROM, THIS LICENSE
17
+ OR THE ACT OF DISTRIBUTION UNDER THE TERMS OF THIS LICENSE, INCLUDING BUT NOT
18
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
19
+ AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, ASSEMBLERS, OR HOLDERS OF
20
+ COPYRIGHT OR OTHER LEGAL PRIVILEGE BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
21
+ LIABILITY, WHETHER IN ACTION OF CONTRACT, TORT, OR OTHERWISE ARISING FROM, OUT
22
+ OF, OR IN CONNECTION WITH THE WORK OR THE USE OF OR OTHER DEALINGS IN THE WORK.
@@ -7,6 +7,10 @@ RedRug provides a simplified interface to the functionality of the Redcarpet
7
7
  gem for Markdown handling, intended to provide convenience in execution of
8
8
  common tasks. At present, only HTML output is supported.
9
9
 
10
+ To begin using RedRug in your code, require it. Example:
11
+
12
+ require 'red_rug'
13
+
10
14
  =end
11
15
 
12
16
  module RedRug
@@ -14,7 +18,7 @@ module RedRug
14
18
  @version = {
15
19
  :major => 0,
16
20
  :minor => 2,
17
- :revision => 5
21
+ :revision => 6
18
22
  }
19
23
 
20
24
  =begin rdoc
@@ -0,0 +1,32 @@
1
+ load '../lib/red_rug.rb'
2
+ RSpec.describe RedRug do
3
+ describe 'to_html' do
4
+ it 'returns HTML equivalent of Markdown input' do
5
+ markdown_input = <<-END.gsub(/^ */, '')
6
+ # Heading Level One
7
+
8
+ This is a very short paragraph indeed.
9
+
10
+ ## Heading Level Two
11
+
12
+ Luckily, we have another paragraph, consisting of more than one line.
13
+ It also consists of more than one sentence, though of course RedRug is
14
+ not currently sentence-aware, so far as its developers are aware.
15
+ END
16
+
17
+ html_output = <<-END.gsub(/^ */, '')
18
+ <h1>Heading Level One</h1>
19
+
20
+ <p>This is a very short paragraph indeed.</p>
21
+
22
+ <h2>Heading Level Two</h2>
23
+
24
+ <p>Luckily, we have another paragraph, consisting of more than one line.
25
+ It also consists of more than one sentence, though of course RedRug is
26
+ not currently sentence-aware, so far as its developers are aware.</p>
27
+ END
28
+
29
+ expect(RedRug.to_html markdown_input).to eq html_output
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,91 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ =begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
50
+ config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Limits the available syntax to the non-monkey patched syntax that is
54
+ # recommended. For more details, see:
55
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
56
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
57
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
58
+ config.disable_monkey_patching!
59
+
60
+ # This setting enables warnings. It's recommended, but in some cases may
61
+ # be too noisy due to issues in dependencies.
62
+ config.warnings = true
63
+
64
+ # Many RSpec users commonly either run the entire suite or an individual
65
+ # file, and it's useful to allow more verbose output when running an
66
+ # individual spec file.
67
+ if config.files_to_run.one?
68
+ # Use the documentation formatter for detailed output,
69
+ # unless a formatter has already been configured
70
+ # (e.g. via a command-line flag).
71
+ config.default_formatter = 'doc'
72
+ end
73
+
74
+ # Print the 10 slowest examples and example groups at the
75
+ # end of the spec run, to help surface which specs are running
76
+ # particularly slow.
77
+ config.profile_examples = 10
78
+
79
+ # Run specs in random order to surface order dependencies. If you find an
80
+ # order dependency and want to debug it, you can fix the order by providing
81
+ # the seed, which is printed after each run.
82
+ # --seed 1234
83
+ config.order = :random
84
+
85
+ # Seed global randomization in this process using the `--seed` CLI option.
86
+ # Setting this allows you to use `--seed` to deterministically reproduce
87
+ # test failures related to randomization by passing the same `--seed` value
88
+ # as the one that triggered the failure.
89
+ Kernel.srand config.seed
90
+ =end
91
+ end
metadata CHANGED
@@ -1,34 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redrug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
5
- prerelease:
4
+ version: 0.2.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chad Perrin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-20 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: redcarpet
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
- description: ! " RedRug is a wrapper for Redcarpet, intended to provide more convenient\n
31
- \ interfaces for common Markdown parsing use cases.\n"
27
+ - !ruby/object:Gem::Dependency
28
+ name: versionize
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: |2
42
+ RedRug is a wrapper for Redcarpet, intended to provide more convenient
43
+ interfaces for common Markdown parsing use cases.
32
44
  email: code@apotheon.net
33
45
  executables:
34
46
  - redrug
@@ -36,36 +48,38 @@ extensions: []
36
48
  extra_rdoc_files: []
37
49
  files:
38
50
  - COPYING
51
+ - LICENSE
39
52
  - README
40
- - owl.txt
41
- - lib/red_rug.rb
42
53
  - bin/redrug
43
- homepage: http://redrug.fossrec.com
54
+ - lib/red_rug.rb
55
+ - spec/red_rug_spec.rb
56
+ - spec/spec_helper.rb
57
+ homepage: http://fossrec.com/u/apotheon/redrug
44
58
  licenses:
45
- - OWL
46
- post_install_message: ! " Thank you for using RedRug. Require \"red_rug\" to load
47
- this library.\n The \"redrug\" command line utility takes a filename argument
48
- and outputs\n the contents of the file translated from Markdown to HTML. Usage
49
- and\n option help for it can be had via the \"-h\" option.\n"
59
+ - DPL
60
+ metadata: {}
61
+ post_install_message: |2
62
+ Thank you for using RedRug. Require "red_rug" to load this library.
63
+ The "redrug" command line utility takes a filename argument and outputs
64
+ the contents of the file translated from Markdown to HTML. Usage and
65
+ option help for it can be had via the "-h" option.
50
66
  rdoc_options: []
51
67
  require_paths:
52
68
  - lib
53
69
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
70
  requirements:
56
- - - ! '>='
71
+ - - ">="
57
72
  - !ruby/object:Gem::Version
58
73
  version: 1.9.2
59
74
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
75
  requirements:
62
- - - ! '>='
76
+ - - ">="
63
77
  - !ruby/object:Gem::Version
64
78
  version: '0'
65
79
  requirements: []
66
80
  rubyforge_project:
67
- rubygems_version: 1.8.25
81
+ rubygems_version: 2.4.6
68
82
  signing_key:
69
- specification_version: 3
83
+ specification_version: 4
70
84
  summary: RedRug - Simple Markdown Interface
71
85
  test_files: []
data/owl.txt DELETED
@@ -1,23 +0,0 @@
1
- # Open Works License
2
-
3
- This is version 0.9.2 of the Open Works License.
4
-
5
- ## Terms
6
-
7
- Permission is hereby granted by the copyright holder(s), author(s), and
8
- contributor(s) of this work, to any person who obtains a copy of this work in
9
- any form, to reproduce, modify, distribute, publish, sell, use, or otherwise
10
- deal in the licensed material without restriction, provided the following
11
- conditions are met:
12
-
13
- Redistributions, modified or unmodified, in whole or in part, must retain
14
- applicable copyright notices, the above license notice, these conditions, and
15
- the following disclaimer.
16
-
17
- NO WARRANTY OF ANY KIND IS IMPLIED BY, OR SHOULD BE INFERRED FROM, THIS LICENSE
18
- OR THE ACT OF DISTRIBUTION UNDER THE TERMS OF THIS LICENSE, INCLUDING BUT NOT
19
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
20
- AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
- LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF
22
- CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE
23
- WORK, OR THE USE OF OR OTHER DEALINGS IN THE WORK.