calatrava 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.markdown CHANGED
@@ -1,3 +1,25 @@
1
+ ## v0.6.3
2
+
3
+ Bugs fixed:
4
+ * [Issue #22][i22] and [Issue #23][i23]: Support `*.scss` files as
5
+ well as `*.sass` files.
6
+ * [Issue #24][i24]: Create the stylesheet output directories as part
7
+ of the build process.
8
+ * [Issue #25][i25]: Recreate the `load_file.txt` when the feature
9
+ manifest changes.
10
+ * iOS was correctly dispatching timer firings back to the controller
11
+ code.
12
+
13
+ ## v0.6.2
14
+
15
+ * Moving to a more recent version of the `xcodeproj` gem caused a
16
+ conflict with Frank that needed to be resolved.
17
+
18
+ ## v0.6.1
19
+
20
+ * iOS was not correctly loading HTML UIs. Fixing this also required
21
+ re-working the project creation.
22
+
1
23
  ## v0.6.0
2
24
 
3
25
  * Added
@@ -38,3 +60,7 @@ Changes that will affect existing projects:
38
60
  [i13]: https://github.com/calatrava/calatrava/issues/13
39
61
  [i14]: https://github.com/calatrava/calatrava/issues/14
40
62
  [i15]: https://github.com/calatrava/calatrava/issues/15
63
+ [i22]: https://github.com/calatrava/calatrava/issues/22
64
+ [i23]: https://github.com/calatrava/calatrava/issues/23
65
+ [i24]: https://github.com/calatrava/calatrava/issues/24
66
+ [i25]: https://github.com/calatrava/calatrava/issues/25
@@ -36,6 +36,7 @@ module Calatrava
36
36
  directory build_html_dir
37
37
  directory build_images_dir
38
38
  directory build_scripts_dir
39
+ directory build_styles_dir
39
40
 
40
41
  app_files = haml_files.collect do |hf|
41
42
  file "#{build_html_dir}/#{File.basename(hf, '.haml')}.html" => [build_html_dir, hf] do
@@ -50,7 +51,7 @@ module Calatrava
50
51
  end
51
52
 
52
53
  app_files += @manifest.css_tasks(build_styles_dir)
53
- app_files << file("#{build_dir}/load_file.txt" => build_dir) do |t|
54
+ app_files << file("#{build_dir}/load_file.txt" => [build_dir, @manifest.src_file]) do |t|
54
55
  File.open(t.name, "w+") { |f| f.puts load_instructions }
55
56
  end
56
57
 
@@ -1,9 +1,14 @@
1
1
  module Calatrava
2
2
 
3
3
  class Manifest
4
+ include Rake::DSL
5
+
6
+ attr_reader :src_file
7
+
4
8
  def initialize(path, app_dir, kernel, shell)
5
9
  @path, @kernel, @shell = path, kernel, shell
6
- @feature_list = YAML.load(IO.read("#{@path}/#{app_dir}/manifest.yml"))
10
+ @src_file = "#{app_dir}/manifest.yml"
11
+ @feature_list = YAML.load(IO.read("#{@path}/#{@src_file}"))
7
12
  end
8
13
 
9
14
  def features
@@ -40,9 +45,10 @@ module Calatrava
40
45
  end
41
46
 
42
47
  def css_tasks(output_dir)
48
+ mkdir_p output_dir
43
49
  css_files.collect do |style_file|
44
50
  file "#{output_dir}/#{File.basename(style_file, '.*')}.css" => [output_dir, style_file] do |t|
45
- if style_file =~ /css$/
51
+ if style_file =~ /\.css$/
46
52
  cp style_file, output_dir
47
53
  else
48
54
  sh "sass #{style_file} #{t.name}"
@@ -33,6 +33,7 @@ module Calatrava
33
33
  def install_tasks
34
34
  directory build_dir
35
35
  directory scripts_build_dir
36
+ directory styles_build_dir
36
37
 
37
38
  app_files = coffee_files.collect do |cf|
38
39
  file "#{scripts_build_dir}/#{File.basename(cf, '.coffee')}.js" => [scripts_build_dir, cf] do
@@ -40,7 +41,7 @@ module Calatrava
40
41
  end
41
42
  end
42
43
 
43
- app_files << file("#{build_dir}/index.html" => ["web/app/views/index.haml"] + haml_files) do
44
+ app_files << file("#{build_dir}/index.html" => [@manifest.src_file, "web/app/views/index.haml"] + haml_files) do
44
45
  HamlSupport::compile "web/app/views/index.haml", build_dir
45
46
  end
46
47
 
@@ -19,7 +19,9 @@ module Calatrava
19
19
 
20
20
  def css_files
21
21
  Dir.chdir @path do
22
- Dir["shell/stylesheets/*.sass"] + Dir["shell/stylesheets/*.css"]
22
+ ["sass", "scss", "css"].collect do |ext|
23
+ Dir["shell/stylesheets/*.#{ext}"]
24
+ end.flatten
23
25
  end
24
26
  end
25
27
 
@@ -3,7 +3,7 @@ platform :ios, '5.0'
3
3
  xcodeproj '{{ project_name}}.xcodeproj'
4
4
 
5
5
  {{^dev?}}
6
- pod 'calatrava', :git => 'https://github.com/calatrava/calatrava-ios', :commit => '51391eb66a605801351e65a670b9466082623a3c'
6
+ pod 'calatrava', :git => 'https://github.com/calatrava/calatrava-ios', :commit => 'ba10050a6f565d7ac10b541ffe6164174db11376'
7
7
  {{/dev?}}
8
8
  {{#dev?}}
9
9
  pod 'calatrava', :local => '../../../calatrava-ios'
@@ -9,7 +9,7 @@
9
9
  , "jsdom" : "latest"
10
10
  , "mime" : "latest"
11
11
  , "ws" : "0.4.8"
12
- , "jasmine-node" : "*"
12
+ , "jasmine-node" : "1.0.26"
13
13
  , "should" : "*"
14
14
  , "jasmine-reporters" : "*"
15
15
  , "walkdir" : "*"
@@ -2,12 +2,9 @@ root = this
2
2
  root.calatrava ?= {}
3
3
  calatrava = root.calatrava
4
4
 
5
- # Replace with your namespace
6
- root.example ?= {}
7
- example = root.example
8
-
9
5
  # Hide all the sub-pages when first launching the app
10
- $('body > .page').hide()
6
+ $(document.ready) ->
7
+ $('body > .container > .page').hide()
11
8
 
12
9
  window.onpopstate = (event) ->
13
10
  if event.state
@@ -1,3 +1,3 @@
1
1
  module Calatrava
2
- Version = "0.6.2"
2
+ Version = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calatrava
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-27 00:00:00.000000000 Z
12
+ date: 2012-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70114091946480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *70114091946480
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: aruba
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70114091968780 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: '0'
38
33
  type: :development
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
35
+ version_requirements: *70114091968780
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: rake
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &70114091968260 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ~>
@@ -53,15 +43,10 @@ dependencies:
53
43
  version: 0.9.5
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 0.9.5
46
+ version_requirements: *70114091968260
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: thor
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &70114091967760 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ~>
@@ -69,15 +54,10 @@ dependencies:
69
54
  version: 0.16.0
70
55
  type: :runtime
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 0.16.0
57
+ version_requirements: *70114091967760
78
58
  - !ruby/object:Gem::Dependency
79
59
  name: haml
80
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &70114091967300 !ruby/object:Gem::Requirement
81
61
  none: false
82
62
  requirements:
83
63
  - - ~>
@@ -85,15 +65,10 @@ dependencies:
85
65
  version: 3.1.7
86
66
  type: :runtime
87
67
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 3.1.7
68
+ version_requirements: *70114091967300
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: sass
96
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &70114091966840 !ruby/object:Gem::Requirement
97
72
  none: false
98
73
  requirements:
99
74
  - - ~>
@@ -101,15 +76,10 @@ dependencies:
101
76
  version: 3.2.3
102
77
  type: :runtime
103
78
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 3.2.3
79
+ version_requirements: *70114091966840
110
80
  - !ruby/object:Gem::Dependency
111
81
  name: mustache
112
- requirement: !ruby/object:Gem::Requirement
82
+ requirement: &70114091966360 !ruby/object:Gem::Requirement
113
83
  none: false
114
84
  requirements:
115
85
  - - ~>
@@ -117,15 +87,10 @@ dependencies:
117
87
  version: 0.99.4
118
88
  type: :runtime
119
89
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: 0.99.4
90
+ version_requirements: *70114091966360
126
91
  - !ruby/object:Gem::Dependency
127
92
  name: cucumber
128
- requirement: !ruby/object:Gem::Requirement
93
+ requirement: &70114091965860 !ruby/object:Gem::Requirement
129
94
  none: false
130
95
  requirements:
131
96
  - - ~>
@@ -133,15 +98,10 @@ dependencies:
133
98
  version: 1.2.1
134
99
  type: :runtime
135
100
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ~>
140
- - !ruby/object:Gem::Version
141
- version: 1.2.1
101
+ version_requirements: *70114091965860
142
102
  - !ruby/object:Gem::Dependency
143
103
  name: watir-webdriver
144
- requirement: !ruby/object:Gem::Requirement
104
+ requirement: &70114091965280 !ruby/object:Gem::Requirement
145
105
  none: false
146
106
  requirements:
147
107
  - - ~>
@@ -149,15 +109,10 @@ dependencies:
149
109
  version: 0.6.1
150
110
  type: :runtime
151
111
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ~>
156
- - !ruby/object:Gem::Version
157
- version: 0.6.1
112
+ version_requirements: *70114091965280
158
113
  - !ruby/object:Gem::Dependency
159
114
  name: xcodeproj
160
- requirement: !ruby/object:Gem::Requirement
115
+ requirement: &70114091964660 !ruby/object:Gem::Requirement
161
116
  none: false
162
117
  requirements:
163
118
  - - ~>
@@ -165,15 +120,10 @@ dependencies:
165
120
  version: 0.4.0
166
121
  type: :runtime
167
122
  prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ~>
172
- - !ruby/object:Gem::Version
173
- version: 0.4.0
123
+ version_requirements: *70114091964660
174
124
  - !ruby/object:Gem::Dependency
175
125
  name: cocoapods
176
- requirement: !ruby/object:Gem::Requirement
126
+ requirement: &70114091963860 !ruby/object:Gem::Requirement
177
127
  none: false
178
128
  requirements:
179
129
  - - ~>
@@ -181,12 +131,7 @@ dependencies:
181
131
  version: 0.16.0
182
132
  type: :runtime
183
133
  prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ~>
188
- - !ruby/object:Gem::Version
189
- version: 0.16.0
134
+ version_requirements: *70114091963860
190
135
  description: A framework to build cross-platform mobile apps with high quality native
191
136
  UIs.
192
137
  email:
@@ -341,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
286
  version: '0'
342
287
  requirements: []
343
288
  rubyforge_project: calatrava
344
- rubygems_version: 1.8.24
289
+ rubygems_version: 1.8.10
345
290
  signing_key:
346
291
  specification_version: 3
347
292
  summary: Cross-platform mobile apps with native UIs