yaccl 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2VhNjc2ODcxODliMWM1MjlkYjQwOGY0MjdmNmM2YzA0NGQ3NDIwYw==
4
+ MjE0M2U4YmJkNzUyYzM4MTNjODEyOTBhMjdjNGU2ZDljYzY0YjE0Zg==
5
5
  data.tar.gz: !binary |-
6
- M2QyOThiMzY1MGNhODdjM2U4MWU4MWM3MmE5NDhiYjY2ZDdjZGEwNg==
6
+ ZTkxZTFiNjAzOTJmNjk0YTVmMDkxMjk3ZDBiZmRiZmFjODZkNmRjYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTk5ODE4Yzc3NWQ4N2RkOTBmY2M1MTRkNDQ2Y2YwNDdlOTI5MmViOTBkYzli
10
- ZGIyMzg1NDNjOWE3MTY2YzBlN2MwMmJkMzNjZDJlMTc3YTExYmJkNTdiMGJk
11
- MWJhYzMyMzY5OGNjYjU2NGQ2NThmYzJmZDUyY2NjMzUwN2Y4MjY=
9
+ ZDBkZjY5NDIzZDI2M2UxZjYwZTk5ODM5ZjAwMjJjOGNjODEzMzQ5MzQyODdl
10
+ ZjgyYThkNWUwOTk5YzU5Y2QwYTBjMTFmZGZlOGY3OWE3NmU3MmJkNGI3OTVl
11
+ MDc1YmFlYWRiMWMxN2M1YzkwMTkyZjJjMWFlY2VmMDM0OGNhMTg=
12
12
  data.tar.gz: !binary |-
13
- NjhiODBjZThiYzRlM2E5ODRhZTdiMmRjOWExNTcxYjBlM2NjMzYyMDU1ZjYz
14
- ZmVkOGZhMDdkZGQwMzYzMjVmYTRlNGRhMGU5NzU0ZjM3MjQ4NzA0YTI3ZmNm
15
- YWMzMjU5YTk2ZTdlYjYxMTYwODZkZTEyNGRiOTA3OWZkZjBkYWI=
13
+ Y2QxMGIyMDdiYTM3ZTQ3YTEwNDk1ZjgzZGRmNWMzMGNjYzlmNmYwMzMxNGNl
14
+ YjFkYTFiMGQ2YzY0ODhiNDNhYjg1ZmZiY2E0ZjA1MWNmYjhhYmM4ZGZkMTEw
15
+ ODU0MWViMzg2OWE0MzQxODViNWFmM2I5MmFlZjU3YTg2M2RkOWU=
@@ -3,7 +3,7 @@ module YACCL
3
3
  class PropertyDefinition
4
4
 
5
5
  attr_accessor :id, :local_name, :query_name, :inherited,
6
- :open_choise, :orderable, :property_type, :updatability,
6
+ :open_choice, :orderable, :property_type, :updatability,
7
7
  :display_name, :required, :cardinality, :queryable
8
8
 
9
9
  def initialize(hash={})
@@ -95,7 +95,9 @@ module YACCL
95
95
  props = hash.delete(:properties)
96
96
  if props.is_a?(Hash)
97
97
  props.each_with_index do |(id, value), index|
98
- value = (value.to_f * 1000).to_i if value.is_a?(Time)
98
+ if value.is_a?(Time) || value.is_a?(DateTime)
99
+ value = (value.to_f * 1000).to_i
100
+ end
99
101
  hash.merge!("propertyId[#{index}]" => id,
100
102
  "propertyValue[#{index}]" => value)
101
103
  end
data/lib/yaccl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaccl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenneth Geerts
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-19 00:00:00.000000000 Z
12
+ date: 2013-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty