jackb 0.0.4 → 0.0.5

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.
data/Gemfile CHANGED
@@ -4,6 +4,10 @@ gem 'rdiscount'
4
4
  gem 'open4'
5
5
  gem 'albino'
6
6
 
7
+ gem 'activesupport', '3.0.0.beta4'
8
+ gem 'i18n'
9
+ gem 'tzinfo'
10
+
7
11
  gem 'jeweler'
8
12
 
9
13
  group :test do
data/Rakefile CHANGED
@@ -26,7 +26,7 @@ begin
26
26
  gemspec.summary = "Is your content in HTML or Markdown ?"
27
27
  gemspec.description = "Takes some content and parses it depending of the format your specify (HTML or Markdown)"
28
28
  gemspec.email = "42@dmathieu.com"
29
- gemspec.homepage = "http://github.com/dmathieu/jack"
29
+ gemspec.homepage = "http://github.com/dmathieu/jackb"
30
30
  gemspec.authors = ["Damien MATHIEU"]
31
31
 
32
32
  gemspec.add_dependency('rdiscount', '>= 1.6.3.2')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jackb}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Damien MATHIEU"]
12
- s.date = %q{2010-06-18}
12
+ s.date = %q{2010-06-19}
13
13
  s.description = %q{Takes some content and parses it depending of the format your specify (HTML or Markdown)}
14
14
  s.email = %q{42@dmathieu.com}
15
15
  s.extra_rdoc_files = [
@@ -26,25 +26,22 @@ Gem::Specification.new do |s|
26
26
  "lib/jackb/highlight.rb",
27
27
  "lib/jackb/html.rb",
28
28
  "lib/jackb/markdown.rb",
29
- "lib/jackb/string.rb",
30
29
  "spec/lib/highlight_spec.rb",
31
30
  "spec/lib/html_spec.rb",
32
31
  "spec/lib/jackb_spec.rb",
33
32
  "spec/lib/markdown_spec.rb",
34
- "spec/lib/string_spec.rb",
35
33
  "spec/spec_helper.rb"
36
34
  ]
37
- s.homepage = %q{http://github.com/dmathieu/jack}
35
+ s.homepage = %q{http://github.com/dmathieu/jackb}
38
36
  s.rdoc_options = ["--charset=UTF-8"]
39
37
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.7}
38
+ s.rubygems_version = %q{1.3.6}
41
39
  s.summary = %q{Is your content in HTML or Markdown ?}
42
40
  s.test_files = [
43
- "spec/lib/jackb_spec.rb",
44
- "spec/lib/markdown_spec.rb",
41
+ "spec/lib/highlight_spec.rb",
45
42
  "spec/lib/html_spec.rb",
46
- "spec/lib/highlight_spec.rb",
47
- "spec/lib/string_spec.rb",
43
+ "spec/lib/jackb_spec.rb",
44
+ "spec/lib/markdown_spec.rb",
48
45
  "spec/spec_helper.rb"
49
46
  ]
50
47
 
@@ -52,7 +49,7 @@ Gem::Specification.new do |s|
52
49
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
53
50
  s.specification_version = 3
54
51
 
55
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
56
53
  s.add_runtime_dependency(%q<rdiscount>, [">= 1.6.3.2"])
57
54
  s.add_runtime_dependency(%q<open4>, [">= 1.0.1"])
58
55
  s.add_runtime_dependency(%q<albino>, [">= 1.0"])
@@ -1,6 +1,6 @@
1
1
  require 'cgi'
2
2
 
3
- require 'jackb/string'
3
+ require 'active_support/core_ext'
4
4
  require 'jackb/highlight'
5
5
  require 'jackb/html'
6
6
  require 'jackb/markdown'
@@ -1 +1,9 @@
1
+ begin
2
+ require File.expand_path('../.bundle/environment', __FILE__)
3
+ rescue LoadError
4
+ require "rubygems"
5
+ require "bundler"
6
+ Bundler.setup
7
+ end
8
+
1
9
  require 'lib/jackb'
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 4
10
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
11
10
  platform: ruby
12
11
  authors:
13
12
  - Damien MATHIEU
@@ -15,17 +14,14 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-06-18 00:00:00 +02:00
17
+ date: 2010-06-19 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
22
  requirements:
26
23
  - - ">="
27
24
  - !ruby/object:Gem::Version
28
- hash: 103
29
25
  segments:
30
26
  - 1
31
27
  - 6
@@ -34,15 +30,13 @@ dependencies:
34
30
  version: 1.6.3.2
35
31
  name: rdiscount
36
32
  requirement: *id001
33
+ prerelease: false
37
34
  type: :runtime
38
35
  - !ruby/object:Gem::Dependency
39
- prerelease: false
40
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ">="
44
39
  - !ruby/object:Gem::Version
45
- hash: 21
46
40
  segments:
47
41
  - 1
48
42
  - 0
@@ -50,21 +44,20 @@ dependencies:
50
44
  version: 1.0.1
51
45
  name: open4
52
46
  requirement: *id002
47
+ prerelease: false
53
48
  type: :runtime
54
49
  - !ruby/object:Gem::Dependency
55
- prerelease: false
56
50
  version_requirements: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ">="
60
53
  - !ruby/object:Gem::Version
61
- hash: 15
62
54
  segments:
63
55
  - 1
64
56
  - 0
65
57
  version: "1.0"
66
58
  name: albino
67
59
  requirement: *id003
60
+ prerelease: false
68
61
  type: :runtime
69
62
  description: Takes some content and parses it depending of the format your specify (HTML or Markdown)
70
63
  email: 42@dmathieu.com
@@ -85,15 +78,13 @@ files:
85
78
  - lib/jackb/highlight.rb
86
79
  - lib/jackb/html.rb
87
80
  - lib/jackb/markdown.rb
88
- - lib/jackb/string.rb
89
81
  - spec/lib/highlight_spec.rb
90
82
  - spec/lib/html_spec.rb
91
83
  - spec/lib/jackb_spec.rb
92
84
  - spec/lib/markdown_spec.rb
93
- - spec/lib/string_spec.rb
94
85
  - spec/spec_helper.rb
95
86
  has_rdoc: true
96
- homepage: http://github.com/dmathieu/jack
87
+ homepage: http://github.com/dmathieu/jackb
97
88
  licenses: []
98
89
 
99
90
  post_install_message:
@@ -102,34 +93,29 @@ rdoc_options:
102
93
  require_paths:
103
94
  - lib
104
95
  required_ruby_version: !ruby/object:Gem::Requirement
105
- none: false
106
96
  requirements:
107
97
  - - ">="
108
98
  - !ruby/object:Gem::Version
109
- hash: 3
110
99
  segments:
111
100
  - 0
112
101
  version: "0"
113
102
  required_rubygems_version: !ruby/object:Gem::Requirement
114
- none: false
115
103
  requirements:
116
104
  - - ">="
117
105
  - !ruby/object:Gem::Version
118
- hash: 3
119
106
  segments:
120
107
  - 0
121
108
  version: "0"
122
109
  requirements: []
123
110
 
124
111
  rubyforge_project:
125
- rubygems_version: 1.3.7
112
+ rubygems_version: 1.3.6
126
113
  signing_key:
127
114
  specification_version: 3
128
115
  summary: Is your content in HTML or Markdown ?
129
116
  test_files:
117
+ - spec/lib/highlight_spec.rb
118
+ - spec/lib/html_spec.rb
130
119
  - spec/lib/jackb_spec.rb
131
120
  - spec/lib/markdown_spec.rb
132
- - spec/lib/html_spec.rb
133
- - spec/lib/highlight_spec.rb
134
- - spec/lib/string_spec.rb
135
121
  - spec/spec_helper.rb
@@ -1,40 +0,0 @@
1
- module Jackb
2
- module String
3
- def self.included(klass)
4
- klass.class_eval do
5
- def camelize
6
- self.split(/[^a-z0-9]/i).map{|w| w.capitalize}.join
7
- end
8
-
9
-
10
- # Ruby 1.9 introduces an inherit argument for Module#const_get and
11
- # #const_defined? and changes their default behavior.
12
- # Taken from rails' inflectors. http://github.com/rails/rails/blob/master/activesupport/lib/active_support/inflector/methods.rb
13
- if Module.method(:const_get).arity == 1
14
- def constantize
15
- names = self.split('::')
16
- names.shift if names.empty? || names.first.empty?
17
-
18
- constant = Object
19
- names.each do |name|
20
- constant = constant.const_defined?(name) ? constant.const_get(name) : constant.const_missing(name)
21
- end
22
- constant
23
- end
24
- else
25
- def constantize
26
- names = self.split('::')
27
- names.shift if names.empty? || names.first.empty?
28
-
29
- constant = Object
30
- names.each do |name|
31
- constant = constant.const_defined?(name, false) ? constant.const_get(name) : constant.const_missing(name)
32
- end
33
- constant
34
- end
35
- end
36
- end
37
- end
38
- end
39
- end
40
- String.send(:include, Jackb::String)
@@ -1,21 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe String do
4
-
5
- it 'should include the camelize method' do
6
- "string".respond_to?(:camelize).should eql(true)
7
- end
8
-
9
- it 'should include the constantize method' do
10
- "string".respond_to?(:constantize).should eql(true)
11
- end
12
-
13
- it 'should camelize the string' do
14
- "html".camelize.should eql('Html')
15
- "ht_ml".camelize.should eql('HtMl')
16
- end
17
-
18
- it 'should constantize a string' do
19
- "String".constantize.new.should be_kind_of String
20
- end
21
- end