trivial 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +2 -0
  2. data/Rakefile +7 -0
  3. data/lib/trivial.php +4 -2
  4. data/trivial.gemspec +2 -2
  5. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1 +1,3 @@
1
+ v0.0.7. Fix dumb issue with func_get_args() not being able to be used as a function parameter. Yay PHP!
2
+
1
3
  v0.0.6. Added better asset tags, cachebusters, code cleanup, better documentation, upgrade functionality.
data/Rakefile CHANGED
@@ -31,3 +31,10 @@ namespace :blueprint do
31
31
  FileUtils.rm_r 'blueprint'
32
32
  end
33
33
  end
34
+
35
+ namespace :php do
36
+ desc "Syntax check trivial.php"
37
+ task :syntax_check do
38
+ system %{php -l lib/trivial.php}
39
+ end
40
+ end
@@ -85,14 +85,16 @@ function render_error($error) {
85
85
  * Render style link tags.
86
86
  */
87
87
  function styles() {
88
- return head_component('style', func_get_args());
88
+ $args = func_get_args();
89
+ return head_component('style', $args);
89
90
  }
90
91
 
91
92
  /**
92
93
  * Render script tags.
93
94
  */
94
95
  function scripts() {
95
- return head_component('script', func_get_args());
96
+ $args = func_get_args();
97
+ return head_component('script', $args);
96
98
  }
97
99
 
98
100
  /**
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{trivial}
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Bintz"]
9
- s.date = %q{2010-04-02}
9
+ s.date = %q{2010-05-18}
10
10
  s.default_executable = %q{trivialize}
11
11
  s.description = %q{ For those who are using PHP to build their sites and want a very simple framework
12
12
  in which to organize their files, trivial is the solution. It's one PHP file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Bintz
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-02 00:00:00 -04:00
17
+ date: 2010-05-18 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20