officepod 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -2
  3. data/lib/officepod/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dc250293cdb6eb462abcf93ffce5471abad7200
4
- data.tar.gz: e47f0c29771c73d0f5c4593524bae54fdd1713ed
3
+ metadata.gz: 7bb207257a2e40c00facab6b1fe6debea39fb0e4
4
+ data.tar.gz: 15d54e805a635848025cea92a2751ec238a86496
5
5
  SHA512:
6
- metadata.gz: 465f6f230bf90bb6a582116f3b0cf506c5e36d2e50c90bd580a22cf1fa0ada6ef593eb0937fc043fa58bc625bca2c3ba3f2a9520f8049561690aff5a52003913
7
- data.tar.gz: 7baadc282cc5119fa66abed0e2803028071c61ffb0c3a8c9860d167992c68f3bf6d38eb095d5c9da2a334194d186722fd2a4995525f678ff8e84059d3b91ed88
6
+ metadata.gz: 89a8b2ff30c293492fad666d449d1cf8615de7b5d7b9888f5bd1298b100a959735154628dd091df88c0dac7b2f45f83549db93534a901ebc5f44157a2153eb66
7
+ data.tar.gz: 328514bf33dc35dbb3baeb33df944319e381d04a09de2b7ea36873cabef8c2a4aa139e0272d07fa8f90d5d4d40ed8dc665656bd2b880ca8ee9c7d9bf3d53b9e7
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # [Officepod](https://github.com/seoyoochan/officepod/) [![Build Status](https://travis-ci.org/seoyoochan/officepod.svg?branch=master)](https://travis-ci.org/seoyoochan/officepod)
2
2
 
3
+ This gem helps separate concerns of the complicating Officepod logics.
4
+ All of Officepod-specific logics happens behind the scenes.
5
+ You just cast the spell on your place!
6
+
3
7
  ## Install
4
8
 
5
9
  Add this line to your application's Gemfile:
@@ -24,11 +28,34 @@ Or install it yourself as:
24
28
 
25
29
  ## Usage
26
30
 
27
- TODO: Write usage instructions here
31
+ ```ruby
32
+ class Api::UsersController < ApplicationController
33
+ include Officepod
34
+ before_filter :user_params
35
+
36
+ def login
37
+ response = officepod({command: "login", body: params[:user]})
38
+ respond_to do |format|
39
+ format.json { render json: response, status: 200 }
40
+ end
41
+ end
42
+
43
+ def logout
44
+ response = officepod({command: "logout"})
45
+ respond_to do |format|
46
+ format.json { render json: response, status: 200 }
47
+ end
48
+ end
49
+
50
+ private
51
+ def user_params
52
+ params.require(:user).permit!
53
+ end
54
+ end
55
+ ```
28
56
 
29
57
  ## Help and Docs
30
58
 
31
- * [Docs](docs/)
32
59
  * supergnee@gmail.com
33
60
 
34
61
  ## Development
@@ -1,3 +1,3 @@
1
1
  module Officepod
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: officepod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoochan Seo