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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fe8a1e72b3c2020b8ec2335127330c0283c87b3
4
- data.tar.gz: 413bb998037d998b346a46d1ed2af9955ff89da5
3
+ metadata.gz: 20dabbafc95eda5fa87126ea04f8ef6697012f87
4
+ data.tar.gz: cd92ec0a7a9d2161d856420ca25ac0bf308a4893
5
5
  SHA512:
6
- metadata.gz: 7e85c919a3e4ae584689315c90aed442bcfb4681caeb09df5baf78afaa9ed6dc153d48154452199320f49e0a3d26cc3dfe90684720d0cee28b649b746c1c8310
7
- data.tar.gz: d242a48a812dc0f1bfeee5bf074a7e4f0bc31cc44aa183dc97f9006f50ed83657c570087bd992a07a9b7adb0acd3b6a9379df0994b3baec36fba9a7ae51e80c0
6
+ metadata.gz: a7a202ce999e2ccc6530dc002b8fb77911d2be8b6d9a832d1042b75007281a4b0f9f692014eaae9ec3966dc98dbdff5fdc8dda5e14e73834c499eefe69e77e9e
7
+ data.tar.gz: aca56c38b7192ff83d919c9edc63af54ea48b370bb7a92518d66fb33f594d7cb0266dc82067d18166c580203d3523813ff7d904ff86cf327455c7257673bd5e9
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # UpdateCountersWithCondition
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -1,3 +1,3 @@
1
1
  module UpdateCountersWithCondition
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_runtime_dependency 'activerecord', "~> 3.2"
23
+ spec.add_runtime_dependency 'activerecord', ">= 3.2"
24
24
  end
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.1
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: 2014-11-26 00:00:00.000000000 Z
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.2.2
90
+ rubygems_version: 2.4.5.1
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: update counters with condition