motion-installr 1.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bdadb9c5562373f5d9a2f7d9f0afed148dd26eb8
4
+ data.tar.gz: cdfc6ae484c331a90911304e852daabde596c4a3
5
+ SHA512:
6
+ metadata.gz: b56e2780241af7beb7629490f8b601fb3b4252276e7a6d294d8dfb97c5c4a1438443567ea340caa8fb7530132b3ab02d17d53d14e2fb05edc288335ae600bf91
7
+ data.tar.gz: 2195aa5a591734d678a289b439e08e7c3ef5c6a97772fcccd8d8443c33775f5d6efb3562d658121678ae9fb2c8872634fc8350cc874470ce106c5d47babe7a73
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in motion-installr.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Jack Dean Watson-Hamblin
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Motion::Installr
2
+
3
+ Just like motion-testflight and motion-hockeyapp, motion-installr is a gem to make it easy to configure your application for ad-hoc distribution, but unlike the overly complicated TestFlight and HockeyApp, everything is super easy with Installr. Also I'm not being paid to run this, I just really like Installr.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your RubyMotion app's Gemfile:
8
+
9
+ gem 'motion-installr'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install motion-installr
18
+
19
+ And require it in your Rakefile:
20
+
21
+ require 'motion-installr'
22
+
23
+ ## Usage
24
+
25
+ Once you've got it installed, you're going to need a account with Installr, so head on over and [sign up for one of their free plans](http://installrapp.com/) that lets you share with 1-5 testers.
26
+
27
+ With your account set up, you're going to need 3 things. A distribution certificate and provisioning profile, which you can create in the iOS dev center, and to find your Installr API key, which you can generate and copy from ['My Account'](https://www.installrapp.com/dashboard/index#/account) on the Installr website.
28
+
29
+ For instructions on setting up your certificates and profiles, watch [Episode 22 of MotionInMotion - "Distribute your RubyMotion apps with TestFlight and HockeyApp"](https://motioninmotion.tv/screencasts/23).
30
+
31
+ Now for the super easy part.
32
+
33
+ Inside of your setup block in your Rakefile, configure the following.
34
+
35
+ ```ruby
36
+ Motion::Project::App.setup do |app|
37
+ # ...
38
+ app.development do
39
+ app.codesign_certificate = 'iPhone Distribution: Jane Doe (S0M3T3AM1D)'
40
+ app.provisioning_profile = '/path/to/your/provisioning/profile.mobileprovision'
41
+ app.entitlements['get-task-allow'] = false
42
+ app.installr_api_token = 'YOUR API TOKEN HERE'
43
+ end
44
+ # ...
45
+ end
46
+ ```
47
+
48
+ Super simple, just set these four settings.
49
+
50
+ Now you can run `rake installr notes="My Release Notes"` to push a build to Installr and then invite your testers.
51
+
52
+ Note that `notes="My Release Notes"` is just an environment variable, so you can just write a bash script to set the notes variable and keep track of your notes in there, I show you show to do this in Episode 22 as well.
53
+
54
+ ## Contributing
55
+
56
+ 1. Fork it ( http://github.com/FluffyJack/motion-installr/fork )
57
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
58
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
59
+ 4. Push to the branch (`git push origin my-new-feature`)
60
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,6 @@
1
+ unless defined?(Motion::Project::Config)
2
+ raise 'This file must be required within a RubyMotion project Rakefile.'
3
+ end
4
+
5
+ require 'motion/installr/version'
6
+ require 'motion/project/installr'
@@ -0,0 +1,5 @@
1
+ module Motion
2
+ module Installr
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,37 @@
1
+ unless defined?(Motion::Project::Config)
2
+ raise 'This file must be required within a RubyMotion project Rakefile.'
3
+ end
4
+
5
+ module Motion; module Project; class Config
6
+ attr_accessor :installrapp_mode
7
+
8
+ variable :installr_api_token
9
+
10
+ def installrapp(&block)
11
+ yield self if block_given? && installrapp_mode?
12
+ end
13
+
14
+ def installrapp_mode?
15
+ @installrapp_mode == true
16
+ end
17
+ end; end; end
18
+
19
+ namespace 'installr' do
20
+ desc 'Submit an archive to InstallrApp'
21
+ task :submit do
22
+ App.config_without_setup.installrapp_mode = true
23
+
24
+ release_notes = ENV['notes']
25
+ App.fail 'You forgot to write some release notes' unless release_notes
26
+
27
+ Rake::Task['archive'].invoke
28
+
29
+ curl = "curl https://www.installrapp.com/apps.json -H \"X-InstallrAppToken: #{App.config.installr_api_token}\" -F qqfile=@\"#{App.config.archive}\" -F releaseNotes=\"#{release_notes}\" -F notify=true"
30
+
31
+ App.info 'Run', curl
32
+ sh curl
33
+ end
34
+ end
35
+
36
+ desc 'Same as installr:submit'
37
+ task 'installr' => 'installr:submit'
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'motion/installr/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "motion-installr"
8
+ spec.version = Motion::Installr::VERSION
9
+ spec.authors = ["Jack Dean Watson-Hamblin"]
10
+ spec.email = ["info@fluffyjack.com"]
11
+ spec.summary = %q{RubyMotion gem for Ad-hoc deployment using the amazing Installr service! https://www.installrapp.com/}
12
+ spec.description = %q{Just like motion-testflight and motion-hockeyapp, motion-installr is a gem to make it easy to configure your application for ad-hoc distribution, but unlike the overly complicated TestFlight and HockeyApp, everything is super easy with Installr. Also I'm not being paid to run this, I just really like Installr.}
13
+ spec.homepage = 'https://github.com/FluffyJack/motion-installr'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.5"
21
+ spec.add_development_dependency "rake"
22
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: motion-installr
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jack Dean Watson-Hamblin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Just like motion-testflight and motion-hockeyapp, motion-installr is
42
+ a gem to make it easy to configure your application for ad-hoc distribution, but
43
+ unlike the overly complicated TestFlight and HockeyApp, everything is super easy
44
+ with Installr. Also I'm not being paid to run this, I just really like Installr.
45
+ email:
46
+ - info@fluffyjack.com
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files: []
50
+ files:
51
+ - ".gitignore"
52
+ - Gemfile
53
+ - LICENSE.txt
54
+ - README.md
55
+ - Rakefile
56
+ - lib/motion-installr.rb
57
+ - lib/motion/installr/version.rb
58
+ - lib/motion/project/installr.rb
59
+ - motion-installr.gemspec
60
+ homepage: https://github.com/FluffyJack/motion-installr
61
+ licenses:
62
+ - MIT
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.1.11
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: RubyMotion gem for Ad-hoc deployment using the amazing Installr service!
84
+ https://www.installrapp.com/
85
+ test_files: []