activegraphql 0.2.0 → 0.2.1

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: a44463407791a95197a628418f23f722933b427c
4
- data.tar.gz: 3adb7777bcdab68b3297e387d9b6edf18f029df4
3
+ metadata.gz: 7f490b7e893e043ee303228f7d659808aec08f77
4
+ data.tar.gz: 3499be7e33802b8c9889db2a06b04fbbfc635d30
5
5
  SHA512:
6
- metadata.gz: 1c0462e5de2eaa132959fda32d9bcb4a964b4f4f858e4618c46f8359ce371290dba2f1732d1a240b073b31a8dd193e40abb7b445994319b9bce55f04eba4472e
7
- data.tar.gz: 528eae33a1f2815cdf3e16c9ab64f5afcbc579a83d66a4be0a87ab49048dce312fc0cc67137ea81010979e7440365ae980ae83853691ca31fd54ba6e39baf2af
6
+ metadata.gz: 96dfa45e1298a8ada8ce340b74fcde936e663577de144ccaac19ba6e5041d94e579ea6336e831aaa0a44e8b394eb73e32ef01bb8fafe09717e6bc38f636e30cc
7
+ data.tar.gz: 71a8365dcda8afe0907c70aa6f09b0e0f328639619ee243082e69db40a618a1550a40ff3ebe753975c66d40b190ccb072862d069bd3c46c17632c2efde82cd70
data/README.md CHANGED
@@ -3,7 +3,24 @@
3
3
  [![Build Status](https://travis-ci.org/wakoopa/activegraphql.png)](https://travis-ci.org/wakoopa/activegraphql)
4
4
 
5
5
  ActiveGraphQL connects classes to [GraphQL](http://graphql.org/) services.
6
- The library provides a **Model** class that, when subclassed and configured, encapsulates the communication with the service.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```
12
+ gem 'activegraphql'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ ```
18
+ $ bundle
19
+ ```
20
+
21
+ ## How it works?
22
+
23
+ The library provides an `ActiveGraphQL::Model` class that, when subclassed and configured, encapsulates the communication with the service.
7
24
 
8
25
  ```ruby
9
26
  class MyModel < ActiveGraphQL::Model
@@ -11,7 +28,7 @@ class MyModel < ActiveGraphQL::Model
11
28
  end
12
29
  ```
13
30
 
14
- Any subclass of `ActiveGraphQL::Model` will provide the following methods:
31
+ Any subclass of `ActiveGraphQL::Model` provides the following methods:
15
32
 
16
33
  - **all:** Retrive all objects for the entity.
17
34
  - **where(conditions):** Retrieve all objects for the entity finding by conditions.
@@ -19,7 +19,7 @@ module ActiveGraphQL
19
19
 
20
20
  def request_options
21
21
  { query: { query: to_s } }.tap do |opts|
22
- opts.merge!(headers: { 'accept_language' => locale.to_s }) if locale.present?
22
+ opts.merge!(headers: { 'Accept-Language' => locale.to_s }) if locale.present?
23
23
  end
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module ActiveGraphQL
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activegraphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wakoopa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-12 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.5.1
140
+ rubygems_version: 2.4.5.1
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Ruby client for GraphQL services