motion-devices 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # MotionDevices
2
+
3
+ This tiny gem adds a rake task for each device you can deploy your RubyMotion app to. To configure, put a configuration file in one or more of these places:
4
+
5
+ * `<PROJECT_ROOT>/config/devices.yml`
6
+ * `<HOME>/.devices.yml`
7
+ * `/etc/devices.yml`
8
+
9
+ For each device, the config file must contain the device's name and ID, like so:
10
+
11
+ iphone5: e73f82f9862a356ffe1d11fb61108fc6
12
+ iphone4: 09f6a3185f8d431c37651cf6836e6d37
13
+ ipad: 422258808a90789d3c15cd8249bd00a3
14
+
15
+ The gem will define tasks for each defined device in all the configuration files that it finds.
16
+
17
+ ## Usage
18
+
19
+ Install the gem with
20
+
21
+ gem install 'motion-devices'
22
+
23
+ Either require the gem from your Rakefile:
24
+
25
+ require 'motion-devices'
26
+
27
+ or add it to your Gemfile, if you're using bundler (which you should):
28
+
29
+ gem 'motion-devices'
30
+
31
+ # Forking
32
+
33
+ Feel free to fork and submit pull requests!
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ Bundler.setup
4
+ Bundler.require
@@ -0,0 +1,14 @@
1
+ file_paths = ['config/devices.yml', "#{ENV['HOME']}/.devices.yml", '/etc/devices.yml']
2
+
3
+ file_paths.each do |path|
4
+ if File.exists?(path)
5
+ namespace :device do
6
+ YAML.load(File.read(path)).each do |name, id|
7
+ desc "Deploy on #{name}"
8
+ task name do
9
+ sh "rake device id=#{id}"
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1 @@
1
+ require 'motion/project/devices'
@@ -0,0 +1,16 @@
1
+ # -*- encoding: utf-8 -*-
2
+ Gem::Specification.new do |s|
3
+ s.name = "motion-devices"
4
+ s.version = '0.0.1'
5
+ s.authors = ["Thomas Kadauke"]
6
+ s.email = ["thomas.kadauke@googlemail.com"]
7
+ s.homepage = "https://github.com/tkadauke/motion-devices"
8
+ s.summary = "Distribute RubyMotion apps to multiple devices"
9
+ s.description = "RubyMotion rake task that allows easy distribution to multiple devices"
10
+
11
+ s.files = `git ls-files`.split($\)
12
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
13
+ s.require_paths = ["lib"]
14
+
15
+ s.add_development_dependency 'rake'
16
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: motion-devices
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Thomas Kadauke
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: RubyMotion rake task that allows easy distribution to multiple devices
31
+ email:
32
+ - thomas.kadauke@googlemail.com
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - .gitignore
38
+ - Gemfile
39
+ - README.md
40
+ - Rakefile
41
+ - lib/motion-devices.rb
42
+ - lib/motion/project/devices.rb
43
+ - motion-support.gemspec
44
+ homepage: https://github.com/tkadauke/motion-devices
45
+ licenses: []
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ segments:
57
+ - 0
58
+ hash: -2183548939497714971
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ segments:
66
+ - 0
67
+ hash: -2183548939497714971
68
+ requirements: []
69
+ rubyforge_project:
70
+ rubygems_version: 1.8.25
71
+ signing_key:
72
+ specification_version: 3
73
+ summary: Distribute RubyMotion apps to multiple devices
74
+ test_files: []