shortcode 0.3.0 → 0.3.1

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/.travis.yml CHANGED
@@ -16,9 +16,12 @@ matrix:
16
16
  exclude:
17
17
  - rvm: 1.9.2
18
18
  gemfile: gemfiles/rails_4.0.gemfile
19
+ - rvm: 1.9.2
20
+ gemfile: gemfiles/rails_4.1.gemfile
19
21
 
20
22
  gemfile:
21
23
  - gemfiles/rails_3.0.gemfile
22
24
  - gemfiles/rails_3.1.gemfile
23
25
  - gemfiles/rails_3.2.gemfile
24
26
  - gemfiles/rails_4.0.gemfile
27
+ - gemfiles/rails_4.1.gemfile
data/Appraisals CHANGED
@@ -7,9 +7,13 @@ appraise "rails-3.1" do
7
7
  end
8
8
 
9
9
  appraise "rails-3.2" do
10
- gem "rails", "~> 3.2.17"
10
+ gem "rails", "~> 3.2.18"
11
11
  end
12
12
 
13
13
  appraise "rails-4.0" do
14
- gem "rails", "~> 4.0.3"
14
+ gem "rails", "~> 4.0.5"
15
+ end
16
+
17
+ appraise "rails-4.1" do
18
+ gem "rails", "~> 4.1.1"
15
19
  end
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in shortcode.gemspec
4
4
  gemspec
5
5
 
6
- gem "appraisal", "1.0.0.beta3"
6
+ gem 'appraisal', '1.0.0.beta3'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shortcode (0.3.0)
4
+ shortcode (0.3.1)
5
5
  haml (~> 4.0)
6
6
  parslet (= 1.6.0)
7
7
 
@@ -13,12 +13,23 @@ GEM
13
13
  rake
14
14
  thor (>= 0.14.0)
15
15
  blankslate (2.1.2.4)
16
+ coveralls (0.7.0)
17
+ multi_json (~> 1.3)
18
+ rest-client
19
+ simplecov (>= 0.7)
20
+ term-ansicolor
21
+ thor
16
22
  diff-lcs (1.2.4)
23
+ docile (1.1.3)
17
24
  haml (4.0.5)
18
25
  tilt
26
+ mime-types (2.2)
27
+ multi_json (1.10.1)
19
28
  parslet (1.6.0)
20
29
  blankslate (~> 2.0)
21
30
  rake (10.1.0)
31
+ rest-client (1.6.7)
32
+ mime-types (>= 1.16)
22
33
  rspec (2.14.1)
23
34
  rspec-core (~> 2.14.0)
24
35
  rspec-expectations (~> 2.14.0)
@@ -27,8 +38,16 @@ GEM
27
38
  rspec-expectations (2.14.0)
28
39
  diff-lcs (>= 1.1.3, < 2.0)
29
40
  rspec-mocks (2.14.1)
41
+ simplecov (0.8.2)
42
+ docile (~> 1.1.0)
43
+ multi_json
44
+ simplecov-html (~> 0.8.0)
45
+ simplecov-html (0.8.0)
46
+ term-ansicolor (1.3.0)
47
+ tins (~> 1.0)
30
48
  thor (0.18.1)
31
49
  tilt (2.0.1)
50
+ tins (1.3.0)
32
51
 
33
52
  PLATFORMS
34
53
  ruby
@@ -36,6 +55,7 @@ PLATFORMS
36
55
  DEPENDENCIES
37
56
  appraisal (= 1.0.0.beta3)
38
57
  bundler (~> 1.3)
58
+ coveralls
39
59
  rake
40
60
  rspec
41
61
  shortcode!
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Shortcode
2
2
 
3
- [![Build Status](https://travis-ci.org/kernow/shortcode.png?branch=master)](https://travis-ci.org/kernow/shortcode)
4
-
5
3
  A ruby gem for parsing Wordpress style shortcodes. The gem uses a [PEG](http://en.wikipedia.org/wiki/Parsing_expression_grammar) (Parsing Expression Grammar) parser rather than using regular expressions so its easier to understand, test and extend.
6
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/shortcode.svg)](http://badge.fury.io/rb/shortcode)
6
+ [![Build Status](https://travis-ci.org/kernow/shortcode.png?branch=master)](https://travis-ci.org/kernow/shortcode)
7
+ [![Code Climate](https://codeclimate.com/github/kernow/shortcode.png)](https://codeclimate.com/github/kernow/shortcode)
8
+ [![Coverage Status](https://coveralls.io/repos/kernow/shortcode/badge.png)](https://coveralls.io/r/kernow/shortcode)
9
+
7
10
  ## Installation
8
11
 
9
12
  Add this line to your application's Gemfile:
@@ -24,6 +27,9 @@ Or install it yourself as:
24
27
  $ gem install shortcode
25
28
  ```
26
29
 
30
+ Shortcode is tested against ruby version 1.9.2 and greater as well as jruby, it will not work with ruby 1.8. Shortcode rails integration is tested against
31
+ Rails versions 3.0, 3.1, 3.2, 4.0, and 4.1.
32
+
27
33
  ## Usage
28
34
 
29
35
  ### Example
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "1.0.0.beta3"
6
- gem "rails", "~> 3.2.17"
6
+ gem "rails", "~> 3.2.18"
7
7
 
8
8
  gemspec :path=>".././"
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "1.0.0.beta3"
6
- gem "rails", "~> 4.0.3"
6
+ gem "rails", "~> 4.0.5"
7
7
 
8
8
  gemspec :path=>".././"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", "1.0.0.beta3"
6
+ gem "rails", "~> 4.1.1"
7
+
8
+ gemspec :path=>".././"
@@ -1,3 +1,3 @@
1
1
  module Shortcode
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/shortcode.gemspec CHANGED
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec"
27
+ spec.add_development_dependency "coveralls"
27
28
  end
@@ -23,7 +23,7 @@ describe "rails helpers" do
23
23
  end
24
24
  end
25
25
 
26
- it "are accessible within haml templates" do
26
+ it "are accessible within erb templates" do
27
27
  Shortcode.process(template).gsub("\n",'').should == erb_output.gsub("\n",'')
28
28
  end
29
29
 
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,8 @@
1
1
  $LOAD_PATH.unshift File.dirname(__FILE__)
2
+
3
+ require 'coveralls'
4
+ Coveralls.wear!
5
+
2
6
  require 'rspec'
3
7
  require 'rails'
4
8
  require 'action_view'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shortcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-13 00:00:00.000000000 Z
12
+ date: 2014-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parslet
@@ -91,6 +91,22 @@ dependencies:
91
91
  - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: coveralls
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
94
110
  description: Gem for parsing wordpress style shortcodes
95
111
  email:
96
112
  - jamie@kernowsoul.com
@@ -111,6 +127,7 @@ files:
111
127
  - gemfiles/rails_3.1.gemfile
112
128
  - gemfiles/rails_3.2.gemfile
113
129
  - gemfiles/rails_4.0.gemfile
130
+ - gemfiles/rails_4.1.gemfile
114
131
  - lib/shortcode.rb
115
132
  - lib/shortcode/configuration.rb
116
133
  - lib/shortcode/exceptions.rb