motion-gradle 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86b22089417eee273f9271f6e4c5b418497b331f
4
- data.tar.gz: 05869cf33b6e7f7cd4e8e9a865ae2966ebcebf17
3
+ metadata.gz: 2db29c4ac2fc229ad9899efe6569f68e21c72909
4
+ data.tar.gz: dc3a064653c9d84121243e0be0837fcb16796065
5
5
  SHA512:
6
- metadata.gz: 22bc8d2f24a53002ad3eb615fcf1b5b484b9470bb0595e84d7aa5002b82d90d92f8019d939cb8edd7c057a4707f80f8351f322b855c20e095dfe99843f785920
7
- data.tar.gz: ac3e755d850b48828927e551dbeafe35796af21a2655dc2227770f9e98bc4c79d5c136b7965dbca04e718b1b3c2e132ba88a87876ff4cae473ca01655e786600
6
+ metadata.gz: af50b4a67a3e044ea7695ef41f3071b03d11f9598b458b11512d0c7f257cd805ddb116ffa6b67a9a02aadd38d498415d84a8f52a9b34da0d596818982e1a4b6a
7
+ data.tar.gz: 6f6d99a0ee411099f6d50350cde8a79b1fb8f03e9be27092feb09a0ac3a89d4b784ed90ed311d8bc3e145b7db82903cc204c36fa51dd75be43bd3cc17bc2cbce
@@ -2,6 +2,7 @@ apply plugin: 'java'
2
2
  apply plugin: 'eclipse'
3
3
 
4
4
  task generateDependencies(type: Jar) {
5
+ exclude 'META-INF/LICENSE'
5
6
  exclude 'META-INF/LICENSE.txt'
6
7
  exclude 'META-INF/NOTICE.txt'
7
8
 
@@ -1,9 +1,9 @@
1
1
  unless defined?(Motion::Project::Config)
2
- raise "This file must be required within a RubyMotion project Rakefile."
2
+ raise("This file must be required within a RubyMotion project Rakefile.")
3
3
  end
4
4
 
5
5
  if Motion::Project::App.template != :android
6
- raise "This file must be required within a RubyMotion Android project."
6
+ raise("This file must be required within a RubyMotion Android project.")
7
7
  end
8
8
 
9
9
  module Motion::Project
@@ -53,10 +53,10 @@ module Motion::Project
53
53
  unless File.exist?(support_repository)
54
54
  gui_path = File.join(ENV['RUBYMOTION_ANDROID_SDK'], 'tools', 'android')
55
55
  $stderr.puts("[!] To use motion-gradle you need to install `Extras/Android Support Repository`. Open the gui to install it : #{gui_path}")
56
- exit 1
56
+ exit(1)
57
57
  end
58
58
 
59
- system "#{gradle_command} --build-file #{gradle_build_file} generateDependencies"
59
+ system("#{gradle_command} --build-file #{gradle_build_file} generateDependencies")
60
60
  end
61
61
 
62
62
  # Helpers
@@ -64,7 +64,7 @@ module Motion::Project
64
64
  template_path = File.expand_path("../gradle.erb", __FILE__)
65
65
  template = ERB.new(File.new(template_path).read, nil, "%")
66
66
  File.open(gradle_build_file, 'w') do |io|
67
- io.puts template.result(binding)
67
+ io.puts(template.result(binding))
68
68
  end
69
69
  end
70
70
 
@@ -74,8 +74,8 @@ module Motion::Project
74
74
 
75
75
  def gradle_command
76
76
  unless system("command -v #{@gradle_path} >/dev/null")
77
- $stderr.puts "[!] #{@gradle_path} command doesn’t exist. Verify your gradle installation. Or set a different one with `app.gradle.path=(path)`"
78
- exit 1
77
+ $stderr.puts("[!] #{@gradle_path} command doesn’t exist. Verify your gradle installation. Or set a different one with `app.gradle.path=(path)`")
78
+ exit(1)
79
79
  end
80
80
 
81
81
  if ENV['MOTION_GRADLE_DEBUG']
@@ -104,7 +104,7 @@ end
104
104
  namespace :gradle do
105
105
  desc "Download and build dependencies"
106
106
  task :install do
107
- FileUtils.mkdir_p Motion::Project::Gradle::GRADLE_ROOT
107
+ FileUtils.mkdir_p(Motion::Project::Gradle::GRADLE_ROOT)
108
108
  dependencies = App.config.gradle
109
109
  dependencies.install!(true)
110
110
  end
@@ -114,8 +114,8 @@ namespace :clean do
114
114
  task :all do
115
115
  dir = Motion::Project::Gradle::GRADLE_ROOT
116
116
  if File.exist?(dir)
117
- App.info 'Delete', dir
118
- rm_rf dir
117
+ App.info('Delete', dir)
118
+ rm_rf(dir)
119
119
  end
120
120
  end
121
121
  end
@@ -1,5 +1,5 @@
1
1
  module Motion::Project
2
2
  class Gradle
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-gradle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joffrey Jaffeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-11 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: motion-gradle allows RubyMotion Android projects to have access to the
14
14
  Gradle dependency manager.