prop_logic 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: 786b02e5d2a85b6a91518d38aff7109673fe0e01
4
- data.tar.gz: 5ab1400af5310be722c5a220b62330dd58e7eb1a
3
+ metadata.gz: 9157db3af14631a810dee1098d90a7c952c67278
4
+ data.tar.gz: ec391493ffe55fadc12b6bf77d550ea840025b31
5
5
  SHA512:
6
- metadata.gz: d40416deba21d74dfb81377bd25394fa24f3103ed70b9246e79d41dd716fd2f5cf6d98daa122269b9f13da157d151fffdac206ed2fa64b108cf371a77538655c
7
- data.tar.gz: c49f9bd5fadfe17dbe751352db562493ea3f4cd17da2ed73fade37db853efc546c70c700aaa2df3b423a27b8916c7e006d03db9af716cc80a98e015fbc28faed
6
+ metadata.gz: 5f46a0567cc5991360038a1ce802db01346741baa99f0b66bae4eedd3f266b23f98b3f7e28531566ef009582e0d57a97617fcd19ddc1a34c9d5db0ac5bd8b2e3
7
+ data.tar.gz: 181b998494156523c584640146a062af319f98316b254f6ef79fe2bfa6280ae5d7d4685777bfc9270a005ae642b1b79e5b62efbf754289c76b7b09a3a28286b0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # Ver. 0.2.2 (2016/04/04)
2
+ - Improve performance in `AndTerm`/`OrTerm` generation
3
+
1
4
  # Ver. 0.2.1 (2016/04/02)
2
5
  - Improve performance in `#each_sat`
3
6
 
@@ -16,7 +16,7 @@ module PropLogic
16
16
  end
17
17
  return unless @is_reduced
18
18
  # check duplication of terms
19
- if @terms.any?{ |term| @terms.index(term) != @terms.rindex(term)}
19
+ if @terms.length != @terms.uniq.length
20
20
  @is_reduced = false
21
21
  return
22
22
  end
@@ -15,7 +15,7 @@ module PropLogic
15
15
  end
16
16
  return unless @is_reduced
17
17
  # check duplication of terms
18
- if @terms.any?{ |term| @terms.index(term) != @terms.rindex(term)}
18
+ if @terms.length != @terms.uniq.length
19
19
  @is_reduced = false
20
20
  return
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module PropLogic
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prop_logic
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
  - Jkr2255
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2016-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ref