kounta_rest 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -6,7 +6,7 @@ Allows easy access to the Kounta POS RESTful API.
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'kounta'
9
+ gem 'kounta_rest'
10
10
 
11
11
  And then execute:
12
12
 
@@ -14,7 +14,7 @@ And then execute:
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
- $ gem install kounta
17
+ $ gem install kounta_rest
18
18
 
19
19
  ## Usage
20
20
 
@@ -22,12 +22,12 @@ Or install it yourself as:
22
22
 
23
23
  Then add your API details / other configuration options
24
24
 
25
- Kounta.configure do |config|
26
- config.client_id = "abcd1234"
27
- config.client_secret = "abcd1234"
28
- config.client_token = "abcd1234"
29
- config.client_refresh_token = "abcd1234"
30
- end
25
+ Kounta.configure do |config|
26
+ config.client_id = "abcd1234"
27
+ config.client_secret = "abcd1234"
28
+ config.client_token = "abcd1234"
29
+ config.client_refresh_token = "abcd1234"
30
+ end
31
31
 
32
32
  You may also enable / disable logging (disabled by default)
33
33
 
@@ -14,7 +14,7 @@ module Kounta
14
14
  property :taxes
15
15
  property :sites
16
16
 
17
- has_many :categories, Kounta::Category, {:company_id => :company_id}, lambda { |klass| {companies: klass.company_id, products: klass.company_id, categories: nil} }
17
+ has_many :categories, Kounta::Category, {:company_id => :company_id}, lambda { |klass| {companies: klass.company_id, products: klass.id, categories: nil} }
18
18
  coerce_key :taxes, Kounta::Tax
19
19
 
20
20
  def tags_include?(name)
@@ -1,3 +1,3 @@
1
1
  module Kounta
2
- VERSION = "0.0.2"
3
- end
2
+ VERSION = "0.0.3"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kounta_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-04 00:00:00.000000000 Z
12
+ date: 2013-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler