ruboto-core 0.1.0 → 0.2.1

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.
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboto-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
7
+ - 2
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ version: 0.2.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Daniel Jackoway
@@ -18,39 +17,34 @@ autorequire:
18
17
  bindir: bin
19
18
  cert_chain: []
20
19
 
21
- date: 2011-03-24 00:00:00 -07:00
20
+ date: 2011-06-20 00:00:00 +02:00
22
21
  default_executable: ruboto
23
22
  dependencies:
24
23
  - !ruby/object:Gem::Dependency
25
24
  name: main
26
25
  prerelease: false
27
26
  requirement: &id001 !ruby/object:Gem::Requirement
28
- none: false
29
27
  requirements:
30
- - - "="
28
+ - - ~>
31
29
  - !ruby/object:Gem::Version
32
- hash: 55
33
30
  segments:
34
31
  - 4
35
- - 2
36
- - 0
37
- version: 4.2.0
32
+ - 4
33
+ version: "4.4"
38
34
  type: :runtime
39
35
  version_requirements: *id001
40
36
  - !ruby/object:Gem::Dependency
41
37
  name: jruby-jars
42
38
  prerelease: false
43
39
  requirement: &id002 !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ">"
41
+ - - ">="
47
42
  - !ruby/object:Gem::Version
48
- hash: 3
49
43
  segments:
50
44
  - 1
51
45
  - 5
52
- - 0
53
- version: 1.5.0
46
+ - 6
47
+ version: 1.5.6
54
48
  type: :runtime
55
49
  version_requirements: *id002
56
50
  description: The core components of Ruby on Android
@@ -63,52 +57,60 @@ extra_rdoc_files: []
63
57
 
64
58
  files:
65
59
  - COPYING
66
- - Rakefile
67
60
  - Gemfile
68
61
  - Gemfile.lock
62
+ - Rakefile
69
63
  - README.md
70
- - assets/test/assets/scripts/test_helper.rb
71
- - assets/samples/sample_activity_test.rb
72
- - assets/samples/sample_service_test.rb
73
- - assets/samples/sample_broadcast_receiver_test.rb
74
- - assets/samples/sample_broadcast_receiver.rb
75
- - assets/samples/sample_service.rb
76
- - assets/samples/sample_activity.rb
64
+ - assets/assets/scripts/ruboto.rb
77
65
  - assets/Rakefile
78
- - assets/res/drawable-ldpi/icon.png
79
66
  - assets/res/drawable-hdpi/icon.png
67
+ - assets/res/drawable-ldpi/icon.png
80
68
  - assets/res/drawable-mdpi/icon.png
81
- - assets/assets/scripts/ruboto.rb
82
- - assets/src/RubotoBroadcastReceiver.java
69
+ - assets/samples/sample_activity.rb
70
+ - assets/samples/sample_activity_test.rb
71
+ - assets/samples/sample_broadcast_receiver.rb
72
+ - assets/samples/sample_broadcast_receiver_test.rb
73
+ - assets/samples/sample_service.rb
74
+ - assets/samples/sample_service_test.rb
75
+ - assets/src/InheritingActivity.java
83
76
  - assets/src/InheritingBroadcastReceiver.java
84
- - assets/src/RubotoService.java
85
77
  - assets/src/InheritingClass.java
86
- - assets/src/RubotoActivity.java
87
78
  - assets/src/InheritingService.java
88
- - assets/src/org/ruboto/test/InstrumentationTestRunner.java
89
- - assets/src/org/ruboto/test/ActivityTest.java
90
- - assets/src/org/ruboto/Script.java
91
79
  - assets/src/org/ruboto/RubotoDialog.java
92
- - assets/src/InheritingActivity.java
80
+ - assets/src/org/ruboto/Script.java
81
+ - assets/src/org/ruboto/test/ActivityTest.java
82
+ - assets/src/org/ruboto/test/InstrumentationTestRunner.java
83
+ - assets/src/RubotoActivity.java
84
+ - assets/src/RubotoBroadcastReceiver.java
85
+ - assets/src/RubotoService.java
86
+ - assets/test/assets/scripts/test_helper.rb
93
87
  - bin/ruboto
94
- - lib/ruboto.rb
95
88
  - lib/java_class_gen/android_api.xml
96
89
  - lib/java_class_gen/InheritingClass.java.erb
97
90
  - lib/ruboto/api.rb
91
+ - lib/ruboto/commands/base.rb
98
92
  - lib/ruboto/core_ext/array.rb
99
93
  - lib/ruboto/core_ext/object.rb
100
- - lib/ruboto/util/xml_element.rb
101
- - lib/ruboto/util/main_fix.rb
102
- - lib/ruboto/util/scan_in_api.rb
94
+ - lib/ruboto/util/asset_copier.rb
103
95
  - lib/ruboto/util/build.rb
104
- - lib/ruboto/util/update.rb
105
- - lib/ruboto/util/log_action.rb
106
96
  - lib/ruboto/util/code_formatting.rb
97
+ - lib/ruboto/util/log_action.rb
98
+ - lib/ruboto/util/main_fix.rb
107
99
  - lib/ruboto/util/objectspace.rb
100
+ - lib/ruboto/util/scan_in_api.rb
101
+ - lib/ruboto/util/update.rb
108
102
  - lib/ruboto/util/verify.rb
109
- - lib/ruboto/util/asset_copier.rb
110
- - lib/ruboto/commands/base.rb
111
- - test/app_test.rb
103
+ - lib/ruboto/util/xml_element.rb
104
+ - lib/ruboto.rb
105
+ - test/activity/image_button.rb
106
+ - test/activity/image_button_and_button.rb
107
+ - test/activity/image_button_and_button_test.rb
108
+ - test/activity/image_button_test.rb
109
+ - test/app_test_methods.rb
110
+ - test/rake_test.rb
111
+ - test/ruboto_gen_test.rb
112
+ - test/ruboto_update_test.rb
113
+ - test/service_test.rb
112
114
  - test/test_helper.rb
113
115
  has_rdoc: true
114
116
  homepage: http://ruboto.org/
@@ -120,27 +122,23 @@ rdoc_options: []
120
122
  require_paths:
121
123
  - lib
122
124
  required_ruby_version: !ruby/object:Gem::Requirement
123
- none: false
124
125
  requirements:
125
126
  - - ">="
126
127
  - !ruby/object:Gem::Version
127
- hash: 3
128
128
  segments:
129
129
  - 0
130
130
  version: "0"
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
- none: false
133
132
  requirements:
134
133
  - - ">="
135
134
  - !ruby/object:Gem::Version
136
- hash: 3
137
135
  segments:
138
136
  - 0
139
137
  version: "0"
140
138
  requirements: []
141
139
 
142
140
  rubyforge_project: ruboto-core
143
- rubygems_version: 1.3.7
141
+ rubygems_version: 1.3.6
144
142
  signing_key:
145
143
  specification_version: 3
146
144
  summary: Platform for writing Android apps in Ruby
data/test/app_test.rb DELETED
@@ -1,44 +0,0 @@
1
- require File.expand_path("test_helper", File.dirname(__FILE__))
2
- require 'fileutils'
3
-
4
- class AppTest < Test::Unit::TestCase
5
- PACKAGE ='org.ruboto.sample_app'
6
- APP_NAME = 'RubotoSampleApp'
7
- TMP_DIR = File.join PROJECT_DIR, 'tmp'
8
- APP_DIR = File.join PROJECT_DIR, 'tmp', APP_NAME
9
-
10
- def setup
11
- Dir.mkdir TMP_DIR unless File.exists? TMP_DIR
12
- FileUtils.rm_rf APP_DIR if File.exists? APP_DIR
13
- system "jruby -rubygems -I #{PROJECT_DIR}/lib #{PROJECT_DIR}/bin/ruboto gen app --package #{PACKAGE} --path #{APP_DIR} --name #{APP_NAME} --target android-8 --min_sdk android-8 --activity #{APP_NAME}Activity"
14
- raise "gen app failed with return code #$?" unless $? == 0
15
- end
16
-
17
- def teardown
18
- # FileUtils.rm_rf APP_DIR if File.exists? APP_DIR
19
- end
20
-
21
- def test_that_tests_work_on_new_project
22
- run_app_tests
23
- end
24
-
25
- def test_that_yaml_loads
26
- filename = "#{APP_DIR}/assets/scripts/ruboto_sample_app_activity.rb"
27
- s = File.read(filename)
28
- s.gsub!(/(require 'ruboto.rb')/, "\\1\nrequire 'yaml'")
29
- File.open(filename, 'w'){|f| f << s}
30
- run_app_tests
31
- end
32
-
33
- private
34
-
35
- def run_app_tests
36
- Dir.chdir "#{APP_DIR}/test" do
37
- system "adb uninstall #{PACKAGE}"
38
- system 'ant run-tests'
39
- raise "tests failed with return code #$?" unless $? == 0
40
- system "adb uninstall #{PACKAGE}"
41
- end
42
- end
43
-
44
- end