lapse 0.0.23 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 316379fcf0d2ae71a91862856abb2efab9b3ee19
4
+ data.tar.gz: 9739d8802dc9d5422c2021e384517026dc5f5b52
5
+ SHA512:
6
+ metadata.gz: 49f67b0074f913237c2bcde23c48bc21cce915bdb09dc3883c9f297f26896508db5abe59a0ed8ce54852a89499fdfea6a80dbad31a03b056844cd7a9adecb388
7
+ data.tar.gz: b3050de79103243c34d7a72215cf924c126e79fcb54ca200837d56f9602873e64a6d1abff681491b152429aee23f85e69d5913143768ecb23a4dc3ff11423deb
@@ -10,9 +10,9 @@ module Lapse
10
10
  get('clips/featured').body
11
11
  end
12
12
 
13
- def clip(clip_id, slug = false)
13
+ def clip(clip_id)
14
14
  params = {}
15
- params[:slug] = true if slug
15
+ params[:slug] = true if clip_id.is_a?(String)
16
16
  get("clips/#{clip_id}", params).body
17
17
  end
18
18
 
@@ -71,6 +71,12 @@ module Lapse
71
71
  def block(user_id)
72
72
  boolean_from_response(:post, "users/#{user_id}/block")
73
73
  end
74
+
75
+ def user(user_id)
76
+ params = {}
77
+ params[:username] = true if user_id.is_a?(String)
78
+ get("users/#{user_id}", params).body
79
+ end
74
80
  end
75
81
  end
76
82
  end
@@ -1,4 +1,4 @@
1
1
  module Lapse
2
2
  # Verion of the Lapse gem
3
- VERSION = '0.0.23'
3
+ VERSION = '0.1.0'
4
4
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Sam Soffes
@@ -11,12 +10,11 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-07-01 00:00:00.000000000 Z
13
+ date: 2013-07-10 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: multi_json
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ~>
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
@@ -32,17 +29,15 @@ dependencies:
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: hashie
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: '0'
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
48
43
  description: Ruby gem for working with the Everlapse API.
@@ -90,30 +85,26 @@ files:
90
85
  homepage: https://github.com/seesawco/lapse-rb
91
86
  licenses:
92
87
  - MIT
88
+ metadata: {}
93
89
  post_install_message:
94
90
  rdoc_options: []
95
91
  require_paths:
96
92
  - lib
97
93
  required_ruby_version: !ruby/object:Gem::Requirement
98
- none: false
99
94
  requirements:
100
- - - ! '>='
95
+ - - '>='
101
96
  - !ruby/object:Gem::Version
102
97
  version: 1.8.7
103
98
  required_rubygems_version: !ruby/object:Gem::Requirement
104
- none: false
105
99
  requirements:
106
- - - ! '>='
100
+ - - '>='
107
101
  - !ruby/object:Gem::Version
108
102
  version: '0'
109
- segments:
110
- - 0
111
- hash: -594447016018428953
112
103
  requirements: []
113
104
  rubyforge_project:
114
- rubygems_version: 1.8.23
105
+ rubygems_version: 2.0.2
115
106
  signing_key:
116
- specification_version: 3
107
+ specification_version: 4
117
108
  summary: Ruby gem for working with the Everlapse API.
118
109
  test_files:
119
110
  - test/lapse/client/clips_test.rb