runcom 3.0.0 → 3.1.0

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
  SHA256:
3
- metadata.gz: 6a957c88bd4bd09900d6471688d00d365390837bf00fc04ae417554b9ffb575e
4
- data.tar.gz: fdece804569302d90ac3ca35c5775416d180e6e3c499dce81742e8e6611f7051
3
+ metadata.gz: a98cb95e15551d9c14e28202fdd9523597d57019ae14a08ddb4c67cdee658c15
4
+ data.tar.gz: 89c481cb06412eeb84b317011e64cbed9a608d12d7f8269defe71c729bdf514c
5
5
  SHA512:
6
- metadata.gz: cbc1145bc4818734ad328b36d1cc1a153ab2aea703e9f9cace693a2be03a131f03bbed1fbb198824b6ac38dc3addd74fcdde34e93153458aade0afd85cca984a
7
- data.tar.gz: 52f0b77a602b49e8f196ef502b2a9e54a03e3a3cf9b0cd9601ec3cdf4a905d3ebc3e0a77f6dd087cc018edc91d595a5e98965776b9a8a2cf3890dff93131b0e6
6
+ metadata.gz: 72c4cfe15072de9486d048c459c6216e07bca8c61a3408d303ad6d5e5d7675ba65a07d63e9c1aa24e4537253687d7fbdfe8becd5f4b54f11b53a0099fbe1a690
7
+ data.tar.gz: 4d1a3322b39bc8125228a186cf71b241d7e84bf65e7ff601139f50c0dc63e12285a49778cb123ad94f9e22a87a98febcc5dc6c26c1ad001adfc93c0fced3438f
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -17,13 +17,14 @@ Read on for further details.
17
17
 
18
18
  - [Features](#features)
19
19
  - [Requirements](#requirements)
20
- - [Setup](#setup)
20
+ - [Setup](#setup)
21
21
  - [Usage](#usage)
22
22
  - [`Runcom::Configuration`](#runcomconfiguration)
23
23
  - [XDG](#xdg)
24
24
  - [`$XDG_CONFIG_DIRS`](#xdg_config_dirs)
25
25
  - [`$XDG_CONFIG_HOME`](#xdg_config_home)
26
26
  - [Variable Priority](#variable-priority)
27
+ - [Examples](#examples)
27
28
  - [Tests](#tests)
28
29
  - [Versioning](#versioning)
29
30
  - [Code of Conduct](#code-of-conduct)
@@ -50,7 +51,7 @@ Read on for further details.
50
51
 
51
52
  0. [Ruby 2.5.x](https://www.ruby-lang.org)
52
53
 
53
- # Setup
54
+ ## Setup
54
55
 
55
56
  Type the following to install:
56
57
 
@@ -143,6 +144,49 @@ priority):
143
144
  (highest priority). It will choose the first directory, in priority, that exists on the file
144
145
  system while skipping any that don't exist.
145
146
 
147
+ ### Examples
148
+
149
+ One of the best use cases of this gem is when it is combined with an environment switcher like
150
+ [direnv](https://direnv.net) where you can define a custom `XDG_CONFIG_HOME` for your specific
151
+ project.
152
+
153
+ With `direnv` installed, you could have the following project structure:
154
+
155
+ /example
156
+ /.config/test/configuration.yml
157
+ /.envrc
158
+
159
+ The `.envrc` file could then have this setting:
160
+
161
+ export XDG_CONFIG_HOME=".config"
162
+
163
+ This would end up pointing to the `/example/.config` folder of the current project, as shown above,
164
+ instead of `~/.config` (which is the default behavior). While running code within this project, you
165
+ could initialize your configuration object like this:
166
+
167
+ configuration = Runcom::Configuration.new "test"
168
+
169
+ The `configuration` object would have the following path due `direnv` setting your `XDG_CONFIG_HOME`
170
+ to your current project:
171
+
172
+ configuration.path # "~/.config/test/configuration.yml"
173
+
174
+ If you need further examples of gems that use this gem, check out the following:
175
+
176
+ - [Gemsmith](https://github.com/bkuhlmann/gemsmith) - A command line interface for smithing new Ruby
177
+ gems.
178
+ - [Milestoner](https://github.com/bkuhlmann/milestoner) - A command line interface for releasing Git
179
+ repository milestones.
180
+ - [Git Cop](https://github.com/bkuhlmann/git-cop) - Enforces consistent Git commits.
181
+ - [Tocer](https://github.com/bkuhlmann/tocer) - A command line interface for generating table of
182
+ contents for Markdown files.
183
+ - [Pragmater](https://github.com/bkuhlmann/pragmater) - A command line interface for
184
+ managing/formatting source file pragma comments.
185
+ - [Sublime Text Kit](https://github.com/bkuhlmann/sublime_text_kit) - A command line interface for
186
+ managing Sublime Text metadata.
187
+ - [Pennyworth](https://github.com/bkuhlmann/pennyworth) - A command line interface that enhances and
188
+ extends Alfred with Ruby support.
189
+
146
190
  ## Tests
147
191
 
148
192
  To test, run:
@@ -12,7 +12,7 @@ module Runcom
12
12
  end
13
13
 
14
14
  def self.version
15
- "3.0.0"
15
+ "3.1.0"
16
16
  end
17
17
 
18
18
  def self.version_label
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -29,7 +29,7 @@ cert_chain:
29
29
  4Zrsxi713z6sndd9JBAm4G7mJiV93MsuCM5N4ZDY7XaxIhvctNSNhX/Yn8LLdtGI
30
30
  b4jw5t40FKyNUvLPPXYAvQALBtk=
31
31
  -----END CERTIFICATE-----
32
- date: 2018-04-01 00:00:00.000000000 Z
32
+ date: 2018-05-02 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: refinements
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.1'
40
+ version: '5.2'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.1'
47
+ version: '5.2'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler-audit
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -87,6 +87,34 @@ dependencies:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.0'
90
+ - !ruby/object:Gem::Dependency
91
+ name: gemsmith
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '12.0'
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '12.0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: git-cop
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.2'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.2'
90
118
  - !ruby/object:Gem::Dependency
91
119
  name: guard-rspec
92
120
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file