xcjobs-testfairy 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f43ce7984790f7eccadecf54bfa5df0336ccff50
4
+ data.tar.gz: 7ae5f4d509d2a139b078033c394a1cb0c741bd41
5
+ SHA512:
6
+ metadata.gz: 14f4da02a1dd3a9d1a5c18bd2b0cd7e58b2f7d4d8c1cc471fd25c4f993288f63f99f88e8356f8394af621ac93c28bbe97cda56f43f4654d5e859ec0bc98dad78
7
+ data.tar.gz: ef1d50e1f682cbd58a12b4d23f31bcf20ff6ebe5f928a2828828d74bd2ff47934f4138e82aae177a955a01dcb1538a099ee26b4101bea80bf37255528a6de595
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in xcjobs-testfairy.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 yuki.takahashi
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,39 @@
1
+ # Xcjobs::Testfairy
2
+
3
+ TestFairy plugin for xcjobs
4
+
5
+ + [xcjobs](https://github.com/kishikawakatsumi/xcjobs)
6
+ + [testfairy](https://testfairy.com/)
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'xcjobs-testfairy'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install xcjobs-testfairy
23
+
24
+ ## Usage
25
+
26
+ ```ruby
27
+ XCJobs::Distribute::TestFairy.new do |t|
28
+ t.api_key = 'xxx...'
29
+ t.file = File.join('build', "#{Example}.ipa")
30
+ end
31
+ ```
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( https://github.com/[my-github-username]/xcjobs-testfairy/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
@@ -0,0 +1,65 @@
1
+ require 'xcjobs/distribute'
2
+
3
+ module XCJobs
4
+ module Distribute
5
+
6
+ class TestFairy < Rake::TaskLib
7
+ include Rake::DSL if defined?(Rake::DSL)
8
+ include Distribute
9
+
10
+ # required
11
+ attr_accessor :api_key
12
+ attr_accessor :file
13
+
14
+ # optional
15
+ attr_accessor :symbols_file
16
+ attr_accessor :testers_groups
17
+ attr_accessor :metrics
18
+ attr_accessor :max_duration
19
+ attr_accessor :video
20
+ attr_accessor :video_quality
21
+ attr_accessor :video_rate
22
+ attr_accessor :icon_watermark
23
+ attr_accessor :comment
24
+
25
+ attr_accessor :auto_update
26
+ attr_accessor :notify
27
+
28
+
29
+ def initialize()
30
+ yield self if block_given?
31
+ define
32
+ end
33
+
34
+ private
35
+
36
+ def define
37
+ namespace :distribute do
38
+ desc 'upload IPA to TestFairy'
39
+ task :testfairy do
40
+ upload('http://app.testfairy.com/api/upload', form_data)
41
+ end
42
+ end
43
+ end
44
+
45
+ def form_data
46
+ {}.tap do |fields|
47
+ fields[:file] = "@#{file}" if file
48
+ fields[:api_key] = api_key if api_key
49
+ fields[:symbols_file] = symbols_file if symbols_file
50
+ fields[:testers_groups] = testers_groups if testers_groups
51
+ fields[:metrics] = metrics if metrics
52
+ fields[:"max-duration"] = max_duration if max_duration
53
+ fields[:video] = video if video
54
+ fields[:"video-quality"] = video_quality if video_quality
55
+ fields[:"video-rate"] = video_rate if video_rate
56
+ fields[:"icon-watermark"] = icon_watermark if icon_watermark
57
+ fields[:comment] = comment if comment
58
+ fields[:"auto-update"] = auto_update if auto_update
59
+ fields[:notify] = notify if notify
60
+ end
61
+ end
62
+ end
63
+
64
+ end
65
+ end
@@ -0,0 +1,5 @@
1
+ module Xcjobs
2
+ module Testfairy
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ require "xcjobs/testfairy/version"
2
+ require "xcjobs/testfairy/distribute"
3
+
@@ -0,0 +1,2 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'xcjobs/testfairy'
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Xcjobs::Testfairy do
4
+ it 'has a version number' do
5
+ expect(Xcjobs::Testfairy::VERSION).not_to be nil
6
+ end
7
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'xcjobs/testfairy/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "xcjobs-testfairy"
8
+ spec.version = Xcjobs::Testfairy::VERSION
9
+ spec.authors = ["ukitaka"]
10
+ spec.email = ["yuki.takahashi.1126@gmail.com"]
11
+ spec.summary = %q{testfairy plugin for xcjobs}
12
+ spec.description = %q{
13
+ testfairy plugin for xcjobs
14
+
15
+ xcjobs:
16
+ https://github.com/kishikawakatsumi/xcjobs
17
+
18
+ }
19
+ spec.homepage = "https://github.com/ukitaka/xcjobs-testfairy"
20
+ spec.license = "MIT"
21
+
22
+ spec.files = `git ls-files -z`.split("\x0")
23
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
24
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.7"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "rspec"
30
+ spec.add_development_dependency "xcjobs"
31
+ spec.add_runtime_dependency "xcjobs"
32
+ end
metadata ADDED
@@ -0,0 +1,130 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xcjobs-testfairy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - ukitaka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-04 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.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: xcjobs
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: xcjobs
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: "\n testfairy plugin for xcjobs\n\n xcjobs: \n https://github.com/kishikawakatsumi/xcjobs\n\n
84
+ \ "
85
+ email:
86
+ - yuki.takahashi.1126@gmail.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - .gitignore
92
+ - .rspec
93
+ - .travis.yml
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - lib/xcjobs/testfairy.rb
99
+ - lib/xcjobs/testfairy/distribute.rb
100
+ - lib/xcjobs/testfairy/version.rb
101
+ - spec/spec_helper.rb
102
+ - spec/xcjobs/testfairy_spec.rb
103
+ - xcjobs-testfairy.gemspec
104
+ homepage: https://github.com/ukitaka/xcjobs-testfairy
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.0.14
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: testfairy plugin for xcjobs
128
+ test_files:
129
+ - spec/spec_helper.rb
130
+ - spec/xcjobs/testfairy_spec.rb