liquify 0.2.5 → 0.2.7

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,6 @@
1
+ rvm: 1.9.2
2
+ script: "bundle exec rspec spec"
3
+ branches:
4
+ only:
5
+ - master
6
+
data/Gemfile CHANGED
@@ -2,3 +2,8 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in liquify.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'rspec'
8
+ gem 'activerecord', require: 'active_record'
9
+ end
@@ -1,13 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- liquify (0.2.1)
4
+ liquify (0.2.6)
5
5
  liquid (>= 2.2.2)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
+ activemodel (3.0.9)
11
+ activesupport (= 3.0.9)
12
+ builder (~> 2.1.2)
13
+ i18n (~> 0.5.0)
14
+ activerecord (3.0.9)
15
+ activemodel (= 3.0.9)
16
+ activesupport (= 3.0.9)
17
+ arel (~> 2.0.10)
18
+ tzinfo (~> 0.3.23)
19
+ activesupport (3.0.9)
20
+ arel (2.0.10)
21
+ builder (2.1.2)
10
22
  diff-lcs (1.1.2)
23
+ i18n (0.5.0)
11
24
  liquid (2.2.2)
12
25
  rspec (2.3.0)
13
26
  rspec-core (~> 2.3.0)
@@ -17,10 +30,12 @@ GEM
17
30
  rspec-expectations (2.3.0)
18
31
  diff-lcs (~> 1.1.2)
19
32
  rspec-mocks (2.3.0)
33
+ tzinfo (0.3.29)
20
34
 
21
35
  PLATFORMS
22
36
  ruby
23
37
 
24
38
  DEPENDENCIES
39
+ activerecord
25
40
  liquify!
26
- rspec (~> 2.3.0)
41
+ rspec
@@ -1,4 +1,4 @@
1
- h1. Liquify
1
+ h1. Liquify "!https://secure.travis-ci.org/daneharrigan/liquify.png!":https://secure.travis-ci.org/daneharrigan/liquify
2
2
 
3
3
  The Liquify gem is a wrapper to the very popular Liquid templating engine.
4
4
  The goal of this project is to make working with Liquid templates, drops, tags, etc.
@@ -5,7 +5,7 @@ require 'liquify/drop'
5
5
  require 'liquify/tag'
6
6
  require 'liquify/block'
7
7
 
8
- if defined?(Rails) && Rails.version >= '3'
8
+ if defined? ActiveRecord
9
9
  require File.expand_path(File.dirname(__FILE__) + '/rails/active_record_hook.rb')
10
10
  end
11
11
 
@@ -2,6 +2,7 @@ module Liquify
2
2
  class Tag < Liquid::Tag
3
3
  def render(context)
4
4
  return unless respond_to? :invoke
5
+ @context = context
5
6
 
6
7
  if method(:invoke).arity == 0
7
8
  invoke
@@ -10,5 +11,10 @@ module Liquify
10
11
  invoke(params)
11
12
  end
12
13
  end
14
+
15
+ private
16
+ def context
17
+ @context
18
+ end
13
19
  end
14
20
  end
@@ -1,3 +1,3 @@
1
1
  module Liquify
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "liquify"
16
16
  s.add_dependency 'liquid', '>= 2.2.2'
17
- s.add_development_dependency 'rspec', '~> 2.3.0'
18
17
 
19
18
  s.files = `git ls-files`.split("\n")
20
19
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,7 +1,3 @@
1
- #$:.unshift(File.dirname(__FILE__))
2
- #$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
-
4
- require 'rails'
5
1
  require 'active_record'
6
2
  require 'liquid'
7
3
  require 'liquid/tag'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: liquify
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.5
5
+ version: 0.2.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dane Harrigan
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-10 00:00:00 -04:00
14
- default_executable:
13
+ date: 2011-07-02 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: liquid
@@ -24,17 +23,6 @@ dependencies:
24
23
  version: 2.2.2
25
24
  type: :runtime
26
25
  version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
- prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ~>
34
- - !ruby/object:Gem::Version
35
- version: 2.3.0
36
- type: :development
37
- version_requirements: *id002
38
26
  description: A wrapper for Liquid Markup to make it easier to use
39
27
  email:
40
28
  - dane.harrigan@gmail.com
@@ -46,6 +34,7 @@ extra_rdoc_files: []
46
34
 
47
35
  files:
48
36
  - .gitignore
37
+ - .travis.yml
49
38
  - Gemfile
50
39
  - Gemfile.lock
51
40
  - README.textile
@@ -82,7 +71,6 @@ files:
82
71
  - spec/v0.1/liquify/active_record_hook_spec.rb
83
72
  - spec/v0.1/liquify/drop_spec.rb
84
73
  - spec/v0.1/liquify_spec.rb
85
- has_rdoc: true
86
74
  homepage: ""
87
75
  licenses: []
88
76
 
@@ -106,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
94
  requirements: []
107
95
 
108
96
  rubyforge_project: liquify
109
- rubygems_version: 1.6.2
97
+ rubygems_version: 1.7.2
110
98
  signing_key:
111
99
  specification_version: 3
112
100
  summary: A wrapper for Liquid Markup to make it easier to use