sinatra-mustache 0.3.0 → 0.3.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
- ---
2
- SHA1:
3
- metadata.gz: 1b8400a3abd994ba2c3e5671f7b9b0c8b812a94c
4
- data.tar.gz: 22c7d9e074c5ea46fe920847f1263419717302e7
5
- SHA512:
6
- metadata.gz: 988fb1efff72514175550f92a8aeafbf63ab46adc2a165de6716c3588fd741f8c7cbed80f09210ab598a33e2e2131f6f45826399375cd6d811eeefe4d8026d3d
7
- data.tar.gz: e757ed75595be27f38fe1d0e9eed7042c23ddac24668ee6c138449d9e57932c52589289fa380eea3939f955e9913ffdb162937f59c5b561d1b2f39ac9aa0f8b7
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ded35ec238e6c8a6f65164bdeaf4959e22c70a81
4
+ data.tar.gz: aeec0912727bec095462cf8e0c941ecda9c827b2
5
+ SHA512:
6
+ metadata.gz: b95c580cbb80648ca1a485650b59d8001fa072dec156ae0503ddd2f0b971e2b135ce40e077082acb76b9870c7c5b3109a4b69070d1a25503b1fbafec2f66d72c
7
+ data.tar.gz: 4cf79ef9fd58bfb67408e480bea80fdc555b2376e915acdd76bc632ca116383ab14d78e1da4f2f9ce80f837d3a178658baebea3cf2693a1e5c1f8493fe045733
@@ -2,8 +2,8 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
- - rbx-19mode
6
- - rbx-20mode
5
+ - 2.1.0
6
+ - rbx
7
7
  - jruby-19mode
8
8
  - jruby-20mode
9
9
 
@@ -0,0 +1,42 @@
1
+ rbx = defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
2
+
3
+ def already_installed(dep)
4
+ !Gem::DependencyInstaller.new(:domain => :local).find_gems_with_sources(dep).empty? ||
5
+ !Gem::DependencyInstaller.new(:domain => :local,:prerelease => true).find_gems_with_sources(dep).empty?
6
+ end
7
+
8
+ if rbx
9
+ require 'rubygems'
10
+ require 'rubygems/command.rb'
11
+ require 'rubygems/dependency.rb'
12
+ require 'rubygems/dependency_installer.rb'
13
+
14
+ begin
15
+ Gem::Command.build_args = ARGV
16
+ rescue NoMethodError
17
+ end
18
+
19
+ dep = [
20
+ Gem::Dependency.new("rubysl-logger", '~> 2.0')
21
+ ].reject{|d| already_installed(d) }
22
+
23
+ begin
24
+ puts "Installing base gem"
25
+ inst = Gem::DependencyInstaller.new
26
+ dep.each {|d| inst.install d }
27
+ rescue
28
+ inst = Gem::DependencyInstaller.new(:prerelease => true)
29
+ begin
30
+ dep.each {|d| inst.install d }
31
+ rescue Exception => e
32
+ puts e
33
+ puts e.backtrace.join "\n "
34
+ exit(1)
35
+ end
36
+ end unless dep.size == 0
37
+ end
38
+
39
+ # create dummy rakefile to indicate success
40
+ f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
41
+ f.write("task :default\n")
42
+ f.close
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Mustache
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.3.1".freeze
4
4
  end
5
5
  end
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  s.licenses = ["MIT"]
20
20
  s.require_paths = ["lib"]
21
+ s.extensions = 'ext/mkrf_conf.rb'
21
22
 
22
23
  s.add_dependency 'sinatra', '~> 1.3', '~> 1.4'
23
24
  s.add_dependency 'mustache', '~> 0.99'
@@ -25,4 +26,8 @@ Gem::Specification.new do |s|
25
26
 
26
27
  s.add_development_dependency 'rspec', '~> 2'
27
28
  s.add_development_dependency 'rack-test', '~> 0'
29
+
30
+ if 'rbx' == RUBY_ENGINE
31
+ s.add_development_dependency 'rubysl-logger'
32
+ end
28
33
  end
metadata CHANGED
@@ -1,105 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sinatra-mustache
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Jason Campbell
8
8
  - Beat Richartz
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-01 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2014-01-03 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
15
16
  name: sinatra
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ~>
19
- - !ruby/object:Gem::Version
20
- version: '1.3'
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: '1.4'
24
- type: :runtime
25
17
  prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- version: '1.3'
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ requirements:
31
20
  - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '1.4'
34
- - !ruby/object:Gem::Dependency
35
- name: mustache
36
- requirement: !ruby/object:Gem::Requirement
37
- requirements:
21
+ - &id003 !ruby/object:Gem::Version
22
+ version: "1.3"
38
23
  - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '0.99'
24
+ - !ruby/object:Gem::Version
25
+ version: "1.4"
41
26
  type: :runtime
27
+ version_requirements: *id001
28
+ - !ruby/object:Gem::Dependency
29
+ name: mustache
42
30
  prerelease: false
43
- version_requirements: !ruby/object:Gem::Requirement
44
- requirements:
31
+ requirement: &id002 !ruby/object:Gem::Requirement
32
+ requirements:
45
33
  - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '0.99'
48
- - !ruby/object:Gem::Dependency
49
- name: tilt
50
- requirement: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '1.3'
55
- - - <=
56
- - !ruby/object:Gem::Version
57
- version: '2.0'
34
+ - !ruby/object:Gem::Version
35
+ version: "0.99"
58
36
  type: :runtime
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: tilt
59
40
  prerelease: false
60
- version_requirements: !ruby/object:Gem::Requirement
61
- requirements:
62
- - - '>='
63
- - !ruby/object:Gem::Version
64
- version: '1.3'
41
+ requirement: &id004 !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - *id003
65
45
  - - <=
66
- - !ruby/object:Gem::Version
67
- version: '2.0'
68
- - !ruby/object:Gem::Dependency
46
+ - !ruby/object:Gem::Version
47
+ version: "2.0"
48
+ type: :runtime
49
+ version_requirements: *id004
50
+ - !ruby/object:Gem::Dependency
69
51
  name: rspec
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- version: '2'
75
- type: :development
76
52
  prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
53
+ requirement: &id005 !ruby/object:Gem::Requirement
54
+ requirements:
79
55
  - - ~>
80
- - !ruby/object:Gem::Version
81
- version: '2'
82
- - !ruby/object:Gem::Dependency
56
+ - !ruby/object:Gem::Version
57
+ version: "2"
58
+ type: :development
59
+ version_requirements: *id005
60
+ - !ruby/object:Gem::Dependency
83
61
  name: rack-test
84
- requirement: !ruby/object:Gem::Requirement
85
- requirements:
62
+ prerelease: false
63
+ requirement: &id006 !ruby/object:Gem::Requirement
64
+ requirements:
86
65
  - - ~>
87
- - !ruby/object:Gem::Version
88
- version: '0'
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
89
68
  type: :development
69
+ version_requirements: *id006
70
+ - !ruby/object:Gem::Dependency
71
+ name: rubysl-logger
90
72
  prerelease: false
91
- version_requirements: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - ~>
94
- - !ruby/object:Gem::Version
95
- version: '0'
73
+ requirement: &id007 !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - &id008
76
+ - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ type: :development
80
+ version_requirements: *id007
96
81
  description: Use Mustache in your Sinatra app without extra view classes
97
- email:
82
+ email:
98
83
  - attraccessor@gmail.com
99
84
  executables: []
100
- extensions: []
85
+
86
+ extensions:
87
+ - ext/mkrf_conf.rb
101
88
  extra_rdoc_files: []
102
- files:
89
+
90
+ files:
103
91
  - .gitignore
104
92
  - .rspec
105
93
  - .travis.yml
@@ -108,6 +96,7 @@ files:
108
96
  - License.txt
109
97
  - README.md
110
98
  - Rakefile
99
+ - ext/mkrf_conf.rb
111
100
  - lib/proxies/currystache.rb
112
101
  - lib/sinatra-mustache/version.rb
113
102
  - lib/sinatra/helpers/mustache.rb
@@ -125,30 +114,29 @@ files:
125
114
  - spec/views/needs_partial.mustache
126
115
  - spec/views/yaml.mustache
127
116
  homepage: http://github.com/beatrichartz/sinatra-mustache
128
- licenses:
117
+ licenses:
129
118
  - MIT
130
119
  metadata: {}
120
+
131
121
  post_install_message:
132
122
  rdoc_options: []
133
- require_paths:
123
+
124
+ require_paths:
134
125
  - lib
135
- required_ruby_version: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - '>='
138
- - !ruby/object:Gem::Version
139
- version: '0'
140
- required_rubygems_version: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - '>='
143
- - !ruby/object:Gem::Version
144
- version: '0'
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - *id008
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - *id008
145
132
  requirements: []
133
+
146
134
  rubyforge_project: sinatra-mustache
147
- rubygems_version: 2.0.7
135
+ rubygems_version: 2.2.0
148
136
  signing_key:
149
137
  specification_version: 4
150
138
  summary: Use Mustache in your Sinatra app without extra view classes
151
- test_files:
139
+ test_files:
152
140
  - spec/fake_template_helper.rb
153
141
  - spec/mustache_spec.rb
154
142
  - spec/mustache_template_spec.rb