rad_common_interface 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/app/static/face.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // rad.assets.require '/lib/rad.js'
3
3
  //
4
4
  // rad.assets.require '/vendor/mootools-more.js'
5
+ //
5
6
  // rad.assets.require '/vendor/iFrameFormRequest.js'
6
7
  // rad.assets.require '/vendor/purr/purr.js'
7
8
  // rad.assets.require '/vendor/flext.js'
@@ -16,7 +16,7 @@ Naming convention:
16
16
  @import "style/application";
17
17
  @import "style/aspects";
18
18
  @import "style/basic";
19
- @import "style/micelaneous";
19
+ @import "style/miscellaneous";
20
20
  @import "style/forms";
21
21
  @import "style/items";
22
22
  @import "style/tools";
@@ -22,4 +22,5 @@
22
22
 
23
23
  = javascript_include_tag '/face.js'
24
24
  = yield :bottom
25
- = call_deferred_js
25
+ = call_deferred_js
26
+ = yield :analytics
@@ -1,8 +1,8 @@
1
1
  require 'rspec_ext'
2
+ require 'rspec_ext/xhtml'
2
3
 
3
- require 'rad_ext'
4
+ require 'rad'
4
5
  require 'rad/spec'
5
- require 'rad/spec/xhtml'
6
6
 
7
7
  rad.common_interface
8
8
 
@@ -5,8 +5,8 @@ class Rad::Face::Demo::Base
5
5
  layout '/rad/face/demo/layout'
6
6
 
7
7
  def select_menu
8
- workspace.request.session['top_menu'] = params[:top_menu] if params[:top_menu]
9
- workspace.request.session['side_menu'] = params[:side_menu] if params[:side_menu]
8
+ request.session['top_menu'] = params[:top_menu] if params[:top_menu]
9
+ request.session['side_menu'] = params[:side_menu] if params[:side_menu]
10
10
 
11
11
  redirect_to :back
12
12
  end
@@ -30,10 +30,10 @@ class Rad::Face::Demo::Base
30
30
  title: workspace.method_name.to_s.humanize,
31
31
 
32
32
  top_menu_items: %w(Email Contacts Calendar Files),
33
- active_top_menu: (workspace.request.session['top_menu'] || 'Email'),
33
+ active_top_menu: (request.session['top_menu'] || 'Email'),
34
34
 
35
35
  side_menu_items: %w(control_caption_0 control_caption_1 control_caption_2),
36
- active_side_menu: (workspace.request.session['side_menu'] || 'control_caption_0'),
36
+ active_side_menu: (request.session['side_menu'] || 'control_caption_0'),
37
37
 
38
38
  tabs: %w(Compose Contacts Import Categories),
39
39
  active_tab: 'Compose',
data/readme.md CHANGED
@@ -14,7 +14,7 @@ It acts like an abstraction layer, allowing you to define your custom API (or DS
14
14
  * [Sample of HomePage][sample1], [sample of page (with another design)][sample2]
15
15
  * [List of all Samples][list_of_samples]
16
16
 
17
- Real-life sample - [http://company.4ire.net](http://company.4ire.net), [http://4ire.net](http://4ire.net), there's no any custom template, all pages are made with the [Face][face] plugin.
17
+ Real-life sample - [http://robotigra.ru](http://robotigra.ru), [http://ruby-lang.info](http://ruby-lang.info), [http://petrush.in](http://petrush.in) there's no any custom template, all pages are made with the [Face][face] plugin.
18
18
 
19
19
  ## Advantages
20
20
 
@@ -46,9 +46,9 @@ But to create Your own design you need to create your own 'Default UI', using th
46
46
  $ lessc style.less > style.css
47
47
  $ lessc reset.less > reset.css
48
48
 
49
- Copyright (c) Alexey Petrushin [http://4ire.net](http://4ire.net), released under the MIT license.
49
+ Copyright (c) Alexey Petrushin http://petrush.in, released under the MIT license.
50
50
 
51
- [face]: http://github.com/alexeypetrushin/face
51
+ [face]: http://github.com/alexeypetrushin/rad_face
52
52
 
53
53
  [sample1]: http://4ire.net/ci_sites/home?layout_template=home&theme=simple_organization
54
54
  [sample2]: http://4ire.net/ci_elements/page?theme=default
data/spec/helpers_spec.rb CHANGED
@@ -8,15 +8,13 @@ describe "Helpers" do
8
8
  response.body
9
9
  end
10
10
 
11
- it "form_tag should correctly render form (from error)" do
12
- body.to_xhtml('#basic_form_tag').should_be_fuzzy_equal_to(
13
- id: 'basic_form_tag', action: '/some_action', method: 'post'
14
- )
15
- end
11
+ if String.method_defined? :xhtml
12
+ it "form_tag should correctly render form (from error)" do
13
+ body.to_xhtml('#basic_form_tag').to_fuzzy_hash.should == {id: 'basic_form_tag', action: '/some_action', method: 'post'}
14
+ end
16
15
 
17
- it "form_for should correctly render form (from error)" do
18
- body.to_xhtml('#basic_form_for').should_be_fuzzy_equal_to(
19
- id: 'basic_form_for', action: '/some_action', method: 'post'
20
- )
21
- end
16
+ it "form_for should correctly render form (from error)" do
17
+ body.to_xhtml('#basic_form_for').to_fuzzy_hash.should == {id: 'basic_form_for', action: '/some_action', method: 'post'}
18
+ end
19
+ end
22
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rad_common_interface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-05 00:00:00 +04:00
13
+ date: 2011-07-30 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -91,7 +91,7 @@ files:
91
91
  - app/static/themes/default/style/forms.less
92
92
  - app/static/themes/default/style/items.less
93
93
  - app/static/themes/default/style/markup.less
94
- - app/static/themes/default/style/micelaneous.less
94
+ - app/static/themes/default/style/miscellaneous.less
95
95
  - app/static/themes/default/style/mixins.less
96
96
  - app/static/themes/default/style/styles.less
97
97
  - app/static/themes/default/style/tools.less