joosy 1.0.0.RC6 → 1.0.0.RC7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  GIT
2
2
  remote: git://github.com/pivotal/jasmine-gem.git
3
- revision: 478c6027a19f391c4fc3ca0faef001915ee7906f
3
+ revision: 63e8d46556a421cbb3b511b52cd8c2188d72b9db
4
4
  specs:
5
5
  jasmine (1.3.2)
6
6
  jasmine-core (~> 1.3.1)
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- joosy (1.0.0.RC5)
14
+ joosy (1.0.0.RC7)
15
15
  coffee-rails
16
16
  haml_coffee_assets
17
17
  i18n-js
@@ -21,12 +21,12 @@ PATH
21
21
  GEM
22
22
  remote: http://rubygems.org/
23
23
  specs:
24
- actionmailer (3.2.9)
25
- actionpack (= 3.2.9)
24
+ actionmailer (3.2.11)
25
+ actionpack (= 3.2.11)
26
26
  mail (~> 2.4.4)
27
- actionpack (3.2.9)
28
- activemodel (= 3.2.9)
29
- activesupport (= 3.2.9)
27
+ actionpack (3.2.11)
28
+ activemodel (= 3.2.11)
29
+ activesupport (= 3.2.11)
30
30
  builder (~> 3.0.0)
31
31
  erubis (~> 2.7.0)
32
32
  journey (~> 1.0.4)
@@ -34,18 +34,18 @@ GEM
34
34
  rack-cache (~> 1.2)
35
35
  rack-test (~> 0.6.1)
36
36
  sprockets (~> 2.2.1)
37
- activemodel (3.2.9)
38
- activesupport (= 3.2.9)
37
+ activemodel (3.2.11)
38
+ activesupport (= 3.2.11)
39
39
  builder (~> 3.0.0)
40
- activerecord (3.2.9)
41
- activemodel (= 3.2.9)
42
- activesupport (= 3.2.9)
40
+ activerecord (3.2.11)
41
+ activemodel (= 3.2.11)
42
+ activesupport (= 3.2.11)
43
43
  arel (~> 3.0.2)
44
44
  tzinfo (~> 0.3.29)
45
- activeresource (3.2.9)
46
- activemodel (= 3.2.9)
47
- activesupport (= 3.2.9)
48
- activesupport (3.2.9)
45
+ activeresource (3.2.11)
46
+ activemodel (= 3.2.11)
47
+ activesupport (= 3.2.11)
48
+ activesupport (3.2.11)
49
49
  i18n (~> 0.6)
50
50
  multi_json (~> 1.0)
51
51
  addressable (2.3.2)
@@ -68,10 +68,10 @@ GEM
68
68
  eventmachine (1.0.0-java)
69
69
  execjs (1.4.0)
70
70
  multi_json (~> 1.0)
71
- ffi (1.2.0)
72
- ffi (1.2.0-java)
73
- guard (1.5.4)
74
- listen (>= 0.4.2)
71
+ ffi (1.3.1)
72
+ ffi (1.3.1-java)
73
+ guard (1.6.1)
74
+ listen (>= 0.6.0)
75
75
  lumberjack (>= 1.0.2)
76
76
  pry (>= 0.9.10)
77
77
  thor (>= 0.14.6)
@@ -81,7 +81,7 @@ GEM
81
81
  guard-sprockets (0.4.1)
82
82
  guard (>= 1.1.0)
83
83
  sprockets (~> 2.0)
84
- haml_coffee_assets (1.8.2)
84
+ haml_coffee_assets (1.10.0)
85
85
  coffee-script (>= 1.0.0)
86
86
  sprockets (>= 2.0.3)
87
87
  tilt (>= 1.3.3)
@@ -94,14 +94,14 @@ GEM
94
94
  jquery-rails (2.1.4)
95
95
  railties (>= 3.0, < 5.0)
96
96
  thor (>= 0.14, < 2.0)
97
- json (1.7.5)
98
- json (1.7.5-java)
97
+ json (1.7.6)
98
+ json (1.7.6-java)
99
99
  libnotify (0.8.0)
100
100
  ffi (>= 1.0.11)
101
101
  libwebsocket (0.1.7.1)
102
102
  addressable
103
103
  websocket
104
- listen (0.6.0)
104
+ listen (0.7.2)
105
105
  lumberjack (1.0.2)
106
106
  mail (2.4.4)
107
107
  i18n (>= 0.4.0)
@@ -111,39 +111,39 @@ GEM
111
111
  mime-types (1.19)
112
112
  multi_json (1.5.0)
113
113
  polyglot (0.3.3)
114
- pry (0.9.10)
114
+ pry (0.9.11.3)
115
115
  coderay (~> 1.0.5)
116
116
  method_source (~> 0.8)
117
- slop (~> 3.3.1)
118
- pry (0.9.10-java)
117
+ slop (~> 3.4)
118
+ pry (0.9.11.3-java)
119
119
  coderay (~> 1.0.5)
120
120
  method_source (~> 0.8)
121
- slop (~> 3.3.1)
121
+ slop (~> 3.4)
122
122
  spoon (~> 0.0)
123
- rack (1.4.1)
123
+ rack (1.4.4)
124
124
  rack-cache (1.2)
125
125
  rack (>= 0.4)
126
126
  rack-ssl (1.3.2)
127
127
  rack
128
128
  rack-test (0.6.2)
129
129
  rack (>= 1.0)
130
- rails (3.2.9)
131
- actionmailer (= 3.2.9)
132
- actionpack (= 3.2.9)
133
- activerecord (= 3.2.9)
134
- activeresource (= 3.2.9)
135
- activesupport (= 3.2.9)
130
+ rails (3.2.11)
131
+ actionmailer (= 3.2.11)
132
+ actionpack (= 3.2.11)
133
+ activerecord (= 3.2.11)
134
+ activeresource (= 3.2.11)
135
+ activesupport (= 3.2.11)
136
136
  bundler (~> 1.0)
137
- railties (= 3.2.9)
138
- railties (3.2.9)
139
- actionpack (= 3.2.9)
140
- activesupport (= 3.2.9)
137
+ railties (= 3.2.11)
138
+ railties (3.2.11)
139
+ actionpack (= 3.2.11)
140
+ activesupport (= 3.2.11)
141
141
  rack-ssl (~> 1.3.2)
142
142
  rake (>= 0.8.7)
143
143
  rdoc (~> 3.4)
144
144
  thor (>= 0.14.6, < 2.0)
145
145
  rake (10.0.3)
146
- rb-inotify (0.8.8)
146
+ rb-inotify (0.9.0)
147
147
  ffi (>= 0.5.0)
148
148
  rdoc (3.12)
149
149
  json (~> 1.4)
@@ -154,14 +154,14 @@ GEM
154
154
  rspec-core (2.12.2)
155
155
  rspec-expectations (2.12.1)
156
156
  diff-lcs (~> 1.1.3)
157
- rspec-mocks (2.12.0)
157
+ rspec-mocks (2.12.1)
158
158
  rubyzip (0.9.9)
159
159
  selenium-webdriver (2.27.2)
160
160
  childprocess (>= 0.2.5)
161
161
  libwebsocket (~> 0.1.3)
162
162
  multi_json (~> 1.0)
163
163
  rubyzip
164
- slop (3.3.3)
164
+ slop (3.4.3)
165
165
  spoon (0.0.1)
166
166
  sprockets (2.2.2)
167
167
  hike (~> 1.2)
@@ -51,5 +51,5 @@ Joosy.Application =
51
51
  # @param [Object] params Hash of page params
52
52
  #
53
53
  setCurrentPage: (page, params) ->
54
- #if @page not instanceof page
55
- @page = new page params, @page
54
+ attempt = new page(params, @page)
55
+ @page = attempt unless attempt.halted
@@ -33,7 +33,6 @@ Joosy.Modules.Filters =
33
33
  return true unless @["__#{filter}s"]
34
34
 
35
35
  @["__#{filter}s"].reduce (flag, func) =>
36
- unless Object.isFunction func
37
- func = @[func]
36
+ func = @[func] unless Object.isFunction func
38
37
  flag && func.apply(@, opts) != false
39
38
  , true
@@ -33,6 +33,8 @@ class Joosy.Page extends Joosy.Module
33
33
  @include Joosy.Modules.WidgetsManager
34
34
  @include Joosy.Modules.Filters
35
35
 
36
+ halted: false
37
+
36
38
  #
37
39
  # Default layout is no layout.
38
40
  #
@@ -209,11 +211,11 @@ class Joosy.Page extends Joosy.Module
209
211
  # @params [Joosy.Page] previous Previous page to unload
210
212
  #
211
213
  constructor: (@params, @previous) ->
212
- Joosy.Application.loading = true
213
-
214
214
  @__layoutClass ||= ApplicationLayout
215
215
 
216
- if @__runBeforeLoads @params, @previous
216
+ unless @halted = !@__runBeforeLoads(@params, @previous)
217
+ Joosy.Application.loading = true
218
+
217
219
  if !@previous?.layout?.uuid? || @previous?.__layoutClass != @__layoutClass
218
220
  @__bootstrapLayout()
219
221
  else
@@ -1,5 +1,5 @@
1
1
  module Joosy
2
2
  module Rails
3
- VERSION = "1.0.0.RC6"
3
+ VERSION = "1.0.0.RC7"
4
4
  end
5
5
  end
@@ -81,7 +81,7 @@ describe "Joosy.Form", ->
81
81
  marker = @putForm.find "input[name=_method]"
82
82
  expect(marker.length).toEqual 1
83
83
  expect(marker.attr 'value').toEqual 'PUT'
84
- form.fill Test
84
+ form.fill @Test
85
85
  marker = @putForm.find "input[name=_method]"
86
86
  expect(marker.length).toEqual 0
87
87
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joosy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.RC6
4
+ version: 1.0.0.RC7
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -12,11 +12,11 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-01-09 00:00:00.000000000 Z
15
+ date: 2013-01-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
19
- requirement: &70125953693180 !ruby/object:Gem::Requirement
19
+ requirement: &70223417433300 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 3.1.0
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70125953693180
27
+ version_requirements: *70223417433300
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: coffee-rails
30
- requirement: &70125953692180 !ruby/object:Gem::Requirement
30
+ requirement: &70223417432440 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70125953692180
38
+ version_requirements: *70223417432440
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: jquery-rails
41
- requirement: &70125953691180 !ruby/object:Gem::Requirement
41
+ requirement: &70223417431840 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '0'
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70125953691180
49
+ version_requirements: *70223417431840
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: haml_coffee_assets
52
- requirement: &70125953689800 !ruby/object:Gem::Requirement
52
+ requirement: &70223417430980 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :runtime
59
59
  prerelease: false
60
- version_requirements: *70125953689800
60
+ version_requirements: *70223417430980
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: i18n-js
63
- requirement: &70125953491060 !ruby/object:Gem::Requirement
63
+ requirement: &70223417429940 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: '0'
69
69
  type: :runtime
70
70
  prerelease: false
71
- version_requirements: *70125953491060
71
+ version_requirements: *70223417429940
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: guard
74
- requirement: &70125953487880 !ruby/object:Gem::Requirement
74
+ requirement: &70223417429280 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: '0'
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *70125953487880
82
+ version_requirements: *70223417429280
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: guard-coffeescript
85
- requirement: &70125953487340 !ruby/object:Gem::Requirement
85
+ requirement: &70223417474980 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *70125953487340
93
+ version_requirements: *70223417474980
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: guard-sprockets
96
- requirement: &70125953486620 !ruby/object:Gem::Requirement
96
+ requirement: &70223417474460 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ! '>='
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: '0'
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *70125953486620
104
+ version_requirements: *70223417474460
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: jasmine
107
- requirement: &70125953485680 !ruby/object:Gem::Requirement
107
+ requirement: &70223417473780 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ! '>='
@@ -112,7 +112,7 @@ dependencies:
112
112
  version: '0'
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *70125953485680
115
+ version_requirements: *70223417473780
116
116
  description: A gem wrapper to include Joosy via the asset pipeline.
117
117
  email: boris@roundlake.ru
118
118
  executables: []