vim-flavor 2.1.0 → 2.1.1

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: 230788107f3767739214c5a024592a77e548af00
4
- data.tar.gz: 8cd90f9cf955a384778a8482134aef9bca326258
3
+ metadata.gz: c4ef7a20f9342dd512e0718eb6a151212432fcec
4
+ data.tar.gz: 73942ac396f29a6f278822676295da7b00099b23
5
5
  SHA512:
6
- metadata.gz: 40cf56b32c21efd4bb6fd5db6e244b500dcf683e9426fec08f76ae9e2fd14cd13def4df3e19a43bda5d6c2bbfb9178c7e006bfc2a3a62bbb0f1502913525a02f
7
- data.tar.gz: 4e93551f2c305ccb1dab29a6561cb17ea81787cab0db76c6dac5d994fd352d3bfbae1ea15f7af3fc13f32652e8339c3a4710355078e58b9bf1c15dbeb0065af0
6
+ metadata.gz: a06fb5d0199475b0ae4bbaadf70dd8bd7e241a2d3e55276abba9dcbcbe10dfa66103121d15491d1ac6a24fa25dbad9d2670b0d7e6f287458dae058a556ea23c3
7
+ data.tar.gz: caad9086bf9c57fd5897d3203bb68724292b5d0a7dacc1929765e8634605f154a112e46d4f8b8374581327137de1e360e606e63c2a3e3b4e1714acbb117d3059
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.0
3
+ - 2.1.5
5
4
  before_script:
6
5
  - git config --global 'user.name' 'Travis CI'
7
6
  - git config --global 'user.email' 'user@example.com'
@@ -17,7 +17,6 @@ Feature: Groups
17
17
  Then it should pass
18
18
  And a lockfile is created with:
19
19
  """
20
- $bar_uri (2.2)
21
20
  $foo_uri (1.2)
22
21
  """
23
22
  And a bootstrap script is created in "$home/.vim"
@@ -34,7 +33,6 @@ Feature: Groups
34
33
  Then it should pass
35
34
  And a lockfile is created with:
36
35
  """
37
- $bar_uri (2.2)
38
36
  $foo_uri (1.2)
39
37
  """
40
38
  And a bootstrap script is created in "$home/.vim"
@@ -53,8 +51,6 @@ Feature: Groups
53
51
  Then it should pass
54
52
  And a lockfile is created with:
55
53
  """
56
- $bar_uri (2.2)
57
- $foo_uri (1.2)
58
54
  """
59
55
  And a bootstrap script is created in "$home/.vim"
60
56
  But a flavor "$foo_uri" is not deployed to "$home/.vim"
data/features/news.md CHANGED
@@ -1,6 +1,16 @@
1
+ ## vim-flavor 2.1.1
2
+
3
+ ### Enhancements
4
+
5
+ * `install` and `update` skip checking versions of plugins which are
6
+ development dependencies.
7
+
8
+
9
+
10
+
1
11
  ## vim-flavor 2.1.0
2
12
 
3
- ### Feature additions
13
+ ### Enhancements
4
14
 
5
15
  * `update` command is added. It is an alias of existing `upgrade` command.
6
16
  Now it is recommended to use `update` rather than `upgrade`.
@@ -13,7 +23,7 @@
13
23
 
14
24
  ## vim-flavor 2.0.0
15
25
 
16
- ### Feature additions
26
+ ### Enhancements
17
27
 
18
28
  * [Branches](./branches) are supported.
19
29
 
@@ -79,21 +79,22 @@ module Vim
79
79
  complete(
80
80
  flavorfile.flavor_table,
81
81
  lockfile.flavor_table,
82
- mode
82
+ mode,
83
+ groups
83
84
  )
84
85
  )
85
86
  lockfile.save()
86
87
 
87
88
  deploy_flavors(
88
- lockfile.flavors.select {|f| groups.include?(f.group)},
89
+ lockfile.flavors,
89
90
  File.absolute_path(flavors_path)
90
91
  )
91
92
 
92
93
  trace "Completed.\n"
93
94
  end
94
95
 
95
- def complete(current_flavor_table, locked_flavor_table, mode)
96
- nfs = complete_flavors(current_flavor_table, locked_flavor_table, mode, 1, 'you')
96
+ def complete(current_flavor_table, locked_flavor_table, mode, groups)
97
+ nfs = complete_flavors(current_flavor_table, locked_flavor_table, mode, groups, 1, 'you')
97
98
 
98
99
  Hash[
99
100
  nfs.group_by {|nf| nf.repo_name}.map {|repo_name, nfg|
@@ -132,18 +133,19 @@ module Vim
132
133
  abort ss.join("\n")
133
134
  end
134
135
 
135
- def complete_flavors(current_flavor_table, locked_flavor_table, mode, level, requirer)
136
+ def complete_flavors(current_flavor_table, locked_flavor_table, mode, groups, level, requirer)
136
137
  current_flavor_table.values.map(&:dup).sort_by(&:repo_name).
138
+ select {|nf| groups.include?(nf.group)}.
137
139
  on_failure {trace " failed\n"}.
138
140
  flat_map {|nf|
139
- complete_a_flavor(nf, locked_flavor_table, mode, level, requirer)
141
+ complete_a_flavor(nf, locked_flavor_table, mode, groups, level, requirer)
140
142
  }
141
143
  end
142
144
 
143
- def complete_a_flavor(nf, locked_flavor_table, mode, level, requirer)
145
+ def complete_a_flavor(nf, locked_flavor_table, mode, groups, level, requirer)
144
146
  lf = locked_flavor_table[nf.repo_name]
145
147
  [complete_a_flavor_itself(nf, lf, mode, level, requirer)] +
146
- complete_a_flavor_dependencies(nf, locked_flavor_table, mode, level)
148
+ complete_a_flavor_dependencies(nf, locked_flavor_table, mode, groups, level)
147
149
  end
148
150
 
149
151
  def effective_mode(mode, repo_name)
@@ -181,10 +183,10 @@ module Vim
181
183
  nf
182
184
  end
183
185
 
184
- def complete_a_flavor_dependencies(nf, locked_flavor_table, mode, level)
186
+ def complete_a_flavor_dependencies(nf, locked_flavor_table, mode, groups, level)
185
187
  nf.checkout()
186
188
  ff = FlavorFile.load_or_new(nf.cached_repo_path.to_flavorfile_path)
187
- complete_flavors(ff.flavor_table, locked_flavor_table, mode, level + 1, nf.repo_name)
189
+ complete_flavors(ff.flavor_table, locked_flavor_table, mode, groups, level + 1, nf.repo_name)
188
190
  end
189
191
 
190
192
  def deploy_flavors(flavors, flavors_path)
@@ -1,6 +1,6 @@
1
1
  module Vim
2
2
  module Flavor
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
4
4
 
5
5
  class Version
6
6
  def self.create(arg)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vim-flavor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kana Natsuno
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-19 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  requirements: []
208
208
  rubyforge_project:
209
- rubygems_version: 2.2.2
209
+ rubygems_version: 2.4.5
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: A tool to manage your favorite Vim plugins