inkling_api 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/inkling_api.rb +4 -0
- data/lib/inkling_api/version.rb +1 -1
- data/spec/inkling_api_spec.rb +4 -0
- metadata +23 -23
data/lib/inkling_api.rb
CHANGED
@@ -174,6 +174,10 @@ module InklingApi
|
|
174
174
|
get("memberships/#{member_id}.xml", *args)
|
175
175
|
end
|
176
176
|
|
177
|
+
def me # Get's membership of current logged in user
|
178
|
+
get("memberships/me.xml")
|
179
|
+
end
|
180
|
+
|
177
181
|
def create_membership(login, email, password, first_name, last_name)
|
178
182
|
membership_data = { :'login' => login,
|
179
183
|
:'password' => password,
|
data/lib/inkling_api/version.rb
CHANGED
data/spec/inkling_api_spec.rb
CHANGED
@@ -79,6 +79,10 @@ describe InklingApi do
|
|
79
79
|
inkling_api.membership(member_id).should be_a(Hash)
|
80
80
|
end
|
81
81
|
|
82
|
+
it "should get the membership of the logged in user" do
|
83
|
+
inkling_api.me.should be_a(Hash)
|
84
|
+
end
|
85
|
+
|
82
86
|
it "should create a membership" do
|
83
87
|
login = "foo_bar#{Time.now.utc.to_i.to_s}"
|
84
88
|
email = "foo#{Time.now.utc.to_i.to_s}@bar.com"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inkling_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -16,7 +16,7 @@ default_executable:
|
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: faraday
|
19
|
-
requirement: &
|
19
|
+
requirement: &18829500 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: 0.7.4
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *18829500
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: faraday-stack
|
30
|
-
requirement: &
|
30
|
+
requirement: &18829000 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: 0.1.3
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *18829000
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: hashie
|
41
|
-
requirement: &
|
41
|
+
requirement: &18828540 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: 1.1.0
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *18828540
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: activesupport
|
52
|
-
requirement: &
|
52
|
+
requirement: &18828080 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ~>
|
@@ -57,10 +57,10 @@ dependencies:
|
|
57
57
|
version: 3.0.9
|
58
58
|
type: :runtime
|
59
59
|
prerelease: false
|
60
|
-
version_requirements: *
|
60
|
+
version_requirements: *18828080
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: i18n
|
63
|
-
requirement: &
|
63
|
+
requirement: &18827620 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
@@ -68,10 +68,10 @@ dependencies:
|
|
68
68
|
version: 0.6.0
|
69
69
|
type: :runtime
|
70
70
|
prerelease: false
|
71
|
-
version_requirements: *
|
71
|
+
version_requirements: *18827620
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: builder
|
74
|
-
requirement: &
|
74
|
+
requirement: &18827160 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
@@ -79,10 +79,10 @@ dependencies:
|
|
79
79
|
version: 3.0.0
|
80
80
|
type: :runtime
|
81
81
|
prerelease: false
|
82
|
-
version_requirements: *
|
82
|
+
version_requirements: *18827160
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
|
-
requirement: &
|
85
|
+
requirement: &18826700 !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
@@ -90,10 +90,10 @@ dependencies:
|
|
90
90
|
version: 2.6.0
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
|
-
version_requirements: *
|
93
|
+
version_requirements: *18826700
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: rspec-core
|
96
|
-
requirement: &
|
96
|
+
requirement: &18826240 !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
@@ -101,10 +101,10 @@ dependencies:
|
|
101
101
|
version: 2.6.0
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
|
-
version_requirements: *
|
104
|
+
version_requirements: *18826240
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: json_spec
|
107
|
-
requirement: &
|
107
|
+
requirement: &18825780 !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|
110
110
|
- - ~>
|
@@ -112,10 +112,10 @@ dependencies:
|
|
112
112
|
version: 0.6.0
|
113
113
|
type: :development
|
114
114
|
prerelease: false
|
115
|
-
version_requirements: *
|
115
|
+
version_requirements: *18825780
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: shoulda
|
118
|
-
requirement: &
|
118
|
+
requirement: &18825320 !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
121
121
|
- - ~>
|
@@ -123,10 +123,10 @@ dependencies:
|
|
123
123
|
version: 2.11.3
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
|
-
version_requirements: *
|
126
|
+
version_requirements: *18825320
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: ruby-debug19
|
129
|
-
requirement: &
|
129
|
+
requirement: &18824940 !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
132
|
- - ! '>='
|
@@ -134,7 +134,7 @@ dependencies:
|
|
134
134
|
version: '0'
|
135
135
|
type: :development
|
136
136
|
prerelease: false
|
137
|
-
version_requirements: *
|
137
|
+
version_requirements: *18824940
|
138
138
|
description:
|
139
139
|
email:
|
140
140
|
- david@isotope11.com
|