tug 0.2.1 → 0.2.2

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: 0c3b2c85c79f8f9175c5307bb5b3318b5f7f2292
4
- data.tar.gz: ba5149d5560fc9d9be9eb61548cdb122ac462bbd
3
+ metadata.gz: 6f3fb8d373e828eeb29fd2336e21876f2dd3231d
4
+ data.tar.gz: 58dbb84525181422c8ce41e770870cbaa72d050b
5
5
  SHA512:
6
- metadata.gz: 27022ed2bfe039de7eb429b7630790ec7c8e85f16a04f554d222b4781742f7ea594b03f83242d3e842394e60c56f16bec6be750a542d94d117deea107635d805
7
- data.tar.gz: ba500f81f6a937688c8a223f591a69fcb419ac4d16ee93ba47c6ce386d377ab75ab4da8ac8895f590186d5897c10c593dfd43cd3ea30e35602209bb8d18e9b17
6
+ metadata.gz: e3475d85ed439d3db2287cebc875dc7e32249fd1334fb722fd965f7c4d9d043f91312275e46d33ce04378ba4010e042b6404338d5e084a4f68158024d6abbd9c
7
+ data.tar.gz: 5ddcced1b6bbe45377f0e40ebd4eef3f1941fdb9a589bec5088145fbbd7013dd05e49cae386b287bb6b8952fde25ccd17d9ddc0fc32d09b736d684e08455f583
data/README.md CHANGED
@@ -137,7 +137,7 @@ $ tug deploy hockeyapp
137
137
 
138
138
  >
139
139
  > The following environment variable is used to set your hockeyapp API key
140
- > * `TUG_HOCKEYAPP_API_KEY`
140
+ > * `TUG_HOCKEYAPP_API_TOKEN`
141
141
 
142
142
  ### Provision
143
143
 
data/lib/tug.rb CHANGED
@@ -30,7 +30,5 @@ require "tug/keychain/keychain"
30
30
  require "tug/deployment/deployer"
31
31
  require "tug/deployment/testflight"
32
32
  require "tug/deployment/hockeyapp"
33
- require "tug/deployment/notes_parser"
34
- require "tug/deployment/notes_file_parser"
35
33
 
36
- require "tug/notify/slack"
34
+ require "tug/notify/slack"
@@ -12,8 +12,7 @@ module Tug
12
12
  @api_token = options[:api_token]
13
13
  @notify = options[:notify]
14
14
  @dsym = options[:dsym]
15
-
16
- self.notes = options[:release_notes]
15
+ @notes = options[:release_notes]
17
16
  end
18
17
 
19
18
  def deploy
@@ -22,11 +21,6 @@ module Tug
22
21
  end
23
22
  end
24
23
 
25
- def notes=(notes)
26
- parser = Tug::NotesParser.notes_parser(notes)
27
- @notes = parser.notes
28
- end
29
-
30
24
  private
31
25
 
32
26
  def url
@@ -34,9 +28,9 @@ module Tug
34
28
  end
35
29
 
36
30
  def params
37
- params = "-F notes='#{notes}' "
38
- params += "-F dsym=@#{dsym} "
39
- params += "-F notify=#{notify} "
31
+ params = "-F \"notes=<#{notes}\" "
32
+ params += "-F \"dsym=@#{dsym}\" "
33
+ params += "-F \"notify=#{notify}\" "
40
34
  end
41
35
  end
42
- end
36
+ end
@@ -19,10 +19,10 @@ module Tug
19
19
 
20
20
  def params
21
21
  params = super
22
- params += "-F file=@#{file} "
23
- params += "-F api_token='#{api_token}' "
24
- params += "-F team_token='#{team_token}' "
25
- params += "-F distribution_lists='#{lists}' "
22
+ params += "-F \"file=@#{file}\" "
23
+ params += "-F \"api_token=#{api_token}\" "
24
+ params += "-F \"team_token=#{team_token}\" "
25
+ params += "-F \"distribution_lists=#{lists}\" "
26
26
  end
27
27
  end
28
- end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module Tug
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -17,18 +17,18 @@ describe Tug::Deployer do
17
17
  describe "when deploying" do
18
18
 
19
19
  it "should have some release notes" do
20
- expect(IO).to receive(:popen).with(/-F notes='Notes'/)
20
+ expect(IO).to receive(:popen).with(/-F "notes=<Notes"/)
21
21
  @deployer.deploy
22
22
  end
23
23
 
24
24
  it "should notify" do
25
- expect(IO).to receive(:popen).with(/-F notify=1/)
25
+ expect(IO).to receive(:popen).with(/-F "notify=1"/)
26
26
  @deployer.deploy
27
27
  end
28
28
 
29
29
  it "should send the dsym as a param" do
30
- expect(IO).to receive(:popen).with(/-F dsym=@test.zip/)
30
+ expect(IO).to receive(:popen).with(/-F "dsym=@test.zip"/)
31
31
  @deployer.deploy
32
32
  end
33
33
  end
34
- end
34
+ end
@@ -31,19 +31,19 @@ describe Tug::Hockeyapp do
31
31
  expect(IO).to receive(:popen).with(/https:\/\/rink.hockeyapp.net\/api\/2\/apps\/upload/)
32
32
  @deployer.deploy
33
33
  end
34
-
34
+
35
35
  it "should send the ipa as a param" do
36
36
  expect(IO).to receive(:popen).with(/-F "ipa=@test.ipa"/)
37
37
  @deployer.deploy
38
38
  end
39
39
 
40
40
  it "should send the dsym as a param" do
41
- expect(IO).to receive(:popen).with(/-F dsym=@test.zip/)
41
+ expect(IO).to receive(:popen).with(/-F "dsym=@test.zip"/)
42
42
  @deployer.deploy
43
43
  end
44
44
 
45
45
  it "should have some release notes" do
46
- expect(IO).to receive(:popen).with(/-F notes='Notes'/)
46
+ expect(IO).to receive(:popen).with(/-F "notes=<Notes"/)
47
47
  @deployer.deploy
48
48
  end
49
49
 
@@ -107,4 +107,4 @@ describe Tug::Hockeyapp do
107
107
  @deployer.deploy
108
108
  end
109
109
  end
110
- end
110
+ end
@@ -23,38 +23,38 @@ describe Tug::Testflight do
23
23
  end
24
24
 
25
25
  it "should send the ipa as a param" do
26
- expect(IO).to receive(:popen).with(/-F file=@test.ipa/)
26
+ expect(IO).to receive(:popen).with(/-F "file=@test.ipa"/)
27
27
  @deployer.deploy
28
28
  end
29
29
 
30
30
  it "should send the dsym as a param" do
31
- expect(IO).to receive(:popen).with(/-F dsym=@test.zip/)
31
+ expect(IO).to receive(:popen).with(/-F "dsym=@test.zip"/)
32
32
  @deployer.deploy
33
33
  end
34
34
 
35
35
  it "should send the team token as a param" do
36
- expect(IO).to receive(:popen).with(/-F team_token='team_token'/)
36
+ expect(IO).to receive(:popen).with(/-F "team_token=team_token"/)
37
37
  @deployer.deploy
38
38
  end
39
39
 
40
40
  it "should send the api token as a param" do
41
- expect(IO).to receive(:popen).with(/-F api_token='api_token'/)
41
+ expect(IO).to receive(:popen).with(/-F "api_token=api_token"/)
42
42
  @deployer.deploy
43
43
  end
44
44
 
45
45
  it "should have some release notes" do
46
- expect(IO).to receive(:popen).with(/-F notes='Notes'/)
46
+ expect(IO).to receive(:popen).with(/-F "notes=<Notes"/)
47
47
  @deployer.deploy
48
48
  end
49
49
 
50
50
  it "should have lists" do
51
- expect(IO).to receive(:popen).with(/-F distribution_lists=''/)
51
+ expect(IO).to receive(:popen).with(/-F "distribution_lists="/)
52
52
  @deployer.deploy
53
53
  end
54
54
 
55
55
  it "should notify" do
56
- expect(IO).to receive(:popen).with(/-F notify=true/)
56
+ expect(IO).to receive(:popen).with(/-F "notify=true"/)
57
57
  @deployer.deploy
58
58
  end
59
59
  end
60
- end
60
+ end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fish
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: codeclimate-test-reporter
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Build and deploy iOS project
@@ -102,8 +102,8 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - ".gitignore"
106
- - ".travis.yml"
105
+ - .gitignore
106
+ - .travis.yml
107
107
  - Gemfile
108
108
  - Gemfile.lock
109
109
  - Guardfile
@@ -124,8 +124,6 @@ files:
124
124
  - lib/tug/config/missing_config_file.rb
125
125
  - lib/tug/deployment/deployer.rb
126
126
  - lib/tug/deployment/hockeyapp.rb
127
- - lib/tug/deployment/notes_file_parser.rb
128
- - lib/tug/deployment/notes_parser.rb
129
127
  - lib/tug/deployment/testflight.rb
130
128
  - lib/tug/interface/interface.rb
131
129
  - lib/tug/keychain/keychain.rb
@@ -145,14 +143,10 @@ files:
145
143
  - spec/ipa_config_file_spec.rb
146
144
  - spec/keychain_config_file_spec.rb
147
145
  - spec/keychain_spec.rb
148
- - spec/notes_file_parser_spec.rb
149
146
  - spec/output.txt
150
147
  - spec/project_spec.rb
151
- - spec/release_notes_spec.rb
152
148
  - spec/slack_spec.rb
153
149
  - spec/spec_helper.rb
154
- - spec/test_notes.txt
155
- - spec/test_special_notes.txt
156
150
  - spec/testflight_spec.rb
157
151
  - spec/xctool_spec.rb
158
152
  - tug.gemspec
@@ -166,17 +160,17 @@ require_paths:
166
160
  - lib
167
161
  required_ruby_version: !ruby/object:Gem::Requirement
168
162
  requirements:
169
- - - ">="
163
+ - - '>='
170
164
  - !ruby/object:Gem::Version
171
165
  version: '0'
172
166
  required_rubygems_version: !ruby/object:Gem::Requirement
173
167
  requirements:
174
- - - ">="
168
+ - - '>='
175
169
  - !ruby/object:Gem::Version
176
170
  version: '0'
177
171
  requirements: []
178
172
  rubyforge_project:
179
- rubygems_version: 2.2.2
173
+ rubygems_version: 2.0.14
180
174
  signing_key:
181
175
  specification_version: 4
182
176
  summary: iOS project builder and depoloyer
@@ -190,13 +184,9 @@ test_files:
190
184
  - spec/ipa_config_file_spec.rb
191
185
  - spec/keychain_config_file_spec.rb
192
186
  - spec/keychain_spec.rb
193
- - spec/notes_file_parser_spec.rb
194
187
  - spec/output.txt
195
188
  - spec/project_spec.rb
196
- - spec/release_notes_spec.rb
197
189
  - spec/slack_spec.rb
198
190
  - spec/spec_helper.rb
199
- - spec/test_notes.txt
200
- - spec/test_special_notes.txt
201
191
  - spec/testflight_spec.rb
202
192
  - spec/xctool_spec.rb
@@ -1,10 +0,0 @@
1
- module Tug
2
-
3
- class NotesFileParser < NotesParser
4
-
5
- def initialize(notes)
6
- file = File.open(notes)
7
- @notes = file.read
8
- end
9
- end
10
- end
@@ -1,20 +0,0 @@
1
- module Tug
2
- class NotesParser
3
-
4
- attr_reader :notes
5
-
6
- class << self
7
- def notes_parser(notes)
8
- if File.file? notes
9
- Tug::NotesFileParser.new(notes)
10
- else
11
- Tug::NotesParser.new(notes)
12
- end
13
- end
14
- end
15
-
16
- def initialize(notes)
17
- @notes = %Q|#{notes}|
18
- end
19
- end
20
- end
@@ -1,17 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Tug::NotesFileParser do
4
-
5
- describe "When parsing notes" do
6
-
7
- it "should parse notes from a file" do
8
- parser = Tug::NotesFileParser.new(release_notes_path)
9
- expect(parser.notes).to match("Hello World")
10
- end
11
-
12
- it "should parse notes with sepcial characters" do
13
- parser = Tug::NotesFileParser.new(special_release_notes_path)
14
- expect(parser.notes).to match("#Hello World's")
15
- end
16
- end
17
- end
@@ -1,22 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Tug::NotesParser do
4
-
5
- describe "When returning a parser" do
6
-
7
- it "should return a notes parser for plain text notes" do
8
- expect(File).to receive(:file?).and_return(false)
9
- expect(Tug::NotesParser.notes_parser("test")).to be_kind_of(Tug::NotesParser)
10
- end
11
-
12
- it "should return a notes file parser for file notes" do
13
- expect(File).to receive(:file?).and_return(true)
14
-
15
- file = double(File)
16
- expect(file).to receive(:read)
17
- expect(File).to receive(:open).and_return(file)
18
-
19
- expect(Tug::NotesParser.notes_parser("test")).to be_kind_of(Tug::NotesFileParser)
20
- end
21
- end
22
- end
@@ -1 +0,0 @@
1
- Hello World
@@ -1 +0,0 @@
1
- #Hello World's