rsence-pre 2.1.0.20 → 2.1.0.21

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/INSTALL.rdoc CHANGED
@@ -64,7 +64,7 @@ Replace the +\my_projects+ path with the path to the directory where you want to
64
64
 
65
65
  * In the command prompt, run:
66
66
  cd \my_projects
67
- rsence initenv my_project
67
+ rsence init my_project
68
68
  * Answer the questions
69
69
  * In the command prompt, run:
70
70
  rsence run my_project
@@ -128,7 +128,7 @@ This not only enables SessionStorage (persistent sessions between RSence restart
128
128
  * A Sequel driver for your preferred database is also needed:
129
129
  * *sqlite3-ruby*:: SQLite[http://www.sqlite.org] is a light-weight SQL library. Recommended for development and small projects.
130
130
  * Other database adapters compatible with Sequel are fine. Just configure RSence accordingly.
131
- * *highline*:: Console-based menu prompt system by the initenv command.
131
+ * *highline*:: Console-based menu prompt system by the init command.
132
132
  * rmagick
133
133
  * Optional, but suggested, because RSence has RMagick -savvy features, like serving RMagick objects using tickets that are rendered only when requested.
134
134
  * Some plugins depend on it directly.
@@ -157,20 +157,20 @@ When installed, ensure it works by exploring the help of the 'rsence' command, l
157
157
  rsence help
158
158
  rsence help version
159
159
  rsence help run
160
- rsence help initenv
160
+ rsence help init
161
161
  etc..
162
162
 
163
163
  === 3.2. Setting up
164
164
 
165
165
  ==== 3.2.1. Creating a RSence project environment
166
166
 
167
- To set up an environment for your RSence project, use the initenv command. In this example '/home/me/projects' is assumed as your project directory. Replace that with a path that matches your own environment. The RSence project directory must either be empty or will be created automatically.
168
- rsence initenv /home/me/projects/my_first_rsence_project
167
+ To set up an environment for your RSence project, use the init command. In this example '/home/me/projects' is assumed as your project directory. Replace that with a path that matches your own environment. The RSence project directory must either be empty or will be created automatically.
168
+ rsence init /home/me/projects/my_first_rsence_project
169
169
 
170
- To see the options of the initenv command, use
171
- rsence help initenv
170
+ To see the options of the init command, use
171
+ rsence help init
172
172
 
173
- By default, initenv asks a few simple questions to write your configuration file. Just press enter, if you want to keep the suggested default options.
173
+ By default, init asks a few simple questions to write your configuration file. Just press enter, if you want to keep the suggested default options.
174
174
 
175
175
  The questions are:
176
176
  * Project Title
data/README.rdoc CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- = RSence-2.0.0[http://rsence.org/]
2
+ = RSence-2.1.0[http://rsence.org/]
3
3
 
4
4
  == Introduction
5
5
 
@@ -17,8 +17,8 @@ Just run this command in the shell, if you have ruby installed. Otherwise, read
17
17
 
18
18
  == Initializing a new project
19
19
 
20
- The +initenv+ command will cretate a directory called `env_dir` in this example. It asks a few questions about the environment. Use a path and project name that matches your purposes.
21
- rsence initenv /home/me/rsence_projects/env_dir
20
+ The +init+ command will cretate a directory called `env_dir` in this example. It asks a few questions about the environment. Use a path and project name that matches your purposes.
21
+ rsence init /home/me/rsence_projects/env_dir
22
22
 
23
23
 
24
24
  == Project environment structure
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0.20.pre
1
+ 2.1.0.21.pre
@@ -1,6 +1,6 @@
1
1
  = Example: The "welcome" GUIPlugin bundle
2
2
 
3
- This bundle is installed by default for each new RSence project environment, when created by the +rsence initenv+ command. It displays a simple user interface that contains a congratulatory message of a successful setup. Feel free to experiment with the plugin in your project environment.
3
+ This bundle is installed by default for each new RSence project environment, when created by the +rsence init+ command. It displays a simple user interface that contains a congratulatory message of a successful setup. Feel free to experiment with the plugin in your project environment.
4
4
 
5
5
  === File / directory structure
6
6
  This is just an example, the meaning of gui/
@@ -28,7 +28,7 @@ A brief description of the package
28
28
  !!!yaml
29
29
  description: |
30
30
  This is a simple welcome message plugin. It's installed in new project
31
- environments, when the rsence initenv in executed.
31
+ environments, when the rsence init in executed.
32
32
  You may safely remove this plugin bundle.
33
33
 
34
34
  System version requirements. In this case "RSence 2.0.0 or newer"
@@ -239,7 +239,7 @@ COMM.Transporter = HApplication.extend({
239
239
  }
240
240
  // console.log('sync.');
241
241
  this.busy = true;
242
- if(window['sesWatcher']){
242
+ if(window['sesWatcher'] && window.sesWatcher['sesTimeoutValue']){
243
243
  sesWatcher.sesTimeoutValue.set( new Date().getTime() );
244
244
  }
245
245
  var _this = this,
@@ -49,7 +49,7 @@ HAlertSheet = HSheet.extend({
49
49
  *
50
50
  **/
51
51
  alertButtons: function(){
52
- this.okButton = HClickValueButton.nu(
52
+ this.okButton = HClickButton.nu(
53
53
  [ null, null, 60, 23, 8, 8 ],
54
54
  this, {
55
55
  label: 'OK',
@@ -59,5 +59,17 @@ HAlertSheet = HSheet.extend({
59
59
  }
60
60
  }
61
61
  );
62
+ },
63
+
64
+ /** = Description
65
+ * Binds the same value to okButton.
66
+ *
67
+ **/
68
+ setValueObj: function( valueObj ){
69
+ this.base( valueObj );
70
+ if ( this['okButton'] ) {
71
+ valueObj.bind( this.okButton );
72
+ }
62
73
  }
74
+
63
75
  });
@@ -18,7 +18,7 @@ HConfirmSheet = HAlertSheet.extend({
18
18
  *
19
19
  **/
20
20
  alertButtons: function(){
21
- this.cancelButton = HClickValueButton.extend({
21
+ this.cancelButton = HClickButton.extend({
22
22
  click: function(){
23
23
  this.setValue( -1 );
24
24
  }
@@ -33,5 +33,16 @@ HConfirmSheet = HAlertSheet.extend({
33
33
  }
34
34
  );
35
35
  this.base();
36
- }
36
+ },
37
+
38
+ /** = Description
39
+ * Binds the same value to cancelButton.
40
+ *
41
+ **/
42
+ setValueObj: function( valueObj ){
43
+ this.base( valueObj );
44
+ if ( this['cancelButton'] ) {
45
+ valueObj.bind( this.cancelButton );
46
+ }
47
+ }
37
48
  });
data/js/core/elem/elem.js CHANGED
@@ -1108,6 +1108,12 @@ ELEM = {
1108
1108
  return document.defaultView.getComputedStyle(_elem,null).getPropertyValue(_key);
1109
1109
  },
1110
1110
  _getComputedStyleIE: function(_elem,_key){
1111
+ if(_key === 'width'){
1112
+ return _elem.clientWidth+'px';
1113
+ }
1114
+ if(_key === 'height'){
1115
+ return _elem.clientHeight+'px';
1116
+ }
1111
1117
  var _camelName = _key.replace(
1112
1118
  /((-)([a-z])(\w))/g,
1113
1119
  function($0, $1, $2, $3, $4) {
@@ -1267,6 +1273,8 @@ ELEM = {
1267
1273
  _browserType.ie9 = _isIE && (_ua.indexOf("MSIE 9") !== -1);
1268
1274
 
1269
1275
  // Experimental; don't treat IE9 as an IE at all.
1276
+ // NOTE: IE9 Beta does still not behave like a standard web browser.
1277
+ // It will probably require as much tuning as earlier IE versions.
1270
1278
  if(_browserType.ie9){
1271
1279
  _browserType.ie = false;
1272
1280
  }
@@ -1156,16 +1156,12 @@ HView = HClass.extend({
1156
1156
  *
1157
1157
  **/
1158
1158
  hide: function() {
1159
- if(!this.isHidden) {
1160
- var _setStyl = ELEM.setStyle,
1161
- _elemId = this.elemId;
1162
- _setStyl(_elemId,'visibility', 'hidden');
1163
- // Required for the old, buggy Mozilla engines ( Firefox versions below 3.0 )
1164
- // At least text fields would show through from hidden parent elements.
1165
- // Disabled, because keeping the display as none causes hidden views to have no dimensions at all.
1166
- // _setStyl(_elemId,'display', 'none');
1167
- this.isHidden = true;
1168
- }
1159
+ ELEM.setStyle(this.elemId,'visibility', 'hidden', true);
1160
+ // Required for the old, buggy Mozilla engines ( Firefox versions below 3.0 )
1161
+ // At least text fields would show through from hidden parent elements.
1162
+ // Disabled, because keeping the display as none causes hidden views to have no dimensions at all.
1163
+ // ELEM.setStyle(this.elemId,'display', 'none');
1164
+ this.isHidden = true;
1169
1165
  return this;
1170
1166
  },
1171
1167
 
@@ -1177,13 +1173,9 @@ HView = HClass.extend({
1177
1173
  *
1178
1174
  **/
1179
1175
  show: function() {
1180
- if(this.isHidden) {
1181
- var _setStyl = ELEM.setStyle,
1182
- _elemId = this.elemId;
1183
- _setStyl(_elemId,'visibility', 'inherit');
1184
- _setStyl(_elemId,'display', this.displayMode);
1185
- this.isHidden = false;
1186
- }
1176
+ ELEM.setStyle(this.elemId,'display', this.displayMode, true);
1177
+ ELEM.setStyle(this.elemId,'visibility', 'inherit', true);
1178
+ this.isHidden = false;
1187
1179
  return this;
1188
1180
  },
1189
1181
 
@@ -9,19 +9,19 @@
9
9
 
10
10
  /*** = Description
11
11
  ** HListItems is uses an array-packed list of hash objects as its value.
12
- ##
13
- ## == Value as Array of Hashes:
12
+ **
13
+ ** == Value as Array of Hashes:
14
14
  ** Each item in the array should have a 'label' and a 'value' key.
15
15
  ** The 'label' key of each item is used as the label for the HRadiobutton in the list.
16
16
  ** The 'value' key of each item is the value used for the output.
17
- ##
18
- ## == Value as Array of strings or numerals
19
- ## Each Item like with hash, except the item is both label and value. Each item should
20
- ## be unique.
21
- ##
22
- ## == Important
17
+ **
18
+ ** == Value as Array of strings or numerals
19
+ ** Each Item like with hash, except the item is both label and value. Each item should
20
+ ** be unique.
21
+ **
22
+ ** == Important
23
23
  ** The parent object of a HListItem needs to be a compatible component, like HRadioButtonList.
24
- ##
24
+ **
25
25
  ***/
26
26
  var//RSence.Lists
27
27
  HListItems = HValueResponder.extend({
@@ -3,11 +3,11 @@
3
3
  title: Welcome message
4
4
 
5
5
  # The human-readable version of the package
6
- version: 1.0.1
6
+ version: 1.0.2
7
7
 
8
8
  # A brief description of the package (rdoc formatting supported)
9
9
  description: |
10
10
  This is a simple welcome message plugin. It's installed in new project
11
- environments, when the rsence initenv in executed.
11
+ environments, when the rsence init in executed.
12
12
  You may safely remove this plugin bundle.
13
13
 
@@ -2,7 +2,7 @@
2
2
  <div style="margin-left:40px;margin-top:140px;margin-right:20px">
3
3
  <h1>Congratulations!</h1>
4
4
  <p>This message is served to you by RSence running in your new environment.</p>
5
- <p>The next time you create an RSence environment, use the <code>--blank</code> option of the <code>rsence&nbsp;initenv</code> command to avoid this message.</p>
5
+ <p>The next time you create an RSence environment, use the <code>--blank</code> option of the <code>rsence&nbsp;init</code> command to avoid this message.</p>
6
6
  <p>Use the <code>rsence help</code> command to learn more about the <code>rsence</code> command-line tool and its various commands and options.</p>
7
7
  <p>You may want to install or write some software to run in your new RSence environment next.</p>
8
8
  <p>Go to <a href="http://rsence.org/">rsence.org</a> to learn more about RSence.</p>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence-pre
3
3
  version: !ruby/object:Gem::Version
4
- hash: 79
4
+ hash: 77
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
9
  - 0
10
- - 20
11
- version: 2.1.0.20
10
+ - 21
11
+ version: 2.1.0.21
12
12
  platform: ruby
13
13
  authors:
14
14
  - Riassence Inc.
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-29 00:00:00 +02:00
19
+ date: 2010-12-01 00:00:00 +02:00
20
20
  default_executable: rsence-pre
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -374,7 +374,7 @@ files:
374
374
  - VERSION
375
375
  - .yardopts
376
376
  - bin/rsence-pre
377
- has_rdoc: true
377
+ has_rdoc: yard
378
378
  homepage: http://www.rsence.org/
379
379
  licenses: []
380
380