dmathieu-static_ga 0.1.0

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.
Files changed (2) hide show
  1. data/README.textile +31 -0
  2. metadata +53 -0
data/README.textile ADDED
@@ -0,0 +1,31 @@
1
+ h1. Static GA
2
+
3
+ Sometimes with static html websites or with inappropriately developped websites (but the client doesn't wish to redevelop it appropriately), it's quite a pain in the ass to add the Google Analytics tag to hundreds of files.
4
+ That's what Static GA tries to remove by parsing every file, looking if it already has the Google Analytics tag yet or not.
5
+
6
+ And if it doesn't have it, adding it.
7
+
8
+ h2. How it works
9
+
10
+ Download the application (it'll soon be a gem using rake).
11
+ And launch analytics.rb with two parameters :
12
+
13
+ * The first one is the directory that you wish to recursively parse
14
+ * The second one is your Google Analytics code. For example : UA-6352751-33
15
+
16
+ It'll launch the script and display to you the path of every updated file.
17
+
18
+ h2. Requirements
19
+
20
+ The only required package is *rake*.
21
+
22
+ h2. Example
23
+
24
+ rake static_ga
25
+
26
+ The path to the project and the GA code will be asked to you.
27
+
28
+
29
+ h2. TODO
30
+
31
+ * Make it a gem
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dmathieu-static_ga
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Damien MATHIEU
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-11 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Recursively adds a Google Analytics tag to static files if they doesn't have it yet
17
+ email: 42@@dmathieu.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.textile
24
+ files:
25
+ - README.textile
26
+ has_rdoc: false
27
+ homepage: http://github.com/dmathieu/static_ga
28
+ post_install_message:
29
+ rdoc_options:
30
+ - --charset=UTF-8
31
+ require_paths:
32
+ - lib/*
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: "0"
38
+ version:
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ requirements: []
46
+
47
+ rubyforge_project:
48
+ rubygems_version: 1.2.0
49
+ signing_key:
50
+ specification_version: 3
51
+ summary: Static Google Analytics
52
+ test_files: []
53
+