pizzazz 0.1.2 → 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0961913fc899205e876785cf1aa81ea6c1137e38
4
+ data.tar.gz: 6bcfa09b8e0774480849ac4bb6af84ef36aaf21b
5
+ SHA512:
6
+ metadata.gz: fd66e244b9c80feb551f54485250b599cce7c5c5f8e38cf9b0ebba3b6ebeabc24292141700897164bb790a603e9b8b624362708133c37bf56395f77b27a9c9b7
7
+ data.tar.gz: 3f328fd9ea78df738ed957ecbbc8a7f66e86c63494b6b70f6a983a345e7fc433d776f25dd4805101a322e69da1d9f4440ea04befddca75cc416a05f0b9efdc69
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .ruby-version
data/Gemfile CHANGED
@@ -1,8 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in pizzazz.gemspec
4
3
  gemspec
5
4
 
6
- gem 'rake'
7
- gem 'minitest'
8
- gem 'minitest-wscolor'
5
+ gem 'rake', :group => [:development, :test]
6
+
7
+ group :test do
8
+ gem 'minitest'
9
+ gem 'minitest-wscolor' if RUBY_VERSION >= '1.9.3'
10
+ gem 'simplecov', :require => false
11
+ end
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Sam Soffes
1
+ Copyright (c) 2012-2013 Sam Soffes
2
2
 
3
3
  MIT License
4
4
 
data/Rakefile CHANGED
@@ -6,4 +6,4 @@ Rake::TestTask.new(:test) do |t|
6
6
  t.libs << 'test'
7
7
  t.pattern = 'test/**/*_test.rb'
8
8
  end
9
- task default: :test
9
+ task :default => :test
@@ -1,13 +1,13 @@
1
1
  module Pizzazz
2
2
  TAB_SIZE = 2
3
-
3
+
4
4
  def self.ify(object, options = nil)
5
5
  p = Colorer.new(object, options)
6
6
  p.ify
7
7
  end
8
8
  end
9
9
 
10
- # This is ugly. I'd love a better solution.
10
+ # TODO: This is ugly. I'd love a better solution.
11
11
  begin
12
12
  require 'rails'
13
13
  require 'pizzazz/engine'
@@ -1,3 +1,3 @@
1
1
  module Pizzazz
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.description = %q{Add some pizzazz to your documentation}
8
8
  gem.summary = %q{A simple gem to code color documentation}
9
9
  gem.homepage = 'http://github.com/samsoffes/pizzazz'
10
+ gem.license = 'MIT'
10
11
 
11
12
  gem.files = `git ls-files`.split($\)
12
13
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -14,4 +15,6 @@ Gem::Specification.new do |gem|
14
15
  gem.name = 'pizzazz'
15
16
  gem.require_paths = ['lib']
16
17
  gem.version = Pizzazz::VERSION
18
+
19
+ gem.required_ruby_version = '>= 1.8.7'
17
20
  end
@@ -1,6 +1,17 @@
1
1
  require 'rubygems'
2
- gem 'minitest'
3
- require 'minitest/wscolor'
4
- require 'minitest/autorun'
2
+ require 'bundler'
3
+ Bundler.require :test
4
+
5
+ require 'simplecov'
6
+ SimpleCov.start
5
7
 
8
+ require 'minitest/autorun'
6
9
  require 'pizzazz'
10
+
11
+ # Support files
12
+ Dir["#{File.expand_path(File.dirname(__FILE__))}/support/*.rb"].each do |file|
13
+ require file
14
+ end
15
+
16
+ class Pizzazz::TestCase < MiniTest::Unit::TestCase
17
+ end
@@ -1,9 +1,9 @@
1
1
  require 'test_helper'
2
2
 
3
- class TestColorer < MiniTest::Unit::TestCase
3
+ class TestColorer < Pizzazz::TestCase
4
4
  def test_that_it_colors_hashes
5
- assert_equal Pizzazz.ify({foo: 'bar'}), %Q{{\n <span class="string">"foo"</span>: <span class="string">"bar"</span>\n}}
5
+ assert_equal Pizzazz.ify({:foo => 'bar'}), %Q{{\n <span class="string">"foo"</span>: <span class="string">"bar"</span>\n}}
6
6
  end
7
-
8
- # These need to be expanded
7
+
8
+ # TODO: These need to be expanded
9
9
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pizzazz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sam Soffes
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-10 00:00:00.000000000 Z
11
+ date: 2013-02-25 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Add some pizzazz to your documentation
15
14
  email:
@@ -33,34 +32,28 @@ files:
33
32
  - test/test_helper.rb
34
33
  - test/units/colorer_test.rb
35
34
  homepage: http://github.com/samsoffes/pizzazz
36
- licenses: []
35
+ licenses:
36
+ - MIT
37
+ metadata: {}
37
38
  post_install_message:
38
39
  rdoc_options: []
39
40
  require_paths:
40
41
  - lib
41
42
  required_ruby_version: !ruby/object:Gem::Requirement
42
- none: false
43
43
  requirements:
44
- - - ! '>='
44
+ - - '>='
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
47
- segments:
48
- - 0
49
- hash: 1975583259138659068
46
+ version: 1.8.7
50
47
  required_rubygems_version: !ruby/object:Gem::Requirement
51
- none: false
52
48
  requirements:
53
- - - ! '>='
49
+ - - '>='
54
50
  - !ruby/object:Gem::Version
55
51
  version: '0'
56
- segments:
57
- - 0
58
- hash: 1975583259138659068
59
52
  requirements: []
60
53
  rubyforge_project:
61
- rubygems_version: 1.8.23
54
+ rubygems_version: 2.0.0
62
55
  signing_key:
63
- specification_version: 3
56
+ specification_version: 4
64
57
  summary: A simple gem to code color documentation
65
58
  test_files:
66
59
  - test/test_helper.rb