kippt 3.0 → 3.0.1

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzljMzEzMTM0MmY0YTIxNTkwOTMzMDkzYzM4YmM5ZWU0ZmZjODYyYQ==
4
+ MDBhNjllZmQzYTU0ZTc2NzBhYjU5NWFiYzE0MTczYTBkZTM2MjM3Zg==
5
5
  data.tar.gz: !binary |-
6
- ZTAwMDNhNTJmYzU4NmM2MGVmYzJkNGRkZTNlYTFjZWNkMjFjMTg4ZQ==
6
+ Y2JmNmVjOTc5MTNmNTg2Y2U4NGEzNGFmY2Y5MjQxNWU0MjAzNDc2YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTlhOWNlZWVhNmIxOWIwMDg4NDkxMmY0ZDg5M2ExMmI2YzE1MGJlZDg5OTQz
10
- ZDkxMTQ1MDM5MThlYzNlNmQxMDk0MzYxZWM3NDVkN2FmMTY4NWRmZjFkNTBh
11
- OWNmYzVlMDQ0ZTdlY2MwOGFhYTZhNWViMTRiY2M2Yzg2NDMwZmE=
9
+ NTI0MGU2YzFlOGFhNDAxNzFiYjc1YTE2OWQ2MDljMDJlOTNkNmNiNDYyNjc5
10
+ OGY4ZTYxOTYwYjE4OTk5MDRkYTA0M2E5ZjhmYTdjZWZjN2EzODdlZTgwYzY5
11
+ NzdhYWM2ZDJlMDI2YjQzYzJhOGI3NDc2MWE5M2Y5ZDQ0Yjg0OWI=
12
12
  data.tar.gz: !binary |-
13
- MjMxZjYxMmU1MjMyNTFjODRlNzQ4MTVkNDZmOTRjYzc3ZWJkNjAyZTgwNGQw
14
- MjkwMTdkOWNkYzQyNzNjNjg5NzNiZTQxMGUyNTIzYTdlYTc3YTk0Y2IyZmZi
15
- ZWJmMGU3MzA1MTkwMTNhMDUwM2YxNGM2ZWJiYTU1MjBjNjQ4MTg=
13
+ MGYzMTJjZTVkNDk3NjE5ZTlkZTQxMmJkOTU3M2I2NzlmNTM0MTJkOTIzZmNj
14
+ ZGY1MmViMTQ2MGE3ZGIxM2VmOGZlMjI5MzA4ZGY0OWZkNjdiYWYwYjhjYzIw
15
+ Mjg1N2YzZTU3NzZlZGM3MmMwMmQ5NDk0YTY5Y2ExOGIzNmI4YTM=
@@ -60,7 +60,7 @@ class Kippt::Client
60
60
  end
61
61
 
62
62
  def collection_resource_for(resource_class, *options)
63
- resource_class.new(*(options + [self]))
63
+ resource_class.new(*([self] + options))
64
64
  end
65
65
 
66
66
  def resource_from_url(resource_class, url)
@@ -25,7 +25,7 @@ class Kippt::Clip
25
25
  embedded_attributes :list => "Kippt::List", :via => "Kippt::Clip"
26
26
 
27
27
  def collection_resource_class
28
- Kippt::Clips
28
+ Kippt::RootClips
29
29
  end
30
30
 
31
31
  def list_uri
@@ -1,3 +1,3 @@
1
1
  module Kippt
2
- VERSION = "3.0"
2
+ VERSION = "3.0.1"
3
3
  end
@@ -132,12 +132,12 @@ describe Kippt::Client do
132
132
  subject { Kippt::Client.new(valid_user_credentials) }
133
133
 
134
134
  it "returns instance of the resource class" do
135
- subject.collection_resource_for(Kippt::Clip, {}).should be_a(Kippt::Clip)
135
+ subject.collection_resource_for(Kippt::Users).should be_a(Kippt::Users)
136
136
  end
137
137
 
138
138
  it "passes itself and the passed arguments as parameters" do
139
139
  resource_class = double :resource
140
- resource_class.should_receive(:new).with(:option1, :option2, subject)
140
+ resource_class.should_receive(:new).with(subject, :option1, :option2)
141
141
  subject.collection_resource_for(resource_class, :option1, :option2)
142
142
  end
143
143
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kippt
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.0'
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vesa Vänskä