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 +3 -0
- data/Appraisals +6 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +21 -1
- data/README.md +8 -2
- data/gemfiles/rails_3.2.gemfile +1 -1
- data/gemfiles/rails_4.0.gemfile +1 -1
- data/gemfiles/rails_4.1.gemfile +8 -0
- data/lib/shortcode/version.rb +1 -1
- data/shortcode.gemspec +1 -0
- data/spec/rails_helpers_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -0
- metadata +19 -2
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.
|
10
|
+
gem "rails", "~> 3.2.18"
|
11
11
|
end
|
12
12
|
|
13
13
|
appraise "rails-4.0" do
|
14
|
-
gem "rails", "~> 4.0.
|
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
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shortcode (0.3.
|
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
|
-
[](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
|
+
[](http://badge.fury.io/rb/shortcode)
|
6
|
+
[](https://travis-ci.org/kernow/shortcode)
|
7
|
+
[](https://codeclimate.com/github/kernow/shortcode)
|
8
|
+
[](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
|
data/gemfiles/rails_3.2.gemfile
CHANGED
data/gemfiles/rails_4.0.gemfile
CHANGED
data/lib/shortcode/version.rb
CHANGED
data/shortcode.gemspec
CHANGED
data/spec/rails_helpers_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
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-
|
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
|