newjs 1.0.2 → 1.0.3
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.
    
        data/History.txt
    CHANGED
    
    
    
        data/lib/newjs/version.rb
    CHANGED
    
    
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            body {
         | 
| 2 | 
            -
              background-color: # | 
| 2 | 
            +
              background-color: #8DBD82;
         | 
| 3 3 | 
             
              font-family: "Georgia", sans-serif;
         | 
| 4 4 | 
             
              font-size: 16px;
         | 
| 5 5 | 
             
              line-height: 1.6em;
         | 
| @@ -24,7 +24,7 @@ li { | |
| 24 24 | 
             
            }
         | 
| 25 25 | 
             
            a {
         | 
| 26 26 | 
             
              color: #5E5AFF;
         | 
| 27 | 
            -
            	background-color: # | 
| 27 | 
            +
            	background-color: #A1DDB1;
         | 
| 28 28 | 
             
              font-weight: normal;
         | 
| 29 29 | 
             
              text-decoration: underline;
         | 
| 30 30 | 
             
            }
         | 
| @@ -39,7 +39,7 @@ blockquote { | |
| 39 39 | 
             
            }
         | 
| 40 40 |  | 
| 41 41 | 
             
            #main {
         | 
| 42 | 
            -
              width:  | 
| 42 | 
            +
              width: 50em;
         | 
| 43 43 | 
             
              padding: 0;
         | 
| 44 44 | 
             
              margin: 0 auto;
         | 
| 45 45 | 
             
            }
         | 
| @@ -101,12 +101,12 @@ pre, code { | |
| 101 101 | 
             
              text-align: right;
         | 
| 102 102 | 
             
              font-family: sans-serif;
         | 
| 103 103 | 
             
              font-weight: normal;
         | 
| 104 | 
            -
              background-color: # | 
| 104 | 
            +
              background-color: #9A5535;
         | 
| 105 105 | 
             
              color: #141331;
         | 
| 106 106 | 
             
              padding: 15px 20px 10px 20px;
         | 
| 107 107 | 
             
              margin: 0 auto;
         | 
| 108 108 | 
             
            	margin-top: 15px;
         | 
| 109 | 
            -
              border: 3px solid # | 
| 109 | 
            +
              border: 3px solid #7E393E;
         | 
| 110 110 | 
             
            }
         | 
| 111 111 |  | 
| 112 112 | 
             
            #version .numbers {
         | 
| @@ -119,16 +119,16 @@ pre, code { | |
| 119 119 |  | 
| 120 120 | 
             
            #version p {
         | 
| 121 121 | 
             
              text-decoration: none;
         | 
| 122 | 
            -
            	color: # | 
| 123 | 
            -
            	background-color: # | 
| 122 | 
            +
            	color: #F1F4FF;
         | 
| 123 | 
            +
            	background-color: #9A5535;
         | 
| 124 124 | 
             
            	margin: 0;
         | 
| 125 125 | 
             
            	padding: 0;
         | 
| 126 126 | 
             
            }
         | 
| 127 127 |  | 
| 128 128 | 
             
            #version a {
         | 
| 129 129 | 
             
              text-decoration: none;
         | 
| 130 | 
            -
            	color: # | 
| 131 | 
            -
            	background-color: # | 
| 130 | 
            +
            	color: #F1F4FF;
         | 
| 131 | 
            +
            	background-color: #9A5535;
         | 
| 132 132 | 
             
            }
         | 
| 133 133 |  | 
| 134 134 | 
             
            .clickable {
         | 
    
        data/website/index.html
    CHANGED
    
    | @@ -33,7 +33,7 @@ | |
| 33 33 | 
             
                <h1>JavaScript Project Generator</h1>
         | 
| 34 34 | 
             
                <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/newjs"; return false'>
         | 
| 35 35 | 
             
                  <p>Get Version</p>
         | 
| 36 | 
            -
                  <a href="http://rubyforge.org/projects/newjs" class="numbers">1.0. | 
| 36 | 
            +
                  <a href="http://rubyforge.org/projects/newjs" class="numbers">1.0.3</a>
         | 
| 37 37 | 
             
                </div>
         | 
| 38 38 | 
             
                <h1>→ ‘newjs’</h1>
         | 
| 39 39 |  | 
| @@ -197,6 +197,68 @@ in your required order.</p> | |
| 197 197 |  | 
| 198 198 | 
             
            <pre>rake dist</pre>
         | 
| 199 199 |  | 
| 200 | 
            +
            	<p>Two files are added into the <code>dist/</code> folder:</p>
         | 
| 201 | 
            +
             | 
| 202 | 
            +
             | 
| 203 | 
            +
            <pre>$ ls dist/
         | 
| 204 | 
            +
            drnic_js_test_helpers-0.5.0.js  drnic_js_test_helpers.js</pre>
         | 
| 205 | 
            +
             | 
| 206 | 
            +
            	<p>One with a version number, and one without.</p>
         | 
| 207 | 
            +
             | 
| 208 | 
            +
             | 
| 209 | 
            +
            	<h3>Upload library to rubyforge</h3>
         | 
| 210 | 
            +
             | 
| 211 | 
            +
             | 
| 212 | 
            +
            	<p>Assuming you don’t really care where your package/library is uploaded
         | 
| 213 | 
            +
            and made available for downloading, <code>newjs</code> projects comes
         | 
| 214 | 
            +
            pre-built ready to upload them to <code>rubyforge</code>.</p>
         | 
| 215 | 
            +
             | 
| 216 | 
            +
             | 
| 217 | 
            +
            	<p>First, you’ll need a rubyforge account.</p>
         | 
| 218 | 
            +
             | 
| 219 | 
            +
             | 
| 220 | 
            +
            	<p>Second, create a rubyforge project. It can take 12-48hrs for confirmation
         | 
| 221 | 
            +
            to come back.</p>
         | 
| 222 | 
            +
             | 
| 223 | 
            +
             | 
| 224 | 
            +
            	<p>Third, use the <code>rubyforge</code> command-line app to 
         | 
| 225 | 
            +
            store your rubyforge project information locally.</p>
         | 
| 226 | 
            +
             | 
| 227 | 
            +
             | 
| 228 | 
            +
            <pre>$ rubyforge setup  # first time only
         | 
| 229 | 
            +
            $ rubyforge login
         | 
| 230 | 
            +
            $ rubyforge config
         | 
| 231 | 
            +
            $ rubyforge create_package project_name project_name
         | 
| 232 | 
            +
            </pre>
         | 
| 233 | 
            +
             | 
| 234 | 
            +
            	<p>Note, if you are placing your JavaScript project within an existing
         | 
| 235 | 
            +
            rubyforge project, then the two <code>project_name</code> values
         | 
| 236 | 
            +
            are different:</p>
         | 
| 237 | 
            +
             | 
| 238 | 
            +
             | 
| 239 | 
            +
            	<ol>
         | 
| 240 | 
            +
            	<li>The rubyforge project name (e.g. drnicutilities) </li>
         | 
| 241 | 
            +
            		<li>The JavaScript project/library name (e.g. drnic_js_test_helpers)</li>
         | 
| 242 | 
            +
            	</ol>
         | 
| 243 | 
            +
             | 
| 244 | 
            +
             | 
| 245 | 
            +
            	<p>Finally, each time you want to release a new version of your library you do 
         | 
| 246 | 
            +
            two things:</p>
         | 
| 247 | 
            +
             | 
| 248 | 
            +
             | 
| 249 | 
            +
            	<ol>
         | 
| 250 | 
            +
            	<li>Update Rakefile’s <code>APP_VERSION</code> value to the new version number</li>
         | 
| 251 | 
            +
            		<li>Run <code>rake release VERSION=X.Y.Z</code></li>
         | 
| 252 | 
            +
            	</ol>
         | 
| 253 | 
            +
             | 
| 254 | 
            +
             | 
| 255 | 
            +
            	<p>Your files are now available for download via rubyforge.org.</p>
         | 
| 256 | 
            +
             | 
| 257 | 
            +
             | 
| 258 | 
            +
            	<p>If you use the generated website (below), it comes with a link to these
         | 
| 259 | 
            +
            files when you click the large version number (e.g. “Get Version X.Y.Z”).</p>
         | 
| 260 | 
            +
             | 
| 261 | 
            +
             | 
| 200 262 | 
             
            	<h2>Create a website for your project</h2>
         | 
| 201 263 |  | 
| 202 264 |  | 
    
        data/website/index.txt
    CHANGED
    
    | @@ -132,6 +132,51 @@ Finally, run the command: | |
| 132 132 |  | 
| 133 133 | 
             
            <pre>rake dist</pre>
         | 
| 134 134 |  | 
| 135 | 
            +
            Two files are added into the <code>dist/</code> folder:
         | 
| 136 | 
            +
             | 
| 137 | 
            +
            <pre>$ ls dist/
         | 
| 138 | 
            +
            drnic_js_test_helpers-0.5.0.js  drnic_js_test_helpers.js</pre>
         | 
| 139 | 
            +
             | 
| 140 | 
            +
            One with a version number, and one without.
         | 
| 141 | 
            +
             | 
| 142 | 
            +
            h3. Upload library to rubyforge
         | 
| 143 | 
            +
             | 
| 144 | 
            +
            Assuming you don't really care where your package/library is uploaded
         | 
| 145 | 
            +
            and made available for downloading, <code>newjs</code> projects comes
         | 
| 146 | 
            +
            pre-built ready to upload them to <code>rubyforge</code>.
         | 
| 147 | 
            +
             | 
| 148 | 
            +
            First, you'll need a rubyforge account.
         | 
| 149 | 
            +
             | 
| 150 | 
            +
            Second, create a rubyforge project. It can take 12-48hrs for confirmation
         | 
| 151 | 
            +
            to come back.
         | 
| 152 | 
            +
             | 
| 153 | 
            +
            Third, use the <code>rubyforge</code> command-line app to 
         | 
| 154 | 
            +
            store your rubyforge project information locally.
         | 
| 155 | 
            +
             | 
| 156 | 
            +
            <pre>$ rubyforge setup  # first time only
         | 
| 157 | 
            +
            $ rubyforge login
         | 
| 158 | 
            +
            $ rubyforge config
         | 
| 159 | 
            +
            $ rubyforge create_package project_name project_name
         | 
| 160 | 
            +
            </pre>
         | 
| 161 | 
            +
             | 
| 162 | 
            +
            Note, if you are placing your JavaScript project within an existing
         | 
| 163 | 
            +
            rubyforge project, then the two <code>project_name</code> values
         | 
| 164 | 
            +
            are different:
         | 
| 165 | 
            +
             | 
| 166 | 
            +
            # The rubyforge project name (e.g. drnicutilities) 
         | 
| 167 | 
            +
            # The JavaScript project/library name (e.g. drnic_js_test_helpers)
         | 
| 168 | 
            +
             | 
| 169 | 
            +
            Finally, each time you want to release a new version of your library you do 
         | 
| 170 | 
            +
            two things:
         | 
| 171 | 
            +
             | 
| 172 | 
            +
            # Update Rakefile's <code>APP_VERSION</code> value to the new version number
         | 
| 173 | 
            +
            # Run <code>rake release VERSION=X.Y.Z</code>
         | 
| 174 | 
            +
             | 
| 175 | 
            +
            Your files are now available for download via rubyforge.org. 
         | 
| 176 | 
            +
             | 
| 177 | 
            +
            If you use the generated website (below), it comes with a link to these
         | 
| 178 | 
            +
            files when you click the large version number (e.g. "Get Version X.Y.Z").
         | 
| 179 | 
            +
             | 
| 135 180 | 
             
            h2. Create a website for your project
         | 
| 136 181 |  | 
| 137 182 | 
             
            You can quickly create a clean, readable website for your project
         |