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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9ca94ec4f544e985a798830efd2d8a73109a192
4
- data.tar.gz: 23e9fd55bed763edc8bc426c3e19886c5de2870d
3
+ metadata.gz: 10082ff7a1c31db5ad28cab456c3e7137548cf11
4
+ data.tar.gz: ee77fca7bd2179bfa450d5008076939d6bbbd5d2
5
5
  SHA512:
6
- metadata.gz: fabb2a27430690c52d02edabd521f7dac94aa7238dde140efad5f5e561db3be8b1f6546f88d5659f54dbc7ee471062851d772368a11e5606c7b5fde82802c222
7
- data.tar.gz: 70e6f5596436d6afab34f9b52e67b6ece3c13db4630e6add630649c77a4a71f1ee1c0397e18dbe8e96304d5ba7ac27075d7309093f85c62dbc08a6e4a64d1f17
6
+ metadata.gz: 25214cc2776cb407ca5a8d531045f66fbdbb7153e0a77240ab1fedc17432c4e92779498c744b0bc666dd3adad8761576fdfa87de8c95fa8bbf16926ebad97a8a
7
+ data.tar.gz: 88bad2ca507218e07f7c4ef74cd2386b399ac49730373645ed38a8d5c6ecd38283164d5ea435659acd7b229d99d42c2d29f694aa288db77e591dd19af44790de
@@ -1,3 +1,8 @@
1
+ ## [1.2.2] - 2016-04-17
2
+ ### Fixed
3
+ - Require FileUtils for Config.
4
+ - Require version arg for the Rake tag task.
5
+
1
6
  ## [1.2.1] - 2016-04-05
2
7
  ### Fixed
3
8
  - Handle when config doesn't already exist.
@@ -1,3 +1,4 @@
1
+ require 'fileutils'
1
2
  require 'json'
2
3
 
3
4
  module Alphred
@@ -1,12 +1,12 @@
1
- require "rake"
1
+ require 'rake'
2
2
 
3
3
  namespace :alphred do
4
- desc "Prepare a release, named after the directory"
4
+ desc 'Prepare a release, named after the directory'
5
5
  task :release, [:version] => [:tag, :package]
6
6
 
7
- desc "Tag the current commit in git with VERSION"
7
+ desc 'Tag the current commit in git with VERSION'
8
8
  task :tag, [:version] do |t, args|
9
- version = args[:version]
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 "git push --tags"
17
+ sh 'git push --tags'
18
18
  end
19
19
 
20
- desc "Create an alfredworkflow package with vendored dependencies"
20
+ desc 'Create an alfredworkflow package with vendored dependencies'
21
21
  task :package do
22
22
  restore_bundler_config do
23
- cmd = "bundle install --standalone --path vendor/bundle --without development test"
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("%n.alfredworkflow")} *"
27
- rm_rf "vendor"
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, ".bundle", "config")
35
+ path = File.join(application_dir, '.bundle', 'config')
36
36
  config = File.read(path)
37
37
  yield
38
38
  ensure
@@ -1,3 +1,3 @@
1
1
  module Alphred
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.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: 1.2.1
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-06 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder