urbanesia 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/urbanesia.rb +14 -0
- metadata +63 -0
data/lib/urbanesia.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'urbanesia/agent'
|
2
|
+
|
3
|
+
class Urbanesia
|
4
|
+
|
5
|
+
|
6
|
+
# Outputs either the key or the secret depending on the input
|
7
|
+
#
|
8
|
+
# @param [Symbol] input variable to be printed, ':key' or any other value
|
9
|
+
# @return [String] The printed variable
|
10
|
+
def self.hi(input = :key)
|
11
|
+
agent = Agent.new("key", "secret")
|
12
|
+
p agent.hi(input)
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: urbanesia
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Michael Cho
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: mechanize
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: ! 'Wrapper to access the Urbanesia API (docs here: http://api1.urbanesia.com/get/?manual=please
|
31
|
+
). Gem is a port of the PHP wrapper found here: https://github.com/Urbanesia/Oauthnesia'
|
32
|
+
email: michael.cho@lotuspartners.sg
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- lib/urbanesia.rb
|
38
|
+
homepage: http://rubygems.org/gems/urbanesia
|
39
|
+
licenses: []
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options: []
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 1.8.24
|
59
|
+
signing_key:
|
60
|
+
specification_version: 3
|
61
|
+
summary: Wrapper to access the Urbanesia API
|
62
|
+
test_files: []
|
63
|
+
has_rdoc:
|