produce 0.1.1 → 0.1.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: d8becb8d4af003c48c8ab30a54ab0f3271f1b587
4
- data.tar.gz: 4070c10bdecd9d45c0699ea0af277b83fc8527fa
3
+ metadata.gz: 8ca9f427fec79d787872c688daf2ac66454f151b
4
+ data.tar.gz: b3e9082a3102ea8de328ab10c7db59ef1ef7beba
5
5
  SHA512:
6
- metadata.gz: 4e3b535ff76b7f9d35d95c7ce105ff9878b5a7c7af5e8c72406f6237c5ecd4721eeaf826533f464622a79a1834a5c10d5661c3e423d1f99f0b6139f9da3f75fe
7
- data.tar.gz: afee6dd96be076d475ccfa4fc670cdaab8ca4fd10aefc99e56a4b7b0cf7b50e54a9872a1dac1d3f051c5151dd607da5ecdc1687cb68f52dfa7bae80016a389c6
6
+ metadata.gz: e6052afdbac7c80a2c5d87eba2441ddbab9a9f6da2a7c93d13878657faecc1d852a1d0aaa8ed02d771c756cdc4854977d35110b8eb2e6c8e04c562c294508852
7
+ data.tar.gz: f0cdcc78a41c84a6a15008d41db36d44760bb4d8f4aab8134ac9f3c44ec6bf977e840100c0dc3b658586572fe5d5fcc129d24757c88685f1f9508f4b8f4b6832
data/README.md CHANGED
@@ -61,10 +61,6 @@ Make sure, you have the latest version of the Xcode command line tools installed
61
61
 
62
62
  xcode-select --install
63
63
 
64
- Install phantomjs (this is needed to control the Apple Developer Portal)
65
-
66
- brew update && brew install phantomjs
67
-
68
64
  If you don't already have homebrew installed, [install it here](http://brew.sh/).
69
65
 
70
66
  # Usage
@@ -1,22 +1,8 @@
1
1
  module Produce
2
2
  class DependencyChecker
3
3
  def self.check_dependencies
4
- self.check_phantom_js
5
4
  self.check_xcode_select unless Helper.is_test?
6
5
  end
7
-
8
- def self.check_phantom_js
9
- if `which phantomjs`.length == 0
10
- # Missing brew dependency
11
- Helper.log.fatal '#############################################################'
12
- Helper.log.fatal "# You have to install phantomjs to use produce"
13
- Helper.log.fatal "# phantomjs is used to control the iTunesConnect frontend"
14
- Helper.log.fatal "# Install Homebrew using http://brew.sh/" if `which brew`.length == 0
15
- Helper.log.fatal "# Run 'brew update && brew install phantomjs' and start produce again"
16
- Helper.log.fatal '#############################################################'
17
- raise "Run 'brew update && brew install phantomjs' and start produce again"
18
- end
19
- end
20
6
 
21
7
  def self.check_xcode_select
22
8
  unless `xcode-select -v`.include?"xcode-select version "
@@ -43,6 +43,7 @@ module Produce
43
43
  Capybara.register_driver :poltergeist do |a|
44
44
  conf = ['--debug=no', '--ignore-ssl-errors=yes', '--ssl-protocol=TLSv1']
45
45
  Capybara::Poltergeist::Driver.new(a, {
46
+ phantomjs: Phantomjs.path,
46
47
  phantomjs_options: conf,
47
48
  phantomjs_logger: File.open("#{TMP_FOLDER}/poltergeist_log.txt", "a"),
48
49
  js_errors: false
@@ -37,6 +37,7 @@ module Produce
37
37
  Capybara.register_driver :poltergeist do |a|
38
38
  conf = ['--debug=no', '--ignore-ssl-errors=yes', '--ssl-protocol=TLSv1']
39
39
  Capybara::Poltergeist::Driver.new(a, {
40
+ phantomjs: Phantomjs.path,
40
41
  phantomjs_options: conf,
41
42
  phantomjs_logger: File.open("/tmp/poltergeist_log.txt", "a"),
42
43
  js_errors: false
@@ -1,3 +1,3 @@
1
1
  module Produce
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/produce.rb CHANGED
@@ -10,6 +10,7 @@ require 'produce/update_checker'
10
10
  require 'produce/available_default_languages'
11
11
 
12
12
  # Third Party code
13
+ require 'phantomjs/poltergeist'
13
14
  require 'colored'
14
15
 
15
16
  module Produce
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: produce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-02 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: phantomjs
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.9.8
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 1.9.8
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: capybara
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -232,8 +246,7 @@ homepage: http://fastlane.tools
232
246
  licenses:
233
247
  - MIT
234
248
  metadata: {}
235
- post_install_message: produce requires phantomjs. Install it using 'brew update &&
236
- brew install phantomjs'
249
+ post_install_message:
237
250
  rdoc_options: []
238
251
  require_paths:
239
252
  - lib