putsjs 0.1.0 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,9 @@
1
1
  == PutsJS
2
2
 
3
- Add PutsJS to your Rails project to freely use 'puts' instead of typing the lengthy 'console.log' for logging to console in your coffescript.
3
+ Love Ruby's 'puts' syntax?
4
+ Hate typing 'console.log' everytime you want to print something to the web-browser's console from your Coffecript?
5
+ Then use putsjs in your rails application.
6
+ putsjs is a simple gem that allows browser console logging statements to be written as puts statements in your coffescript files and during asset compilation converts them into console.log statements.
4
7
 
5
8
 
6
9
  == Installation
@@ -3,7 +3,7 @@ class PutsJSProcessor < Tilt::Template
3
3
  def prepare; end
4
4
 
5
5
  def evaluate(context, locals, &block)
6
- data.gsub!("puts", "console.log")
6
+ data.gsub!(/\b\puts\b/, "console.log")
7
7
 
8
8
  data
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Putsjs
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Putsjs::VERSION
8
8
  s.authors = ["Samuel Selvanathan"]
9
9
  s.email = ["sjasel@gmail.com"]
10
- s.homepage = ""
10
+ s.homepage = "http://github.com/samsel/putsjs"
11
11
  s.summary = %q{Ruby style puts instead of console.log for logging to console from coffescript}
12
12
  s.description = %q{Love Ruby's 'puts' syntax? Hate typing 'console.log' everytime you want to print something to the web-browser's console from your Coffecript? Then use putsjs in your rails application. putsjs allows console logging statements to be written as puts statements in your coffescript files and during asset compilation converts them into console.log statements.}
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: putsjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coffee-rails
16
- requirement: &70327502269860 !ruby/object:Gem::Requirement
16
+ requirement: &70177983624860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70327502269860
24
+ version_requirements: *70177983624860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tilt
27
- requirement: &70327502267060 !ruby/object:Gem::Requirement
27
+ requirement: &70177983624160 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70327502267060
35
+ version_requirements: *70177983624160
36
36
  description: Love Ruby's 'puts' syntax? Hate typing 'console.log' everytime you want
37
37
  to print something to the web-browser's console from your Coffecript? Then use putsjs
38
38
  in your rails application. putsjs allows console logging statements to be written
@@ -53,7 +53,7 @@ files:
53
53
  - lib/putsjs/putsjs_processor.rb
54
54
  - lib/putsjs/version.rb
55
55
  - putsjs.gemspec
56
- homepage: ''
56
+ homepage: http://github.com/samsel/putsjs
57
57
  licenses: []
58
58
  post_install_message:
59
59
  rdoc_options: []