update_counters_with_condition 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/update_counters_with_condition/version.rb +1 -1
- data/update_counters_with_condition.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20dabbafc95eda5fa87126ea04f8ef6697012f87
|
4
|
+
data.tar.gz: cd92ec0a7a9d2161d856420ca25ac0bf308a4893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7a202ce999e2ccc6530dc002b8fb77911d2be8b6d9a832d1042b75007281a4b0f9f692014eaae9ec3966dc98dbdff5fdc8dda5e14e73834c499eefe69e77e9e
|
7
|
+
data.tar.gz: aca56c38b7192ff83d919c9edc63af54ea48b370bb7a92518d66fb33f594d7cb0266dc82067d18166c580203d3523813ff7d904ff86cf327455c7257673bd5e9
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# UpdateCountersWithCondition
|
2
2
|
|
3
|
-
|
3
|
+
update counters with condition
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -20,7 +20,9 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
```ruby
|
24
|
+
ProductStock.update_counters_with_condition({:product_id => Product.first.id, :warehouse_id => Warehouse.first.id}, :quantity => 1)
|
25
|
+
```
|
24
26
|
|
25
27
|
## Contributing
|
26
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: update_counters_with_condition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hooopo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: activerecord
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.2'
|
55
55
|
description: update counters with condition
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.4.5.1
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: update counters with condition
|