lolcation_client 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CONTRIBUTING.md +43 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +91 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/generators/lolcation_client/install_generator.rb +16 -0
- data/lib/generators/lolcation_client/migration_generator.rb +47 -0
- data/lib/generators/lolcation_client/templates/lolcation.yml +8 -0
- data/lib/generators/lolcation_client/templates/migration.rb +15 -0
- data/lib/lolcation_client/configurations.rb +5 -0
- data/lib/lolcation_client/custom_fields.rb +7 -0
- data/lib/lolcation_client/interceptor.rb +94 -0
- data/lib/lolcation_client/version.rb +3 -0
- data/lib/lolcation_client.rb +12 -0
- data/lolcation_client.gemspec +38 -0
- metadata +137 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 360b216fb23e60e4142114dd41c50cab60876d0f
|
4
|
+
data.tar.gz: 15b66806c2d1f7492fbff90cacabc62fa62d0a5d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 442370035d2a77f49b6facc651836db1572681d4bde2b9cc291c93bdd7df193f08900aacc8c34af964f68a366646f092b840db5fb283c41af0f885885bde490f
|
7
|
+
data.tar.gz: db4d8b67f6234fc281b4f9a23a8450d48f1e12585cf426bf87268b886485c264bd37b8fc89a67af2fb9baaf1dab4d818f224736672b30a4638196e9bd038b34a
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
We love pull requests. Here's a quick guide:
|
4
|
+
|
5
|
+
1. Fork the repo.
|
6
|
+
|
7
|
+
1. Create your feature branch (`git checkout -b my-new-feature`)
|
8
|
+
|
9
|
+
1. Run the tests. We only take pull requests with passing tests, and it's great
|
10
|
+
to know that you have a clean slate: `bundle && rake`
|
11
|
+
|
12
|
+
1. Add a test for your change. Only refactoring and documentation changes
|
13
|
+
require no new tests. If you are adding functionality or fixing a bug, we need
|
14
|
+
a test!
|
15
|
+
|
16
|
+
1. Make the test pass.
|
17
|
+
|
18
|
+
1. Update [CHANGELOG.md](https://github.com/loldesign/lolcation_client/blob/master/CHANGELOG.md) with a brief description of your changes under the `unreleased` heading.
|
19
|
+
|
20
|
+
1. Commit your changes (`git commit -am 'Added some feature'`)
|
21
|
+
|
22
|
+
1. Push to the branch (`git push origin my-new-feature`)
|
23
|
+
|
24
|
+
1. Create new Pull Request
|
25
|
+
|
26
|
+
At this point you're waiting on us. We like to at least give you feedback, if not just
|
27
|
+
accept it, within a few days, depending on our internal priorities.
|
28
|
+
|
29
|
+
Some things that will increase the chance that your pull request is accepted is to follow the practices described on [Ruby style guide](https://github.com/bbatsov/ruby-style-guide), [Rails style guide](https://github.com/bbatsov/rails-style-guide) and [Better Specs](http://betterspecs.org/).
|
30
|
+
|
31
|
+
## General rules
|
32
|
+
|
33
|
+
- Version upgrade of gems should be done only via PR (without opening an issue before)
|
34
|
+
- Features should be discussed on issues before opening a PR. If passed 15 days without interaction on the issue(a comment, a pull request) the issue will be closed.
|
35
|
+
- Every PR of new features/gems should come with the specs/feature of the change
|
36
|
+
|
37
|
+
## Removing gems
|
38
|
+
|
39
|
+
Pah is an opinionated Rails template. All gems are our recommendations to recurring problems based on our experience. For example, when writing tests that need to access network we recommend using VCR and WebMock.
|
40
|
+
If you want to make a PR to add/remove gem X, please follow the steps below:
|
41
|
+
|
42
|
+
1. Make a PR to our blog and explain the gem's pros and cons, how to use, the tricks etc.
|
43
|
+
1. Make a PR to remove gem X
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Marcelo Barreto
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# LOLCATION CLIENT
|
2
|
+
[![Build Status][travis_badge]][travis]
|
3
|
+
[![RubyGems][gem_version_badge]][ruby_gems]
|
4
|
+
[![Code Climate][code_climate_badge]][code_climate]
|
5
|
+
[![Gemnasium][gemnasium_badge]][gemnasium]
|
6
|
+
[![RubyGems][gem_downloads_badge]][ruby_gems]
|
7
|
+
|
8
|
+
A Rails GEM to use Lolcation Service.
|
9
|
+
|
10
|
+
## Getting started
|
11
|
+
You can add it to your Gemfile with:
|
12
|
+
|
13
|
+
gem 'lolcation_client'
|
14
|
+
Then run bundle install
|
15
|
+
|
16
|
+
Next, you need to run the generator:
|
17
|
+
|
18
|
+
`$ rails generate lolcation:install`
|
19
|
+
|
20
|
+
and
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
class LolcalizationModel < ApplicationRecord
|
24
|
+
extend LolcationClient
|
25
|
+
end
|
26
|
+
```
|
27
|
+
You can also define lolcation_custom_fields, so you can filter later when you need
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
class LolcalizationModel < ApplicationRecord
|
31
|
+
extend LolcationClient
|
32
|
+
|
33
|
+
lolcation_custom_fields :foo, :bar, :baz
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
`$ rails generate lolcation:migration MODEL`
|
38
|
+
|
39
|
+
then run:
|
40
|
+
|
41
|
+
`$ rails db:migrate`
|
42
|
+
|
43
|
+
|
44
|
+
DO NOT FORGET TO SET UP YOUR LOLCATION TOKEN AT `config/lolcation.yml`
|
45
|
+
|
46
|
+
## Versioning
|
47
|
+
|
48
|
+
LOLCATION CLIENT follows the [Semantic Versioning](http://semver.org/) standard.
|
49
|
+
|
50
|
+
## Issues
|
51
|
+
|
52
|
+
If you have problems, please create a [Github Issue](https://github.com/loldesign/lolcation_client/issues).
|
53
|
+
|
54
|
+
## Contributing
|
55
|
+
|
56
|
+
Please see [CONTRIBUTING.md](https://github.com/loldesign/lolcation_client/blob/master/CONTRIBUTING.md) for details.
|
57
|
+
|
58
|
+
## Maintainers
|
59
|
+
|
60
|
+
- [Eduardo Zaghi](https://github.com/eduzera)
|
61
|
+
- [Marcelo Barreto](https://github.com/marcelobarreto)
|
62
|
+
- [Paulo Henrique Sacramento](https://github.com/henriquesacramento)
|
63
|
+
|
64
|
+
## Release
|
65
|
+
|
66
|
+
Follow this steps to release a new version of the gem.
|
67
|
+
|
68
|
+
1. Test if everything is running ok;
|
69
|
+
2. Change version of the gem on `VERSION` constant;
|
70
|
+
3. Add the release date on the `CHANGELOG`;
|
71
|
+
4. Do a commit "Bump version x.x.x", follow the semantic version;
|
72
|
+
5. Run `$ rake release`, this will send the gem to the rubygems;
|
73
|
+
6. Check if the gem is on the rubygems and the tags are correct on the github;
|
74
|
+
|
75
|
+
## Made with love by LolDesign
|
76
|
+
|
77
|
+
![LolDesign](http://novo.loldesign.com.br/wp-content/uploads/2015/12/LolDesign.svg)
|
78
|
+
|
79
|
+
This gem was created and is maintained by [LolDesign](https://github.com/loldesign).
|
80
|
+
|
81
|
+
|
82
|
+
[LolDesign]: http://loldesign.com.br
|
83
|
+
[gem_version_badge]: http://img.shields.io/gem/v/lolcation_client.svg?style=flat
|
84
|
+
[gem_downloads_badge]: http://img.shields.io/gem/dt/lolcation_client.svg?style=flat
|
85
|
+
[ruby_gems]: http://rubygems.org/gems/lolcation_client
|
86
|
+
[code_climate]: https://codeclimate.com/github/loldesign/lolcation_client
|
87
|
+
[code_climate_badge]: http://img.shields.io/codeclimate/github/loldesign/lolcation_client.svg?style=flat
|
88
|
+
[gemnasium]: https://gemnasium.com/loldesign/lolcation_client
|
89
|
+
[gemnasium_badge]: http://img.shields.io/gemnasium/loldesign/lolcation_client.svg?style=flat
|
90
|
+
[travis]: https://travis-ci.org/loldesign/lolcation_client
|
91
|
+
[travis_badge]: http://img.shields.io/travis/loldesign/lolcation_client/master.svg?style=flat
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "lolcation_client"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/base'
|
3
|
+
|
4
|
+
module LolcationClient
|
5
|
+
module Generators
|
6
|
+
class InstallGenerator < Rails::Generators::Base
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
8
|
+
|
9
|
+
def copy_yml_file
|
10
|
+
template "lolcation.yml", "config/lolcation.yml"
|
11
|
+
|
12
|
+
puts "Do not forget to change your token at config/lolcation.yml"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/base'
|
3
|
+
|
4
|
+
module LolcationClient
|
5
|
+
module Generators
|
6
|
+
class MigrationGenerator < Rails::Generators::NamedBase
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
8
|
+
argument :attributes, type: :array, default: [], banner: "field:type field:type"
|
9
|
+
|
10
|
+
def copy_migration
|
11
|
+
generate_model_if_does_not_exists
|
12
|
+
template "migration.rb", "db/migrate/#{Time.zone.now.strftime("%Y%m%d%H%M%S")}_add_lolcation_to_#{table_name}.rb"
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def model_exists?
|
18
|
+
File.exist?(File.join(destination_root, model_path))
|
19
|
+
end
|
20
|
+
|
21
|
+
def migration_exists?(table_name)
|
22
|
+
Dir.glob("#{File.join(destination_root, migration_path)}/[0-9]*_*.rb").grep(/\d+_add_lolcalization_to_#{table_name}.rb$/).first
|
23
|
+
end
|
24
|
+
|
25
|
+
def migration_path
|
26
|
+
@migration_path ||= File.join("db", "migrate")
|
27
|
+
end
|
28
|
+
|
29
|
+
def model_path
|
30
|
+
@model_path ||= File.join("app", "models", "#{file_path}.rb")
|
31
|
+
end
|
32
|
+
|
33
|
+
def attributes_and_types
|
34
|
+
attributes.map do |attribute|
|
35
|
+
"#{attribute.name}:#{attribute.type}"
|
36
|
+
end.join(' ')
|
37
|
+
end
|
38
|
+
|
39
|
+
def generate_model_if_does_not_exists
|
40
|
+
unless model_exists?
|
41
|
+
system "rails generate model #{name} #{attributes_and_types} --force"
|
42
|
+
sleep 1
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class AddLolcationTo<%= table_name.camelize %> < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
change_table :<%= table_name %> do |t|
|
4
|
+
t.float :lolcation_latitude
|
5
|
+
t.float :lolcation_longitude
|
6
|
+
t.string :lolcation_id
|
7
|
+
t.string :lolcation_name
|
8
|
+
t.string :lolcation_address_street
|
9
|
+
t.string :lolcation_address_neighborhood
|
10
|
+
t.string :lolcation_address_city
|
11
|
+
t.string :lolcation_address_state
|
12
|
+
t.string :lolcation_address_number
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
require "faraday"
|
2
|
+
require_relative "configurations"
|
3
|
+
|
4
|
+
module LolcationClient
|
5
|
+
module Interceptor
|
6
|
+
def self.included(model)
|
7
|
+
model.send(:after_validation) do
|
8
|
+
if self.lolcation_id.present?
|
9
|
+
response = patch_on_lolcation_server
|
10
|
+
else
|
11
|
+
response = post_on_lolcation_server
|
12
|
+
end
|
13
|
+
|
14
|
+
parsed_response = JSON.parse(response.body)
|
15
|
+
if parsed_response["error"]
|
16
|
+
self.errors.add(:base, parsed_response["error"])
|
17
|
+
false
|
18
|
+
elsif parsed_response['localization']
|
19
|
+
self.lolcation_id = parsed_response["localization"]["objectId"]
|
20
|
+
else
|
21
|
+
parsed_response.map {|error, message| self.errors.add("lolcation_#{error}", message[0])}
|
22
|
+
false
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def configs
|
30
|
+
Rails.application.config_for(:lolcation)
|
31
|
+
end
|
32
|
+
|
33
|
+
def token
|
34
|
+
configs["token"]
|
35
|
+
end
|
36
|
+
|
37
|
+
def sandbox?
|
38
|
+
configs["sandbox"] || false
|
39
|
+
end
|
40
|
+
|
41
|
+
def custom_fields
|
42
|
+
self.class.try(:lolcation_custom_fields) || []
|
43
|
+
end
|
44
|
+
|
45
|
+
def set_custom_fields
|
46
|
+
attributes = custom_fields.map {|attribute| {attribute => self.try(attribute)}}
|
47
|
+
hash = {}
|
48
|
+
attributes.each do |attribute|
|
49
|
+
attribute.each do |key, value|
|
50
|
+
hash[key] = value
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
hash
|
55
|
+
end
|
56
|
+
|
57
|
+
def prepare_object_to_post
|
58
|
+
{
|
59
|
+
localization: {
|
60
|
+
latitude: self.try(:lolcation_latitude),
|
61
|
+
longitude: self.try(:lolcation_longitude),
|
62
|
+
name: self.try(:lolcation_name),
|
63
|
+
address_street: self.try(:lolcation_address_street),
|
64
|
+
address_neighborhood: self.try(:lolcation_address_neighborhood),
|
65
|
+
address_city: self.try(:lolcation_address_city),
|
66
|
+
address_state: self.try(:lolcation_address_state),
|
67
|
+
address_number: self.try(:lolcation_address_number),
|
68
|
+
custom_fields: set_custom_fields
|
69
|
+
},
|
70
|
+
sandbox: sandbox?
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
def post_on_lolcation_server
|
75
|
+
url = LolcationClient::Configurations::URL
|
76
|
+
conn = Faraday.new(url: url)
|
77
|
+
conn.post do |r|
|
78
|
+
r.headers["X-Token"] = token
|
79
|
+
r.headers["Content-Type"] = "application/json"
|
80
|
+
r.body = prepare_object_to_post.to_json
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
def patch_on_lolcation_server
|
85
|
+
url = LolcationClient::Configurations::URL
|
86
|
+
conn = Faraday.new(url: "#{url}/#{self.lolcation_id}")
|
87
|
+
conn.put do |r|
|
88
|
+
r.headers["X-Token"] = token
|
89
|
+
r.headers["Content-Type"] = "application/json"
|
90
|
+
r.body = prepare_object_to_post.to_json
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require "lolcation_client/version"
|
2
|
+
|
3
|
+
module LolcationClient
|
4
|
+
autoload :Interceptor, "lolcation_client/interceptor"
|
5
|
+
autoload :Configurations, "lolcation_client/configurations"
|
6
|
+
autoload :CustomFields, "lolcation_client/custom_fields"
|
7
|
+
|
8
|
+
def self.extended(base)
|
9
|
+
base.include LolcationClient::Interceptor
|
10
|
+
base.extend LolcationClient::CustomFields
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "lolcation_client/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "lolcation_client"
|
8
|
+
spec.version = LolcationClient::VERSION
|
9
|
+
spec.authors = ["Eduardo Zaghi", "Marcelo Barreto"]
|
10
|
+
spec.email = ["eduardo@loldesign.com.br", "marcelobarretojunior@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Write a short summary, because Rubygems requires one.}
|
13
|
+
spec.description = %q{Write a longer description or delete this line.}
|
14
|
+
spec.homepage = "https://github.com/loldesign/lolcation_client"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_dependency('activesupport', '>= 3.2')
|
37
|
+
spec.add_dependency('faraday', '>= 0.12')
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lolcation_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eduardo Zaghi
|
8
|
+
- Marcelo Barreto
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.15'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.15'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: activesupport
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.2'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.2'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: faraday
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.12'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.12'
|
84
|
+
description: Write a longer description or delete this line.
|
85
|
+
email:
|
86
|
+
- eduardo@loldesign.com.br
|
87
|
+
- marcelobarretojunior@gmail.com
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".gitignore"
|
93
|
+
- ".rspec"
|
94
|
+
- ".travis.yml"
|
95
|
+
- CONTRIBUTING.md
|
96
|
+
- Gemfile
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- bin/console
|
101
|
+
- bin/setup
|
102
|
+
- lib/generators/lolcation_client/install_generator.rb
|
103
|
+
- lib/generators/lolcation_client/migration_generator.rb
|
104
|
+
- lib/generators/lolcation_client/templates/lolcation.yml
|
105
|
+
- lib/generators/lolcation_client/templates/migration.rb
|
106
|
+
- lib/lolcation_client.rb
|
107
|
+
- lib/lolcation_client/configurations.rb
|
108
|
+
- lib/lolcation_client/custom_fields.rb
|
109
|
+
- lib/lolcation_client/interceptor.rb
|
110
|
+
- lib/lolcation_client/version.rb
|
111
|
+
- lolcation_client.gemspec
|
112
|
+
homepage: https://github.com/loldesign/lolcation_client
|
113
|
+
licenses:
|
114
|
+
- MIT
|
115
|
+
metadata:
|
116
|
+
allowed_push_host: https://rubygems.org
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
requirements: []
|
132
|
+
rubyforge_project:
|
133
|
+
rubygems_version: 2.4.5.1
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: Write a short summary, because Rubygems requires one.
|
137
|
+
test_files: []
|