octopress-return-tag 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10cefa9470c98abea2956978236688791dc045d4
4
- data.tar.gz: 0ed20c4dc24ae437a993665b1245efced0129480
3
+ metadata.gz: cadc4247937b1da41d03b51ad1cee34d7dab9bf9
4
+ data.tar.gz: 730cafbff15568fb209caa2f319181b9795eb116
5
5
  SHA512:
6
- metadata.gz: 5f27a948903bbfa7ad5a61c8fe58bfe0282b267f1f39f764a859846ad7206a3dabc1ab78fb8bb68b27574dc40a2221a740fca800bd3d0a96183d4e198e60a880
7
- data.tar.gz: 0484f64eec45134d5bf46bd4a921a0bb7f64d15f750368cade31c1cf3104f2e02d774fa7aedc034b4cbc13eb3c2ef407854eaed334836c7954f46201093f9bac
6
+ metadata.gz: 6fff3d4db858567f25ebd8d9993270c678e3194859cc134943f2f91c19f05875fe6d022be945e10a1145972f54e6189dc15261419f346df90767eb1657e66d56
7
+ data.tar.gz: 283e18ea38f0120d3c6e76b9a62cca0bfef236c03935601b9f3b08ca721295962e1db2fca09a603e2abfbfe035050e19a3fb16e4e9bc5750d4bb65a6985cff12
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ### 1.0.1 - 2015-01-03
4
+
5
+ - Added support for Octopress Docs
6
+
7
+ ### 1.0.0 - 2014-07-18
8
+
9
+ - Initial release
@@ -22,3 +22,15 @@ module Octopress
22
22
  end
23
23
 
24
24
  Liquid::Template.register_tag('return', Octopress::Tags::ReturnTag::Tag)
25
+
26
+ if defined? Octopress::Docs
27
+ Octopress::Docs.add({
28
+ name: "Octopress Return Tag",
29
+ description: "Render Liquid variables with conditions and filters.",
30
+ path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
31
+ type: "tag",
32
+ source_url: "https://github.com/octopress/return-tag",
33
+ version: Octopress::Tags::ReturnTag::VERSION
34
+ })
35
+ end
36
+
@@ -1,7 +1,7 @@
1
1
  module Octopress
2
2
  module Tags
3
3
  module ReturnTag
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-return-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2015-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-tag-helpers
@@ -87,20 +87,11 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".gitignore"
91
- - ".travis.yml"
92
- - Gemfile
90
+ - CHANGELOG.md
93
91
  - LICENSE.txt
94
92
  - README.md
95
- - Rakefile
96
93
  - lib/octopress-return-tag.rb
97
94
  - lib/octopress-return-tag/version.rb
98
- - octopress-return-tag.gemspec
99
- - test/.clash.yml
100
- - test/Gemfile
101
- - test/_config.yml
102
- - test/_expected/index.html
103
- - test/index.html
104
95
  homepage: https://github.com/octopress/return-tag
105
96
  licenses:
106
97
  - MIT
@@ -125,9 +116,4 @@ rubygems_version: 2.2.2
125
116
  signing_key:
126
117
  specification_version: 4
127
118
  summary: Return tag renders a variable with some nice features
128
- test_files:
129
- - test/.clash.yml
130
- - test/Gemfile
131
- - test/_config.yml
132
- - test/_expected/index.html
133
- - test/index.html
119
+ test_files: []
data/.gitignore DELETED
@@ -1,23 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
18
- *.bundle
19
- *.so
20
- *.o
21
- *.a
22
- mkmf.log
23
- _site
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 1.9.3
5
- script: cd test && bundle exec clash
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in octopress_render_tag.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'octopress-return-tag/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "octopress-return-tag"
8
- spec.version = Octopress::Tags::ReturnTag::VERSION
9
- spec.authors = ["Brandon Mathis"]
10
- spec.email = ["brandon@imathis.com"]
11
- spec.summary = %q{Return tag renders a variable with some nice features}
12
- spec.description = %q{Return tag renders a variable with some nice features}
13
- spec.homepage = "https://github.com/octopress/return-tag"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_runtime_dependency "octopress-tag-helpers", "~> 1.0"
22
- spec.add_runtime_dependency "jekyll"
23
-
24
- spec.add_development_dependency "bundler", "~> 1.6"
25
- spec.add_development_dependency "rake"
26
- spec.add_development_dependency "clash"
27
- end
@@ -1,2 +0,0 @@
1
- build: true
2
- compare: _expected _site
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'octopress-return-tag', path: '../'
4
- gem 'pry-debugger'
5
- gem 'clash'
@@ -1,13 +0,0 @@
1
- # Site settings
2
- title: Your awesome title
3
- email: your-email@domain.com
4
- baseurl: ""
5
- url: "http://yourdomain.com"
6
-
7
- exclude:
8
- - Gemfile*
9
-
10
- # Build settings
11
- markdown: kramdown
12
- gems:
13
- - octopress-return-tag
@@ -1,23 +0,0 @@
1
-
2
-
3
- ## Simple return
4
- bar → bar
5
-
6
- ## Conditional return
7
- bar → bar
8
- '' → ''
9
-
10
- ## Ternary return
11
- nope → nope
12
-
13
- ## Cascading return
14
- nope → nope
15
- bar → bar
16
-
17
- ## Test local variables
18
- yep → yep
19
-
20
- ## Returns with filters
21
- 2013-07-21T18:59:00-05:00 → 2013-07-21T18:59:00-05:00
22
- 2013-07-21T18:59:00-05:00 → 2013-07-21T18:59:00-05:00
23
-
@@ -1,30 +0,0 @@
1
- ---
2
- layout: nil
3
- date: 2013-07-21 18:59
4
- people:
5
- - { name: Bill }
6
- - { name: Bob }
7
- ---
8
- {% assign foo = 'bar' %}
9
-
10
- ## Simple return
11
- bar → {% return foo %}
12
-
13
- ## Conditional return
14
- bar → {% return foo if foo %}
15
- '' → '{% return foo unless foo == 'bar' %}'
16
-
17
- ## Ternary return
18
- nope → {% return (foo == 'baz' ? foo : 'nope') %}
19
-
20
- ## Cascading return
21
- nope → {% return bingo || fez || 'nope' %}
22
- bar → {% return bingo || fez || foo %}
23
-
24
- ## Test local variables
25
- yep → {% for person in page.people %}{% return 'yep' if person.name == 'Bill' %}{% endfor %}
26
-
27
- ## Returns with filters
28
- 2013-07-21T18:59:00-05:00 → {% return post.date or page.date | datetime | date_to_xmlschema %}
29
- 2013-07-21T18:59:00-05:00 → {% return (false ? post.date : page.date) | datetime | date_to_xmlschema %}
30
-