handlebars 0.3.1 → 0.3.2beta1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,4 +2,6 @@ require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
4
  require 'rspec/core/rake_task'
5
- RSpec::Core::RakeTask.new(:spec)
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
data/handlebars.gemspec CHANGED
@@ -23,7 +23,8 @@ Gem::Specification.new do |s|
23
23
  s.files += ['vendor/handlebars/lib/handlebars/compiler/parser.js']
24
24
  end
25
25
 
26
- s.add_dependency "therubyracer", "~> 0.10.0"
26
+ s.add_dependency "therubyracer", "~> 0.11.0beta2"
27
27
  s.add_dependency "commonjs", "~> 0.2.3"
28
+ s.add_development_dependency "rake"
28
29
  s.add_development_dependency "rspec", "~> 2.0"
29
30
  end
@@ -1,3 +1,3 @@
1
1
  module Handlebars
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2beta1"
3
3
  end
@@ -58,10 +58,10 @@ describe(Handlebars::Context) do
58
58
  it "can be done with a function" do
59
59
  subject.partial_missing do |name|
60
60
  lambda do |this, context, options|
61
- "unable to find >#{name}"
61
+ "unable to find my #{name} #{context.what}"
62
62
  end
63
63
  end
64
- compile("I am {{>missing}}").call().should eql "I am unable to find >missing"
64
+ compile("I am {{>missing}}").call(:what => 'shoes').should eql "I am unable to find my missing shoes"
65
65
  end
66
66
  end
67
67
 
metadata CHANGED
@@ -1,30 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
4
+ version: 0.3.2beta1
5
+ prerelease: 5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Charles Lowell
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-11 00:00:00.000000000 Z
12
+ date: 2012-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: therubyracer
16
- requirement: &2153055500 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.10.0
21
+ version: 0.11.0beta2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153055500
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.11.0beta2
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: commonjs
27
- requirement: &2153054020 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,31 @@ dependencies:
32
37
  version: 0.2.3
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2153054020
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.2.3
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
36
62
  - !ruby/object:Gem::Dependency
37
63
  name: rspec
38
- requirement: &2153051440 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
39
65
  none: false
40
66
  requirements:
41
67
  - - ~>
@@ -43,7 +69,12 @@ dependencies:
43
69
  version: '2.0'
44
70
  type: :development
45
71
  prerelease: false
46
- version_requirements: *2153051440
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '2.0'
47
78
  description: Uses the actual JavaScript implementation of Handlebars, but supports
48
79
  using Ruby objects as template contexts and Ruby procs as view functions and named
49
80
  helpers
@@ -110,15 +141,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
141
  - - ! '>='
111
142
  - !ruby/object:Gem::Version
112
143
  version: '0'
144
+ segments:
145
+ - 0
146
+ hash: -1831054100267574574
113
147
  required_rubygems_version: !ruby/object:Gem::Requirement
114
148
  none: false
115
149
  requirements:
116
- - - ! '>='
150
+ - - ! '>'
117
151
  - !ruby/object:Gem::Version
118
- version: '0'
152
+ version: 1.3.1
119
153
  requirements: []
120
154
  rubyforge_project: handlebars
121
- rubygems_version: 1.8.17
155
+ rubygems_version: 1.8.24
122
156
  signing_key:
123
157
  specification_version: 3
124
158
  summary: Ruby bindings for the handlebars.js templating library