calatrava 0.6.4 → 0.6.5

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/.gitignore CHANGED
@@ -7,3 +7,4 @@ tmp/*
7
7
  test/*
8
8
  currencyConverter/*
9
9
  /.rake
10
+ /.vagrant
data/CHANGES.markdown CHANGED
@@ -1,3 +1,13 @@
1
+ ## v0.6.5
2
+
3
+ Bugs fixed:
4
+ * Fix for Android not compiling out of the box
5
+ * [Issue #72][i72]: Fix for cocoapods dependency issue
6
+ * Fix for back button being broken in web apps
7
+ * Pull in fix for calatrava-ios (request body encoding should be UTF-8)
8
+ * Fix for bindAll not working
9
+ * [Issue #67][i67]: Make gemspec more Linux-friendly
10
+
1
11
  ## v0.6.4
2
12
 
3
13
  New features:
@@ -108,6 +118,9 @@ Changes that will affect existing projects:
108
118
  * [Kalyan Akella](https://github.com/KalyanAkella)
109
119
  * [Filipe Esperandio](https://github.com/filipesperandio)
110
120
  * [Christoph Burgmer](https://github.com/cburgmer)
121
+ * [James Gregory](https://github.com/jagregory)
122
+ * [Sneha Venkatesh](https://github.com/snehayv)
123
+ * [Dan Tao](https://github.com/dtao)
111
124
 
112
125
  [i5]: https://github.com/calatrava/calatrava/issues/5
113
126
  [i12]: https://github.com/calatrava/calatrava/issues/12
data/Gemfile.lock CHANGED
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  calatrava (0.6.4)
5
- cocoapods (~> 0.16.0)
5
+ cocoapods (>= 0.16.0)
6
6
  cucumber (~> 1.2.1)
7
7
  haml (~> 3.1.7)
8
8
  mustache (~> 0.99.4)
@@ -26,8 +26,12 @@ GEM
26
26
  builder (3.1.4)
27
27
  childprocess (0.3.6)
28
28
  ffi (~> 1.0, >= 1.0.6)
29
- cocoapods (0.16.4)
30
- activesupport (~> 3.2.6)
29
+ claide (0.2.0)
30
+ cocoapods (0.19.1)
31
+ activesupport (~> 3.2.13)
32
+ claide (~> 0.2.0)
33
+ cocoapods-core (= 0.19.1)
34
+ cocoapods-downloader (~> 0.1.0)
31
35
  colored (~> 1.2)
32
36
  escape (~> 0.0.4)
33
37
  faraday (~> 0.8.1)
@@ -35,7 +39,11 @@ GEM
35
39
  octokit (~> 1.7)
36
40
  open4 (~> 1.3.0)
37
41
  rake (~> 10.0.0)
38
- xcodeproj (~> 0.5.0)
42
+ xcodeproj (~> 0.5.5)
43
+ cocoapods-core (0.19.1)
44
+ activesupport (~> 3.2.13)
45
+ rake (~> 10.0.0)
46
+ cocoapods-downloader (0.1.0)
39
47
  colored (1.2)
40
48
  cucumber (1.2.1)
41
49
  builder (>= 2.1.2)
@@ -52,10 +60,10 @@ GEM
52
60
  gherkin (2.11.5)
53
61
  json (>= 1.4.6)
54
62
  haml (3.1.8)
55
- hashie (2.0.4)
63
+ hashie (2.0.5)
56
64
  i18n (0.6.1)
57
65
  json (1.7.5)
58
- multi_json (1.7.2)
66
+ multi_json (1.7.3)
59
67
  multipart-post (1.2.0)
60
68
  mustache (0.99.4)
61
69
  netrc (0.7.7)
@@ -77,14 +85,14 @@ GEM
77
85
  diff-lcs (~> 1.1.3)
78
86
  rspec-mocks (2.12.0)
79
87
  rubyzip (0.9.9)
80
- sass (3.2.8)
88
+ sass (3.2.9)
81
89
  selenium-webdriver (2.32.1)
82
90
  childprocess (>= 0.2.5)
83
91
  multi_json (~> 1.0)
84
92
  rubyzip
85
93
  websocket (~> 1.0.4)
86
94
  thor (0.16.0)
87
- watir-webdriver (0.6.3)
95
+ watir-webdriver (0.6.4)
88
96
  selenium-webdriver (>= 2.18.0)
89
97
  websocket (1.0.7)
90
98
  xcodeproj (0.5.5)
data/calatrava.gemspec CHANGED
@@ -1,7 +1,6 @@
1
1
  # -*- encoding: utf-8; mode: ruby -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
  require "calatrava/version"
4
- require "calatrava/platform"
5
4
 
6
5
  Gem::Specification.new do |s|
7
6
  s.name = "calatrava"
@@ -31,8 +30,5 @@ Gem::Specification.new do |s|
31
30
  s.add_runtime_dependency "cucumber", "~> 1.2.1"
32
31
  s.add_runtime_dependency "watir-webdriver", "~> 0.6.1"
33
32
 
34
- if Calatrava.platform == :mac
35
- s.add_runtime_dependency "xcodeproj", ">= 0.4.0"
36
- s.add_runtime_dependency "cocoapods", "~> 0.16.0"
37
- end
33
+ s.extensions = ["ext/mkrf_conf.rb"]
38
34
  end
data/ext/mkrf_conf.rb ADDED
@@ -0,0 +1,29 @@
1
+ # This is a hack to enable platform-specific dependencies in a single gem.
2
+ # For background info see:
3
+ # http://www.programmersparadox.com/2012/05/21/gemspec-loading-dependent-gems-based-on-the-users-system/
4
+
5
+ # Code primarily borrowed from here:
6
+ # https://github.com/mmzyk/gem_dependency_example
7
+
8
+ require "rubygems/dependency_installer.rb"
9
+
10
+ installer = Gem::DependencyInstaller.new
11
+ begin
12
+
13
+ # I don't *think* you can use Calatrava.platform == :mac here as it seems
14
+ # RubyGems builds Ruby extensions without the dependencies declared in the gemspec.
15
+ if RUBY_PLATFORM =~ /darwin/
16
+ installer.install "xcodeproj", ">= 0.4.0"
17
+ installer.install "cocoapods", ">= 0.16.0"
18
+ end
19
+
20
+ rescue Exception => ex
21
+ # Exit with a non-zero value to let RubyGems know something went wrong.
22
+ exit 1
23
+ end
24
+
25
+ # Since this is Ruby, RubyGems will attempt to run Rake.
26
+ # If it doesn't find and successfully run a Rakefile, it errors out.
27
+ File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") do |f|
28
+ f.write "task :default\n"
29
+ end
@@ -13,9 +13,10 @@ public class Bootstrap extends Activity
13
13
  super.onCreate(savedInstanceState);
14
14
  setContentView(R.layout.main);
15
15
 
16
- ((CalatravaApplication)getApplication()).provideActivityContext(this);
16
+ CalatravaApplication app = (CalatravaApplication)getApplication();
17
+ app.provideActivityContext(this);
17
18
 
18
19
  // And then start your first feature
19
- launchFlow("example.converter.start");
20
+ app.launchFlow("example.converter.start");
20
21
  }
21
22
  }
@@ -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 => '308c74a580e3408785be5fb50ac9254926c2654e'
6
+ pod 'calatrava', :git => 'https://github.com/calatrava/calatrava-ios', :commit => '236a7395bbd90186a9359602ac77a982c5962e44'
7
7
  {{/dev?}}
8
8
  {{#dev?}}
9
9
  pod 'calatrava', :local => '../../../calatrava-ios'
@@ -89,7 +89,7 @@ calatrava.bridge.pageObject = (pageName) ->
89
89
  calatrava.bridge.runtime.attachProxyEventHandler(proxyId, event)
90
90
 
91
91
  bindAll: (options) ->
92
- _.each options, (handler, event) => pageObject.bind event, handler
92
+ _.each options, (handler, event) => @bind event, handler
93
93
 
94
94
  dispatch: (event) ->
95
95
  args = _.toArray(arguments).slice(1)
@@ -8,4 +8,4 @@ $(document).ready ->
8
8
 
9
9
  window.onpopstate = (event) ->
10
10
  if event.state
11
- tw.bridge.changePage event.state.page
11
+ calatrava.bridge.changePage event.state.page
@@ -1,3 +1,3 @@
1
1
  module Calatrava
2
- Version = "0.6.4"
2
+ Version = "0.6.5"
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.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
12
+ date: 2013-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -155,45 +155,14 @@ dependencies:
155
155
  - - ~>
156
156
  - !ruby/object:Gem::Version
157
157
  version: 0.6.1
158
- - !ruby/object:Gem::Dependency
159
- name: xcodeproj
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: 0.4.0
166
- type: :runtime
167
- 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
174
- - !ruby/object:Gem::Dependency
175
- name: cocoapods
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ~>
180
- - !ruby/object:Gem::Version
181
- version: 0.16.0
182
- type: :runtime
183
- 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
190
158
  description: A framework to build cross-platform mobile apps with high quality native
191
159
  UIs.
192
160
  email:
193
161
  - giles.alexander@gmail.com
194
162
  executables:
195
163
  - calatrava
196
- extensions: []
164
+ extensions:
165
+ - ext/mkrf_conf.rb
197
166
  extra_rdoc_files: []
198
167
  files:
199
168
  - .gitignore
@@ -209,6 +178,7 @@ files:
209
178
  - Vagrantfile
210
179
  - bin/calatrava
211
180
  - calatrava.gemspec
181
+ - ext/mkrf_conf.rb
212
182
  - features/cli.feature
213
183
  - features/project.feature
214
184
  - features/sample_app.feature
@@ -340,18 +310,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
340
310
  - - ! '>='
341
311
  - !ruby/object:Gem::Version
342
312
  version: '0'
343
- segments:
344
- - 0
345
- hash: -275265347738837271
346
313
  required_rubygems_version: !ruby/object:Gem::Requirement
347
314
  none: false
348
315
  requirements:
349
316
  - - ! '>='
350
317
  - !ruby/object:Gem::Version
351
318
  version: '0'
352
- segments:
353
- - 0
354
- hash: -275265347738837271
355
319
  requirements: []
356
320
  rubyforge_project: calatrava
357
321
  rubygems_version: 1.8.25