ruboto 1.6.0 → 1.6.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.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +12 -3
- data/Gemfile.lock +3 -3
- data/README.md +1 -0
- data/RELEASE_CANDICATE_DOC.md +3 -4
- data/RELEASE_DOC.md +10 -30
- data/assets/rakelib/ruboto.rake +1 -3
- data/lib/ruboto/commands/base.rb +2 -0
- data/lib/ruboto/util/setup.rb +20 -50
- data/lib/ruboto/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eefe7332986dc64b5915c9fc4367bf166324078e
|
4
|
+
data.tar.gz: c4b630fd7f08490b9257aba82144191704e4f787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6835a4b69fd82d7203855d09ef2234ef64e6d4b71ec820d1491058a72ae63a26ef36790f77e6d47753e34c4a367b11b82f51c2fd64598aa75701619fc3d5a6bb
|
7
|
+
data.tar.gz: 4465007909cc76805c7801c088639ae1ce3567743c653c80c8ef3341cd05804e32147ec9d8632eb43d3648fa922aac378777c155ba33476740c711a99833019c
|
data/CONTRIBUTING.md
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
Contributing
|
2
2
|
============
|
3
3
|
|
4
|
-
Want to contribute? Great!
|
5
|
-
|
4
|
+
Want to contribute? Great! We look forward to what you can do.
|
5
|
+
|
6
|
+
## Communication
|
7
|
+
|
8
|
+
Meet us in #ruboto on irc.freenode.net or on [https://gitter.im/ruboto/ruboto]
|
9
|
+
or on the Google Group.
|
10
|
+
|
11
|
+
## How to contribute
|
12
|
+
|
13
|
+
Fork the project and start coding! :)
|
14
|
+
|
15
|
+
"But I don't understand it well enough to contribute by forking the project!"
|
6
16
|
|
7
|
-
"But I don't understand it well enough to contribute by forking the project!"
|
8
17
|
That's fine. Equally helpful:
|
9
18
|
|
10
19
|
* Use Ruboto and tell us how it could be better.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruboto (1.6.
|
4
|
+
ruboto (1.6.1)
|
5
5
|
main (~> 5.2)
|
6
6
|
net-telnet (~> 0.1.1)
|
7
7
|
rake (>= 11.3, < 13)
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
method_source (~> 0.8.1)
|
30
30
|
slop (~> 3.4)
|
31
31
|
rake (12.0.0)
|
32
|
-
rubyzip (1.2.
|
32
|
+
rubyzip (1.2.1)
|
33
33
|
slop (3.6.0)
|
34
34
|
|
35
35
|
PLATFORMS
|
@@ -40,4 +40,4 @@ DEPENDENCIES
|
|
40
40
|
ruboto!
|
41
41
|
|
42
42
|
BUNDLED WITH
|
43
|
-
1.13.
|
43
|
+
1.13.7
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
[](http://badge.fury.io/rb/ruboto)
|
2
2
|
[](https://travis-ci.org/ruboto/ruboto)
|
3
3
|
[](https://codeclimate.com/github/ruboto/ruboto)
|
4
|
+
[](https://gitter.im/ruboto/ruboto)
|
4
5
|
|
5
6
|
<a href="https://gratipay.com/ruboto/" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/dcd1e367172f3fa649a334e1ee6fb334f16ed8d8/68747470733a2f2f63646e2e7261776769742e636f6d2f67726174697061792f67726174697061792d62616467652f322e782e782f646973742f67726174697061792e706e67" alt="Support via Gratipay" data-canonical-src="https://cdn.rawgit.com/gratipay/gratipay-badge/2.x.x/dist/gratipay.png" align="right" style="max-width:100%;"></a>
|
6
7
|
|
data/RELEASE_CANDICATE_DOC.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
Subject: [ANN] Ruboto 1.6.
|
1
|
+
Subject: [ANN] Ruboto 1.6.1 release candidate
|
2
2
|
|
3
3
|
Hi all!
|
4
4
|
|
5
|
-
The Ruboto 1.6.
|
5
|
+
The Ruboto 1.6.1 release candidate is now available.
|
6
6
|
|
7
|
-
|
8
|
-
the Android SDK to level 25.
|
7
|
+
This is a maintenance release following changes in the Android tooling.
|
9
8
|
|
10
9
|
As always we need your help and feedback to ensure the quality of the release. Please install the release candidate using
|
11
10
|
|
data/RELEASE_DOC.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
Subject: [ANN] Ruboto 1.6.
|
1
|
+
Subject: [ANN] Ruboto 1.6.1 released!
|
2
2
|
|
3
|
-
The Ruboto team is pleased to announce the release of Ruboto 1.6.
|
3
|
+
The Ruboto team is pleased to announce the release of Ruboto 1.6.1.
|
4
4
|
|
5
5
|
Ruboto (JRuby on Android) is a platform for developing full stand-alone
|
6
6
|
apps for Android using the Ruby language and libraries. It includes
|
@@ -8,47 +8,27 @@ support libraries and generators for creating projects, classes, tests,
|
|
8
8
|
and more. The complete APIs of Android, Java, and Ruby are available to
|
9
9
|
you using the Ruby language.
|
10
10
|
|
11
|
-
New in version 1.6.
|
11
|
+
New in version 1.6.1:
|
12
12
|
|
13
|
-
|
14
|
-
the Android SDK to level 25.
|
15
|
-
|
16
|
-
API Changes:
|
17
|
-
|
18
|
-
* Issue #816 Set default api level for new apps to 19 (Android 4.4
|
19
|
-
KitKat)
|
20
|
-
* Issue #821 Update to Android SDK Tools 25
|
21
|
-
* Issue #826 Rename 'assert_matches' to 'assert_match' for Minitest
|
22
|
-
compatibility
|
13
|
+
This is a maintenance release following changes in the Android tooling.
|
23
14
|
|
24
15
|
Features:
|
25
16
|
|
26
|
-
* Issue #
|
27
|
-
* Issue #817 Add support for Android 7.1
|
28
|
-
* Issue #819 Add support for concurrent-ruby gem
|
29
|
-
* Issue #820 Reload scripts with large stack during 'rake boing'
|
17
|
+
* Issue #836 Add JRuby jars to new projects by default
|
30
18
|
|
31
19
|
Bugfixes:
|
32
20
|
|
33
|
-
* Issue #
|
34
|
-
* Issue #
|
35
|
-
|
36
|
-
|
37
|
-
Support:
|
38
|
-
|
39
|
-
* Issue #809 [Solved] JRuby 1.7.22 and Crosswalk issue (multidex)
|
40
|
-
Verification error in java.io.File[]
|
41
|
-
org.jruby.util.JRubyFile.listRoots()
|
42
|
-
* Issue #822 How well does Ruboto work with Shoes 4?
|
21
|
+
* Issue #806 Ruboto setup fails: get_android_sdk_version
|
22
|
+
* Issue #811 Package installer error
|
23
|
+
* Issue #824 undefined method '[]' for nil:NilClass (NoMethodError)
|
43
24
|
|
44
25
|
Internal:
|
45
26
|
|
46
|
-
* Issue #
|
47
|
-
* Issue #829 Use the new authenticated protocol to manage emulators
|
27
|
+
* Issue #827 Assume multi-dex on first build
|
48
28
|
|
49
29
|
You can find a complete list of issues here:
|
50
30
|
|
51
|
-
* https://github.com/ruboto/ruboto/issues?state=closed&milestone=
|
31
|
+
* https://github.com/ruboto/ruboto/issues?state=closed&milestone=43
|
52
32
|
|
53
33
|
|
54
34
|
Installation:
|
data/assets/rakelib/ruboto.rake
CHANGED
@@ -664,9 +664,7 @@ file BUNDLE_JAR => [GEM_FILE, GEM_LOCK_FILE] do
|
|
664
664
|
|
665
665
|
# Override RUBY_ENGINE (we can bundle from MRI for JRuby)
|
666
666
|
Gem.platforms = [Gem::Platform::RUBY, Gem::Platform.new("universal-dalvik-#{sdk_level}"), Gem::Platform.new('universal-java')]
|
667
|
-
|
668
|
-
ENV['GEM_PATH'] = BUNDLE_PATH
|
669
|
-
Gem.paths = BUNDLE_PATH
|
667
|
+
Gem.paths = {'GEM_HOME' => BUNDLE_PATH, 'GEM_PATH' => BUNDLE_PATH}
|
670
668
|
Gem.refresh
|
671
669
|
old_verbose, $VERBOSE = $VERBOSE, nil
|
672
670
|
begin
|
data/lib/ruboto/commands/base.rb
CHANGED
@@ -90,6 +90,7 @@ module Ruboto
|
|
90
90
|
target = params['target'].value
|
91
91
|
min_sdk = params['min-sdk'].value || target
|
92
92
|
with_jruby = params['with-jruby'].value
|
93
|
+
with_jruby = '1.7.25' unless with_jruby.is_a?(Gem::Version)
|
93
94
|
ruby_version = params['ruby-version'].value
|
94
95
|
force = params['force'].value
|
95
96
|
|
@@ -143,6 +144,7 @@ module Ruboto
|
|
143
144
|
log_action('Generating the default Activity and script') do
|
144
145
|
generate_inheriting_file 'Activity', activity, package
|
145
146
|
end
|
147
|
+
FileUtils.touch 'bin/classes2.dex'
|
146
148
|
end
|
147
149
|
|
148
150
|
puts "\nHello, #{name}\n"
|
data/lib/ruboto/util/setup.rb
CHANGED
@@ -78,7 +78,14 @@ module Ruboto
|
|
78
78
|
|
79
79
|
def android_package_directory
|
80
80
|
return ENV['ANDROID_HOME'] if ENV['ANDROID_HOME']
|
81
|
-
|
81
|
+
user_dir = if windows?
|
82
|
+
'AppData/Local/Android/android-sdk'
|
83
|
+
elsif File.exist? "android-sdk-#{android_package_os_id}"
|
84
|
+
"android-sdk-#{android_package_os_id}"
|
85
|
+
else
|
86
|
+
"android-sdk"
|
87
|
+
end
|
88
|
+
File.join File.expand_path('~'), user_dir
|
82
89
|
end
|
83
90
|
|
84
91
|
def android_haxm_directory
|
@@ -139,25 +146,9 @@ module Ruboto
|
|
139
146
|
|
140
147
|
# Get's the Page to Scrape
|
141
148
|
page_content = Net::HTTP.get(URI.parse(SDK_DOWNLOAD_PAGE))
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
regex = '(\>android-sdk.*macosx.zip)'
|
146
|
-
when LINUX
|
147
|
-
regex = '(\>android-sdk.*.tgz)'
|
148
|
-
when WINDOWS
|
149
|
-
regex = '(\>installer_.*.exe)'
|
150
|
-
else
|
151
|
-
raise "Unknown host os: #{android_package_os_id}"
|
152
|
-
end
|
153
|
-
|
154
|
-
link = page_content.scan(/#{regex}/)
|
155
|
-
raise "SDK link cannot be found on download page: #{SDK_DOWNLOAD_PAGE}" if link.nil?
|
156
|
-
|
157
|
-
version = link.to_s.match(/r(\d+.)?(\d+.)?(\d+)/)[0]
|
158
|
-
raise "SDK version cannot be determined from download page: #{SDK_DOWNLOAD_PAGE}" if version.nil?
|
159
|
-
|
160
|
-
version.delete! 'r'
|
149
|
+
links = page_content.scan(/>tools_r(\d+\.\d+\.\d+)-#{android_package_os_id}.zip</)
|
150
|
+
raise "SDK link cannot be found on download page: #{SDK_DOWNLOAD_PAGE}" if links.empty?
|
151
|
+
links[0][0]
|
161
152
|
end
|
162
153
|
|
163
154
|
#########################################
|
@@ -529,35 +520,12 @@ module Ruboto
|
|
529
520
|
end
|
530
521
|
if accept_all || a == 'Y' || a.empty?
|
531
522
|
Dir.chdir File.expand_path('~/') do
|
532
|
-
|
533
|
-
|
534
|
-
asdk_file_name = "
|
523
|
+
FileUtils.mkdir_p android_package_directory
|
524
|
+
Dir.chdir android_package_directory do
|
525
|
+
asdk_file_name = "tools_r#{get_android_sdk_version}-#{android_package_os_id}.zip"
|
535
526
|
download(asdk_file_name)
|
536
527
|
unzip(accept_all, asdk_file_name)
|
537
528
|
FileUtils.rm_f asdk_file_name
|
538
|
-
when LINUX
|
539
|
-
asdk_file_name = "android-sdk_r#{get_android_sdk_version}-#{android_package_os_id}.tgz"
|
540
|
-
download asdk_file_name
|
541
|
-
system "tar -xzf #{asdk_file_name}"
|
542
|
-
FileUtils.rm_f asdk_file_name
|
543
|
-
when WINDOWS
|
544
|
-
# FIXME(uwe): Detect and warn if we are not "elevated" with adminstrator rights.
|
545
|
-
#set IS_ELEVATED=0
|
546
|
-
#whoami /groups | findstr /b /c:"Mandatory Label\High Mandatory Level" | findstr /c:"Enabled group" > nul: && set IS_ELEVATED=1
|
547
|
-
#if %IS_ELEVATED%==0 (
|
548
|
-
# echo You must run the command prompt as administrator to install.
|
549
|
-
# exit /b 1
|
550
|
-
#)
|
551
|
-
|
552
|
-
asdk_file_name = "installer_r#{get_android_sdk_version}-#{android_package_os_id}.exe"
|
553
|
-
download(asdk_file_name)
|
554
|
-
puts "Installing #{asdk_file_name}..."
|
555
|
-
system "#{WINDOWS_ELEVATE_CMD} #{asdk_file_name}"
|
556
|
-
raise "Unexpected exit code while installing the Android SDK: #{$?.exitstatus}" unless $? == 0
|
557
|
-
FileUtils.rm_f asdk_file_name
|
558
|
-
return
|
559
|
-
else
|
560
|
-
raise "Unknown host os: #{RbConfig::CONFIG['host_os']}"
|
561
529
|
end
|
562
530
|
end
|
563
531
|
end
|
@@ -589,19 +557,21 @@ module Ruboto
|
|
589
557
|
print "Downloading #{filename}: #{body.length / 1024**2}MB/#{length / 1024**2}MB #{(body.length * 100) / length}%\r"
|
590
558
|
end
|
591
559
|
end
|
560
|
+
puts
|
592
561
|
File.open(filename, 'wb') { |f| f << body }
|
593
562
|
end
|
594
563
|
|
595
564
|
|
596
|
-
def download(
|
597
|
-
print "Downloading #{
|
598
|
-
uri = URI("
|
599
|
-
process_download(
|
565
|
+
def download(file_name)
|
566
|
+
print "Downloading #{file_name}: \r"
|
567
|
+
uri = URI("https://dl.google.com/android/repository/#{file_name}")
|
568
|
+
process_download(file_name, uri)
|
600
569
|
end
|
601
570
|
|
602
571
|
|
603
572
|
def unzip(accept_all, asdk_file_name, extract_to='.')
|
604
573
|
require 'zip'
|
574
|
+
puts "Unzipping #{asdk_file_name.inspect}"
|
605
575
|
Zip::File.open(asdk_file_name) do |zipfile|
|
606
576
|
zipfile.each do |f|
|
607
577
|
f.restore_permissions = true
|
data/lib/ruboto/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Jackoway
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: main
|
@@ -111,14 +111,12 @@ files:
|
|
111
111
|
- Vagrantfile
|
112
112
|
- assets/.gitignore
|
113
113
|
- assets/Rakefile
|
114
|
-
- assets/bin/LAST_UPDATE
|
115
114
|
- assets/libs/dx.jar
|
116
115
|
- assets/rakelib/ruboto.device.rb
|
117
116
|
- assets/rakelib/ruboto.rake
|
118
117
|
- assets/rakelib/ruboto.stdlib.rake
|
119
118
|
- assets/rakelib/ruboto.stdlib.rb
|
120
119
|
- assets/rakelib/ruboto.stdlib.yml
|
121
|
-
- assets/res/.DS_Store
|
122
120
|
- assets/res/drawable-hdpi/ic_launcher.png
|
123
121
|
- assets/res/drawable-ldpi/ic_launcher.png
|
124
122
|
- assets/res/drawable-mdpi/ic_launcher.png
|
@@ -279,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
277
|
version: '0'
|
280
278
|
requirements: []
|
281
279
|
rubyforge_project: ruboto/ruboto
|
282
|
-
rubygems_version: 2.
|
280
|
+
rubygems_version: 2.6.8
|
283
281
|
signing_key:
|
284
282
|
specification_version: 4
|
285
283
|
summary: A platform for developing apps using JRuby on Android.
|