alphred 2.0.1 → 2.0.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: 7d77538c0ab6babe0166db3c1d3760560a581b72
4
- data.tar.gz: ff87faf19a7aab67ef5efb519ce09d8090cfff43
3
+ metadata.gz: 323035bba335a0b45f2624d95cf903a32202016f
4
+ data.tar.gz: 84db913c3567d0ea66ca500d71f055d91b7c912f
5
5
  SHA512:
6
- metadata.gz: 3619e36d3aa9bf3b3187121e6566c1945c60ec2628207693b932afa895242d0c1bdf59caa5ccf555a43cecaa67167466c7dbf4c97e6ecfebf5982fad0ad02757
7
- data.tar.gz: a942a94bf4e8bcbbbbc7b6a752d9400c5215ccb68838b2f0171f05f3ac60e60d2998f8431bfc3502b1b414edfbb601c0c9b028526ea33a24091c7bc066c6ae79
6
+ metadata.gz: f41651702a27972510719f70050c1b35b7fd186fa81cf70d4e4a2ff92b66c221d4d62adb80cb90eb15818c32d555acb08ee7f840cb97ac39791f5908e8d4b6f5
7
+ data.tar.gz: a1a6bb23c4d6d2189b1566708269d46f3c8f7db5de84ac4b4e4399589c7838afecb599a1ffb0dbb5fc0df4b662e82f8b89b18f44109637db6ebbef5747c76c6b
@@ -1,3 +1,8 @@
1
+ ## [Unreleased]
2
+ ### Fixed
3
+ - Don't fail when there aren't environment vars to clean
4
+ - Always prefix the version with a "v"
5
+
1
6
  ## [2.0.1] - 2016-07-28
2
7
  ### Fixed
3
8
  - Rake task now cleans `Don't Export`-ed environment vars.
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'builder', '~> 3.2'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.10'
24
- spec.add_development_dependency 'rake', '~> 10.0'
24
+ spec.add_development_dependency 'rake', '~> 11.0'
25
25
  spec.add_development_dependency 'listen', '~> 3.0.0'
26
26
  spec.add_development_dependency 'minitest'
27
27
  end
@@ -35,6 +35,18 @@ Can't tag #{version}: dirty working directory.
35
35
  end
36
36
  end
37
37
 
38
+ desc 'Build for Travis'
39
+ task :travis do
40
+ args = %w[ --standalone
41
+ --path vendor/bundle
42
+ --without development test ]
43
+ sh "bundle install #{args.join(' ')}"
44
+
45
+ clean_vars(File.expand_path(__FILE__))
46
+
47
+ sh "zip -rq #{ENV['TRAVIS_REPO_SLUG'].split(?/).last} *"
48
+ end
49
+
38
50
  def restore_bundler_config
39
51
  path = File.join(workflow_dir, '.bundle', 'config')
40
52
  config = File.read(path)
@@ -45,18 +57,18 @@ Can't tag #{version}: dirty working directory.
45
57
 
46
58
  def vendor_deps
47
59
  args = %w[ --standalone
48
- --path vendor/bundle
49
- --without development test ]
60
+ --path vendor/bundle
61
+ --without development test ]
50
62
  cmd = "bundle install #{args.join(' ')}"
51
63
  sh "chruby-exec 2.0.0 -- #{cmd}"
52
64
  end
53
65
 
54
66
  def clean_vars(dir)
55
67
  info_plist = File.join(dir, 'info.plist')
56
-
57
68
  vars = `/usr/libexec/PlistBuddy -c "Print :variablesdontexport" #{info_plist}`
58
- vars = vars.split("\n")[1..-2].map(&:strip)
69
+ return if vars.empty?
59
70
 
71
+ vars = vars.split("\n")[1..-2].map(&:strip)
60
72
  vars.each do |var|
61
73
  sh "/usr/libexec/PlistBuddy -c \"Set :variables:#{var} ''\" #{info_plist}"
62
74
  end
@@ -1,3 +1,3 @@
1
1
  module Alphred
2
- VERSION = '2.0.1'
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alphred
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alpha Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-28 00:00:00.000000000 Z
11
+ date: 2017-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '11.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
- version: '10.0'
54
+ version: '11.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: listen
57
57
  requirement: !ruby/object:Gem::Requirement