g5_integrations_updatable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95760517c607f058ad9edc83bc8639bd867cb965
4
- data.tar.gz: 72a6ed7096aaa3e55bee4dafa06cda74e1a59725
3
+ metadata.gz: 2c6e7f2abdc9cf16a2fe8b51f67dc9f66402a32e
4
+ data.tar.gz: 90acbe7e368b94e9a84aaa21df6e80a62457b645
5
5
  SHA512:
6
- metadata.gz: 4cd5448e44b1e2ccd2c53865ef44779cbd61e08d978faa0e8b6e98afb2f37e564bb0771780d251014e22d40b2276c6a177a99eee13dbc3bd98685080cd114627
7
- data.tar.gz: 61da01171e0cc5b7bb5ad8ac2dea1701ab9197ffa471fcf07028210d9de6b1b343e5ff1f23439247591901d11cb8afa65f5cca82406db690487bc3cc37932cad
6
+ metadata.gz: 92681c53e354266b767d5bb0c17d952b72bc49a3db74e0208b0771cf07e7ef2d5db90fbd4a2e6162062e9a9a277fcf2b4a6e7f2d49f7b99b011a32eeaf0e64fc
7
+ data.tar.gz: b89dd8caeb800dc141f0ad6f89d07468397444dadadb7c3e760ed1770bbdd9a7e1ad9a5c566a1965f4ed8938339bca686b92390ea9e1e731e7ede2d26286d41f
@@ -6,4 +6,9 @@ class G5IntegrationsUpdatable::FeedsController < ApplicationController
6
6
  G5IntegrationsUpdatable::FeedProcessor.new(client_setting_uid: params[:client_setting_uid]).process
7
7
  render json: {}, status: 201
8
8
  end
9
+
10
+ def index
11
+ @location_settings = G5IntegrationsUpdatable::LocationSetting.all
12
+ render json: @location_settings, each_serializer: G5IntegrationsUpdatable::LocationSettingSerializer
13
+ end
9
14
  end
@@ -0,0 +1,6 @@
1
+ class G5IntegrationsUpdatable::LocationSettingSerializer < ActiveModel::Serializer
2
+ attributes :uid, :urn, :location_uid, :location_urn, :location_name,
3
+ :client_uid, :client_urn, :client_name, :vendor_action,
4
+ :job_frequency_in_minutes, :created_at, :updated_at
5
+ #leaving off 'properties' for now
6
+ end
data/config/routes.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  G5IntegrationsUpdatable::Engine.routes.draw do
2
- resources :feeds, only: :create
2
+ resources :feeds, only: [:create, :index]
3
3
  end
@@ -1,3 +1,4 @@
1
+ require 'active_model/serializer'
1
2
  require 'g5_integrations_updatable/engine'
2
3
  require 'g5_authentication_client'
3
4
  require 'httparty'
@@ -1,3 +1,3 @@
1
1
  module G5IntegrationsUpdatable
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_integrations_updatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perry Hertler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: active_model_serializers
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0.8'
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0.8'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: virtus
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -168,6 +168,7 @@ files:
168
168
  - app/controllers/g5_integrations_updatable/feeds_controller.rb
169
169
  - app/helpers/g5_integrations_updatable/application_helper.rb
170
170
  - app/models/g5_integrations_updatable/location_setting.rb
171
+ - app/serializers/g5_integrations_updatable/location_setting_serializer.rb
171
172
  - app/views/layouts/g5_integrations_updatable/application.html.erb
172
173
  - config/routes.rb
173
174
  - db/migrate/20141119204321_create_location_settings.rb
@@ -203,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
204
  version: '0'
204
205
  requirements: []
205
206
  rubyforge_project:
206
- rubygems_version: 2.2.0
207
+ rubygems_version: 2.2.2
207
208
  signing_key:
208
209
  specification_version: 4
209
210
  summary: Retrieves and stores integration models from g5-integrations-dashboard.