alphred 1.2.1 → 1.2.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/lib/alphred/config.rb +1 -0
- data/lib/alphred/tasks.rb +10 -10
- data/lib/alphred/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10082ff7a1c31db5ad28cab456c3e7137548cf11
|
4
|
+
data.tar.gz: ee77fca7bd2179bfa450d5008076939d6bbbd5d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25214cc2776cb407ca5a8d531045f66fbdbb7153e0a77240ab1fedc17432c4e92779498c744b0bc666dd3adad8761576fdfa87de8c95fa8bbf16926ebad97a8a
|
7
|
+
data.tar.gz: 88bad2ca507218e07f7c4ef74cd2386b399ac49730373645ed38a8d5c6ecd38283164d5ea435659acd7b229d99d42c2d29f694aa288db77e591dd19af44790de
|
data/CHANGELOG.md
CHANGED
data/lib/alphred/config.rb
CHANGED
data/lib/alphred/tasks.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
require
|
1
|
+
require 'rake'
|
2
2
|
|
3
3
|
namespace :alphred do
|
4
|
-
desc
|
4
|
+
desc 'Prepare a release, named after the directory'
|
5
5
|
task :release, [:version] => [:tag, :package]
|
6
6
|
|
7
|
-
desc
|
7
|
+
desc 'Tag the current commit in git with VERSION'
|
8
8
|
task :tag, [:version] do |t, args|
|
9
|
-
version = args
|
9
|
+
version = args.fetch(:version)
|
10
10
|
|
11
11
|
git_status = `git status --porcelain`
|
12
12
|
fail <<-FAIL unless git_status.empty?
|
@@ -14,17 +14,17 @@ Can't tag #{version}: dirty working directory.
|
|
14
14
|
FAIL
|
15
15
|
|
16
16
|
sh "git tag #{version}"
|
17
|
-
sh
|
17
|
+
sh 'git push --tags'
|
18
18
|
end
|
19
19
|
|
20
|
-
desc
|
20
|
+
desc 'Create an alfredworkflow package with vendored dependencies'
|
21
21
|
task :package do
|
22
22
|
restore_bundler_config do
|
23
|
-
cmd =
|
23
|
+
cmd = 'bundle install --standalone --path vendor/bundle --without development test'
|
24
24
|
sh "chruby-exec 2.0.0 -- #{cmd}"
|
25
25
|
end
|
26
|
-
sh "zip -r #{application_dir.pathmap(
|
27
|
-
rm_rf
|
26
|
+
sh "zip -r #{application_dir.pathmap('%n.alfredworkflow')} *"
|
27
|
+
rm_rf 'vendor'
|
28
28
|
end
|
29
29
|
|
30
30
|
def application_dir
|
@@ -32,7 +32,7 @@ Can't tag #{version}: dirty working directory.
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def restore_bundler_config
|
35
|
-
path = File.join(application_dir,
|
35
|
+
path = File.join(application_dir, '.bundle', 'config')
|
36
36
|
config = File.read(path)
|
37
37
|
yield
|
38
38
|
ensure
|
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: 1.2.
|
4
|
+
version: 1.2.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-04-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|