osxsub 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 40e6a7d5829c99c2816602199230cfeada59e49a
4
+ data.tar.gz: 61725be742c2a48b98c899cbaa38cd912415b81e
5
+ SHA512:
6
+ metadata.gz: 6057b90f5657b2890d0ef5966ba958b4d550b2f5b254fe70b9bb1793256af3414f4fed8e83b6d3d049979d82aba432ffcbdfe5bdb6953e695c3dd162c12ddd0e
7
+ data.tar.gz: e75ea3edc326f1f22f5afabd59ef862987f5bbdaa1b0165644237efe5420350577a85476520052873c799953baecb8531bfce9fed6f3b3499bc6131fb2c4434c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osxsub (0.1.2)
4
+ osxsub (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/README.md CHANGED
@@ -7,7 +7,7 @@ Basic usage is like this:
7
7
  $ echo "Copyright (c) 2013 Mark Wunsch" | osxsub
8
8
  Copyright © 2013 Mark Wunsch
9
9
 
10
- Text Substitutions are available for a handful of Mac applications, and can be set up by going to `System Preferences -> Language & Text` and selecting the `Text` tab.
10
+ Text Substitutions are available for a handful of Mac applications, and can be set up by going to `System Preferences -> Keyboard` and selecting the `Text` tab.
11
11
 
12
12
  Read more about OS X Text Substitution:
13
13
 
@@ -40,9 +40,13 @@ Some more options can be given to the tool to make managing your Preferences eas
40
40
  $ osxsub --repl
41
41
  ## Start an interactive session to test out substitutions.
42
42
 
43
+ Note: Somewhere between OS X Mavericks and Yosemite the text substitution engine got a little out of whack. If you use osxsub, you might notice that your custom shortcuts do not appear in `System Preferences`.
44
+ Because of some weird iCloud sync thing there's also some Core Data database lurking around that complicates all of this. I'm working on trying to make osxsub work well in our new C L O U D W O R L D.
45
+ In the mean time, read more about this strange behavior here: http://apple.stackexchange.com/questions/124048/where-is-the-replace-with-list-stored
46
+
43
47
  ## Installation
44
48
 
45
- A Homebrew Formula is available, but has yet to be moved to the master Homebrew repo: https://gist.github.com/4657560
49
+ brew install https://raw.github.com/mwunsch/osxsub/master/share/osxsub.rb
46
50
 
47
51
  Alternatively, `osxsub` is available as a Rubygem.
48
52
 
@@ -53,8 +57,7 @@ Or clone the repository and put the `bin` directory somewhere on your `$PATH`.
53
57
  ## TODO
54
58
 
55
59
  + Manpages
56
- + OS X Service
57
60
  + Documentation
58
61
  + Tests
59
62
 
60
- Copyright © 2013 Mark Wunsch.
63
+ Copyright © 2013 - 2015 Mark Wunsch.
@@ -12,7 +12,7 @@ module OsxSub
12
12
 
13
13
  PLIST_BUDDY = '/usr/libexec/PlistBuddy'
14
14
  GLOBAL_PREFERENCES_PLIST = File.expand_path('~/Library/Preferences/.GlobalPreferences.plist')
15
- NSUSER_REPLACEMENT_ITEMS = 'NSUserReplacementItems'
15
+ NSUSER_REPLACEMENT_ITEMS = 'NSUserDictionaryReplacementItems'
16
16
 
17
17
  def print
18
18
  execute plist_buddy(:print)
@@ -1,3 +1,3 @@
1
1
  module OsxSub
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
data/share/osxsub.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'formula'
2
+
3
+ class Osxsub < Formula
4
+ homepage 'https://github.com/mwunsch/osxsub'
5
+ url 'https://github.com/mwunsch/osxsub/tarball/v0.1.2'
6
+ sha1 '93c766bfde5aa27c186018d4450c0c41ddae6ffa'
7
+ head 'https://github.com/mwunsch/osxsub.git'
8
+
9
+ def install
10
+ bin.install 'bin/osxsub'
11
+ prefix.install 'lib'
12
+ end
13
+ end
metadata CHANGED
@@ -1,35 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: osxsub
3
- version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Mark Wunsch
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-01-28 00:00:00 -05:00
19
- default_executable:
11
+ date: 2015-06-11 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
13
  description: Command line utility for OS X Text Substition Preferences.
23
- email:
14
+ email:
24
15
  - mark@markwunsch.com
25
- executables:
16
+ executables:
26
17
  - osxsub
27
18
  extensions: []
28
-
29
19
  extra_rdoc_files: []
30
-
31
- files:
32
- - .gitignore
20
+ files:
21
+ - ".gitignore"
33
22
  - Gemfile
34
23
  - Gemfile.lock
35
24
  - LICENSE
@@ -42,39 +31,28 @@ files:
42
31
  - lib/osxsub/substitution.rb
43
32
  - lib/osxsub/version.rb
44
33
  - osxsub.gemspec
45
- has_rdoc: true
34
+ - share/osxsub.rb
46
35
  homepage: http://github.com/mwunsch/osxsub
47
36
  licenses: []
48
-
37
+ metadata: {}
49
38
  post_install_message:
50
39
  rdoc_options: []
51
-
52
- require_paths:
40
+ require_paths:
53
41
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
57
44
  - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
63
- required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
66
49
  - - ">="
67
- - !ruby/object:Gem::Version
68
- hash: 3
69
- segments:
70
- - 0
71
- version: "0"
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
72
52
  requirements: []
73
-
74
53
  rubyforge_project:
75
- rubygems_version: 1.3.7
54
+ rubygems_version: 2.2.2
76
55
  signing_key:
77
- specification_version: 3
56
+ specification_version: 4
78
57
  summary: Command line utility for OS X Text Substition Preferences.
79
58
  test_files: []
80
-