guard-ctags-bundler 1.3.1 → 1.4.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
  SHA1:
3
- metadata.gz: ccc6e527ddbd01dce422beedffbcfb3e06809d62
4
- data.tar.gz: 196e4a96fe494deb4f18198b3f8aa2d899be4578
3
+ metadata.gz: b9769b00a58bbb1979a21cde913eed4de61c4b3a
4
+ data.tar.gz: 0a7f2862b023fd0493ec261fde655b59da634733
5
5
  SHA512:
6
- metadata.gz: 66f0a3071f5fa303155cc974f9f1e7f0a45ca199670c91aba352bcf9f32b00d8651f67668712bccc7673109b2576b11bc4037c88f25e933ad1cb09be49b6038b
7
- data.tar.gz: 2c954bad101d744d15fd6fc46172468623f69af5d23cb8b2004b0d14a70d2617e4464d820c2123011dc34f6abd1f46cc9f758b1cd93d19a869ac28f71e401257
6
+ metadata.gz: e659f43d292d4347f15ab81734bca0c867d1b141adff5eee0db8b13d7932b8696e3a3daa6bb62845fcce4eaa967e5e3acc644b2e12e1005e44d26eaefec0063b
7
+ data.tar.gz: d57fd4fded3737e1c5d28b4767d0a6e1f327cfd2cfe8a7e77bc812a0504f0c5355dfea0abbef5903541ea646f562544664aea0082ec5c83274ed725644ff4d2a
data/README.md CHANGED
@@ -43,6 +43,7 @@ Please, read [Guard usage doc](https://github.com/guard/guard#readme)
43
43
  :stdlib_file => "stdlib.tags" # name of tags file for stdlib references (default stdlib.tags)
44
44
  :bundler_tags_file => "gems.tags" # name of tags file for bundler gems references (default gems.tags)
45
45
  :project_file => "tags" # name of tags file for project references (default tags)
46
+ :gemfile => "Gemfil" # name of tags file for project references (default 'Gemfile')
46
47
  ```
47
48
 
48
49
  For a typical Rails application, `Guardfile` can look like this (default):
@@ -20,12 +20,14 @@ module Guard
20
20
  #runtime = ::Bundler::Runtime.new(Dir.pwd, definition)
21
21
  #paths = runtime.requested_specs.map(&:full_gem_path)
22
22
 
23
+ gemfile = @opts.fetch(:gemfile, 'Gemfile')
24
+ lockfile = "#{gemfile}.lock"
23
25
  # this is ugly, but should work with every bundler version
24
26
  cmd = <<-CMD
25
27
  require('bundler')
26
28
  require('bundler/runtime')
27
29
  ::Bundler.configure
28
- definition = ::Bundler::Definition.build('Gemfile', 'Gemfile.lock', nil)
30
+ definition = ::Bundler::Definition.build('#{gemfile}', '#{lockfile}', nil)
29
31
  runtime = ::Bundler::Runtime.new(Dir.pwd, definition)
30
32
  paths = runtime.requested_specs.map(&:full_gem_path)
31
33
  puts(paths.join(' '))
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  module Ctags
3
3
  module Bundler
4
- VERSION = "1.3.1"
4
+ VERSION = "1.4.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-ctags-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Tkalin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project: guard-ctags-bundler
145
- rubygems_version: 2.2.2
145
+ rubygems_version: 2.4.5
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Guard gem for generating ctags for project files and gems from project's