<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to ADIC_jsm</title><link>https://sourceforge.net/p/adic/wiki/ADIC_jsm/</link><description>Recent changes to ADIC_jsm</description><atom:link href="https://sourceforge.net/p/adic/wiki/ADIC_jsm/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 13 Apr 2013 14:45:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/adic/wiki/ADIC_jsm/feed" rel="self" type="application/rss+xml"/><item><title>ADIC_jsm modified by Kevin Cox</title><link>https://sourceforge.net/p/adic/wiki/ADIC_jsm/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -34,7 +34,7 @@
        },
     };

-This is actually the `adic.jsm` that ADIC uses.  It is fairly straight forward.  The name `ADIC_info` is important and must be changed or else ADIC will not be able to find your settings.
+This is actually the `adic.jsm` that ADIC uses.  It is fairly straight forward.  The name `ADIC_info` is important and must not be changed or else ADIC will not be able to find your settings.

 ### prefs
 `ADIC_info.prefs` is an array of prefixes to be included.  If you want every preference you can put `[""]` or `[]` for none.  This value defaults to `"extensions."+code+"."` if the code is given (it isn't asked for if `adic.jsm` exists) otherwise `[]`.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Cox</dc:creator><pubDate>Sat, 13 Apr 2013 14:45:10 -0000</pubDate><guid>https://sourceforge.net48601dc4980e2685fe5d1ce8e91c080d16063c3c</guid></item><item><title>WikiPage ADIC_jsm modified by Kevin Cox</title><link>https://sourceforge.net/p/adic/wiki/ADIC_jsm/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -1,7 +1,7 @@
 # Enabling ADIC for your Addon
 
 ## Basic Usage
-All addons can already use ADIC with limited functionality.  Simply put your addon id in the id field and the value that would make the following code return your addon's preference prefix.
+All addons can already use ADIC with limited functionality.  Simply put your addon id in the id field and the value that would make the following code return your addon's preference prefix into the "code" field.
 
     "extensions."+code+"."
 
@@ -46,4 +46,4 @@
 `ADIC_info.files` is a list of files to include verbatim into the output.  The file name will be provided then the contents in a delimited section.  The user will be prompted for conformation if you ask for strange files (like `file:///etc/shadow`) that aren't in the users firefox profile.
 
 ### constants
-`ADIC_info.constants` is an object of key/value pairs to spit out.
+`ADIC_info.constants` is an object of key/value pairs to spit out.  While these could be constant like `secretNumber: 42`, they could also be generated.  Remember that this module is a script and all the code in it is run.  So you could have something like: `ADIC_info.constants.randomNumber = Math.random();`  While neither of these examples are terribly useful I feel that some authors will find a need for the constants field.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Cox</dc:creator><pubDate>Sat, 07 Jul 2012 22:55:58 -0000</pubDate><guid>https://sourceforge.neta0f0567d110e4c2c95c77f884bfde93cc4c849d3</guid></item><item><title>WikiPage ADIC_jsm modified by Kevin Cox</title><link>https://sourceforge.net/p/adic/wiki/ADIC_jsm/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -10,8 +10,8 @@
 ## Advanced Usage
 If you want to personalize the information returned by ADIC and provide an easier interface for your users you can include an `adic.json` file in the root for your extension (not chrome:// but the extension package).  This way users only need to enter your extension ID and everything else is handled automatically.  This file also offers you more control over what information ADIC gathers.
 
-### Intro to `adic.json`
-`adic.json` is imported as a JavaScript module and exports one object with all of the info ADIC needs.  It is important to note that it is not strictly JSON so the language is more flexibleADIC_info.  You can include comments as well as commas after the last element.  A template file is shown here.
+### Intro to `adic.jsm`
+`adic.json` is imported as a JavaScript module and exports one object with all of the info ADIC needs.  It is important to note that it is not strictly JSON so the language is more flexible.  You can include comments as well as commas after the last element.  A template file is shown here.
 
     var EXPORTED_SYMBOLS = ["ADIC_info"];
 
@@ -34,16 +34,16 @@
     	},
     };
 
-This is actually the `adic.json` that ADIC uses.  It is fairly straight forward.  The name `ADIC_info` is important and must be changed or else ADIC will not be able to find your settings.
+This is actually the `adic.jsm` that ADIC uses.  It is fairly straight forward.  The name `ADIC_info` is important and must be changed or else ADIC will not be able to find your settings.
 
 ### prefs
-`ADIC_info.prefs` is an array of prefixes to be included.  If you want every preference you can put `[""]` or `[]` for none.  This value defaults to `"extensions."+code+"."` if the code is given (it isn't asked for if `adic.json` exists) otherwise `[]`.
+`ADIC_info.prefs` is an array of prefixes to be included.  If you want every preference you can put `[""]` or `[]` for none.  This value defaults to `"extensions."+code+"."` if the code is given (it isn't asked for if `adic.jsm` exists) otherwise `[]`.
 
 ### system
 `ADIC_info.system` is a boolean value specifying whether or not system info should be included.  This is a dump of `Services.appinfo`.
 
 ### files
-`ADIC_info.files` is a list of files to include verbatim into the output.  The file name will be provided then the contents in a delimited section.  The user will be prompted for conformation if you ask for strange files (like `file:///etc/passwd`).  I will get you a better definition for strange files when this feature gets implemented.
+`ADIC_info.files` is a list of files to include verbatim into the output.  The file name will be provided then the contents in a delimited section.  The user will be prompted for conformation if you ask for strange files (like `file:///etc/shadow`) that aren't in the users firefox profile.
 
 ### constants
 `ADIC_info.constants` is an object of key/value pairs to spit out.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Cox</dc:creator><pubDate>Wed, 04 Jul 2012 23:55:01 -0000</pubDate><guid>https://sourceforge.net60d12fd928b587483784488e3a5e06660484ca14</guid></item><item><title>WikiPage ADIC_json modified by Kevin Cox</title><link>https://sourceforge.net/p/adic/wiki/ADIC_json/</link><description># Enabling ADIC for your Addon

## Basic Usage
All addons can already use ADIC with limited functionality.  Simply put your addon id in the id field and the value that would make the following code return your addon's preference prefix.

    "extensions."+code+"."

With that information ADIC will return the value of all your preferences, OS and system information as well as a list of installed addons and their versions.

## Advanced Usage
If you want to personalize the information returned by ADIC and provide an easier interface for your users you can include an `adic.json` file in the root for your extension (not chrome:// but the extension package).  This way users only need to enter your extension ID and everything else is handled automatically.  This file also offers you more control over what information ADIC gathers.

### Intro to `adic.json`
`adic.json` is imported as a JavaScript module and exports one object with all of the info ADIC needs.  It is important to note that it is not strictly JSON so the language is more flexibleADIC_info.  You can include comments as well as commas after the last element.  A template file is shown here.

    var EXPORTED_SYMBOLS = ["ADIC_info"];

    var ADIC_info = {
    	/* Include prefrences from here down. */
    	prefs: ["extensions.adic."],
    
    	/* true for system info */
    	system: true,
    
    	/* Should we include a list of installed extensions? */
    	extensions: true,
    
        /* A list of file names to include. */
    	files: [],
    
    	/* A list of things to include in the output */
    	constants: {
    		key: "value",
    	},
    };

This is actually the `adic.json` that ADIC uses.  It is fairly straight forward.  The name `ADIC_info` is important and must be changed or else ADIC will not be able to find your settings.

### prefs
`ADIC_info.prefs` is an array of prefixes to be included.  If you want every preference you can put `[""]` or `[]` for none.  This value defaults to `"extensions."+code+"."` if the code is given (it isn't asked for if `adic.json` exists) otherwise `[]`.

### system
`ADIC_info.system` is a boolean value specifying whether or not system info should be included.  This is a dump of `Services.appinfo`.

### files
`ADIC_info.files` is a list of files to include verbatim into the output.  The file name will be provided then the contents in a delimited section.  The user will be prompted for conformation if you ask for strange files (like `file:///etc/passwd`).  I will get you a better definition for strange files when this feature gets implemented.

### constants
`ADIC_info.constants` is an object of key/value pairs to spit out.
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Cox</dc:creator><pubDate>Fri, 13 Jan 2012 22:58:52 -0000</pubDate><guid>https://sourceforge.net29f218ff3094b1a720d35dcbf191694b13ff6ee1</guid></item></channel></rss>