minisyntax 0.2.2 → 0.2.3

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 14819b7eb7dfaf980bfc1a4750cffb54593e5a5e
4
+ data.tar.gz: 51e7b23336f28fa1cdc005b493dc8bf756182093
5
+ SHA512:
6
+ metadata.gz: 62ce61dcb9ffcc4359f4ac824fe7d9e3cc46c7310635cb7f80bf2ee0eec38636116f832903bb77375c28dcfdd1c4fb9f462a0a8016c7a91fdf66ec2422589636
7
+ data.tar.gz: e9a551a22964460f7da41bbe38bd6db0a9b57d06139f0426408b143609867e1fd5e969752b03689353a9ce57a83f4fe388a6c70ce9df231aa16684f0dadc3536
data/.gitignore ADDED
@@ -0,0 +1,44 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+
14
+ # jeweler generated
15
+ pkg
16
+
17
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18
+ #
19
+ # * Create a file at ~/.gitignore
20
+ # * Include files you want ignored
21
+ # * Run: git config --global core.excludesfile ~/.gitignore
22
+ #
23
+ # After doing this, these files will be ignored in all your git projects,
24
+ # saving you from having to 'pollute' every project you touch with them
25
+ #
26
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
27
+ #
28
+ # For MacOS:
29
+ #
30
+ #.DS_Store
31
+ #
32
+ # For TextMate
33
+ #*.tmproj
34
+ #tmtags
35
+ #
36
+ # For emacs:
37
+ #*~
38
+ #\#*
39
+ #.\#*
40
+ #
41
+ # For vim:
42
+ #*.swp
43
+
44
+ *.gem
data/Gemfile CHANGED
@@ -1,7 +1,3 @@
1
1
  source "http://rubygems.org"
2
- group :development do
3
- gem "rspec", "~> 2.3.0"
4
- gem "bundler", "~> 1.0.0"
5
- gem "jeweler", "~> 1.5.2"
6
- gem "rcov", ">= 0"
7
- end
2
+ gemspec
3
+
data/Gemfile.lock CHANGED
@@ -1,28 +1,14 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ minisyntax (0.2.3)
5
+
1
6
  GEM
2
7
  remote: http://rubygems.org/
3
8
  specs:
4
- diff-lcs (1.1.2)
5
- git (1.2.5)
6
- jeweler (1.5.2)
7
- bundler (~> 1.0.0)
8
- git (>= 1.2.5)
9
- rake
10
- rake (0.8.7)
11
- rcov (0.9.9)
12
- rspec (2.3.0)
13
- rspec-core (~> 2.3.0)
14
- rspec-expectations (~> 2.3.0)
15
- rspec-mocks (~> 2.3.0)
16
- rspec-core (2.3.1)
17
- rspec-expectations (2.3.0)
18
- diff-lcs (~> 1.1.2)
19
- rspec-mocks (2.3.0)
20
9
 
21
10
  PLATFORMS
22
11
  ruby
23
12
 
24
13
  DEPENDENCIES
25
- bundler (~> 1.0.0)
26
- jeweler (~> 1.5.2)
27
- rcov
28
- rspec (~> 2.3.0)
14
+ minisyntax!
data/Rakefile CHANGED
@@ -1,51 +1,2 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
1
+ require 'bundler/gem_tasks'
11
2
 
12
- require 'jeweler'
13
- $: << File.join(File.dirname(__FILE__), 'lib')
14
- require 'minisyntax'
15
- Jeweler::Tasks.new do |gem|
16
- gem.version = MiniSyntax::Version::STRING
17
- gem.name = "minisyntax"
18
- gem.homepage = "http://github.com/hagenburger/minisyntax"
19
- gem.license = "MIT"
20
- gem.summary = %Q{A simple powerful syntax highlighter with minimal HTML output}
21
- gem.description = %Q{A simple powerful syntax highlighter with minimal HTML output}
22
- gem.email = "nico@hagenburger.net"
23
- gem.authors = ["Nico Hagenburger"]
24
- # Include your dependencies below. Runtime dependencies are required when using your gem,
25
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
26
- # gem.add_development_dependency 'rspec', '> 1.2.3'
27
- end
28
- Jeweler::RubygemsDotOrgTasks.new
29
-
30
- require 'rspec/core'
31
- require 'rspec/core/rake_task'
32
- RSpec::Core::RakeTask.new(:spec) do |spec|
33
- spec.pattern = FileList['spec/**/*_spec.rb']
34
- end
35
-
36
- RSpec::Core::RakeTask.new(:rcov) do |spec|
37
- spec.pattern = 'spec/**/*_spec.rb'
38
- spec.rcov = true
39
- end
40
-
41
- task :default => :spec
42
-
43
- require 'rake/rdoctask'
44
- Rake::RDocTask.new do |rdoc|
45
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
-
47
- rdoc.rdoc_dir = 'rdoc'
48
- rdoc.title = "minisyntax #{version}"
49
- rdoc.rdoc_files.include('README*')
50
- rdoc.rdoc_files.include('lib/**/*.rb')
51
- end
@@ -9,7 +9,7 @@ module MiniSyntax
9
9
  options = $5
10
10
  ruby = $8
11
11
  result << %Q(<em>#{tag}</em>) if tag
12
- result << %Q(<b>#{classes_and_id}</b>) unless classes_and_id.blank?
12
+ result << %Q(<b>#{classes_and_id}</b>) unless classes_and_id.empty?
13
13
  result << options if options
14
14
  result << MiniSyntax.highlight(ruby, :ruby) if ruby
15
15
  result
@@ -0,0 +1,4 @@
1
+ module MiniSyntax
2
+ VERSION = '0.2.3'
3
+ end
4
+
data/lib/minisyntax.rb CHANGED
@@ -1,13 +1,4 @@
1
1
  module MiniSyntax
2
- module Version
3
- MAJOR = 0
4
- MINOR = 2
5
- PATCH = 2
6
- BUILD = nil
7
-
8
- STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
- end
10
-
11
2
  @@languages = {}
12
3
 
13
4
  def self.register(lang, lang_module)
@@ -29,3 +20,4 @@ module MiniSyntax
29
20
  end
30
21
 
31
22
  require 'minisyntax/highlighter'
23
+
data/minisyntax.gemspec CHANGED
@@ -1,73 +1,20 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'minisyntax/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = "minisyntax"
8
- s.version = "0.2.2"
6
+ Gem::Specification.new do |gem|
7
+ gem.name = 'minisyntax'
8
+ gem.version = MiniSyntax::VERSION
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Nico Hagenburger"]
12
- s.date = "2013-11-04"
13
- s.description = "A simple powerful syntax highlighter with minimal HTML output"
14
- s.email = "nico@hagenburger.net"
15
- s.extra_rdoc_files = [
16
- "README.md"
17
- ]
18
- s.files = [
19
- ".document",
20
- ".rspec",
21
- "Gemfile",
22
- "Gemfile.lock",
23
- "MIT-LICENSE.txt",
24
- "README.md",
25
- "Rakefile",
26
- "lib/minisyntax.rb",
27
- "lib/minisyntax/highlighter.rb",
28
- "lib/minisyntax/highlighter/bash.rb",
29
- "lib/minisyntax/highlighter/command_line.rb",
30
- "lib/minisyntax/highlighter/css.rb",
31
- "lib/minisyntax/highlighter/erb.rb",
32
- "lib/minisyntax/highlighter/haml.rb",
33
- "lib/minisyntax/highlighter/html.rb",
34
- "lib/minisyntax/highlighter/javascript.rb",
35
- "lib/minisyntax/highlighter/php.rb",
36
- "lib/minisyntax/highlighter/ruby.rb",
37
- "lib/minisyntax/highlighter/yaml.rb",
38
- "minisyntax.gemspec",
39
- "spec/minisyntax_spec.rb",
40
- "spec/spec_helper.rb"
41
- ]
42
- s.homepage = "http://github.com/hagenburger/minisyntax"
43
- s.licenses = ["MIT"]
44
- s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.10"
46
- s.summary = "A simple powerful syntax highlighter with minimal HTML output"
47
- s.test_files = [
48
- "spec/minisyntax_spec.rb",
49
- "spec/spec_helper.rb"
50
- ]
51
-
52
- if s.respond_to? :specification_version then
53
- s.specification_version = 3
54
-
55
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
57
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
58
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
59
- s.add_development_dependency(%q<rcov>, [">= 0"])
60
- else
61
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
62
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
63
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
64
- s.add_dependency(%q<rcov>, [">= 0"])
65
- end
66
- else
67
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
68
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
69
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
70
- s.add_dependency(%q<rcov>, [">= 0"])
71
- end
10
+ gem.authors = ['Nico Hagenburger']
11
+ gem.description = 'A simple powerful syntax highlighter with minimal HTML output'
12
+ gem.email = ['nico@hagenburger.net']
13
+ gem.homepage = 'http://github.com/hagenburger/minisyntax'
14
+ gem.licenses = ['MIT']
15
+ gem.summary = 'A simple powerful syntax highlighter with minimal HTML output'
16
+ gem.files = `git ls-files`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ gem.require_paths = ['lib']
72
19
  end
73
20
 
metadata CHANGED
@@ -1,68 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minisyntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nico Hagenburger
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-04 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rspec
16
- requirement: &70154714515000 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 2.3.0
22
- type: :development
23
- prerelease: false
24
- version_requirements: *70154714515000
25
- - !ruby/object:Gem::Dependency
26
- name: bundler
27
- requirement: &70154714514520 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ~>
31
- - !ruby/object:Gem::Version
32
- version: 1.0.0
33
- type: :development
34
- prerelease: false
35
- version_requirements: *70154714514520
36
- - !ruby/object:Gem::Dependency
37
- name: jeweler
38
- requirement: &70154714513980 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: 1.5.2
44
- type: :development
45
- prerelease: false
46
- version_requirements: *70154714513980
47
- - !ruby/object:Gem::Dependency
48
- name: rcov
49
- requirement: &70154714513480 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :development
56
- prerelease: false
57
- version_requirements: *70154714513480
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
+ dependencies: []
58
13
  description: A simple powerful syntax highlighter with minimal HTML output
59
- email: nico@hagenburger.net
14
+ email:
15
+ - nico@hagenburger.net
60
16
  executables: []
61
17
  extensions: []
62
- extra_rdoc_files:
63
- - README.md
18
+ extra_rdoc_files: []
64
19
  files:
65
20
  - .document
21
+ - .gitignore
66
22
  - .rspec
67
23
  - Gemfile
68
24
  - Gemfile.lock
@@ -81,37 +37,30 @@ files:
81
37
  - lib/minisyntax/highlighter/php.rb
82
38
  - lib/minisyntax/highlighter/ruby.rb
83
39
  - lib/minisyntax/highlighter/yaml.rb
40
+ - lib/minisyntax/version.rb
84
41
  - minisyntax.gemspec
85
- - spec/minisyntax_spec.rb
86
- - spec/spec_helper.rb
87
42
  homepage: http://github.com/hagenburger/minisyntax
88
43
  licenses:
89
44
  - MIT
45
+ metadata: {}
90
46
  post_install_message:
91
47
  rdoc_options: []
92
48
  require_paths:
93
49
  - lib
94
50
  required_ruby_version: !ruby/object:Gem::Requirement
95
- none: false
96
51
  requirements:
97
- - - ! '>='
52
+ - - '>='
98
53
  - !ruby/object:Gem::Version
99
54
  version: '0'
100
- segments:
101
- - 0
102
- hash: 304351776053886024
103
55
  required_rubygems_version: !ruby/object:Gem::Requirement
104
- none: false
105
56
  requirements:
106
- - - ! '>='
57
+ - - '>='
107
58
  - !ruby/object:Gem::Version
108
59
  version: '0'
109
60
  requirements: []
110
61
  rubyforge_project:
111
- rubygems_version: 1.8.10
62
+ rubygems_version: 2.1.11
112
63
  signing_key:
113
- specification_version: 3
64
+ specification_version: 4
114
65
  summary: A simple powerful syntax highlighter with minimal HTML output
115
- test_files:
116
- - spec/minisyntax_spec.rb
117
- - spec/spec_helper.rb
66
+ test_files: []
@@ -1,7 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe "Minisyntax" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
6
- end
7
- end
data/spec/spec_helper.rb DELETED
@@ -1,12 +0,0 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'rspec'
4
- require 'minisyntax'
5
-
6
- # Requires supporting files with custom matchers and macros, etc,
7
- # in ./support/ and its subdirectories.
8
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
-
10
- RSpec.configure do |config|
11
-
12
- end