moonlogs-ruby 0.0.1.pre.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +524 -0
- data/Rakefile +8 -0
- data/docs/ApiToken.md +10 -0
- data/docs/Credentials.md +8 -0
- data/docs/DefaultApi.md +1318 -0
- data/docs/InlineResponse200.md +11 -0
- data/docs/InlineResponse2001.md +11 -0
- data/docs/InlineResponse20010.md +11 -0
- data/docs/InlineResponse20011.md +11 -0
- data/docs/InlineResponse20012.md +11 -0
- data/docs/InlineResponse20013.md +11 -0
- data/docs/InlineResponse2002.md +11 -0
- data/docs/InlineResponse2003.md +11 -0
- data/docs/InlineResponse2004.md +11 -0
- data/docs/InlineResponse2005.md +11 -0
- data/docs/InlineResponse2006.md +11 -0
- data/docs/InlineResponse2007.md +11 -0
- data/docs/InlineResponse2008.md +11 -0
- data/docs/InlineResponse2009.md +11 -0
- data/docs/Level.md +6 -0
- data/docs/Meta.md +9 -0
- data/docs/OneOfRecordLevel.md +6 -0
- data/docs/OneOfUserRole.md +6 -0
- data/docs/Record.md +15 -0
- data/docs/Role.md +6 -0
- data/docs/Schema.md +14 -0
- data/docs/SchemaField.md +8 -0
- data/docs/SchemaKind.md +8 -0
- data/docs/SchemaSearch.md +8 -0
- data/docs/Session.md +7 -0
- data/docs/Tag.md +8 -0
- data/docs/User.md +14 -0
- data/git_push.sh +55 -0
- data/lib/moonlogs-ruby/api/default_api.rb +1458 -0
- data/lib/moonlogs-ruby/api_client.rb +388 -0
- data/lib/moonlogs-ruby/api_error.rb +57 -0
- data/lib/moonlogs-ruby/configuration.rb +205 -0
- data/lib/moonlogs-ruby/models/api_token.rb +253 -0
- data/lib/moonlogs-ruby/models/credentials.rb +225 -0
- data/lib/moonlogs-ruby/models/inline_response_200.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_1.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_10.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_11.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_12.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_13.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_2.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_3.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_4.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_5.rb +269 -0
- data/lib/moonlogs-ruby/models/inline_response_200_6.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_7.rb +268 -0
- data/lib/moonlogs-ruby/models/inline_response_200_8.rb +267 -0
- data/lib/moonlogs-ruby/models/inline_response_200_9.rb +269 -0
- data/lib/moonlogs-ruby/models/level.rb +32 -0
- data/lib/moonlogs-ruby/models/meta.rb +239 -0
- data/lib/moonlogs-ruby/models/one_of_record_level.rb +197 -0
- data/lib/moonlogs-ruby/models/one_of_user_role.rb +197 -0
- data/lib/moonlogs-ruby/models/record.rb +303 -0
- data/lib/moonlogs-ruby/models/role.rb +28 -0
- data/lib/moonlogs-ruby/models/schema.rb +298 -0
- data/lib/moonlogs-ruby/models/schema_field.rb +225 -0
- data/lib/moonlogs-ruby/models/schema_kind.rb +225 -0
- data/lib/moonlogs-ruby/models/schema_search.rb +215 -0
- data/lib/moonlogs-ruby/models/session.rb +211 -0
- data/lib/moonlogs-ruby/models/tag.rb +225 -0
- data/lib/moonlogs-ruby/models/user.rb +301 -0
- data/lib/moonlogs-ruby/version.rb +14 -0
- data/lib/moonlogs-ruby.rb +68 -0
- data/moonlogs-ruby-0.0.1.0.gem +0 -0
- data/moonlogs-ruby-0.0.1.gem +0 -0
- data/moonlogs-ruby.gemspec +38 -0
- data/spec/api/default_api_spec.rb +317 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/api_token_spec.rb +58 -0
- data/spec/models/credentials_spec.rb +46 -0
- data/spec/models/inline_response_200_10_spec.rb +64 -0
- data/spec/models/inline_response_200_11_spec.rb +64 -0
- data/spec/models/inline_response_200_12_spec.rb +64 -0
- data/spec/models/inline_response_200_13_spec.rb +64 -0
- data/spec/models/inline_response_200_1_spec.rb +64 -0
- data/spec/models/inline_response_200_2_spec.rb +64 -0
- data/spec/models/inline_response_200_3_spec.rb +64 -0
- data/spec/models/inline_response_200_4_spec.rb +64 -0
- data/spec/models/inline_response_200_5_spec.rb +64 -0
- data/spec/models/inline_response_200_6_spec.rb +64 -0
- data/spec/models/inline_response_200_7_spec.rb +64 -0
- data/spec/models/inline_response_200_8_spec.rb +64 -0
- data/spec/models/inline_response_200_9_spec.rb +64 -0
- data/spec/models/inline_response_200_spec.rb +64 -0
- data/spec/models/level_spec.rb +34 -0
- data/spec/models/meta_spec.rb +52 -0
- data/spec/models/one_of_record_level_spec.rb +34 -0
- data/spec/models/one_of_user_role_spec.rb +34 -0
- data/spec/models/record_spec.rb +88 -0
- data/spec/models/role_spec.rb +34 -0
- data/spec/models/schema_field_spec.rb +46 -0
- data/spec/models/schema_kind_spec.rb +46 -0
- data/spec/models/schema_search_spec.rb +46 -0
- data/spec/models/schema_spec.rb +82 -0
- data/spec/models/session_spec.rb +40 -0
- data/spec/models/tag_spec.rb +46 -0
- data/spec/models/user_spec.rb +82 -0
- data/spec/spec_helper.rb +110 -0
- metadata +243 -0
@@ -0,0 +1,301 @@
|
|
1
|
+
=begin
|
2
|
+
#Moonlogs
|
3
|
+
|
4
|
+
#Moonlogs API
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
Contact: shalpack@gmail.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.52
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module MoonlogsRuby
|
15
|
+
class User
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
attr_accessor :email
|
21
|
+
|
22
|
+
attr_accessor :password
|
23
|
+
|
24
|
+
attr_accessor :password_digest
|
25
|
+
|
26
|
+
attr_accessor :role
|
27
|
+
|
28
|
+
attr_accessor :tags
|
29
|
+
|
30
|
+
attr_accessor :token
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'id' => :'id',
|
36
|
+
:'name' => :'name',
|
37
|
+
:'email' => :'email',
|
38
|
+
:'password' => :'password',
|
39
|
+
:'password_digest' => :'password_digest',
|
40
|
+
:'role' => :'role',
|
41
|
+
:'tags' => :'tags',
|
42
|
+
:'token' => :'token'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'id' => :'Object',
|
50
|
+
:'name' => :'Object',
|
51
|
+
:'email' => :'Object',
|
52
|
+
:'password' => :'Object',
|
53
|
+
:'password_digest' => :'Object',
|
54
|
+
:'role' => :'Object',
|
55
|
+
:'tags' => :'Object',
|
56
|
+
:'token' => :'Object'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# List of attributes with nullable: true
|
61
|
+
def self.openapi_nullable
|
62
|
+
Set.new([
|
63
|
+
])
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MoonlogsRuby::User` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MoonlogsRuby::User`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
|
+
end
|
78
|
+
h[k.to_sym] = v
|
79
|
+
}
|
80
|
+
|
81
|
+
if attributes.key?(:'id')
|
82
|
+
self.id = attributes[:'id']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'name')
|
86
|
+
self.name = attributes[:'name']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'email')
|
90
|
+
self.email = attributes[:'email']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'password')
|
94
|
+
self.password = attributes[:'password']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'password_digest')
|
98
|
+
self.password_digest = attributes[:'password_digest']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'role')
|
102
|
+
self.role = attributes[:'role']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'tags')
|
106
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
107
|
+
self.tags = value
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'token')
|
112
|
+
self.token = attributes[:'token']
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
+
# @return Array for valid properties with the reasons
|
118
|
+
def list_invalid_properties
|
119
|
+
invalid_properties = Array.new
|
120
|
+
if @id.nil?
|
121
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
|
+
if @name.nil?
|
125
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
126
|
+
end
|
127
|
+
|
128
|
+
if @email.nil?
|
129
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
130
|
+
end
|
131
|
+
|
132
|
+
if @password.nil?
|
133
|
+
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if @role.nil?
|
137
|
+
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @tags.nil?
|
141
|
+
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
invalid_properties
|
145
|
+
end
|
146
|
+
|
147
|
+
# Check to see if the all the properties in the model are valid
|
148
|
+
# @return true if the model is valid
|
149
|
+
def valid?
|
150
|
+
return false if @id.nil?
|
151
|
+
return false if @name.nil?
|
152
|
+
return false if @email.nil?
|
153
|
+
return false if @password.nil?
|
154
|
+
return false if @role.nil?
|
155
|
+
return false if @tags.nil?
|
156
|
+
true
|
157
|
+
end
|
158
|
+
|
159
|
+
# Checks equality by comparing each attribute.
|
160
|
+
# @param [Object] Object to be compared
|
161
|
+
def ==(o)
|
162
|
+
return true if self.equal?(o)
|
163
|
+
self.class == o.class &&
|
164
|
+
id == o.id &&
|
165
|
+
name == o.name &&
|
166
|
+
email == o.email &&
|
167
|
+
password == o.password &&
|
168
|
+
password_digest == o.password_digest &&
|
169
|
+
role == o.role &&
|
170
|
+
tags == o.tags &&
|
171
|
+
token == o.token
|
172
|
+
end
|
173
|
+
|
174
|
+
# @see the `==` method
|
175
|
+
# @param [Object] Object to be compared
|
176
|
+
def eql?(o)
|
177
|
+
self == o
|
178
|
+
end
|
179
|
+
|
180
|
+
# Calculates hash code according to all attributes.
|
181
|
+
# @return [Integer] Hash code
|
182
|
+
def hash
|
183
|
+
[id, name, email, password, password_digest, role, tags, token].hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Builds the object from hash
|
187
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
188
|
+
# @return [Object] Returns the model itself
|
189
|
+
def self.build_from_hash(attributes)
|
190
|
+
new.build_from_hash(attributes)
|
191
|
+
end
|
192
|
+
|
193
|
+
# Builds the object from hash
|
194
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
195
|
+
# @return [Object] Returns the model itself
|
196
|
+
def build_from_hash(attributes)
|
197
|
+
return nil unless attributes.is_a?(Hash)
|
198
|
+
self.class.openapi_types.each_pair do |key, type|
|
199
|
+
if type =~ /\AArray<(.*)>/i
|
200
|
+
# check to ensure the input is an array given that the attribute
|
201
|
+
# is documented as an array but the input is not
|
202
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
203
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
204
|
+
end
|
205
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
206
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
207
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
208
|
+
self.send("#{key}=", nil)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
self
|
213
|
+
end
|
214
|
+
|
215
|
+
# Deserializes the data based on type
|
216
|
+
# @param string type Data type
|
217
|
+
# @param string value Value to be deserialized
|
218
|
+
# @return [Object] Deserialized data
|
219
|
+
def _deserialize(type, value)
|
220
|
+
case type.to_sym
|
221
|
+
when :DateTime
|
222
|
+
DateTime.parse(value)
|
223
|
+
when :Date
|
224
|
+
Date.parse(value)
|
225
|
+
when :String
|
226
|
+
value.to_s
|
227
|
+
when :Integer
|
228
|
+
value.to_i
|
229
|
+
when :Float
|
230
|
+
value.to_f
|
231
|
+
when :Boolean
|
232
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
233
|
+
true
|
234
|
+
else
|
235
|
+
false
|
236
|
+
end
|
237
|
+
when :Object
|
238
|
+
# generic object (usually a Hash), return directly
|
239
|
+
value
|
240
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
241
|
+
inner_type = Regexp.last_match[:inner_type]
|
242
|
+
value.map { |v| _deserialize(inner_type, v) }
|
243
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
244
|
+
k_type = Regexp.last_match[:k_type]
|
245
|
+
v_type = Regexp.last_match[:v_type]
|
246
|
+
{}.tap do |hash|
|
247
|
+
value.each do |k, v|
|
248
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
else # model
|
252
|
+
MoonlogsRuby.const_get(type).build_from_hash(value)
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
# Returns the string representation of the object
|
257
|
+
# @return [String] String presentation of the object
|
258
|
+
def to_s
|
259
|
+
to_hash.to_s
|
260
|
+
end
|
261
|
+
|
262
|
+
# to_body is an alias to to_hash (backward compatibility)
|
263
|
+
# @return [Hash] Returns the object in the form of hash
|
264
|
+
def to_body
|
265
|
+
to_hash
|
266
|
+
end
|
267
|
+
|
268
|
+
# Returns the object in the form of hash
|
269
|
+
# @return [Hash] Returns the object in the form of hash
|
270
|
+
def to_hash
|
271
|
+
hash = {}
|
272
|
+
self.class.attribute_map.each_pair do |attr, param|
|
273
|
+
value = self.send(attr)
|
274
|
+
if value.nil?
|
275
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
276
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
277
|
+
end
|
278
|
+
|
279
|
+
hash[param] = _to_hash(value)
|
280
|
+
end
|
281
|
+
hash
|
282
|
+
end
|
283
|
+
|
284
|
+
# Outputs non-array value in the form of hash
|
285
|
+
# For object, use to_hash. Otherwise, just return the value
|
286
|
+
# @param [Object] value Any valid value
|
287
|
+
# @return [Hash] Returns the value in the form of hash
|
288
|
+
def _to_hash(value)
|
289
|
+
if value.is_a?(Array)
|
290
|
+
value.compact.map { |v| _to_hash(v) }
|
291
|
+
elsif value.is_a?(Hash)
|
292
|
+
{}.tap do |hash|
|
293
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
294
|
+
end
|
295
|
+
elsif value.respond_to? :to_hash
|
296
|
+
value.to_hash
|
297
|
+
else
|
298
|
+
value
|
299
|
+
end
|
300
|
+
end end
|
301
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
=begin
|
2
|
+
#Moonlogs
|
3
|
+
|
4
|
+
#Moonlogs API
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
Contact: shalpack@gmail.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.52
|
10
|
+
=end
|
11
|
+
|
12
|
+
module MoonlogsRuby
|
13
|
+
VERSION = '0.0.1-rc'
|
14
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
=begin
|
2
|
+
#Moonlogs
|
3
|
+
|
4
|
+
#Moonlogs API
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
Contact: shalpack@gmail.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.52
|
10
|
+
=end
|
11
|
+
|
12
|
+
# Common files
|
13
|
+
require 'moonlogs-ruby/api_client'
|
14
|
+
require 'moonlogs-ruby/api_error'
|
15
|
+
require 'moonlogs-ruby/version'
|
16
|
+
require 'moonlogs-ruby/configuration'
|
17
|
+
|
18
|
+
# Models
|
19
|
+
require 'moonlogs-ruby/models/api_token'
|
20
|
+
require 'moonlogs-ruby/models/credentials'
|
21
|
+
require 'moonlogs-ruby/models/inline_response_200'
|
22
|
+
require 'moonlogs-ruby/models/inline_response_200_1'
|
23
|
+
require 'moonlogs-ruby/models/inline_response_200_10'
|
24
|
+
require 'moonlogs-ruby/models/inline_response_200_11'
|
25
|
+
require 'moonlogs-ruby/models/inline_response_200_12'
|
26
|
+
require 'moonlogs-ruby/models/inline_response_200_13'
|
27
|
+
require 'moonlogs-ruby/models/inline_response_200_2'
|
28
|
+
require 'moonlogs-ruby/models/inline_response_200_3'
|
29
|
+
require 'moonlogs-ruby/models/inline_response_200_4'
|
30
|
+
require 'moonlogs-ruby/models/inline_response_200_5'
|
31
|
+
require 'moonlogs-ruby/models/inline_response_200_6'
|
32
|
+
require 'moonlogs-ruby/models/inline_response_200_7'
|
33
|
+
require 'moonlogs-ruby/models/inline_response_200_8'
|
34
|
+
require 'moonlogs-ruby/models/inline_response_200_9'
|
35
|
+
require 'moonlogs-ruby/models/level'
|
36
|
+
require 'moonlogs-ruby/models/meta'
|
37
|
+
require 'moonlogs-ruby/models/one_of_record_level'
|
38
|
+
require 'moonlogs-ruby/models/one_of_user_role'
|
39
|
+
require 'moonlogs-ruby/models/record'
|
40
|
+
require 'moonlogs-ruby/models/role'
|
41
|
+
require 'moonlogs-ruby/models/schema'
|
42
|
+
require 'moonlogs-ruby/models/schema_field'
|
43
|
+
require 'moonlogs-ruby/models/schema_kind'
|
44
|
+
require 'moonlogs-ruby/models/schema_search'
|
45
|
+
require 'moonlogs-ruby/models/session'
|
46
|
+
require 'moonlogs-ruby/models/tag'
|
47
|
+
require 'moonlogs-ruby/models/user'
|
48
|
+
|
49
|
+
# APIs
|
50
|
+
require 'moonlogs-ruby/api/default_api'
|
51
|
+
|
52
|
+
module MoonlogsRuby
|
53
|
+
class << self
|
54
|
+
# Customize default settings for the SDK using block.
|
55
|
+
# MoonlogsRuby.configure do |config|
|
56
|
+
# config.username = "xxx"
|
57
|
+
# config.password = "xxx"
|
58
|
+
# end
|
59
|
+
# If no block given, return the default Configuration object.
|
60
|
+
def configure
|
61
|
+
if block_given?
|
62
|
+
yield(Configuration.default)
|
63
|
+
else
|
64
|
+
Configuration.default
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Moonlogs
|
5
|
+
|
6
|
+
#Moonlogs API
|
7
|
+
|
8
|
+
OpenAPI spec version: 0.0.1
|
9
|
+
Contact: shalpack@gmail.com
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 3.0.52
|
12
|
+
=end
|
13
|
+
|
14
|
+
$:.push File.expand_path("../lib", __FILE__)
|
15
|
+
require "moonlogs-ruby/version"
|
16
|
+
|
17
|
+
Gem::Specification.new do |s|
|
18
|
+
s.name = "moonlogs-ruby"
|
19
|
+
s.version = MoonlogsRuby::VERSION
|
20
|
+
s.platform = Gem::Platform::RUBY
|
21
|
+
s.authors = ["pijng"]
|
22
|
+
s.email = ["shalpack@gmail.com"]
|
23
|
+
s.homepage = "https://github.com/pijng/moonlogs-ruby"
|
24
|
+
s.summary = "Moonlogs Ruby Gem"
|
25
|
+
s.description = "Moonlogs API"
|
26
|
+
s.license = "Unlicense"
|
27
|
+
s.required_ruby_version = ">= 1.9"
|
28
|
+
|
29
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
30
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|