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 +4 -4
- data/CHANGELOG.md +5 -0
- data/alphred.gemspec +1 -1
- data/lib/alphred/tasks.rb +16 -4
- data/lib/alphred/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 323035bba335a0b45f2624d95cf903a32202016f
|
4
|
+
data.tar.gz: 84db913c3567d0ea66ca500d71f055d91b7c912f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f41651702a27972510719f70050c1b35b7fd186fa81cf70d4e4a2ff92b66c221d4d62adb80cb90eb15818c32d555acb08ee7f840cb97ac39791f5908e8d4b6f5
|
7
|
+
data.tar.gz: a1a6bb23c4d6d2189b1566708269d46f3c8f7db5de84ac4b4e4399589c7838afecb599a1ffb0dbb5fc0df4b662e82f8b89b18f44109637db6ebbef5747c76c6b
|
data/CHANGELOG.md
CHANGED
data/alphred.gemspec
CHANGED
@@ -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', '~>
|
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
|
data/lib/alphred/tasks.rb
CHANGED
@@ -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
|
-
|
49
|
-
|
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
|
-
|
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
|
data/lib/alphred/version.rb
CHANGED
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.
|
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:
|
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: '
|
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: '
|
54
|
+
version: '11.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: listen
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|