ahc 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/ahc.gemspec +2 -2
  4. data/lib/ahc_helper.rb +4 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 274bab4f1810d8911a6621bad446271de8f27633
4
- data.tar.gz: 39819c1cafa22d37179d3d971ca1a5fcad559f47
3
+ metadata.gz: 8e923425602bb268c5c29762bcd8dbfd734afa4c
4
+ data.tar.gz: c069570ce1759e53d6cc7caaf44375f463b760f8
5
5
  SHA512:
6
- metadata.gz: cb9a2e2c6c2ac2676dfc60cc85856e554701d120c70eead3475ddc87e083c70dce840f25b46419d40352b5796fc87ae6f15df7bbabb7e89a259e72da75bda43c
7
- data.tar.gz: c3f658bf58674d7095b71a59d601eb822a5d6f1956cfa5dc853cfae9b45db9b8ca73aad8da2b77e9b61a12a04849bd29a67016fe5a960e8d608b428435da1958
6
+ metadata.gz: 429caba6da471556582560e4b5c86a5ac74f9b5fbea109c7df37a501f16624cc52d105c8cd69c5a09c7f56415f62982b89b0f237077116bc48f0d5e07984879f
7
+ data.tar.gz: d41364b6b189d13823f7e1ed553ce02238effcd1bd304a8b36a57d59c81e0ae919eed8aabcae94005f65fc3a8047a1fb0eb131a79ba3b74bcdc3966a55424116
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/ahc.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ahc"
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andriy Romanov"]
12
- s.date = "2013-12-05"
12
+ s.date = "2013-12-12"
13
13
  s.description = "Ahc allows you to move all your client side code to ahc server"
14
14
  s.email = "judo.ras@gmail.com"
15
15
  s.extra_rdoc_files = [
data/lib/ahc_helper.rb CHANGED
@@ -4,6 +4,10 @@ require 'uri'
4
4
  module AhcHelper
5
5
 
6
6
  def render_ahc(template)
7
+ if defined? Rails && @data
8
+ @data ||= {}
9
+ @data['authenticity_token'] = form_authenticity_token
10
+ end
7
11
  if params[:format] == 'json'
8
12
  render json: @data
9
13
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andriy Romanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2013-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec