rb_tags 0.2.1 → 0.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: 5d38f04803da66d3938e15ce577cd70927706b68
4
- data.tar.gz: 190641f6d9a521c14eb276837e4f9f5f9d4ed457
3
+ metadata.gz: 31a65553f270a4c1fdf664e4a295c1b41f172984
4
+ data.tar.gz: 08bc92bb09cb9924fa9e5a2379dd913dc4d03afc
5
5
  SHA512:
6
- metadata.gz: abcfd1a25415d8e1618afeb8a80306fefea6043d3f58e2e398407de2a668899dacb2a2d309f3ab14ba2d1ce78e0fe24d8241035d814d0446f5ead50a352b4eb0
7
- data.tar.gz: e7a9dc02c0c234539f82be4705c3b03205bc37485a78b74554b9ab11b7a0667b97a677addb081711f6218134f7c89ad47b344ff504648d4ede88a365ff55f185
6
+ metadata.gz: 63e08a431aa34560ea48ee7b8828206905badcf0bad6e0af7b933d99a41f1f8a9d5f8d2bf13b9abe2bd6d65343b0e859564f6ca810c7e41dda1a0a0c6816d891
7
+ data.tar.gz: 962b6f517599e90b9cd084fa555d20d3684aeb840c55279fcc1e0244074257caa11f931f76df8394ac6ad4942ea9e5dfc752e04b91f756e2df1a6a3606d28671
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rb_tags (0.2.1)
4
+ rb_tags (0.2.2)
5
5
  awesome_print
6
6
  bundler
7
7
  colorize
data/README.md CHANGED
@@ -48,6 +48,18 @@ in your path.
48
48
 
49
49
  ```
50
50
 
51
+ # RELEASE notes
52
+
53
+ * v0.2.2: rollback to version 0.2.0, to use this, be sure you have no `.tags` files in any gems, if not use v0.2.1 to replace old structure in tag files
54
+
55
+ * v0.2.1: fixes introduced bug [changes](https://github.com/LeFnord/rb_tags/commit/465bdf427f11dce157f6113342f50464a12743f0), and is an migration version between changes in `yaml_tasks.rb`
56
+
57
+ * v0.2.0: changes in [`yaml_tasks.rb`](https://github.com/LeFnord/rb_tags/commit/9260cc7398ec84bac54d7d10aeadbb479049b315); replacing combination of File.read/write and YAML.load/dump through YAML:Store
58
+
59
+ this introduced an incompatibility with existing tag files, causing in different structure
60
+
61
+ these version is yanked from rubygems.org
62
+
51
63
  ## Contributing
52
64
 
53
65
  1. Fork it
@@ -1,7 +1,6 @@
1
1
  module YamlTasks
2
2
  # # WRITE
3
3
  def write_to_yaml(dir: nil, this: {})
4
- FileUtils.rm(store(dir)) if File.exist?(store(dir))
5
4
  db = YAML::Store.new(store(dir), thread_safe: true)
6
5
  db.transaction { db["tags"] = this } unless this.nil?
7
6
  end
@@ -1,3 +1,3 @@
1
1
  module RbTags
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
data/lib/rb_tags.rb CHANGED
@@ -49,7 +49,7 @@ module RbTags
49
49
  gem_list.tag
50
50
 
51
51
  dir_list.each do |dir|
52
- gem_tags = Tags.new(dir, read: false)
52
+ gem_tags = Tags.new(dir, read: true)
53
53
  unless !!gem_tags.tags
54
54
  gem_tags.tag
55
55
  gem_tags.save
@@ -1,6 +1,8 @@
1
1
  describe Tags do
2
- before(:each) do
3
- end
2
+ after(:all) do
3
+ tag_file = File.join(Dir.getwd,'.tags')
4
+ FileUtils.rm(tag_file) if File.exist?(tag_file)
5
+ end
4
6
 
5
7
  it { expect(described_class).to eq(Tags) }
6
8
 
@@ -41,6 +43,7 @@ end
41
43
  describe '#save' do
42
44
  it { expect { subject.save }.not_to raise_error }
43
45
  it 'do it' do
46
+ subject.tag
44
47
  subject.save
45
48
  foo = File.join(subject.dir, '.tags')
46
49
  expect(File.exist?(foo)).to eq true
data/spec/spec_helper.rb CHANGED
@@ -15,75 +15,16 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
15
15
  require 'rb_tags'
16
16
 
17
17
  RSpec.configure do |config|
18
- # rspec-expectations config goes here. You can use an alternate
19
- # assertion/expectation library such as wrong or the stdlib/minitest
20
- # assertions if you prefer.
21
18
  config.expect_with :rspec do |expectations|
22
- # This option will default to `true` in RSpec 4. It makes the `description`
23
- # and `failure_message` of custom matchers include text for helper methods
24
- # defined using `chain`, e.g.:
25
- # be_bigger_than(2).and_smaller_than(4).description
26
- # # => "be bigger than 2 and smaller than 4"
27
- # ...rather than:
28
- # # => "be bigger than 2"
29
19
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
30
20
  end
31
21
 
32
- # rspec-mocks config goes here. You can use an alternate test double
33
- # library (such as bogus or mocha) by changing the `mock_with` option here.
34
22
  config.mock_with :rspec do |mocks|
35
- # Prevents you from mocking or stubbing a method that does not exist on
36
- # a real object. This is generally recommended, and will default to
37
- # `true` in RSpec 4.
38
23
  mocks.verify_partial_doubles = true
39
24
  end
40
25
 
41
- # These two settings work together to allow you to limit a spec run
42
- # to individual examples or groups you care about by tagging them with
43
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
44
- # get run.
45
26
  config.filter_run :focus
46
27
  config.run_all_when_everything_filtered = true
47
28
 
48
- # Run specs in random order to surface order dependencies. If you find an
49
- # order dependency and want to debug it, you can fix the order by providing
50
- # the seed, which is printed after each run.
51
- # --seed 1234
52
29
  config.order = :random
53
-
54
- # The settings below are suggested to provide a good initial experience
55
- # with RSpec, but feel free to customize to your heart's content.
56
- =begin
57
- # Limits the available syntax to the non-monkey patched syntax that is
58
- # recommended. For more details, see:
59
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
60
- # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
61
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
62
- config.disable_monkey_patching!
63
-
64
- # This setting enables warnings. It's recommended, but in some cases may
65
- # be too noisy due to issues in dependencies.
66
- config.warnings = true
67
-
68
- # Many RSpec users commonly either run the entire suite or an individual
69
- # file, and it's useful to allow more verbose output when running an
70
- # individual spec file.
71
- if config.files_to_run.one?
72
- # Use the documentation formatter for detailed output,
73
- # unless a formatter has already been configured
74
- # (e.g. via a command-line flag).
75
- config.default_formatter = 'doc'
76
- end
77
-
78
- # Print the 10 slowest examples and example groups at the
79
- # end of the spec run, to help surface which specs are running
80
- # particularly slow.
81
- config.profile_examples = 10
82
-
83
- # Seed global randomization in this process using the `--seed` CLI option.
84
- # Setting this allows you to use `--seed` to deterministically reproduce
85
- # test failures related to randomization by passing the same `--seed` value
86
- # as the one that triggered the failure.
87
- Kernel.srand config.seed
88
- =end
89
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeFnord
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  requirements: []
236
236
  rubyforge_project:
237
- rubygems_version: 2.4.8
237
+ rubygems_version: 2.4.5.1
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: A wrapper around ctags.