black_and_white 0.1.3 → 0.1.4

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: ecc8a7e5e6a8897e25e956e92962336317cd9448
4
- data.tar.gz: b348c4667bad2e949294f77ad1de8807cfcfd12c
3
+ metadata.gz: e750b7cb803ff4df4d3d720e72c2b6334a480202
4
+ data.tar.gz: ba46e75692f5ddb5a926a92212b8ca3252158234
5
5
  SHA512:
6
- metadata.gz: e9a9cc454b9a87ae3b6722b2a55269fefe20632495fca2d3bc36d9fd5d03f7bf7e5a0efb82e6a47cfb334034e9f4e7ade77fd63a561c5ec05c95063ae834e054
7
- data.tar.gz: cef4cca40140e28b509d3fd6399c880975815e0002c9257344450f33d5f7c27637c8ea5bb307395541ba8ca9aa1fba35ec1e45bfe1142b0e47213644eec6d767
6
+ metadata.gz: 06b610793aec57424575d98bd1f68b8a31375af915f66ce2d693179c7e1972b1ae6217c3ef4425944bb8eccf43ce5dcdc6c4ed1945931288fb60ae2585b09260
7
+ data.tar.gz: 5cff78100f770c21721ba814d23c2efcbb45de4965973424420454ac769e1f088c659b386597be8a3b9892413c25b962d1b4882596d8a1578eb6d551bc36c9fb
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  Add this line to your application's Gemfile:
11
11
 
12
12
  ```ruby
13
- gem 'black_and_white'
13
+ gem 'black_and_white', '~> 0.1.4'
14
14
  ```
15
15
 
16
16
  And then execute:
@@ -16,7 +16,7 @@ RUBY
16
16
  def bw_relations_table_data
17
17
  <<RUBY
18
18
  t.references :#{bw_tests_class_table}, index: true
19
- t.references :#{bw_tests_table_name_pluralize}, index: true
19
+ t.references :#{bw_tests_table_name}, index: true
20
20
  RUBY
21
21
  end
22
22
 
@@ -25,7 +25,7 @@ RUBY
25
25
  end
26
26
 
27
27
  def bw_tests_table_name
28
- BlackAndWhite.config.bw_main_table
28
+ BlackAndWhite.config.bw_main_table.to_s.singularize
29
29
  end
30
30
 
31
31
  def bw_tests_class
@@ -33,7 +33,7 @@ RUBY
33
33
  end
34
34
 
35
35
  def bw_tests_class_table
36
- BlackAndWhite.config.bw_class_table
36
+ BlackAndWhite.config.bw_class_table.to_s.singularize
37
37
  end
38
38
 
39
39
  def migration_version
@@ -1,3 +1,3 @@
1
1
  module BlackAndWhite
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: black_and_white
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Slaveykov