rspec-doc 0.1.3 → 1.0.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: 35cba8169002badd58d9674449a6951bf5f7f3f3
4
- data.tar.gz: e2f5b740459014d3a074a5830ca96364073e3ccc
3
+ metadata.gz: fd3a4017b64161d70f182cc8d55a21203b061079
4
+ data.tar.gz: d55728cca55c33e883117fbd3af42d8b685d59cc
5
5
  SHA512:
6
- metadata.gz: cb32722062cf1a1adbdf1494ce533bfc769592696cfb4b5ca85516872d80403f658873a31ed3373b7d3c39d5ddc2b4f670acf65ef8b62bb532e0ee7ac97c8183
7
- data.tar.gz: c390c8a716d5b0c2fe90d9a1694215b48eba2c80b40ccc66b8e461f16a39ed1fdba158be057b49dc37ab94f8cff1e3189af4e87dbe290c95795cc2aa01709bf0
6
+ metadata.gz: fa35fa41f3a2ecdb680df6e33aed585d9d03bf14430df780e4b51a1044b24d9746d557f4711db3603905a7fdf56419d81430d66ba8f9c561b37a585847b1e83b
7
+ data.tar.gz: 0d41ffd4bcc4527b56b3f9fcf2e95b6b02bd3c3a003d31227e7da1fd89916bcc2ec3d26d9ad8c8c5e269029ae48ae890bed9ceb2348934f50ceed3211bef4370
@@ -10,7 +10,6 @@ if not File.exist?('database_config.yml')
10
10
  end
11
11
 
12
12
  if ARGV.size < 1 || ARGV[0] != 'build_models'
13
- puts ARGV
14
13
  puts USAGE
15
14
  exit
16
15
  end
@@ -52,7 +52,7 @@ private
52
52
  # select the target obj item
53
53
  expectation_source.gsub!(model, 'model')
54
54
  expectation_source.gsub!('be_', 'be ')
55
- expectation_items = expectation_source.lines do |line|
55
+ expectation_source.lines do |line|
56
56
  key, matcher, value = nil
57
57
  /expect\(model\.(?<key>.*)\)\.(?<is>to|not_to)[\s+\(](?<matcher>.*)[\s+\(](?<value>.*)[\,\)\s+\n]/ =~ "#{line.strip}\n"
58
58
  next unless key && is && matcher && value
@@ -5,6 +5,8 @@ require 'erb'
5
5
  require 'rare_map'
6
6
  require 'active_record'
7
7
 
8
+ # override the RareMap::SchemaParser.parse_schema
9
+ # for new schema.rb format
8
10
  module RareMap
9
11
  # RareMap::SchemaParser parses schema.rb into Table.
10
12
  module SchemaParser
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Focinfi